Struct aws_sdk_iot::input::DescribeThingTypeInput
source · #[non_exhaustive]pub struct DescribeThingTypeInput { /* private fields */ }
Expand description
The input for the DescribeThingType operation.
Implementations§
source§impl DescribeThingTypeInput
impl DescribeThingTypeInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeThingType, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeThingType, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DescribeThingType
>
Examples found in repository?
src/client.rs (line 13936)
13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeThingType,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DescribeThingTypeError>,
> {
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::DescribeThingTypeOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeThingTypeError>,
> {
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 DescribeThingTypeInput
.
source§impl DescribeThingTypeInput
impl DescribeThingTypeInput
sourcepub fn thing_type_name(&self) -> Option<&str>
pub fn thing_type_name(&self) -> Option<&str>
The name of the thing type.
Trait Implementations§
source§impl Clone for DescribeThingTypeInput
impl Clone for DescribeThingTypeInput
source§fn clone(&self) -> DescribeThingTypeInput
fn clone(&self) -> DescribeThingTypeInput
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