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<'i> From<&'i ExchangedAmount> for PostingAmount<'i>
impl<'i> From<&'i ExchangedAmount> for PostingAmount<'i>
source§fn from(v: &'i ExchangedAmount) -> Self
fn from(v: &'i 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 Freeze for ExchangedAmount
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)