pub struct AccountTypeCreate {
pub balance_type: Option<Option<String>>,
pub name: String,
pub sort_key: Option<i64>,
pub extra: Map<String, Value>,
}Expand description
Account types are the top level of the finance chart of accounts. They distinguish assets, liabilities and profit-and-loss accounts. Each account class belongs to one account type.
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 AccountTypeCreate
impl Clone for AccountTypeCreate
Source§impl Debug for AccountTypeCreate
impl Debug for AccountTypeCreate
Source§impl Default for AccountTypeCreate
impl Default for AccountTypeCreate
Source§impl<'de> Deserialize<'de> for AccountTypeCreate
impl<'de> Deserialize<'de> for AccountTypeCreate
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 AccountTypeCreate
impl PartialEq for AccountTypeCreate
Source§impl Serialize for AccountTypeCreate
impl Serialize for AccountTypeCreate
impl StructuralPartialEq for AccountTypeCreate
Auto Trait Implementations§
impl Freeze for AccountTypeCreate
impl RefUnwindSafe for AccountTypeCreate
impl Send for AccountTypeCreate
impl Sync for AccountTypeCreate
impl Unpin for AccountTypeCreate
impl UnsafeUnpin for AccountTypeCreate
impl UnwindSafe for AccountTypeCreate
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