Struct aws_sdk_comprehend::input::DetectEntitiesInput [−][src]
#[non_exhaustive]pub struct DetectEntitiesInput {
pub text: Option<String>,
pub language_code: Option<LanguageCode>,
pub endpoint_arn: Option<String>,
}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.text: Option<String>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.
language_code: 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.
If your request includes the endpoint for a custom entity recognition model, Amazon Comprehend uses the language of your custom model, and it ignores any language code that you specify here.
endpoint_arn: Option<String>The Amazon Resource Name of an endpoint that is associated with a custom entity recognition model. Provide an endpoint if you want to detect entities by using your own custom model instead of the default model that is used by Amazon Comprehend.
If you specify an endpoint, Amazon Comprehend uses the language of your custom model, and it ignores any language code that you provide in your request.
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DetectEntities, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DetectEntities, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<DetectEntities>
Creates a new builder-style object to manufacture DetectEntitiesInput
A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.
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.
If your request includes the endpoint for a custom entity recognition model, Amazon Comprehend uses the language of your custom model, and it ignores any language code that you specify here.
The Amazon Resource Name of an endpoint that is associated with a custom entity recognition model. Provide an endpoint if you want to detect entities by using your own custom model instead of the default model that is used by Amazon Comprehend.
If you specify an endpoint, Amazon Comprehend uses the language of your custom model, and it ignores any language code that you provide in your request.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for DetectEntitiesInput
impl Send for DetectEntitiesInput
impl Sync for DetectEntitiesInput
impl Unpin for DetectEntitiesInput
impl UnwindSafe for DetectEntitiesInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
