#[non_exhaustive]pub struct ConversionFactor {
pub factor: Option<DecimalNumber>,
}Expand description
A ConversionFactor contains information used to convert an amount, from an Instrument’s base or quote currency, to the home currency of an Account.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.factor: Option<DecimalNumber>The factor by which to multiply the amount in the given currency to obtain the amount in the home currency of the Account.
Trait Implementations§
Source§impl Clone for ConversionFactor
impl Clone for ConversionFactor
Source§fn clone(&self) -> ConversionFactor
fn clone(&self) -> ConversionFactor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConversionFactor
impl Debug for ConversionFactor
Source§impl<'de> Deserialize<'de> for ConversionFactor
impl<'de> Deserialize<'de> for ConversionFactor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConversionFactor
impl PartialEq for ConversionFactor
Source§impl Serialize for ConversionFactor
impl Serialize for ConversionFactor
impl StructuralPartialEq for ConversionFactor
Auto Trait Implementations§
impl Freeze for ConversionFactor
impl RefUnwindSafe for ConversionFactor
impl Send for ConversionFactor
impl Sync for ConversionFactor
impl Unpin for ConversionFactor
impl UnsafeUnpin for ConversionFactor
impl UnwindSafe for ConversionFactor
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