#[non_exhaustive]pub enum SentimentLabel {
Positive,
Negative,
Neutral,
Other(String),
}Expand description
Sentiment label.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Positive
positive
Negative
negative
Neutral
neutral
Other(String)
A value this SDK version does not know, kept exactly as received.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for SentimentLabel
impl AsRef<str> for SentimentLabel
Source§impl Clone for SentimentLabel
impl Clone for SentimentLabel
Source§impl Debug for SentimentLabel
impl Debug for SentimentLabel
Source§impl<'de> Deserialize<'de> for SentimentLabel
impl<'de> Deserialize<'de> for SentimentLabel
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 Display for SentimentLabel
impl Display for SentimentLabel
impl Eq for SentimentLabel
Source§impl From<&String> for SentimentLabel
impl From<&String> for SentimentLabel
Source§impl From<&str> for SentimentLabel
impl From<&str> for SentimentLabel
Source§impl From<SentimentLabel> for String
impl From<SentimentLabel> for String
Source§fn from(value: SentimentLabel) -> Self
fn from(value: SentimentLabel) -> Self
Converts to this type from the input type.
Source§impl From<String> for SentimentLabel
impl From<String> for SentimentLabel
Source§impl Hash for SentimentLabel
impl Hash for SentimentLabel
Source§impl PartialEq for SentimentLabel
impl PartialEq for SentimentLabel
Source§impl PartialEq<&str> for SentimentLabel
impl PartialEq<&str> for SentimentLabel
Source§impl PartialEq<SentimentLabel> for &str
impl PartialEq<SentimentLabel> for &str
Source§impl PartialEq<str> for SentimentLabel
impl PartialEq<str> for SentimentLabel
Auto Trait Implementations§
impl Forget for SentimentLabel
impl Freeze for SentimentLabel
impl Move for SentimentLabel
impl RefUnwindSafe for SentimentLabel
impl Send for SentimentLabelwhere
RawVecInner: Send,
impl Sync for SentimentLabelwhere
RawVecInner: Sync,
impl Unpin for SentimentLabel
impl UnsafeUnpin for SentimentLabel
impl UnwindSafe for SentimentLabelwhere
RawVecInner: UnwindSafe,
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