#[repr(i32)]pub enum ResearchRatingDimensionType {
Unknown = 0,
Institution = 1,
Analyst = 2,
}Expand description
研报评级汇总-评级维度
Variants§
Implementations§
Source§impl ResearchRatingDimensionType
impl ResearchRatingDimensionType
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of ResearchRatingDimensionType.
Sourcepub fn from_i32(value: i32) -> Option<ResearchRatingDimensionType>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ResearchRatingDimensionType>
Use the TryFrom<i32> implementation instead
Converts an i32 to a ResearchRatingDimensionType, or None if value is not a valid variant.
Source§impl ResearchRatingDimensionType
impl ResearchRatingDimensionType
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 ResearchRatingDimensionType
impl Clone for ResearchRatingDimensionType
Source§fn clone(&self) -> ResearchRatingDimensionType
fn clone(&self) -> ResearchRatingDimensionType
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 ResearchRatingDimensionType
impl Debug for ResearchRatingDimensionType
Source§impl Default for ResearchRatingDimensionType
impl Default for ResearchRatingDimensionType
Source§fn default() -> ResearchRatingDimensionType
fn default() -> ResearchRatingDimensionType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResearchRatingDimensionType
impl<'de> Deserialize<'de> for ResearchRatingDimensionType
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<ResearchRatingDimensionType> for i32
impl From<ResearchRatingDimensionType> for i32
Source§fn from(value: ResearchRatingDimensionType) -> i32
fn from(value: ResearchRatingDimensionType) -> i32
Converts to this type from the input type.
Source§impl Hash for ResearchRatingDimensionType
impl Hash for ResearchRatingDimensionType
Source§impl Ord for ResearchRatingDimensionType
impl Ord for ResearchRatingDimensionType
Source§fn cmp(&self, other: &ResearchRatingDimensionType) -> Ordering
fn cmp(&self, other: &ResearchRatingDimensionType) -> 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 PartialOrd for ResearchRatingDimensionType
impl PartialOrd for ResearchRatingDimensionType
Source§impl TryFrom<i32> for ResearchRatingDimensionType
impl TryFrom<i32> for ResearchRatingDimensionType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ResearchRatingDimensionType, UnknownEnumValue>
fn try_from(value: i32) -> Result<ResearchRatingDimensionType, UnknownEnumValue>
Performs the conversion.
impl Copy for ResearchRatingDimensionType
impl Eq for ResearchRatingDimensionType
impl StructuralPartialEq for ResearchRatingDimensionType
Auto Trait Implementations§
impl Freeze for ResearchRatingDimensionType
impl RefUnwindSafe for ResearchRatingDimensionType
impl Send for ResearchRatingDimensionType
impl Sync for ResearchRatingDimensionType
impl Unpin for ResearchRatingDimensionType
impl UnsafeUnpin for ResearchRatingDimensionType
impl UnwindSafe for ResearchRatingDimensionType
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