pub struct C2s {
pub rehab_type: i32,
pub kl_type: i32,
pub security: Security,
pub begin_time: String,
pub end_time: String,
pub max_ack_kl_num: Option<i32>,
pub need_kl_fields_flag: Option<i64>,
pub next_req_key: Option<Vec<u8>>,
pub extended_time: Option<bool>,
pub session: Option<i32>,
}Fields§
§rehab_type: i32Qot_Common.RehabType,复权类型
kl_type: i32Qot_Common.KLType,K线类型
security: Security股票市场以及股票代码
begin_time: String开始时间字符串
end_time: String结束时间字符串
max_ack_kl_num: Option<i32>最多返回多少根K线,如果未指定表示不限制
need_kl_fields_flag: Option<i64>指定返回K线结构体特定某几项数据,KLFields枚举值或组合,如果未指定返回全部字段
next_req_key: Option<Vec<u8>>分页请求key
extended_time: Option<bool>是否获取美股盘前盘后数据,仅支持 60 分钟及以下级别
session: Option<i32>Qot_Common.Session, 美股盘前盘后数据,仅支持 60 分钟及以下级别
Implementations§
Source§impl C2s
impl C2s
Sourcepub fn max_ack_kl_num(&self) -> i32
pub fn max_ack_kl_num(&self) -> i32
Returns the value of max_ack_kl_num, or the default value if max_ack_kl_num is unset.
Sourcepub fn need_kl_fields_flag(&self) -> i64
pub fn need_kl_fields_flag(&self) -> i64
Returns the value of need_kl_fields_flag, or the default value if need_kl_fields_flag is unset.
Sourcepub fn next_req_key(&self) -> &[u8] ⓘ
pub fn next_req_key(&self) -> &[u8] ⓘ
Returns the value of next_req_key, or the default value if next_req_key is unset.
Sourcepub fn extended_time(&self) -> bool
pub fn extended_time(&self) -> bool
Returns the value of extended_time, or the default value if extended_time is unset.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for C2s
impl<'de> Deserialize<'de> for C2s
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 C2s
impl Message for C2s
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.impl StructuralPartialEq for C2s
Auto Trait Implementations§
impl Freeze for C2s
impl RefUnwindSafe for C2s
impl Send for C2s
impl Sync for C2s
impl Unpin for C2s
impl UnwindSafe for C2s
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