pub struct AccountClass {
pub account_type_id: i64,
pub include_profit_loss: Option<bool>,
pub name: String,
pub sort_key: Option<i64>,
pub id: i64,
pub meta: MetaDataEntityId,
pub extra: Map<String, Value>,
}Expand description
Account classes group account groups within one account type. The hierarchy is account type → account class → account group → account.
Fields§
§account_type_id: i64ID of the related account type.
include_profit_loss: Option<bool>Adds the profit-and-loss total to this class in reports. At most one account class in the installation may enable this flag; it is not restricted by account type. Omitted values default to false, including on update.
name: StringUnique account-class name. The controller does not trim the name or enforce a length limit.
sort_key: Option<i64>Sort order of the account class.
id: i64§meta: MetaDataEntityId§extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for AccountClass
impl Clone for AccountClass
Source§impl Debug for AccountClass
impl Debug for AccountClass
Source§impl Default for AccountClass
impl Default for AccountClass
Source§impl<'de> Deserialize<'de> for AccountClass
impl<'de> Deserialize<'de> for AccountClass
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 AccountClass
impl PartialEq for AccountClass
Source§impl Serialize for AccountClass
impl Serialize for AccountClass
impl StructuralPartialEq for AccountClass
Auto Trait Implementations§
impl Freeze for AccountClass
impl RefUnwindSafe for AccountClass
impl Send for AccountClass
impl Sync for AccountClass
impl Unpin for AccountClass
impl UnsafeUnpin for AccountClass
impl UnwindSafe for AccountClass
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