pub enum ValuationModel {
Linear,
BlackScholesMerton,
DiscountedCashflows,
}Expand description
Which model produced a position’s value.
Variants§
Linear
Price times multiplier.
BlackScholesMerton
Black-Scholes-Merton with the zero rate to expiry.
DiscountedCashflows
Cashflows discounted on the currency’s curve.
Trait Implementations§
Source§impl Clone for ValuationModel
impl Clone for ValuationModel
Source§fn clone(&self) -> ValuationModel
fn clone(&self) -> ValuationModel
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 moreimpl Copy for ValuationModel
Source§impl Debug for ValuationModel
impl Debug for ValuationModel
Source§impl<'de> Deserialize<'de> for ValuationModel
impl<'de> Deserialize<'de> for ValuationModel
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 Eq for ValuationModel
Source§impl PartialEq for ValuationModel
impl PartialEq for ValuationModel
Source§impl Serialize for ValuationModel
impl Serialize for ValuationModel
impl StructuralPartialEq for ValuationModel
Auto Trait Implementations§
impl Freeze for ValuationModel
impl RefUnwindSafe for ValuationModel
impl Send for ValuationModel
impl Sync for ValuationModel
impl Unpin for ValuationModel
impl UnsafeUnpin for ValuationModel
impl UnwindSafe for ValuationModel
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