make capabilities optional in Account::new
parent
406ca3be53
commit
e90e83c310
|
@ -260,13 +260,13 @@ impl Account {
|
||||||
name: String,
|
name: String,
|
||||||
is_personal: bool,
|
is_personal: bool,
|
||||||
is_read_only: bool,
|
is_read_only: bool,
|
||||||
account_capabilities: HashMap<String, Value>,
|
capabilities: Option<HashMap<String, Value>>,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
Self {
|
Self {
|
||||||
name,
|
name,
|
||||||
is_personal,
|
is_personal,
|
||||||
is_read_only,
|
is_read_only,
|
||||||
account_capabilities,
|
account_capabilities: capabilities.unwrap_or_default(),
|
||||||
extra_properties: HashMap::default(),
|
extra_properties: HashMap::default(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue