Struct okane_core::datamodel::ExchangedAmount
source · pub struct ExchangedAmount {
pub amount: Amount,
pub exchange: Option<Exchange>,
}Expand description
Cost of the posting.
Fields§
§amount: AmountAmount that posting account was increased by.
exchange: Option<Exchange>Exchange rate information to balance with other postings.
Trait Implementations§
source§impl Clone for ExchangedAmount
impl Clone for ExchangedAmount
source§fn clone(&self) -> ExchangedAmount
fn clone(&self) -> ExchangedAmount
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 ExchangedAmount
impl Debug for ExchangedAmount
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 PartialEq for ExchangedAmount
impl PartialEq for ExchangedAmount
source§fn eq(&self, other: &ExchangedAmount) -> bool
fn eq(&self, other: &ExchangedAmount) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ExchangedAmount
impl StructuralPartialEq for ExchangedAmount
Auto Trait Implementations§
impl RefUnwindSafe for ExchangedAmount
impl Send for ExchangedAmount
impl Sync for ExchangedAmount
impl Unpin for ExchangedAmount
impl UnwindSafe for ExchangedAmount
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