aws_sdk_dynamodb/operation/describe_limits/
_describe_limits_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Represents the input of a <code>DescribeLimits</code> operation. Has no content.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DescribeLimitsInput  {
7}
8static DESCRIBELIMITSINPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.dynamodb.synthetic#DescribeLimitsInput", "com.amazonaws.dynamodb.synthetic", "DescribeLimitsInput");
9static DESCRIBELIMITSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
10                            DESCRIBELIMITSINPUT_SCHEMA_ID,
11                            ::aws_smithy_schema::ShapeType::Structure,
12                            &[],
13                        );
14impl DescribeLimitsInput {
15                /// The schema for this shape.
16                pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBELIMITSINPUT_SCHEMA;
17            }
18impl ::aws_smithy_schema::serde::SerializableStruct for DescribeLimitsInput {
19                #[allow(unused_variables, clippy::diverging_sub_expression)]
20                fn serialize_members(&self, ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
21                    
22                    Ok(())
23                }
24            }
25impl DescribeLimitsInput {
26                /// Deserializes this structure from a [`ShapeDeserializer`].
27                pub fn deserialize(deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
28                    #[allow(unused_variables, unused_mut)]
29                    let mut builder = Self::builder();
30                    #[allow(unused_variables, unreachable_code, clippy::single_match, clippy::match_single_binding, clippy::diverging_sub_expression)]
31                    deserializer.read_struct(&DESCRIBELIMITSINPUT_SCHEMA, &mut |member, deser| {
32                        match member.member_index() {
33                            
34                            _ => {}
35                        }
36                        Ok(())
37                    })?;
38                    builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
39                }
40            }
41impl DescribeLimitsInput {
42                        /// Deserializes this structure from a body deserializer and HTTP response.
43                        pub fn deserialize_with_response(
44                            _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
45                            _headers: &::aws_smithy_runtime_api::http::Headers,
46                            _status: u16,
47                            _body: &[u8],
48                        ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
49                            Self::builder().build().map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
50                        }
51                    }
52impl DescribeLimitsInput {
53    /// Creates a new builder-style object to manufacture [`DescribeLimitsInput`](crate::operation::describe_limits::DescribeLimitsInput).
54    pub fn builder() -> crate::operation::describe_limits::builders::DescribeLimitsInputBuilder {
55        crate::operation::describe_limits::builders::DescribeLimitsInputBuilder::default()
56    }
57}
58
59/// A builder for [`DescribeLimitsInput`](crate::operation::describe_limits::DescribeLimitsInput).
60#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
61#[non_exhaustive]
62pub struct DescribeLimitsInputBuilder {
63}
64impl DescribeLimitsInputBuilder {
65    /// Consumes the builder and constructs a [`DescribeLimitsInput`](crate::operation::describe_limits::DescribeLimitsInput).
66    pub fn build(self) -> ::std::result::Result<crate::operation::describe_limits::DescribeLimitsInput, ::aws_smithy_types::error::operation::BuildError> {
67        ::std::result::Result::Ok(
68            crate::operation::describe_limits::DescribeLimitsInput {
69            }
70        )
71    }
72}
73