pub struct AccountSpec {
pub code: String,
pub name: String,
pub kind: String,
pub parent: Option<String>,
pub header: bool,
pub tax_category: Option<String>,
}Expand description
One account of the chart.
Fields§
§code: StringIts code.
name: StringIts name.
kind: Stringasset, liability, equity, revenue or expense.
parent: Option<String>Its parent’s code, declared before it.
header: boolA header groups other accounts and takes no postings.
tax_category: Option<String>Its tax category, a key of the catalog (B-32).
Trait Implementations§
Source§impl Clone for AccountSpec
impl Clone for AccountSpec
Source§fn clone(&self) -> AccountSpec
fn clone(&self) -> AccountSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AccountSpec
impl Debug for AccountSpec
Source§impl<'de> Deserialize<'de> for AccountSpec
impl<'de> Deserialize<'de> for AccountSpec
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 AccountSpec
impl PartialEq for AccountSpec
impl StructuralPartialEq for AccountSpec
Auto Trait Implementations§
impl Freeze for AccountSpec
impl RefUnwindSafe for AccountSpec
impl Send for AccountSpec
impl Sync for AccountSpec
impl Unpin for AccountSpec
impl UnsafeUnpin for AccountSpec
impl UnwindSafe for AccountSpec
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