pub struct ConversionFactor {
pub factor: Option<Decimal>,
}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§
§factor: Option<Decimal>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§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