25 25 | "com.amazonaws.route53.synthetic",
|
26 26 | "GetReusableDelegationSetLimitOutput",
|
27 27 | );
|
28 28 | static GETREUSABLEDELEGATIONSETLIMITOUTPUT_MEMBER_LIMIT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
29 29 | ::aws_smithy_schema::ShapeId::from_static(
|
30 30 | "com.amazonaws.route53.synthetic#GetReusableDelegationSetLimitOutput$Limit",
|
31 31 | "com.amazonaws.route53.synthetic",
|
32 32 | "GetReusableDelegationSetLimitOutput",
|
33 33 | ),
|
34 34 | ::aws_smithy_schema::ShapeType::Structure,
|
35 - | "limit",
|
35 + | "Limit",
|
36 36 | 0,
|
37 37 | );
|
38 38 | static GETREUSABLEDELEGATIONSETLIMITOUTPUT_MEMBER_COUNT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
39 39 | ::aws_smithy_schema::ShapeId::from_static(
|
40 40 | "com.amazonaws.route53.synthetic#GetReusableDelegationSetLimitOutput$Count",
|
41 41 | "com.amazonaws.route53.synthetic",
|
42 42 | "GetReusableDelegationSetLimitOutput",
|
43 43 | ),
|
44 44 | ::aws_smithy_schema::ShapeType::Long,
|
45 - | "count",
|
45 + | "Count",
|
46 46 | 1,
|
47 47 | );
|
48 + | static GETREUSABLEDELEGATIONSETLIMITOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
49 + | ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
|
50 + | ::aws_smithy_schema::ShapeType::String,
|
51 + | "request_id",
|
52 + | 2,
|
53 + | )
|
54 + | .with_http_header("x-amzn-requestid");
|
48 55 | static GETREUSABLEDELEGATIONSETLIMITOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
49 56 | GETREUSABLEDELEGATIONSETLIMITOUTPUT_SCHEMA_ID,
|
50 57 | ::aws_smithy_schema::ShapeType::Structure,
|
51 58 | &[
|
52 59 | &GETREUSABLEDELEGATIONSETLIMITOUTPUT_MEMBER_LIMIT,
|
53 60 | &GETREUSABLEDELEGATIONSETLIMITOUTPUT_MEMBER_COUNT,
|
61 + | &GETREUSABLEDELEGATIONSETLIMITOUTPUT_MEMBER__REQUEST_ID,
|
54 62 | ],
|
55 63 | );
|
56 64 | impl GetReusableDelegationSetLimitOutput {
|
57 65 | /// The schema for this shape.
|
58 66 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETREUSABLEDELEGATIONSETLIMITOUTPUT_SCHEMA;
|
59 67 | }
|
60 68 | impl ::aws_smithy_schema::serde::SerializableStruct for GetReusableDelegationSetLimitOutput {
|
61 69 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
62 70 | fn serialize_members(
|
63 71 | &self,
|
64 72 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
65 73 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
66 74 | if let Some(ref val) = self.limit {
|
67 75 | ser.write_struct(&GETREUSABLEDELEGATIONSETLIMITOUTPUT_MEMBER_LIMIT, val)?;
|
68 76 | }
|
69 77 | {
|
70 78 | let val = &self.count;
|
71 79 | ser.write_long(&GETREUSABLEDELEGATIONSETLIMITOUTPUT_MEMBER_COUNT, *val)?;
|
72 80 | }
|
73 81 | Ok(())
|
74 82 | }
|
75 83 | }
|
76 84 | impl GetReusableDelegationSetLimitOutput {
|
77 85 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
78 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
79 - | deserializer: &mut D,
|
86 + | pub fn deserialize(
|
87 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
80 88 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
81 89 | #[allow(unused_variables, unused_mut)]
|
82 90 | let mut builder = Self::builder();
|
83 91 | #[allow(
|
84 92 | unused_variables,
|
85 93 | unreachable_code,
|
86 94 | clippy::single_match,
|
87 95 | clippy::match_single_binding,
|
88 96 | clippy::diverging_sub_expression
|
89 97 | )]
|
90 - | deserializer.read_struct(&GETREUSABLEDELEGATIONSETLIMITOUTPUT_SCHEMA, (), |_, member, deser| {
|
98 + | deserializer.read_struct(&GETREUSABLEDELEGATIONSETLIMITOUTPUT_SCHEMA, &mut |member, deser| {
|
99 + | match member.member_index() {
|
100 + | Some(0) => {
|
101 + | builder.limit = Some(crate::types::ReusableDelegationSetLimit::deserialize(deser)?);
|
102 + | }
|
103 + | Some(1) => {
|
104 + | builder.count = Some(deser.read_long(member)?);
|
105 + | }
|
106 + | Some(2) => {
|
107 + | builder._request_id = Some(deser.read_string(member)?);
|
108 + | }
|
109 + | _ => {}
|
110 + | }
|
111 + | Ok(())
|
112 + | })?;
|
113 + | Ok(builder.build())
|
114 + | }
|
115 + | }
|
116 + | impl GetReusableDelegationSetLimitOutput {
|
117 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
118 + | /// Header-bound members are read directly from headers, avoiding runtime
|
119 + | /// member iteration overhead. Body members are read via the deserializer.
|
120 + | pub fn deserialize_with_response(
|
121 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
122 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
123 + | _status: u16,
|
124 + | _body: &[u8],
|
125 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
126 + | #[allow(unused_variables, unused_mut)]
|
127 + | let mut builder = Self::builder();
|
128 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
129 + | builder._request_id = Some(val.to_string());
|
130 + | }
|
131 + | #[allow(
|
132 + | unused_variables,
|
133 + | unreachable_code,
|
134 + | clippy::single_match,
|
135 + | clippy::match_single_binding,
|
136 + | clippy::diverging_sub_expression
|
137 + | )]
|
138 + | deserializer.read_struct(&GETREUSABLEDELEGATIONSETLIMITOUTPUT_SCHEMA, &mut |member, deser| {
|
91 139 | match member.member_index() {
|
92 140 | Some(0) => {
|
93 141 | builder.limit = Some(crate::types::ReusableDelegationSetLimit::deserialize(deser)?);
|
94 142 | }
|
95 143 | Some(1) => {
|
96 144 | builder.count = Some(deser.read_long(member)?);
|
97 145 | }
|
98 146 | _ => {}
|
99 147 | }
|
100 148 | Ok(())
|