pub struct AccountInfo { /* private fields */ }Expand description
Contains the open/close date of an account, as well as the notes and documents.
Implementations§
Source§impl AccountInfo
impl AccountInfo
Sourcepub fn open(&self) -> &(NaiveDate, Source)
pub fn open(&self) -> &(NaiveDate, Source)
Returns the account open date and the source of the open directive.
Sourcepub fn close(&self) -> &Option<(NaiveDate, Source)>
pub fn close(&self) -> &Option<(NaiveDate, Source)>
Returns the account close date and the source of the close directive.
Sourcepub fn currencies(&self) -> &HashSet<Currency>
pub fn currencies(&self) -> &HashSet<Currency>
Returns the allowed currencies of this account. If there are no limitations, an empty set is returned.
Sourcepub fn notes(&self) -> &Vec<AccountNote>
pub fn notes(&self) -> &Vec<AccountNote>
Returns the account notes in note directives.
Sourcepub fn docs(&self) -> &Vec<AccountDoc> ⓘ
pub fn docs(&self) -> &Vec<AccountDoc> ⓘ
Returns the account documents in document directives.
Trait Implementations§
Source§impl Clone for AccountInfo
impl Clone for AccountInfo
Source§fn clone(&self) -> AccountInfo
fn clone(&self) -> AccountInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 AccountInfo
impl Debug for AccountInfo
Source§impl PartialEq for AccountInfo
impl PartialEq for AccountInfo
impl Eq for AccountInfo
impl StructuralPartialEq for AccountInfo
Auto Trait Implementations§
impl Freeze for AccountInfo
impl RefUnwindSafe for AccountInfo
impl Send for AccountInfo
impl Sync for AccountInfo
impl Unpin for AccountInfo
impl UnwindSafe for AccountInfo
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