pub struct Open {
pub date: NaiveDate,
pub account: AccountName,
pub commodities: Vec<CommodityName>,
pub description: Option<String>,
pub meta: Metadata,
}Expand description
Opens an account on a given date.
Fields§
§date: NaiveDateDate on which the account becomes available.
account: AccountNameAccount being opened.
commodities: Vec<CommodityName>Beancount-style optional list of commodities the account is
restricted to, e.g. EUR or EUR,USD. Empty when the open
directive doesn’t list any commodity, meaning the account is
unrestricted. When non-empty, crate::validation::validate_journal
rejects any posting on this account (including auto-balanced ones)
using a commodity outside this list.
description: Option<String>Optional description of the account.
meta: MetadataMetadata attached to the directive.
Trait Implementations§
impl StructuralPartialEq for Open
Auto Trait Implementations§
impl Freeze for Open
impl RefUnwindSafe for Open
impl Send for Open
impl Sync for Open
impl Unpin for Open
impl UnsafeUnpin for Open
impl UnwindSafe for Open
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