Struct beancount_parser_lima::types::Account
source · pub struct Account<'a> { /* private fields */ }
Expand description
A Beancount account with account type and subaccount names.
Implementations§
source§impl<'a> Account<'a>
impl<'a> Account<'a>
sourcepub fn new(account_type: AccountType, subaccount: Subaccount<'_>) -> Account<'_>
pub fn new(account_type: AccountType, subaccount: Subaccount<'_>) -> Account<'_>
constructor
sourcepub fn account_type(&self) -> AccountType
pub fn account_type(&self) -> AccountType
Field accessor.
sourcepub fn names(&self) -> &Subaccount<'_>
pub fn names(&self) -> &Subaccount<'_>
Field accessor.
Trait Implementations§
source§impl<'a> ElementType for Account<'a>
impl<'a> ElementType for Account<'a>
fn element_type(&self) -> &'static str
source§impl<'a> PartialEq for Account<'a>
impl<'a> PartialEq for Account<'a>
impl<'a> Eq for Account<'a>
impl<'a> StructuralPartialEq for Account<'a>
Auto Trait Implementations§
impl<'a> Freeze for Account<'a>
impl<'a> RefUnwindSafe for Account<'a>
impl<'a> Send for Account<'a>
impl<'a> Sync for Account<'a>
impl<'a> Unpin for Account<'a>
impl<'a> UnwindSafe for Account<'a>
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