pub struct OptionStrategyItem {
pub code: String,
pub name: String,
pub option_strategy: i32,
pub stock_owner: Security,
pub multi_legs: Vec<ComboLeg>,
}Expand description
单个期权策略组合
Fields§
§code: String组合策略代码
name: String组合策略名称
option_strategy: i32OptionStrategyType,组合策略类型
stock_owner: Security标的股
multi_legs: Vec<ComboLeg>组合子订单列表(multi_legs)
Trait Implementations§
Source§impl Clone for OptionStrategyItem
impl Clone for OptionStrategyItem
Source§fn clone(&self) -> OptionStrategyItem
fn clone(&self) -> OptionStrategyItem
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 OptionStrategyItem
impl Debug for OptionStrategyItem
Source§impl Default for OptionStrategyItem
impl Default for OptionStrategyItem
Source§impl<'de> Deserialize<'de> for OptionStrategyItemwhere
OptionStrategyItem: Default,
impl<'de> Deserialize<'de> for OptionStrategyItemwhere
OptionStrategyItem: Default,
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
Source§impl Message for OptionStrategyItem
impl Message for OptionStrategyItem
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 OptionStrategyItem
impl PartialEq for OptionStrategyItem
Source§impl Serialize for OptionStrategyItem
impl Serialize for OptionStrategyItem
impl StructuralPartialEq for OptionStrategyItem
Auto Trait Implementations§
impl Freeze for OptionStrategyItem
impl RefUnwindSafe for OptionStrategyItem
impl Send for OptionStrategyItem
impl Sync for OptionStrategyItem
impl Unpin for OptionStrategyItem
impl UnsafeUnpin for OptionStrategyItem
impl UnwindSafe for OptionStrategyItem
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