aws_sdk_glue/schema_serde/
shape_assets_export.rs1static ASSETSEXPORT_MEMBER_S3_TABLES_EXPORT: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
3 ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.glue#AssetsExport$S3TablesExport", "com.amazonaws.glue", "AssetsExport"),
4 ::aws_smithy_schema::ShapeType::String,
5 "S3TablesExport",
6 0,
7);
8static ASSETSEXPORT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
9 ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.glue#AssetsExport", "com.amazonaws.glue", "AssetsExport"),
10 ::aws_smithy_schema::ShapeType::Structure,
11 &[&ASSETSEXPORT_MEMBER_S3_TABLES_EXPORT],
12);
13impl crate::types::AssetsExport {
14 pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &ASSETSEXPORT_SCHEMA;
16}
17impl ::aws_smithy_schema::serde::SerializableStruct for crate::types::AssetsExport {
18 fn schema(&self) -> &::aws_smithy_schema::Schema<'_> {
19 Self::SCHEMA
20 }
21
22 #[allow(unused_variables, clippy::diverging_sub_expression)]
23 fn serialize_members(
24 &self,
25 ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
26 ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
27 if let Some(ref val) = self.s3_tables_export {
28 ser.write_string(&ASSETSEXPORT_MEMBER_S3_TABLES_EXPORT, val.as_str())?;
29 }
30 Ok(())
31 }
32}
33impl crate::types::builders::AssetsExportBuilder {
34 #[allow(
35 unused_variables,
36 unreachable_code,
37 clippy::single_match,
38 clippy::match_single_binding,
39 clippy::diverging_sub_expression
40 )]
41 pub(crate) fn deserialize_members(
42 &mut self,
43 deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
44 ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
45 deserializer.read_struct(&ASSETSEXPORT_SCHEMA, &mut |member, deser| {
46 match member.member_index() {
47 Some(0) => {
48 if deser.is_null() {
49 deser.read_null()?;
50 } else {
51 self.s3_tables_export = Some(crate::types::ExportSetting::from(deser.read_string(member)?.as_str()));
52 }
53 }
54 _ => {}
55 }
56 Ok(())
57 })
58 }
59}
60
61impl crate::types::AssetsExport {
62 pub fn deserialize(
64 deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
65 ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
66 let mut builder = Self::builder();
67 builder.deserialize_members(deserializer)?;
68 Ok(builder.build())
69 }
70}