aws_sdk_kms/schema_serde/
shape_retire_grant_output_output.rs1static RETIREGRANTOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
3 ::aws_smithy_schema::ShapeId::from_parts(
4 "com.amazonaws.kms.synthetic#RetireGrantOutput",
5 "com.amazonaws.kms.synthetic",
6 "RetireGrantOutput",
7 ),
8 ::aws_smithy_schema::ShapeType::Structure,
9 &[],
10);
11impl crate::operation::retire_grant::RetireGrantOutput {
12 pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &RETIREGRANTOUTPUT_SCHEMA;
14}
15impl ::aws_smithy_schema::serde::SerializableStruct for crate::operation::retire_grant::RetireGrantOutput {
16 fn schema(&self) -> &::aws_smithy_schema::Schema<'_> {
17 Self::SCHEMA
18 }
19
20 #[allow(unused_variables, clippy::diverging_sub_expression)]
21 fn serialize_members(
22 &self,
23 ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
24 ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
25 Ok(())
26 }
27}
28impl crate::operation::retire_grant::builders::RetireGrantOutputBuilder {
29 #[allow(
30 unused_variables,
31 unreachable_code,
32 clippy::single_match,
33 clippy::match_single_binding,
34 clippy::diverging_sub_expression
35 )]
36 pub(crate) fn deserialize_members(
37 &mut self,
38 deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
39 ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
40 deserializer.read_struct(&RETIREGRANTOUTPUT_SCHEMA, &mut |member, deser| {
41 match member.member_index() {
42 _ => {}
43 }
44 Ok(())
45 })
46 }
47}
48
49impl crate::operation::retire_grant::RetireGrantOutput {
50 pub fn deserialize(
52 deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
53 ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
54 let mut builder = Self::builder();
55 builder.deserialize_members(deserializer)?;
56 Ok(builder.build())
57 }
58}