Enum okane_core::repl::CommodityDetail
source · pub enum CommodityDetail {
Comment(String),
Note(String),
Alias(String),
Format(Amount),
}Expand description
Sub directives for “commodity” directive.
Variants§
Comment(String)
Comment is a pure comment without any semantics, similar to TopLevelComment.
Note(String)
Note is a “note” sub-directive to note the commodity. Usually it would be one-line.
Alias(String)
Declare the given string is an alias for the declared account. Multiple declaration should work.
Format(Amount)
Format describes how the comodity should be printed.
Trait Implementations§
source§impl Debug for CommodityDetail
impl Debug for CommodityDetail
source§impl PartialEq for CommodityDetail
impl PartialEq for CommodityDetail
source§fn eq(&self, other: &CommodityDetail) -> bool
fn eq(&self, other: &CommodityDetail) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for CommodityDetail
impl StructuralEq for CommodityDetail
impl StructuralPartialEq for CommodityDetail
Auto Trait Implementations§
impl RefUnwindSafe for CommodityDetail
impl Send for CommodityDetail
impl Sync for CommodityDetail
impl Unpin for CommodityDetail
impl UnwindSafe for CommodityDetail
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