#[non_exhaustive]pub struct StopDominantLanguageDetectionJobInput { /* private fields */ }Implementations§
source§impl StopDominantLanguageDetectionJobInput
impl StopDominantLanguageDetectionJobInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StopDominantLanguageDetectionJob, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StopDominantLanguageDetectionJob, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<StopDominantLanguageDetectionJob>
Examples found in repository?
src/client.rs (line 7769)
7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::StopDominantLanguageDetectionJob,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::StopDominantLanguageDetectionJobError>,
> {
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::StopDominantLanguageDetectionJobOutput,
aws_smithy_http::result::SdkError<crate::error::StopDominantLanguageDetectionJobError>,
> {
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 StopDominantLanguageDetectionJobInput.
Trait Implementations§
source§impl Clone for StopDominantLanguageDetectionJobInput
impl Clone for StopDominantLanguageDetectionJobInput
source§fn clone(&self) -> StopDominantLanguageDetectionJobInput
fn clone(&self) -> StopDominantLanguageDetectionJobInput
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