#[non_exhaustive]pub struct DetectSyntaxOutputBuilder { /* private fields */ }Expand description
A builder for DetectSyntaxOutput.
Implementations§
source§impl DetectSyntaxOutputBuilder
 
impl DetectSyntaxOutputBuilder
sourcepub fn syntax_tokens(self, input: SyntaxToken) -> Self
 
pub fn syntax_tokens(self, input: SyntaxToken) -> Self
Appends an item to syntax_tokens.
To override the contents of this collection use set_syntax_tokens.
A collection of syntax tokens describing the text. For each token, the response provides the text, the token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that the token is correct. For a list of token types, see Syntax in the Comprehend Developer Guide.
sourcepub fn set_syntax_tokens(self, input: Option<Vec<SyntaxToken>>) -> Self
 
pub fn set_syntax_tokens(self, input: Option<Vec<SyntaxToken>>) -> Self
A collection of syntax tokens describing the text. For each token, the response provides the text, the token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that the token is correct. For a list of token types, see Syntax in the Comprehend Developer Guide.
sourcepub fn get_syntax_tokens(&self) -> &Option<Vec<SyntaxToken>>
 
pub fn get_syntax_tokens(&self) -> &Option<Vec<SyntaxToken>>
A collection of syntax tokens describing the text. For each token, the response provides the text, the token type, where the text begins and ends, and the level of confidence that Amazon Comprehend has that the token is correct. For a list of token types, see Syntax in the Comprehend Developer Guide.
sourcepub fn build(self) -> DetectSyntaxOutput
 
pub fn build(self) -> DetectSyntaxOutput
Consumes the builder and constructs a DetectSyntaxOutput.
Trait Implementations§
source§impl Clone for DetectSyntaxOutputBuilder
 
impl Clone for DetectSyntaxOutputBuilder
source§fn clone(&self) -> DetectSyntaxOutputBuilder
 
fn clone(&self) -> DetectSyntaxOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DetectSyntaxOutputBuilder
 
impl Debug for DetectSyntaxOutputBuilder
source§impl Default for DetectSyntaxOutputBuilder
 
impl Default for DetectSyntaxOutputBuilder
source§fn default() -> DetectSyntaxOutputBuilder
 
fn default() -> DetectSyntaxOutputBuilder
source§impl PartialEq for DetectSyntaxOutputBuilder
 
impl PartialEq for DetectSyntaxOutputBuilder
source§fn eq(&self, other: &DetectSyntaxOutputBuilder) -> bool
 
fn eq(&self, other: &DetectSyntaxOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DetectSyntaxOutputBuilder
Auto Trait Implementations§
impl Freeze for DetectSyntaxOutputBuilder
impl RefUnwindSafe for DetectSyntaxOutputBuilder
impl Send for DetectSyntaxOutputBuilder
impl Sync for DetectSyntaxOutputBuilder
impl Unpin for DetectSyntaxOutputBuilder
impl UnwindSafe for DetectSyntaxOutputBuilder
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