#[non_exhaustive]pub struct QuoteHomeConversionFactors {
pub positive_units: Option<DecimalNumber>,
pub negative_units: Option<DecimalNumber>,
}Expand description
QuoteHomeConversionFactors represents the factors that can be used used to convert quantities of a Price’s Instrument’s quote currency into the Account’s home currency.
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.positive_units: Option<DecimalNumber>The factor used to convert a positive amount of the Price’s Instrument’s quote currency into a positive amount of the Account’s home currency. Conversion is performed by multiplying the quote units by the conversion factor.
negative_units: Option<DecimalNumber>The factor used to convert a negative amount of the Price’s Instrument’s quote currency into a negative amount of the Account’s home currency. Conversion is performed by multiplying the quote units by the conversion factor.
Trait Implementations§
Source§impl Clone for QuoteHomeConversionFactors
impl Clone for QuoteHomeConversionFactors
Source§fn clone(&self) -> QuoteHomeConversionFactors
fn clone(&self) -> QuoteHomeConversionFactors
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 QuoteHomeConversionFactors
impl Debug for QuoteHomeConversionFactors
Source§impl<'de> Deserialize<'de> for QuoteHomeConversionFactors
impl<'de> Deserialize<'de> for QuoteHomeConversionFactors
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
impl StructuralPartialEq for QuoteHomeConversionFactors
Auto Trait Implementations§
impl Freeze for QuoteHomeConversionFactors
impl RefUnwindSafe for QuoteHomeConversionFactors
impl Send for QuoteHomeConversionFactors
impl Sync for QuoteHomeConversionFactors
impl Unpin for QuoteHomeConversionFactors
impl UnsafeUnpin for QuoteHomeConversionFactors
impl UnwindSafe for QuoteHomeConversionFactors
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