#[non_exhaustive]pub struct StopKeyPhrasesDetectionJobInput { /* private fields */ }Implementations§
source§impl StopKeyPhrasesDetectionJobInput
impl StopKeyPhrasesDetectionJobInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StopKeyPhrasesDetectionJob, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StopKeyPhrasesDetectionJob, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<StopKeyPhrasesDetectionJob>
Examples found in repository?
src/client.rs (line 7994)
7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::StopKeyPhrasesDetectionJob,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::StopKeyPhrasesDetectionJobError>,
> {
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::StopKeyPhrasesDetectionJobOutput,
aws_smithy_http::result::SdkError<crate::error::StopKeyPhrasesDetectionJobError>,
> {
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 StopKeyPhrasesDetectionJobInput.
Trait Implementations§
source§impl Clone for StopKeyPhrasesDetectionJobInput
impl Clone for StopKeyPhrasesDetectionJobInput
source§fn clone(&self) -> StopKeyPhrasesDetectionJobInput
fn clone(&self) -> StopKeyPhrasesDetectionJobInput
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