pub enum DirectiveVariant<'a> {
Transaction(Transaction<'a>),
Price(Price<'a>),
Balance(Balance<'a>),
Open(Open<'a>),
Close(Close<'a>),
Commodity(Commodity<'a>),
Pad(Pad<'a>),
Document(Document<'a>),
Note(Note<'a>),
Event(Event<'a>),
Query(Query<'a>),
}Expand description
A Beancount directive, without the fields common to all, which belong to Directive.
Variants§
Transaction(Transaction<'a>)
Price(Price<'a>)
Balance(Balance<'a>)
Open(Open<'a>)
Close(Close<'a>)
Commodity(Commodity<'a>)
Pad(Pad<'a>)
Document(Document<'a>)
Note(Note<'a>)
Event(Event<'a>)
Query(Query<'a>)
Trait Implementations§
source§impl<'a> Clone for DirectiveVariant<'a>
impl<'a> Clone for DirectiveVariant<'a>
source§fn clone(&self) -> DirectiveVariant<'a>
fn clone(&self) -> DirectiveVariant<'a>
Returns a copy 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<'a> Debug for DirectiveVariant<'a>
impl<'a> Debug for DirectiveVariant<'a>
source§impl<'a> PartialEq for DirectiveVariant<'a>
impl<'a> PartialEq for DirectiveVariant<'a>
source§fn eq(&self, other: &DirectiveVariant<'a>) -> bool
fn eq(&self, other: &DirectiveVariant<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'a> Eq for DirectiveVariant<'a>
impl<'a> StructuralPartialEq for DirectiveVariant<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for DirectiveVariant<'a>
impl<'a> Send for DirectiveVariant<'a>
impl<'a> Sync for DirectiveVariant<'a>
impl<'a> Unpin for DirectiveVariant<'a>
impl<'a> UnwindSafe for DirectiveVariant<'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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more