#[non_exhaustive]pub struct BatchDetectKeyPhrasesInput { /* private fields */ }Implementations§
source§impl BatchDetectKeyPhrasesInput
impl BatchDetectKeyPhrasesInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<BatchDetectKeyPhrases, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<BatchDetectKeyPhrases, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<BatchDetectKeyPhrases>
Examples found in repository?
src/client.rs (line 1290)
1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::BatchDetectKeyPhrases,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::BatchDetectKeyPhrasesError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::BatchDetectKeyPhrasesOutput,
aws_smithy_http::result::SdkError<crate::error::BatchDetectKeyPhrasesError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture BatchDetectKeyPhrasesInput.
source§impl BatchDetectKeyPhrasesInput
impl BatchDetectKeyPhrasesInput
sourcepub fn text_list(&self) -> Option<&[String]>
pub fn text_list(&self) -> Option<&[String]>
A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. The maximum size of each document is 5 KB.
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§
source§impl Clone for BatchDetectKeyPhrasesInput
impl Clone for BatchDetectKeyPhrasesInput
source§fn clone(&self) -> BatchDetectKeyPhrasesInput
fn clone(&self) -> BatchDetectKeyPhrasesInput
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 more