Struct okane_core::repl::PostingAmount
source · pub struct PostingAmount {
pub amount: ValueExpr,
pub cost: Option<Exchange>,
pub lot: Lot,
}Expand description
This is an amout for each posting. Which contains
- how much the asset is increased.
- what was the cost in the other commodity.
- lot information.
Fields§
§amount: ValueExpr§cost: Option<Exchange>§lot: LotTrait Implementations§
source§impl Debug for PostingAmount
impl Debug for PostingAmount
source§impl From<ExchangedAmount> for PostingAmount
impl From<ExchangedAmount> for PostingAmount
source§fn from(v: ExchangedAmount) -> Self
fn from(v: ExchangedAmount) -> Self
Converts to this type from the input type.
source§impl From<ValueExpr> for PostingAmount
impl From<ValueExpr> for PostingAmount
source§impl PartialEq for PostingAmount
impl PartialEq for PostingAmount
source§fn eq(&self, other: &PostingAmount) -> bool
fn eq(&self, other: &PostingAmount) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for PostingAmount
impl StructuralEq for PostingAmount
impl StructuralPartialEq for PostingAmount
Auto Trait Implementations§
impl RefUnwindSafe for PostingAmount
impl Send for PostingAmount
impl Sync for PostingAmount
impl Unpin for PostingAmount
impl UnwindSafe for PostingAmount
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