pub struct ComboMaxTrdQtys {
pub nlv_change: Option<f64>,
pub initial_margin_change: Option<f64>,
pub maintenance_margin_change: Option<f64>,
pub option_buy_power: Option<f64>,
pub max_with_draw_change: Option<f64>,
pub buy_power_decrease: Option<f64>,
}Expand description
组合期权最大可买卖相关字段
Fields§
§nlv_change: Option<f64>综合净资产
initial_margin_change: Option<f64>初始保证金
maintenance_margin_change: Option<f64>维持保证金
option_buy_power: Option<f64>期权购买力
max_with_draw_change: Option<f64>最大可提
buy_power_decrease: Option<f64>消耗购买力
Implementations§
Source§impl ComboMaxTrdQtys
impl ComboMaxTrdQtys
Sourcepub fn nlv_change(&self) -> f64
pub fn nlv_change(&self) -> f64
Returns the value of nlv_change, or the default value if nlv_change is unset.
Sourcepub fn initial_margin_change(&self) -> f64
pub fn initial_margin_change(&self) -> f64
Returns the value of initial_margin_change, or the default value if initial_margin_change is unset.
Sourcepub fn maintenance_margin_change(&self) -> f64
pub fn maintenance_margin_change(&self) -> f64
Returns the value of maintenance_margin_change, or the default value if maintenance_margin_change is unset.
Sourcepub fn option_buy_power(&self) -> f64
pub fn option_buy_power(&self) -> f64
Returns the value of option_buy_power, or the default value if option_buy_power is unset.
Sourcepub fn max_with_draw_change(&self) -> f64
pub fn max_with_draw_change(&self) -> f64
Returns the value of max_with_draw_change, or the default value if max_with_draw_change is unset.
Sourcepub fn buy_power_decrease(&self) -> f64
pub fn buy_power_decrease(&self) -> f64
Returns the value of buy_power_decrease, or the default value if buy_power_decrease is unset.
Trait Implementations§
Source§impl Clone for ComboMaxTrdQtys
impl Clone for ComboMaxTrdQtys
Source§fn clone(&self) -> ComboMaxTrdQtys
fn clone(&self) -> ComboMaxTrdQtys
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 ComboMaxTrdQtys
impl Debug for ComboMaxTrdQtys
Source§impl Default for ComboMaxTrdQtys
impl Default for ComboMaxTrdQtys
Source§impl<'de> Deserialize<'de> for ComboMaxTrdQtyswhere
ComboMaxTrdQtys: Default,
impl<'de> Deserialize<'de> for ComboMaxTrdQtyswhere
ComboMaxTrdQtys: 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 ComboMaxTrdQtys
impl Message for ComboMaxTrdQtys
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 ComboMaxTrdQtys
impl PartialEq for ComboMaxTrdQtys
Source§impl Serialize for ComboMaxTrdQtys
impl Serialize for ComboMaxTrdQtys
impl Copy for ComboMaxTrdQtys
impl StructuralPartialEq for ComboMaxTrdQtys
Auto Trait Implementations§
impl Freeze for ComboMaxTrdQtys
impl RefUnwindSafe for ComboMaxTrdQtys
impl Send for ComboMaxTrdQtys
impl Sync for ComboMaxTrdQtys
impl Unpin for ComboMaxTrdQtys
impl UnsafeUnpin for ComboMaxTrdQtys
impl UnwindSafe for ComboMaxTrdQtys
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