aws_sdk_glue/schema_serde/
shape_get_security_configurations_output_output.rs1static GETSECURITYCONFIGURATIONSOUTPUT_MEMBER_SECURITY_CONFIGURATIONS_MEMBER: ::aws_smithy_schema::Schema<'static> =
3 ::aws_smithy_schema::Schema::new_member(
4 ::aws_smithy_schema::ShapeId::from_parts(
5 "com.amazonaws.glue#SecurityConfigurationList$member",
6 "com.amazonaws.glue",
7 "SecurityConfigurationList",
8 ),
9 ::aws_smithy_schema::ShapeType::Structure,
10 "member",
11 0,
12 );
13static GETSECURITYCONFIGURATIONSOUTPUT_MEMBER_SECURITY_CONFIGURATIONS: ::aws_smithy_schema::Schema<'static> =
14 ::aws_smithy_schema::Schema::new_member(
15 ::aws_smithy_schema::ShapeId::from_parts(
16 "com.amazonaws.glue.synthetic#GetSecurityConfigurationsOutput$SecurityConfigurations",
17 "com.amazonaws.glue.synthetic",
18 "GetSecurityConfigurationsOutput",
19 ),
20 ::aws_smithy_schema::ShapeType::List,
21 "SecurityConfigurations",
22 0,
23 )
24 .with_list_member(&GETSECURITYCONFIGURATIONSOUTPUT_MEMBER_SECURITY_CONFIGURATIONS_MEMBER);
25static GETSECURITYCONFIGURATIONSOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
26 ::aws_smithy_schema::ShapeId::from_parts(
27 "com.amazonaws.glue.synthetic#GetSecurityConfigurationsOutput$NextToken",
28 "com.amazonaws.glue.synthetic",
29 "GetSecurityConfigurationsOutput",
30 ),
31 ::aws_smithy_schema::ShapeType::String,
32 "NextToken",
33 1,
34);
35static GETSECURITYCONFIGURATIONSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
36 ::aws_smithy_schema::ShapeId::from_parts(
37 "com.amazonaws.glue.synthetic#GetSecurityConfigurationsOutput",
38 "com.amazonaws.glue.synthetic",
39 "GetSecurityConfigurationsOutput",
40 ),
41 ::aws_smithy_schema::ShapeType::Structure,
42 &[
43 &GETSECURITYCONFIGURATIONSOUTPUT_MEMBER_SECURITY_CONFIGURATIONS,
44 &GETSECURITYCONFIGURATIONSOUTPUT_MEMBER_NEXT_TOKEN,
45 ],
46)
47.with_original_name("GetSecurityConfigurationsResponse");
48impl crate::operation::get_security_configurations::GetSecurityConfigurationsOutput {
49 pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &GETSECURITYCONFIGURATIONSOUTPUT_SCHEMA;
51}
52impl ::aws_smithy_schema::serde::SerializableStruct for crate::operation::get_security_configurations::GetSecurityConfigurationsOutput {
53 fn schema(&self) -> &::aws_smithy_schema::Schema<'_> {
54 Self::SCHEMA
55 }
56
57 #[allow(unused_variables, clippy::diverging_sub_expression)]
58 fn serialize_members(
59 &self,
60 ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
61 ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
62 if let Some(ref val) = self.security_configurations {
63 ser.write_list(
64 &GETSECURITYCONFIGURATIONSOUTPUT_MEMBER_SECURITY_CONFIGURATIONS,
65 &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
66 for item in val {
67 ser.write_struct(crate::types::SecurityConfiguration::SCHEMA, item)?;
68 }
69 Ok(())
70 },
71 )?;
72 }
73 if let Some(ref val) = self.next_token {
74 ser.write_string(&GETSECURITYCONFIGURATIONSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
75 }
76 Ok(())
77 }
78}
79impl crate::operation::get_security_configurations::builders::GetSecurityConfigurationsOutputBuilder {
80 #[allow(
81 unused_variables,
82 unreachable_code,
83 clippy::single_match,
84 clippy::match_single_binding,
85 clippy::diverging_sub_expression
86 )]
87 pub(crate) fn deserialize_members(
88 &mut self,
89 deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
90 ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
91 deserializer.read_struct(&GETSECURITYCONFIGURATIONSOUTPUT_SCHEMA, &mut |member, deser| {
92 match member.member_index() {
93 Some(0) => {
94 if deser.is_null() {
95 deser.read_null()?;
96 } else {
97 self.security_configurations = Some({
98 let mut container = Vec::new();
99 deser.read_list(member, &mut |deser| {
100 container.push(crate::types::SecurityConfiguration::deserialize(deser)?);
101 Ok(())
102 })?;
103 container
104 });
105 }
106 }
107 Some(1) => {
108 if deser.is_null() {
109 deser.read_null()?;
110 } else {
111 self.next_token = Some(deser.read_string(member)?);
112 }
113 }
114 _ => {}
115 }
116 Ok(())
117 })
118 }
119}
120
121impl crate::operation::get_security_configurations::GetSecurityConfigurationsOutput {
122 pub fn deserialize(
124 deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
125 ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
126 let mut builder = Self::builder();
127 builder.deserialize_members(deserializer)?;
128 Ok(builder.build())
129 }
130}