pub struct AccountClassUpdate {
pub account_type_id: i64,
pub include_profit_loss: Option<bool>,
pub name: String,
pub sort_key: Option<i64>,
pub extra: Map<String, Value>,
}Expand description
Replacement values for an existing account class. Optional fields use the creation defaults when omitted.
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.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for AccountClassUpdate
impl Clone for AccountClassUpdate
Source§impl Debug for AccountClassUpdate
impl Debug for AccountClassUpdate
Source§impl Default for AccountClassUpdate
impl Default for AccountClassUpdate
Source§impl<'de> Deserialize<'de> for AccountClassUpdate
impl<'de> Deserialize<'de> for AccountClassUpdate
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 AccountClassUpdate
impl PartialEq for AccountClassUpdate
Source§impl Serialize for AccountClassUpdate
impl Serialize for AccountClassUpdate
impl StructuralPartialEq for AccountClassUpdate
Auto Trait Implementations§
impl Freeze for AccountClassUpdate
impl RefUnwindSafe for AccountClassUpdate
impl Send for AccountClassUpdate
impl Sync for AccountClassUpdate
impl Unpin for AccountClassUpdate
impl UnsafeUnpin for AccountClassUpdate
impl UnwindSafe for AccountClassUpdate
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