Struct aws_sdk_comprehend::types::TargetedSentimentEntity
source · #[non_exhaustive]pub struct TargetedSentimentEntity {
pub descriptive_mention_index: Option<Vec<i32>>,
pub mentions: Option<Vec<TargetedSentimentMention>>,
}Expand description
Information about one of the entities found by targeted sentiment analysis.
For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.descriptive_mention_index: Option<Vec<i32>>One or more index into the Mentions array that provides the best name for the entity group.
mentions: Option<Vec<TargetedSentimentMention>>An array of mentions of the entity in the document. The array represents a co-reference group. See Co-reference group for an example.
Implementations§
source§impl TargetedSentimentEntity
impl TargetedSentimentEntity
sourcepub fn descriptive_mention_index(&self) -> &[i32]
pub fn descriptive_mention_index(&self) -> &[i32]
One or more index into the Mentions array that provides the best name for the entity group.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .descriptive_mention_index.is_none().
sourcepub fn mentions(&self) -> &[TargetedSentimentMention]
pub fn mentions(&self) -> &[TargetedSentimentMention]
An array of mentions of the entity in the document. The array represents a co-reference group. See Co-reference group for an example.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .mentions.is_none().
source§impl TargetedSentimentEntity
impl TargetedSentimentEntity
sourcepub fn builder() -> TargetedSentimentEntityBuilder
pub fn builder() -> TargetedSentimentEntityBuilder
Creates a new builder-style object to manufacture TargetedSentimentEntity.
Trait Implementations§
source§impl Clone for TargetedSentimentEntity
impl Clone for TargetedSentimentEntity
source§fn clone(&self) -> TargetedSentimentEntity
fn clone(&self) -> TargetedSentimentEntity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TargetedSentimentEntity
impl Debug for TargetedSentimentEntity
source§impl PartialEq for TargetedSentimentEntity
impl PartialEq for TargetedSentimentEntity
source§fn eq(&self, other: &TargetedSentimentEntity) -> bool
fn eq(&self, other: &TargetedSentimentEntity) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TargetedSentimentEntity
Auto Trait Implementations§
impl Freeze for TargetedSentimentEntity
impl RefUnwindSafe for TargetedSentimentEntity
impl Send for TargetedSentimentEntity
impl Sync for TargetedSentimentEntity
impl Unpin for TargetedSentimentEntity
impl UnwindSafe for TargetedSentimentEntity
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more