pub struct ComboOption {
pub strategy: Option<i32>,
pub call_stock_id: Option<u64>,
pub call_options: Vec<ComboOptionItem>,
pub put_stock_id: Option<u64>,
pub put_options: Vec<ComboOptionItem>,
}Fields§
§strategy: Option<i32>§call_stock_id: Option<u64>§call_options: Vec<ComboOptionItem>§put_stock_id: Option<u64>§put_options: Vec<ComboOptionItem>Implementations§
Source§impl ComboOption
impl ComboOption
Sourcepub fn strategy(&self) -> i32
pub fn strategy(&self) -> i32
Returns the value of strategy, or the default value if strategy is unset.
Sourcepub fn call_stock_id(&self) -> u64
pub fn call_stock_id(&self) -> u64
Returns the value of call_stock_id, or the default value if call_stock_id is unset.
Sourcepub fn put_stock_id(&self) -> u64
pub fn put_stock_id(&self) -> u64
Returns the value of put_stock_id, or the default value if put_stock_id is unset.
Trait Implementations§
Source§impl Clone for ComboOption
impl Clone for ComboOption
Source§fn clone(&self) -> ComboOption
fn clone(&self) -> ComboOption
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 ComboOption
impl Debug for ComboOption
Source§impl Default for ComboOption
impl Default for ComboOption
Source§impl Message for ComboOption
impl Message for ComboOption
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 ComboOption
impl PartialEq for ComboOption
impl StructuralPartialEq for ComboOption
Auto Trait Implementations§
impl Freeze for ComboOption
impl RefUnwindSafe for ComboOption
impl Send for ComboOption
impl Sync for ComboOption
impl Unpin for ComboOption
impl UnsafeUnpin for ComboOption
impl UnwindSafe for ComboOption
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