#[repr(i32)]pub enum PlateSetType {
All = 0,
Industry = 1,
Region = 2,
Concept = 3,
Other = 4,
}Variants§
All = 0
所有板块
Industry = 1
行业板块
Region = 2
地域板块,港美股市场的地域分类数据暂为空
Concept = 3
概念板块
Other = 4
其他板块, 仅用于3207(获取股票所属板块)协议返回,不可作为其他协议的请求参数
Implementations§
Source§impl PlateSetType
impl PlateSetType
Source§impl PlateSetType
impl PlateSetType
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 PlateSetType
impl Clone for PlateSetType
Source§fn clone(&self) -> PlateSetType
fn clone(&self) -> PlateSetType
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 PlateSetType
impl Debug for PlateSetType
Source§impl Default for PlateSetType
impl Default for PlateSetType
Source§fn default() -> PlateSetType
fn default() -> PlateSetType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlateSetType
impl<'de> Deserialize<'de> for PlateSetType
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<PlateSetType> for i32
impl From<PlateSetType> for i32
Source§fn from(value: PlateSetType) -> i32
fn from(value: PlateSetType) -> i32
Converts to this type from the input type.
Source§impl Hash for PlateSetType
impl Hash for PlateSetType
Source§impl Ord for PlateSetType
impl Ord for PlateSetType
Source§fn cmp(&self, other: &PlateSetType) -> Ordering
fn cmp(&self, other: &PlateSetType) -> 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 PlateSetType
impl PartialEq for PlateSetType
Source§impl PartialOrd for PlateSetType
impl PartialOrd for PlateSetType
Source§impl Serialize for PlateSetType
impl Serialize for PlateSetType
Source§impl TryFrom<i32> for PlateSetType
impl TryFrom<i32> for PlateSetType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<PlateSetType, UnknownEnumValue>
fn try_from(value: i32) -> Result<PlateSetType, UnknownEnumValue>
Performs the conversion.
impl Copy for PlateSetType
impl Eq for PlateSetType
impl StructuralPartialEq for PlateSetType
Auto Trait Implementations§
impl Freeze for PlateSetType
impl RefUnwindSafe for PlateSetType
impl Send for PlateSetType
impl Sync for PlateSetType
impl Unpin for PlateSetType
impl UnwindSafe for PlateSetType
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