#[repr(i32)]pub enum MarketSentiment {
Unknown = 0,
Bearish = 1,
Bullish = 2,
Neutral = 3,
}Expand description
市场情绪
Variants§
Implementations§
Source§impl MarketSentiment
impl MarketSentiment
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 MarketSentiment
impl Clone for MarketSentiment
Source§fn clone(&self) -> MarketSentiment
fn clone(&self) -> MarketSentiment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MarketSentiment
Source§impl Debug for MarketSentiment
impl Debug for MarketSentiment
Source§impl Default for MarketSentiment
impl Default for MarketSentiment
Source§fn default() -> MarketSentiment
fn default() -> MarketSentiment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MarketSentiment
impl<'de> Deserialize<'de> for MarketSentiment
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
impl Eq for MarketSentiment
Source§impl From<MarketSentiment> for i32
impl From<MarketSentiment> for i32
Source§fn from(value: MarketSentiment) -> i32
fn from(value: MarketSentiment) -> i32
Converts to this type from the input type.
Source§impl Hash for MarketSentiment
impl Hash for MarketSentiment
Source§impl Ord for MarketSentiment
impl Ord for MarketSentiment
Source§fn cmp(&self, other: &MarketSentiment) -> Ordering
fn cmp(&self, other: &MarketSentiment) -> Ordering
1.21.0 (const: unstable) · 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 MarketSentiment
impl PartialEq for MarketSentiment
Source§fn eq(&self, other: &MarketSentiment) -> bool
fn eq(&self, other: &MarketSentiment) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MarketSentiment
impl PartialOrd for MarketSentiment
Source§impl Serialize for MarketSentiment
impl Serialize for MarketSentiment
impl StructuralPartialEq for MarketSentiment
Source§impl TryFrom<i32> for MarketSentiment
impl TryFrom<i32> for MarketSentiment
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<MarketSentiment, UnknownEnumValue>
fn try_from(value: i32) -> Result<MarketSentiment, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for MarketSentiment
impl RefUnwindSafe for MarketSentiment
impl Send for MarketSentiment
impl Sync for MarketSentiment
impl Unpin for MarketSentiment
impl UnsafeUnpin for MarketSentiment
impl UnwindSafe for MarketSentiment
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