pub struct S2c {Show 33 fields
pub nick_name: Option<String>,
pub avatar_url: Option<String>,
pub api_level: Option<String>,
pub hk_qot_right: Option<i32>,
pub us_qot_right: Option<i32>,
pub cn_qot_right: Option<i32>,
pub is_need_agree_disclaimer: Option<bool>,
pub user_id: Option<i64>,
pub update_type: Option<i32>,
pub web_key: Option<String>,
pub web_jump_url_head: Option<String>,
pub hk_option_qot_right: Option<i32>,
pub has_us_option_qot_right: Option<bool>,
pub hk_future_qot_right: Option<i32>,
pub sub_quota: Option<i32>,
pub history_kl_quota: Option<i32>,
pub us_future_qot_right: Option<i32>,
pub us_option_qot_right: Option<i32>,
pub user_attribution: Option<i32>,
pub update_whats_new: Option<String>,
pub us_index_qot_right: Option<i32>,
pub us_otc_qot_right: Option<i32>,
pub us_cme_future_qot_right: Option<i32>,
pub us_cbot_future_qot_right: Option<i32>,
pub us_nymex_future_qot_right: Option<i32>,
pub us_comex_future_qot_right: Option<i32>,
pub us_cboe_future_qot_right: Option<i32>,
pub sg_future_qot_right: Option<i32>,
pub jp_future_qot_right: Option<i32>,
pub is_app_nn_or_mm: Option<bool>,
pub sh_qot_right: Option<i32>,
pub sz_qot_right: Option<i32>,
pub extra: Option<i32>,
}Fields§
§nick_name: Option<String>用户昵称
avatar_url: Option<String>用户头像url
api_level: Option<String>api用户等级描述, 已在2.10版本之后废弃
hk_qot_right: Option<i32>港股行情权限, QotRight
us_qot_right: Option<i32>美股行情权限, QotRight
cn_qot_right: Option<i32>A股行情权限, QotRight // 废弃,使用shQotRight和szQotRight
is_need_agree_disclaimer: Option<bool>已开户用户需要同意免责声明,未开户或已同意的用户返回false
user_id: Option<i64>用户牛牛号
update_type: Option<i32>升级类型,UpdateType
web_key: Option<String>§web_jump_url_head: Option<String>§hk_option_qot_right: Option<i32>港股期权行情权限, Qot_Common.QotRight
has_us_option_qot_right: Option<bool>是否有美股期权行情权限
hk_future_qot_right: Option<i32>港股期货行情权限, Qot_Common.QotRight
sub_quota: Option<i32>订阅额度
history_kl_quota: Option<i32>历史K线额度
us_future_qot_right: Option<i32>美股期货行情权限, Qot_Common.QotRight(已废弃)
us_option_qot_right: Option<i32>美股期货行情权限, Qot_Common.QotRight
user_attribution: Option<i32>用户注册归属地, Common.UserAttribution
update_whats_new: Option<String>升级提示
us_index_qot_right: Option<i32>美股指数行情权限, Qot_Common.QotRight
us_otc_qot_right: Option<i32>美股OTC市场行情权限, Qot_Common.QotRight
us_cme_future_qot_right: Option<i32>美股CME期货行情权限, Qot_Common.QotRight
us_cbot_future_qot_right: Option<i32>美股CBOT期货行情权限, Qot_Common.QotRight
us_nymex_future_qot_right: Option<i32>美股NYMEX期货行情权限, Qot_Common.QotRight
us_comex_future_qot_right: Option<i32>美股COMEX期货行情权限, Qot_Common.QotRight
us_cboe_future_qot_right: Option<i32>美股CBOE期货行情权限, Qot_Common.QotRight
sg_future_qot_right: Option<i32>新加坡市场期货行情权限, Qot_Common.QotRight
jp_future_qot_right: Option<i32>日本市场期货行情权限, Qot_Common.QotRight
is_app_nn_or_mm: Option<bool>true:NN false:MM
sh_qot_right: Option<i32>上海市场行情权限, Qot_Common.QotRight
sz_qot_right: Option<i32>深圳市场行情权限, Qot_Common.QotRight
extra: Option<i32>透传信息
Implementations§
Source§impl S2c
impl S2c
Sourcepub fn nick_name(&self) -> &str
pub fn nick_name(&self) -> &str
Returns the value of nick_name, or the default value if nick_name is unset.
Sourcepub fn avatar_url(&self) -> &str
pub fn avatar_url(&self) -> &str
Returns the value of avatar_url, or the default value if avatar_url is unset.
Sourcepub fn api_level(&self) -> &str
pub fn api_level(&self) -> &str
Returns the value of api_level, or the default value if api_level is unset.
Sourcepub fn hk_qot_right(&self) -> i32
pub fn hk_qot_right(&self) -> i32
Returns the value of hk_qot_right, or the default value if hk_qot_right is unset.
Sourcepub fn us_qot_right(&self) -> i32
pub fn us_qot_right(&self) -> i32
Returns the value of us_qot_right, or the default value if us_qot_right is unset.
Sourcepub fn cn_qot_right(&self) -> i32
pub fn cn_qot_right(&self) -> i32
Returns the value of cn_qot_right, or the default value if cn_qot_right is unset.
Sourcepub fn is_need_agree_disclaimer(&self) -> bool
pub fn is_need_agree_disclaimer(&self) -> bool
Returns the value of is_need_agree_disclaimer, or the default value if is_need_agree_disclaimer is unset.
Sourcepub fn user_id(&self) -> i64
pub fn user_id(&self) -> i64
Returns the value of user_id, or the default value if user_id is unset.
Sourcepub fn update_type(&self) -> i32
pub fn update_type(&self) -> i32
Returns the value of update_type, or the default value if update_type is unset.
Sourcepub fn web_key(&self) -> &str
pub fn web_key(&self) -> &str
Returns the value of web_key, or the default value if web_key is unset.
Sourcepub fn hk_option_qot_right(&self) -> i32
pub fn hk_option_qot_right(&self) -> i32
Returns the value of hk_option_qot_right, or the default value if hk_option_qot_right is unset.
Sourcepub fn has_us_option_qot_right(&self) -> bool
pub fn has_us_option_qot_right(&self) -> bool
Returns the value of has_us_option_qot_right, or the default value if has_us_option_qot_right is unset.
Sourcepub fn hk_future_qot_right(&self) -> i32
pub fn hk_future_qot_right(&self) -> i32
Returns the value of hk_future_qot_right, or the default value if hk_future_qot_right is unset.
Sourcepub fn sub_quota(&self) -> i32
pub fn sub_quota(&self) -> i32
Returns the value of sub_quota, or the default value if sub_quota is unset.
Sourcepub fn history_kl_quota(&self) -> i32
pub fn history_kl_quota(&self) -> i32
Returns the value of history_kl_quota, or the default value if history_kl_quota is unset.
Sourcepub fn us_future_qot_right(&self) -> i32
pub fn us_future_qot_right(&self) -> i32
Returns the value of us_future_qot_right, or the default value if us_future_qot_right is unset.
Sourcepub fn us_option_qot_right(&self) -> i32
pub fn us_option_qot_right(&self) -> i32
Returns the value of us_option_qot_right, or the default value if us_option_qot_right is unset.
Sourcepub fn web_jump_url_head(&self) -> &str
pub fn web_jump_url_head(&self) -> &str
Returns the value of web_jump_url_head, or the default value if web_jump_url_head is unset.
Sourcepub fn user_attribution(&self) -> i32
pub fn user_attribution(&self) -> i32
Returns the value of user_attribution, or the default value if user_attribution is unset.
Sourcepub fn update_whats_new(&self) -> &str
pub fn update_whats_new(&self) -> &str
Returns the value of update_whats_new, or the default value if update_whats_new is unset.
Sourcepub fn us_index_qot_right(&self) -> i32
pub fn us_index_qot_right(&self) -> i32
Returns the value of us_index_qot_right, or the default value if us_index_qot_right is unset.
Sourcepub fn us_otc_qot_right(&self) -> i32
pub fn us_otc_qot_right(&self) -> i32
Returns the value of us_otc_qot_right, or the default value if us_otc_qot_right is unset.
Sourcepub fn us_cme_future_qot_right(&self) -> i32
pub fn us_cme_future_qot_right(&self) -> i32
Returns the value of us_cme_future_qot_right, or the default value if us_cme_future_qot_right is unset.
Sourcepub fn us_cbot_future_qot_right(&self) -> i32
pub fn us_cbot_future_qot_right(&self) -> i32
Returns the value of us_cbot_future_qot_right, or the default value if us_cbot_future_qot_right is unset.
Sourcepub fn us_nymex_future_qot_right(&self) -> i32
pub fn us_nymex_future_qot_right(&self) -> i32
Returns the value of us_nymex_future_qot_right, or the default value if us_nymex_future_qot_right is unset.
Sourcepub fn us_comex_future_qot_right(&self) -> i32
pub fn us_comex_future_qot_right(&self) -> i32
Returns the value of us_comex_future_qot_right, or the default value if us_comex_future_qot_right is unset.
Sourcepub fn us_cboe_future_qot_right(&self) -> i32
pub fn us_cboe_future_qot_right(&self) -> i32
Returns the value of us_cboe_future_qot_right, or the default value if us_cboe_future_qot_right is unset.
Sourcepub fn sg_future_qot_right(&self) -> i32
pub fn sg_future_qot_right(&self) -> i32
Returns the value of sg_future_qot_right, or the default value if sg_future_qot_right is unset.
Sourcepub fn jp_future_qot_right(&self) -> i32
pub fn jp_future_qot_right(&self) -> i32
Returns the value of jp_future_qot_right, or the default value if jp_future_qot_right is unset.
Sourcepub fn is_app_nn_or_mm(&self) -> bool
pub fn is_app_nn_or_mm(&self) -> bool
Returns the value of is_app_nn_or_mm, or the default value if is_app_nn_or_mm is unset.
Sourcepub fn sh_qot_right(&self) -> i32
pub fn sh_qot_right(&self) -> i32
Returns the value of sh_qot_right, or the default value if sh_qot_right is unset.
Sourcepub fn sz_qot_right(&self) -> i32
pub fn sz_qot_right(&self) -> i32
Returns the value of sz_qot_right, or the default value if sz_qot_right is unset.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for S2c
impl<'de> Deserialize<'de> for S2c
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>,
Source§impl Message for S2c
impl Message for S2c
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.