pub struct OptionContractAsset {
pub id: Uuid,
pub symbol: String,
pub name: Option<String>,
pub status: AssetStatus,
pub tradable: bool,
pub expiration_date: String,
pub strike_price: String,
pub option_type: OptionType,
pub option_style: Option<OptionStyle>,
pub underlying_symbol: String,
pub underlying_asset_id: Option<Uuid>,
pub root_symbol: Option<String>,
}Expand description
Option contract asset.
Fields§
§id: UuidContract ID.
symbol: StringSymbol.
name: Option<String>Name.
status: AssetStatusStatus.
tradable: boolTradable.
expiration_date: StringExpiration date.
strike_price: StringStrike price.
option_type: OptionTypeOption type (call/put).
option_style: Option<OptionStyle>Option style (american/european).
underlying_symbol: StringUnderlying symbol.
underlying_asset_id: Option<Uuid>Underlying asset ID.
root_symbol: Option<String>Root symbol.
Trait Implementations§
Source§impl Clone for OptionContractAsset
impl Clone for OptionContractAsset
Source§fn clone(&self) -> OptionContractAsset
fn clone(&self) -> OptionContractAsset
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 OptionContractAsset
impl Debug for OptionContractAsset
Source§impl<'de> Deserialize<'de> for OptionContractAsset
impl<'de> Deserialize<'de> for OptionContractAsset
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OptionContractAsset, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OptionContractAsset, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for OptionContractAsset
impl Serialize for OptionContractAsset
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for OptionContractAsset
impl RefUnwindSafe for OptionContractAsset
impl Send for OptionContractAsset
impl Sync for OptionContractAsset
impl Unpin for OptionContractAsset
impl UnwindSafe for OptionContractAsset
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