pub struct CustomIndicatorData {
pub field_name: i32,
pub value: f64,
pub kl_type: i32,
pub field_para_list: Vec<i32>,
}Expand description
自定义技术指标属性数据
Fields§
§field_name: i32CustomIndicatorField 自定义技术指标属性
value: f64§kl_type: i32Qot_Common.KLType,K线类型,仅支持K_60M,K_DAY,K_WEEK,K_MON 四种时间周期
field_para_list: Vec<i32>自定义指标参数 根据指标类型进行传参:1. MA:[平均移动周期] 2.EMA:[指数移动平均周期] 3.RSI:[RSI 指标周期] 4.MACD:[快速平均线值, 慢速平均线值, DIF值] 5.BOLL:[均线周期, 偏移值] 6.KDJ:[RSV 周期, K 值计算周期, D 值计算周期]
Trait Implementations§
Source§impl Clone for CustomIndicatorData
impl Clone for CustomIndicatorData
Source§fn clone(&self) -> CustomIndicatorData
fn clone(&self) -> CustomIndicatorData
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 CustomIndicatorData
impl Debug for CustomIndicatorData
Source§impl Default for CustomIndicatorData
impl Default for CustomIndicatorData
Source§impl<'de> Deserialize<'de> for CustomIndicatorDatawhere
CustomIndicatorData: Default,
impl<'de> Deserialize<'de> for CustomIndicatorDatawhere
CustomIndicatorData: 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 CustomIndicatorData
impl Message for CustomIndicatorData
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 CustomIndicatorData
impl PartialEq for CustomIndicatorData
Source§impl Serialize for CustomIndicatorData
impl Serialize for CustomIndicatorData
impl StructuralPartialEq for CustomIndicatorData
Auto Trait Implementations§
impl Freeze for CustomIndicatorData
impl RefUnwindSafe for CustomIndicatorData
impl Send for CustomIndicatorData
impl Sync for CustomIndicatorData
impl Unpin for CustomIndicatorData
impl UnwindSafe for CustomIndicatorData
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