pub enum OptionType {
Call,
Put,
}Expand description
Whether the option grants the right to buy (Call) or sell (Put).
Variants§
Call
The right to buy the underlying at the strike price.
Put
The right to sell the underlying at the strike price.
Trait Implementations§
Source§impl Clone for OptionType
impl Clone for OptionType
impl Copy for OptionType
Source§impl Debug for OptionType
impl Debug for OptionType
Source§impl<'de> Deserialize<'de> for OptionType
impl<'de> Deserialize<'de> for OptionType
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 OptionType
Source§impl PartialEq for OptionType
impl PartialEq for OptionType
Source§impl Serialize for OptionType
impl Serialize for OptionType
impl StructuralPartialEq for OptionType
Auto Trait Implementations§
impl Freeze for OptionType
impl RefUnwindSafe for OptionType
impl Send for OptionType
impl Sync for OptionType
impl Unpin for OptionType
impl UnsafeUnpin for OptionType
impl UnwindSafe for OptionType
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