Enum ledger_parser::LedgerItem
source · #[non_exhaustive]pub enum LedgerItem {
EmptyLine,
LineComment(String),
Transaction(Transaction),
CommodityPrice(CommodityPrice),
Include(String),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyLine
LineComment(String)
Transaction(Transaction)
CommodityPrice(CommodityPrice)
Include(String)
Trait Implementations§
source§impl Clone for LedgerItem
impl Clone for LedgerItem
source§fn clone(&self) -> LedgerItem
fn clone(&self) -> LedgerItem
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 Debug for LedgerItem
impl Debug for LedgerItem
source§impl Display for LedgerItem
impl Display for LedgerItem
source§impl PartialEq for LedgerItem
impl PartialEq for LedgerItem
source§fn eq(&self, other: &LedgerItem) -> bool
fn eq(&self, other: &LedgerItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serializer for LedgerItem
impl Serializer for LedgerItem
fn write<W>(
&self,
writer: &mut W,
settings: &SerializerSettings
) -> Result<(), Error>where
W: Write,
fn to_string_pretty(&self, settings: &SerializerSettings) -> String
impl Eq for LedgerItem
impl StructuralPartialEq for LedgerItem
Auto Trait Implementations§
impl RefUnwindSafe for LedgerItem
impl Send for LedgerItem
impl Sync for LedgerItem
impl Unpin for LedgerItem
impl UnwindSafe for LedgerItem
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