pub enum PostingPrice<D> {
Unit(Amount<D>),
Total(Amount<D>),
}
Expand description
Price of a posting
It is the amount following the @
or @@
symbols
Variants§
Trait Implementations§
Source§impl<D: Clone> Clone for PostingPrice<D>
impl<D: Clone> Clone for PostingPrice<D>
Source§fn clone(&self) -> PostingPrice<D>
fn clone(&self) -> PostingPrice<D>
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<D: Debug> Debug for PostingPrice<D>
impl<D: Debug> Debug for PostingPrice<D>
Source§impl<D: PartialEq> PartialEq for PostingPrice<D>
impl<D: PartialEq> PartialEq for PostingPrice<D>
impl<D> StructuralPartialEq for PostingPrice<D>
Auto Trait Implementations§
impl<D> Freeze for PostingPrice<D>where
D: Freeze,
impl<D> RefUnwindSafe for PostingPrice<D>where
D: RefUnwindSafe,
impl<D> Send for PostingPrice<D>where
D: Send,
impl<D> Sync for PostingPrice<D>where
D: Sync,
impl<D> Unpin for PostingPrice<D>where
D: Unpin,
impl<D> UnwindSafe for PostingPrice<D>where
D: UnwindSafe,
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