pub struct CollateralPosition {
pub asset_type: String,
pub asset_amount: Decimal,
pub current_value: Money,
pub initial_value: Money,
pub last_valuation: DateTime<Utc>,
pub valuation_source: String,
}Expand description
collateral position
Fields§
§asset_type: String§asset_amount: Decimal§current_value: Money§initial_value: Money§last_valuation: DateTime<Utc>§valuation_source: StringTrait Implementations§
Source§impl Clone for CollateralPosition
impl Clone for CollateralPosition
Source§fn clone(&self) -> CollateralPosition
fn clone(&self) -> CollateralPosition
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 CollateralPosition
impl Debug for CollateralPosition
Source§impl<'de> Deserialize<'de> for CollateralPosition
impl<'de> Deserialize<'de> for CollateralPosition
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 CollateralPosition
impl PartialEq for CollateralPosition
Source§fn eq(&self, other: &CollateralPosition) -> bool
fn eq(&self, other: &CollateralPosition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CollateralPosition
impl Serialize for CollateralPosition
impl StructuralPartialEq for CollateralPosition
Auto Trait Implementations§
impl Freeze for CollateralPosition
impl RefUnwindSafe for CollateralPosition
impl Send for CollateralPosition
impl Sync for CollateralPosition
impl Unpin for CollateralPosition
impl UnsafeUnpin for CollateralPosition
impl UnwindSafe for CollateralPosition
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