Struct aws_sdk_comprehend::types::MentionSentiment
source · #[non_exhaustive]pub struct MentionSentiment {
pub sentiment: Option<SentimentType>,
pub sentiment_score: Option<SentimentScore>,
}Expand description
Contains the sentiment and sentiment score for one mention of an entity.
For more information about targeted sentiment, see Targeted sentiment.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sentiment: Option<SentimentType>The sentiment of the mention.
sentiment_score: Option<SentimentScore>Describes the level of confidence that Amazon Comprehend has in the accuracy of its detection of sentiments.
Implementations§
source§impl MentionSentiment
impl MentionSentiment
sourcepub fn sentiment(&self) -> Option<&SentimentType>
pub fn sentiment(&self) -> Option<&SentimentType>
The sentiment of the mention.
sourcepub fn sentiment_score(&self) -> Option<&SentimentScore>
pub fn sentiment_score(&self) -> Option<&SentimentScore>
Describes the level of confidence that Amazon Comprehend has in the accuracy of its detection of sentiments.
source§impl MentionSentiment
impl MentionSentiment
sourcepub fn builder() -> MentionSentimentBuilder
pub fn builder() -> MentionSentimentBuilder
Creates a new builder-style object to manufacture MentionSentiment.
Trait Implementations§
source§impl Clone for MentionSentiment
impl Clone for MentionSentiment
source§fn clone(&self) -> MentionSentiment
fn clone(&self) -> MentionSentiment
Returns a copy 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 MentionSentiment
impl Debug for MentionSentiment
source§impl PartialEq for MentionSentiment
impl PartialEq for MentionSentiment
source§fn eq(&self, other: &MentionSentiment) -> bool
fn eq(&self, other: &MentionSentiment) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for MentionSentiment
Auto Trait Implementations§
impl RefUnwindSafe for MentionSentiment
impl Send for MentionSentiment
impl Sync for MentionSentiment
impl Unpin for MentionSentiment
impl UnwindSafe for MentionSentiment
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