pub struct QueryIndicatorPositional {
pub position: i32,
pub period: i32,
pub first_indicator: i32,
pub second_indicator: Option<i32>,
pub second_value: Option<i64>,
pub first_indicator_params: Vec<i64>,
pub second_indicator_params: Vec<i64>,
pub continuous_period: Option<i32>,
pub intervals: Vec<Interval>,
pub first_indicator_name: Option<i32>,
pub period_type: Option<i32>,
}Fields§
§position: i32Position: 1=上方, 2=下方, 3=上穿, 4=下穿
period: i32【已废弃, 用periodType】
first_indicator: i32【已废弃, 用firstIndicatorName】
second_indicator: Option<i32>§second_value: Option<i64>§first_indicator_params: Vec<i64>§second_indicator_params: Vec<i64>§continuous_period: Option<i32>§intervals: Vec<Interval>field 9 reserved (f_second_value, AI only)
first_indicator_name: Option<i32>Indicator 枚举, 替换 field 3
period_type: Option<i32>Period 枚举, 替换 field 2
Implementations§
Source§impl QueryIndicatorPositional
impl QueryIndicatorPositional
Sourcepub fn second_indicator(&self) -> i32
pub fn second_indicator(&self) -> i32
Returns the value of second_indicator, or the default value if second_indicator is unset.
Sourcepub fn second_value(&self) -> i64
pub fn second_value(&self) -> i64
Returns the value of second_value, or the default value if second_value is unset.
Sourcepub fn continuous_period(&self) -> i32
pub fn continuous_period(&self) -> i32
Returns the value of continuous_period, or the default value if continuous_period is unset.
Sourcepub fn first_indicator_name(&self) -> i32
pub fn first_indicator_name(&self) -> i32
Returns the value of first_indicator_name, or the default value if first_indicator_name is unset.
Sourcepub fn period_type(&self) -> i32
pub fn period_type(&self) -> i32
Returns the value of period_type, or the default value if period_type is unset.
Trait Implementations§
Source§impl Clone for QueryIndicatorPositional
impl Clone for QueryIndicatorPositional
Source§fn clone(&self) -> QueryIndicatorPositional
fn clone(&self) -> QueryIndicatorPositional
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 QueryIndicatorPositional
impl Debug for QueryIndicatorPositional
Source§impl Default for QueryIndicatorPositional
impl Default for QueryIndicatorPositional
Source§impl<'de> Deserialize<'de> for QueryIndicatorPositionalwhere
QueryIndicatorPositional: Default,
impl<'de> Deserialize<'de> for QueryIndicatorPositionalwhere
QueryIndicatorPositional: 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 QueryIndicatorPositional
impl Message for QueryIndicatorPositional
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 QueryIndicatorPositional
impl PartialEq for QueryIndicatorPositional
Source§impl Serialize for QueryIndicatorPositional
impl Serialize for QueryIndicatorPositional
impl StructuralPartialEq for QueryIndicatorPositional
Auto Trait Implementations§
impl Freeze for QueryIndicatorPositional
impl RefUnwindSafe for QueryIndicatorPositional
impl Send for QueryIndicatorPositional
impl Sync for QueryIndicatorPositional
impl Unpin for QueryIndicatorPositional
impl UnsafeUnpin for QueryIndicatorPositional
impl UnwindSafe for QueryIndicatorPositional
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