pub struct AccountTypeUpdate {
pub balance_type: Option<Option<String>>,
pub name: String,
pub sort_key: Option<i64>,
pub extra: Map<String, Value>,
}Expand description
Replacement values for an existing account type. Optional fields use the creation defaults when omitted.
Fields§
§balance_type: Option<Option<String>>Balance-sheet side: assets or liabilities. Omit this field for a profit-and-loss account type. On update, omission also clears the balance-sheet classification.
Allowed values: assets, liabilities.
None leaves the field out, Some(None) sends null.
name: StringUnique account-type name. The controller does not trim the name or enforce a length limit.
sort_key: Option<i64>Ascending display order. Omission resets it to 0, including on update.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for AccountTypeUpdate
impl Clone for AccountTypeUpdate
Source§impl Debug for AccountTypeUpdate
impl Debug for AccountTypeUpdate
Source§impl Default for AccountTypeUpdate
impl Default for AccountTypeUpdate
Source§impl<'de> Deserialize<'de> for AccountTypeUpdate
impl<'de> Deserialize<'de> for AccountTypeUpdate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AccountTypeUpdate
impl PartialEq for AccountTypeUpdate
Source§impl Serialize for AccountTypeUpdate
impl Serialize for AccountTypeUpdate
impl StructuralPartialEq for AccountTypeUpdate
Auto Trait Implementations§
impl Freeze for AccountTypeUpdate
impl RefUnwindSafe for AccountTypeUpdate
impl Send for AccountTypeUpdate
impl Sync for AccountTypeUpdate
impl Unpin for AccountTypeUpdate
impl UnsafeUnpin for AccountTypeUpdate
impl UnwindSafe for AccountTypeUpdate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more