#[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§impl Debug for LedgerItem
impl Debug for LedgerItem
Source§impl Display for LedgerItem
impl Display for LedgerItem
impl Eq for LedgerItem
Source§impl PartialEq for LedgerItem
impl PartialEq for LedgerItem
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 StructuralPartialEq for LedgerItem
Auto Trait Implementations§
impl Forget for LedgerItem
impl Freeze for LedgerItem
impl RefUnwindSafe for LedgerItem
impl Send for LedgerItem
impl Sync for LedgerItem
impl Unpin for LedgerItem
impl UnsafeUnpin 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