Struct lumi::AccountInfo[][src]

pub struct AccountInfo { /* fields omitted */ }

Contains the open/close date of an account, as well as the notes and documents.

Implementations

impl AccountInfo[src]

pub fn open(&self) -> &(NaiveDate, Source)[src]

Returns the account open date and the source of the open directive.

pub fn close(&self) -> &Option<(NaiveDate, Source)>[src]

Returns the account close date and the source of the close directive.

pub fn currencies(&self) -> &HashSet<Currency>[src]

Returns the allowed currencies of this account. If there are no limitations, an empty set is returned.

pub fn notes(&self) -> &Vec<AccountNote>[src]

Returns the account notes in note directives.

pub fn docs(&self) -> &Vec<AccountDoc>[src]

Returns the account documents in document directives.

pub fn meta(&self) -> &Meta[src]

Returns the account meta data associated with the open directive.

Trait Implementations

impl Clone for AccountInfo[src]

impl Debug for AccountInfo[src]

impl Eq for AccountInfo[src]

impl PartialEq<AccountInfo> for AccountInfo[src]

impl StructuralEq for AccountInfo[src]

impl StructuralPartialEq for AccountInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.