pub struct OptionContract {
pub underlying: String,
pub strike: Decimal,
pub expiry: String,
pub right: OptionRight,
pub multiplier: i32,
}Expand description
Option contract details
Fields§
§underlying: String§strike: Decimal§expiry: String§right: OptionRight§multiplier: i32Trait Implementations§
Source§impl Clone for OptionContract
impl Clone for OptionContract
Source§fn clone(&self) -> OptionContract
fn clone(&self) -> OptionContract
Returns a duplicate of the value. Read more
1.0.0 · 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 OptionContract
impl Debug for OptionContract
Source§impl<'de> Deserialize<'de> for OptionContract
impl<'de> Deserialize<'de> for OptionContract
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
Auto Trait Implementations§
impl Freeze for OptionContract
impl RefUnwindSafe for OptionContract
impl Send for OptionContract
impl Sync for OptionContract
impl Unpin for OptionContract
impl UnwindSafe for OptionContract
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