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>,
}Expand description
指标相对位置查询
Fields§
§position: i32§period: i32§first_indicator: i32§second_indicator: Option<i32>§second_value: Option<i64>§first_indicator_params: Vec<i64>动态参数(如MA6,设置6即可;BOLL(15,3),则按顺序设置15, 3;KDJ(9,4,4),则按顺序设置9,4,4)
second_indicator_params: Vec<i64>动态参数(如MA6,设置6即可;BOLL(15,3),则按顺序设置15, 3;KDJ(9,4,4),则按顺序设置9,4,4)
continuous_period: Option<i32>连续周期
Implementations§
Source§impl QueryIndicatorPositional
impl QueryIndicatorPositional
Sourcepub fn position(&self) -> Position
pub fn position(&self) -> Position
Returns the enum value of position, or the default if the field is set to an invalid enum value.
Sourcepub fn set_position(&mut self, value: Position)
pub fn set_position(&mut self, value: Position)
Sets position to the provided enum value.
Sourcepub fn period(&self) -> Period
pub fn period(&self) -> Period
Returns the enum value of period, or the default if the field is set to an invalid enum value.
Sourcepub fn set_period(&mut self, value: Period)
pub fn set_period(&mut self, value: Period)
Sets period to the provided enum value.
Sourcepub fn first_indicator(&self) -> Indicator
pub fn first_indicator(&self) -> Indicator
Returns the enum value of first_indicator, or the default if the field is set to an invalid enum value.
Sourcepub fn set_first_indicator(&mut self, value: Indicator)
pub fn set_first_indicator(&mut self, value: Indicator)
Sets first_indicator to the provided enum value.
Sourcepub fn second_indicator(&self) -> Indicator
pub fn second_indicator(&self) -> Indicator
Returns the enum value of second_indicator, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_second_indicator(&mut self, value: Indicator)
pub fn set_second_indicator(&mut self, value: Indicator)
Sets second_indicator to the provided enum value.
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.
Trait Implementations§
Source§impl Clone for QueryIndicatorPositional
impl Clone for QueryIndicatorPositional
Source§fn clone(&self) -> QueryIndicatorPositional
fn clone(&self) -> QueryIndicatorPositional
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QueryIndicatorPositional
impl Debug for QueryIndicatorPositional
Source§impl Default for QueryIndicatorPositional
impl Default for QueryIndicatorPositional
Source§impl Hash for QueryIndicatorPositional
impl Hash for QueryIndicatorPositional
Source§impl Message for QueryIndicatorPositional
impl Message for QueryIndicatorPositional
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.Source§impl PartialEq for QueryIndicatorPositional
impl PartialEq for QueryIndicatorPositional
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.