Struct aws_sdk_comprehend::input::DetectSentimentInput
source · [−]#[non_exhaustive]pub struct DetectSentimentInput { /* private fields */ }Implementations
sourceimpl DetectSentimentInput
impl DetectSentimentInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DetectSentiment, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DetectSentiment, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DetectSentiment>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DetectSentimentInput.
sourceimpl DetectSentimentInput
impl DetectSentimentInput
sourcepub fn text(&self) -> Option<&str>
pub fn text(&self) -> Option<&str>
A UTF-8 text string. The maximum string size is 5 KB.
Amazon Comprehend performs real-time sentiment analysis on the first 500 characters of the input text and ignores any additional text in the input.
sourcepub fn language_code(&self) -> Option<&LanguageCode>
pub fn language_code(&self) -> Option<&LanguageCode>
The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.
Trait Implementations
sourceimpl Clone for DetectSentimentInput
impl Clone for DetectSentimentInput
sourcefn clone(&self) -> DetectSentimentInput
fn clone(&self) -> DetectSentimentInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for DetectSentimentInput
impl Debug for DetectSentimentInput
sourceimpl PartialEq<DetectSentimentInput> for DetectSentimentInput
impl PartialEq<DetectSentimentInput> for DetectSentimentInput
sourcefn eq(&self, other: &DetectSentimentInput) -> bool
fn eq(&self, other: &DetectSentimentInput) -> bool
impl StructuralPartialEq for DetectSentimentInput
Auto Trait Implementations
impl RefUnwindSafe for DetectSentimentInput
impl Send for DetectSentimentInput
impl Sync for DetectSentimentInput
impl Unpin for DetectSentimentInput
impl UnwindSafe for DetectSentimentInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more