pub enum DirectiveData {
Transaction(TransactionData),
Balance(BalanceData),
Open(OpenData),
Close(CloseData),
Commodity(CommodityData),
Pad(PadData),
Event(EventData),
Note(NoteData),
Document(DocumentData),
Price(PriceData),
Query(QueryData),
Custom(CustomData),
}Expand description
Directive-specific data.
Each variant corresponds to a Beancount directive type.
Variants§
Transaction(TransactionData)
Transaction data.
Balance(BalanceData)
Balance assertion data.
Open(OpenData)
Open account data.
Close(CloseData)
Close account data.
Commodity(CommodityData)
Commodity declaration data.
Pad(PadData)
Pad directive data.
Event(EventData)
Event data.
Note(NoteData)
Note data.
Document(DocumentData)
Document data.
Price(PriceData)
Price data.
Query(QueryData)
Query data.
Custom(CustomData)
Custom directive data.
Trait Implementations§
Source§impl Clone for DirectiveData
impl Clone for DirectiveData
Source§fn clone(&self) -> DirectiveData
fn clone(&self) -> DirectiveData
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 DirectiveData
impl Debug for DirectiveData
Source§impl<'de> Deserialize<'de> for DirectiveData
impl<'de> Deserialize<'de> for DirectiveData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DirectiveData
impl RefUnwindSafe for DirectiveData
impl Send for DirectiveData
impl Sync for DirectiveData
impl Unpin for DirectiveData
impl UnsafeUnpin for DirectiveData
impl UnwindSafe for DirectiveData
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