pub struct AccountType {
pub balance_type: Option<String>,
pub name: String,
pub sort_key: Option<i64>,
pub id: i64,
pub is_balance_account: Option<bool>,
pub meta: MetaDataEntityId,
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<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.
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.
id: i64§is_balance_account: Option<bool>👎Deprecated:
Use balanceType instead.
Legacy flag: true when balanceType is non-null. Use balanceType instead.
meta: MetaDataEntityId§extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for AccountType
impl Clone for AccountType
Source§impl Debug for AccountType
impl Debug for AccountType
Source§impl Default for AccountType
impl Default for AccountType
Source§impl<'de> Deserialize<'de> for AccountType
impl<'de> Deserialize<'de> for AccountType
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 AccountType
impl PartialEq for AccountType
Source§impl Serialize for AccountType
impl Serialize for AccountType
impl StructuralPartialEq for AccountType
Auto Trait Implementations§
impl Freeze for AccountType
impl RefUnwindSafe for AccountType
impl Send for AccountType
impl Sync for AccountType
impl Unpin for AccountType
impl UnsafeUnpin for AccountType
impl UnwindSafe for AccountType
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