#[repr(i32)]pub enum UserInfoField {
Basic = 1,
Api = 2,
QotRight = 4,
Disclaimer = 8,
Update = 16,
WebKey = 2_048,
}Variants§
Basic = 1
昵称,用户头像,牛牛号
Api = 2
API权限信息
QotRight = 4
市场的行情权限
Disclaimer = 8
免责
Update = 16
升级类型
WebKey = 2_048
Implementations§
Source§impl UserInfoField
impl UserInfoField
Source§impl UserInfoField
impl UserInfoField
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for UserInfoField
impl Clone for UserInfoField
Source§fn clone(&self) -> UserInfoField
fn clone(&self) -> UserInfoField
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 UserInfoField
impl Debug for UserInfoField
Source§impl Default for UserInfoField
impl Default for UserInfoField
Source§fn default() -> UserInfoField
fn default() -> UserInfoField
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserInfoField
impl<'de> Deserialize<'de> for UserInfoField
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 From<UserInfoField> for i32
impl From<UserInfoField> for i32
Source§fn from(value: UserInfoField) -> i32
fn from(value: UserInfoField) -> i32
Converts to this type from the input type.
Source§impl Hash for UserInfoField
impl Hash for UserInfoField
Source§impl Ord for UserInfoField
impl Ord for UserInfoField
Source§fn cmp(&self, other: &UserInfoField) -> Ordering
fn cmp(&self, other: &UserInfoField) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UserInfoField
impl PartialEq for UserInfoField
Source§impl PartialOrd for UserInfoField
impl PartialOrd for UserInfoField
Source§impl Serialize for UserInfoField
impl Serialize for UserInfoField
Source§impl TryFrom<i32> for UserInfoField
impl TryFrom<i32> for UserInfoField
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<UserInfoField, UnknownEnumValue>
fn try_from(value: i32) -> Result<UserInfoField, UnknownEnumValue>
Performs the conversion.
impl Copy for UserInfoField
impl Eq for UserInfoField
impl StructuralPartialEq for UserInfoField
Auto Trait Implementations§
impl Freeze for UserInfoField
impl RefUnwindSafe for UserInfoField
impl Send for UserInfoField
impl Sync for UserInfoField
impl Unpin for UserInfoField
impl UnwindSafe for UserInfoField
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