Enum okane_core::repl::LedgerEntry
source · pub enum LedgerEntry<'i> {
Txn(Transaction<'i>),
Comment(TopLevelComment<'i>),
ApplyTag(ApplyTag<'i>),
EndApplyTag,
Include(IncludeFile<'i>),
Account(AccountDeclaration<'i>),
Commodity(CommodityDeclaration<'i>),
}Expand description
Top-level entry of the LedgerFile.
Variants§
Txn(Transaction<'i>)
Transaction
Comment(TopLevelComment<'i>)
Comment, not limited to one-line oppose to Metadata.
ApplyTag(ApplyTag<'i>)
Apply tag directive.
EndApplyTag
“end apply tag” directive.
Include(IncludeFile<'i>)
“include” directive.
Account(AccountDeclaration<'i>)
“account” directive.
Commodity(CommodityDeclaration<'i>)
“commodity” directive.
Trait Implementations§
source§impl<'i> Debug for LedgerEntry<'i>
impl<'i> Debug for LedgerEntry<'i>
source§impl<'i> IntoBoundedStatic for LedgerEntry<'i>
impl<'i> IntoBoundedStatic for LedgerEntry<'i>
§type Static = LedgerEntry<'static>
type Static = LedgerEntry<'static>
The target type is bounded by the
'static lifetime.source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned
T into an owned T such that T: 'static.source§impl<'i> PartialEq for LedgerEntry<'i>
impl<'i> PartialEq for LedgerEntry<'i>
source§fn eq(&self, other: &LedgerEntry<'i>) -> bool
fn eq(&self, other: &LedgerEntry<'i>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'i> ToBoundedStatic for LedgerEntry<'i>
impl<'i> ToBoundedStatic for LedgerEntry<'i>
impl<'i> Eq for LedgerEntry<'i>
impl<'i> StructuralPartialEq for LedgerEntry<'i>
Auto Trait Implementations§
impl<'i> Freeze for LedgerEntry<'i>
impl<'i> RefUnwindSafe for LedgerEntry<'i>
impl<'i> Send for LedgerEntry<'i>
impl<'i> Sync for LedgerEntry<'i>
impl<'i> Unpin for LedgerEntry<'i>
impl<'i> UnwindSafe for LedgerEntry<'i>
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