#[non_exhaustive]pub struct DetectSyntaxInputBuilder { /* private fields */ }Expand description
A builder for DetectSyntaxInput.
Implementations§
source§impl DetectSyntaxInputBuilder
impl DetectSyntaxInputBuilder
sourcepub fn text(self, input: impl Into<String>) -> Self
pub fn text(self, input: impl Into<String>) -> Self
A UTF-8 string. The maximum string size is 5 KB.
sourcepub fn set_text(self, input: Option<String>) -> Self
pub fn set_text(self, input: Option<String>) -> Self
A UTF-8 string. The maximum string size is 5 KB.
sourcepub fn language_code(self, input: SyntaxLanguageCode) -> Self
pub fn language_code(self, input: SyntaxLanguageCode) -> Self
The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").
sourcepub fn set_language_code(self, input: Option<SyntaxLanguageCode>) -> Self
pub fn set_language_code(self, input: Option<SyntaxLanguageCode>) -> Self
The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").
sourcepub fn build(self) -> Result<DetectSyntaxInput, BuildError>
pub fn build(self) -> Result<DetectSyntaxInput, BuildError>
Consumes the builder and constructs a DetectSyntaxInput.
Trait Implementations§
source§impl Clone for DetectSyntaxInputBuilder
impl Clone for DetectSyntaxInputBuilder
source§fn clone(&self) -> DetectSyntaxInputBuilder
fn clone(&self) -> DetectSyntaxInputBuilder
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 DetectSyntaxInputBuilder
impl Debug for DetectSyntaxInputBuilder
source§impl Default for DetectSyntaxInputBuilder
impl Default for DetectSyntaxInputBuilder
source§fn default() -> DetectSyntaxInputBuilder
fn default() -> DetectSyntaxInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<DetectSyntaxInputBuilder> for DetectSyntaxInputBuilder
impl PartialEq<DetectSyntaxInputBuilder> for DetectSyntaxInputBuilder
source§fn eq(&self, other: &DetectSyntaxInputBuilder) -> bool
fn eq(&self, other: &DetectSyntaxInputBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.