Struct aws_sdk_comprehend::operation::detect_entities::builders::DetectEntitiesOutputBuilder
source · #[non_exhaustive]pub struct DetectEntitiesOutputBuilder { /* private fields */ }Expand description
A builder for DetectEntitiesOutput.
Implementations§
source§impl DetectEntitiesOutputBuilder
impl DetectEntitiesOutputBuilder
sourcepub fn entities(self, input: Entity) -> Self
pub fn entities(self, input: Entity) -> Self
Appends an item to entities.
To override the contents of this collection use set_entities.
A collection of entities identified in the input text. For each entity, the response provides the entity text, entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.
If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see Entities in the Comprehend Developer Guide.
sourcepub fn set_entities(self, input: Option<Vec<Entity>>) -> Self
pub fn set_entities(self, input: Option<Vec<Entity>>) -> Self
A collection of entities identified in the input text. For each entity, the response provides the entity text, entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.
If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see Entities in the Comprehend Developer Guide.
sourcepub fn get_entities(&self) -> &Option<Vec<Entity>>
pub fn get_entities(&self) -> &Option<Vec<Entity>>
A collection of entities identified in the input text. For each entity, the response provides the entity text, entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.
If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see Entities in the Comprehend Developer Guide.
sourcepub fn document_metadata(self, input: DocumentMetadata) -> Self
pub fn document_metadata(self, input: DocumentMetadata) -> Self
Information about the document, discovered during text extraction. This field is present in the response only if your request used the Byte parameter.
sourcepub fn set_document_metadata(self, input: Option<DocumentMetadata>) -> Self
pub fn set_document_metadata(self, input: Option<DocumentMetadata>) -> Self
Information about the document, discovered during text extraction. This field is present in the response only if your request used the Byte parameter.
sourcepub fn get_document_metadata(&self) -> &Option<DocumentMetadata>
pub fn get_document_metadata(&self) -> &Option<DocumentMetadata>
Information about the document, discovered during text extraction. This field is present in the response only if your request used the Byte parameter.
sourcepub fn document_type(self, input: DocumentTypeListItem) -> Self
pub fn document_type(self, input: DocumentTypeListItem) -> Self
Appends an item to document_type.
To override the contents of this collection use set_document_type.
The document type for each page in the input document. This field is present in the response only if your request used the Byte parameter.
sourcepub fn set_document_type(self, input: Option<Vec<DocumentTypeListItem>>) -> Self
pub fn set_document_type(self, input: Option<Vec<DocumentTypeListItem>>) -> Self
The document type for each page in the input document. This field is present in the response only if your request used the Byte parameter.
sourcepub fn get_document_type(&self) -> &Option<Vec<DocumentTypeListItem>>
pub fn get_document_type(&self) -> &Option<Vec<DocumentTypeListItem>>
The document type for each page in the input document. This field is present in the response only if your request used the Byte parameter.
sourcepub fn blocks(self, input: Block) -> Self
pub fn blocks(self, input: Block) -> Self
Appends an item to blocks.
To override the contents of this collection use set_blocks.
Information about each block of text in the input document. Blocks are nested. A page block contains a block for each line of text, which contains a block for each word.
The Block content for a Word input document does not include a Geometry field.
The Block field is not present in the response for plain-text inputs.
sourcepub fn set_blocks(self, input: Option<Vec<Block>>) -> Self
pub fn set_blocks(self, input: Option<Vec<Block>>) -> Self
Information about each block of text in the input document. Blocks are nested. A page block contains a block for each line of text, which contains a block for each word.
The Block content for a Word input document does not include a Geometry field.
The Block field is not present in the response for plain-text inputs.
sourcepub fn get_blocks(&self) -> &Option<Vec<Block>>
pub fn get_blocks(&self) -> &Option<Vec<Block>>
Information about each block of text in the input document. Blocks are nested. A page block contains a block for each line of text, which contains a block for each word.
The Block content for a Word input document does not include a Geometry field.
The Block field is not present in the response for plain-text inputs.
sourcepub fn errors(self, input: ErrorsListItem) -> Self
pub fn errors(self, input: ErrorsListItem) -> Self
Appends an item to errors.
To override the contents of this collection use set_errors.
Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.
sourcepub fn set_errors(self, input: Option<Vec<ErrorsListItem>>) -> Self
pub fn set_errors(self, input: Option<Vec<ErrorsListItem>>) -> Self
Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.
sourcepub fn get_errors(&self) -> &Option<Vec<ErrorsListItem>>
pub fn get_errors(&self) -> &Option<Vec<ErrorsListItem>>
Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.
sourcepub fn build(self) -> DetectEntitiesOutput
pub fn build(self) -> DetectEntitiesOutput
Consumes the builder and constructs a DetectEntitiesOutput.
Trait Implementations§
source§impl Clone for DetectEntitiesOutputBuilder
impl Clone for DetectEntitiesOutputBuilder
source§fn clone(&self) -> DetectEntitiesOutputBuilder
fn clone(&self) -> DetectEntitiesOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DetectEntitiesOutputBuilder
impl Debug for DetectEntitiesOutputBuilder
source§impl Default for DetectEntitiesOutputBuilder
impl Default for DetectEntitiesOutputBuilder
source§fn default() -> DetectEntitiesOutputBuilder
fn default() -> DetectEntitiesOutputBuilder
source§impl PartialEq for DetectEntitiesOutputBuilder
impl PartialEq for DetectEntitiesOutputBuilder
source§fn eq(&self, other: &DetectEntitiesOutputBuilder) -> bool
fn eq(&self, other: &DetectEntitiesOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DetectEntitiesOutputBuilder
Auto Trait Implementations§
impl Freeze for DetectEntitiesOutputBuilder
impl RefUnwindSafe for DetectEntitiesOutputBuilder
impl Send for DetectEntitiesOutputBuilder
impl Sync for DetectEntitiesOutputBuilder
impl Unpin for DetectEntitiesOutputBuilder
impl UnwindSafe for DetectEntitiesOutputBuilder
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