pub struct SecDefOptParameter {
pub req_id: Option<i32>,
pub exchange: Option<String>,
pub underlying_con_id: Option<i32>,
pub trading_class: Option<String>,
pub multiplier: Option<String>,
pub expirations: Vec<String>,
pub strikes: Vec<f64>,
}Fields§
§req_id: Option<i32>§exchange: Option<String>§underlying_con_id: Option<i32>§trading_class: Option<String>§multiplier: Option<String>§expirations: Vec<String>§strikes: Vec<f64>Implementations§
Source§impl SecDefOptParameter
impl SecDefOptParameter
Sourcepub fn req_id(&self) -> i32
pub fn req_id(&self) -> i32
Returns the value of req_id, or the default value if req_id is unset.
Sourcepub fn exchange(&self) -> &str
pub fn exchange(&self) -> &str
Returns the value of exchange, or the default value if exchange is unset.
Sourcepub fn underlying_con_id(&self) -> i32
pub fn underlying_con_id(&self) -> i32
Returns the value of underlying_con_id, or the default value if underlying_con_id is unset.
Sourcepub fn trading_class(&self) -> &str
pub fn trading_class(&self) -> &str
Returns the value of trading_class, or the default value if trading_class is unset.
Sourcepub fn multiplier(&self) -> &str
pub fn multiplier(&self) -> &str
Returns the value of multiplier, or the default value if multiplier is unset.
Trait Implementations§
Source§impl Clone for SecDefOptParameter
impl Clone for SecDefOptParameter
Source§fn clone(&self) -> SecDefOptParameter
fn clone(&self) -> SecDefOptParameter
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 SecDefOptParameter
impl Debug for SecDefOptParameter
Source§impl Default for SecDefOptParameter
impl Default for SecDefOptParameter
Source§impl Message for SecDefOptParameter
impl Message for SecDefOptParameter
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for SecDefOptParameter
impl PartialEq for SecDefOptParameter
impl StructuralPartialEq for SecDefOptParameter
Auto Trait Implementations§
impl Freeze for SecDefOptParameter
impl RefUnwindSafe for SecDefOptParameter
impl Send for SecDefOptParameter
impl Sync for SecDefOptParameter
impl Unpin for SecDefOptParameter
impl UnsafeUnpin for SecDefOptParameter
impl UnwindSafe for SecDefOptParameter
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