pub struct Account {
pub id: AccountId,
pub kind: AccountKind,
pub parent: Option<AccountId>,
pub attributes: BTreeMap<String, String>,
}Expand description
An account: of the harmonised chart, or opened in a set of books to refine one (spec parts 0002, 0004).
Names are not part of an account, as they differ by language: translation data names it by its identity.
Fields§
§id: AccountIdIts identity, stable across versions of the chart.
kind: AccountKindWhat it is.
parent: Option<AccountId>The account it refines; none for a top-level account.
attributes: BTreeMap<String, String>Further distinctions the account carries (for example a tax treatment or a non-profit sphere), as attribute → value. Attributes are inherited by refining accounts unless they set their own value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Account
impl<'de> Deserialize<'de> for Account
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
impl Eq for Account
impl StructuralPartialEq for Account
Auto Trait Implementations§
impl Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnsafeUnpin for Account
impl UnwindSafe for Account
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