AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_replication_configuration.rs

@@ -6,6 +156,166 @@
   26     26   
    "com.amazonaws.s3",
   27     27   
    "ReplicationConfiguration",
   28     28   
);
   29     29   
static REPLICATIONCONFIGURATION_MEMBER_ROLE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.s3#ReplicationConfiguration$Role",
   32     32   
        "com.amazonaws.s3",
   33     33   
        "ReplicationConfiguration",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::String,
   36         -
    "role",
          36  +
    "Role",
   37     37   
    0,
   38     38   
);
   39     39   
static REPLICATIONCONFIGURATION_MEMBER_RULES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   40     40   
    ::aws_smithy_schema::ShapeId::from_static(
   41     41   
        "com.amazonaws.s3#ReplicationConfiguration$Rules",
   42     42   
        "com.amazonaws.s3",
   43     43   
        "ReplicationConfiguration",
   44     44   
    ),
   45     45   
    ::aws_smithy_schema::ShapeType::List,
   46         -
    "rules",
          46  +
    "Rules",
   47     47   
    1,
   48     48   
)
   49     49   
.with_xml_name("Rule")
   50     50   
.with_xml_flattened();
   51     51   
static REPLICATIONCONFIGURATION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     52   
    REPLICATIONCONFIGURATION_SCHEMA_ID,
   53     53   
    ::aws_smithy_schema::ShapeType::Structure,
   54     54   
    &[&REPLICATIONCONFIGURATION_MEMBER_ROLE, &REPLICATIONCONFIGURATION_MEMBER_RULES],
   55     55   
);
   56     56   
impl ReplicationConfiguration {
   57     57   
    /// The schema for this shape.
   58     58   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &REPLICATIONCONFIGURATION_SCHEMA;
   59     59   
}
   60     60   
impl ::aws_smithy_schema::serde::SerializableStruct for ReplicationConfiguration {
   61     61   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   62     62   
    fn serialize_members(
   63     63   
        &self,
   64     64   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   65     65   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   66     66   
        {
   67     67   
            let val = &self.role;
   68     68   
            ser.write_string(&REPLICATIONCONFIGURATION_MEMBER_ROLE, val)?;
   69     69   
        }
   70     70   
        {
   71     71   
            let val = &self.rules;
   72     72   
   73     73   
            ser.write_list(
   74     74   
                &REPLICATIONCONFIGURATION_MEMBER_RULES,
   75     75   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   76     76   
                    for item in val {
   77     77   
                        ser.write_struct(crate::types::ReplicationRule::SCHEMA, item)?;
   78     78   
                    }
   79     79   
                    Ok(())
   80     80   
                },
   81     81   
            )?;
   82     82   
        }
   83     83   
        Ok(())
   84     84   
    }
   85     85   
}
   86     86   
impl ReplicationConfiguration {
   87     87   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   88         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   89         -
        deserializer: &mut D,
          88  +
    pub fn deserialize(
          89  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   90     90   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   91     91   
        #[allow(unused_variables, unused_mut)]
   92     92   
        let mut builder = Self::builder();
   93     93   
        #[allow(
   94     94   
            unused_variables,
   95     95   
            unreachable_code,
   96     96   
            clippy::single_match,
   97     97   
            clippy::match_single_binding,
   98     98   
            clippy::diverging_sub_expression
   99     99   
        )]
  100         -
        deserializer.read_struct(&REPLICATIONCONFIGURATION_SCHEMA, (), |_, member, deser| {
         100  +
        deserializer.read_struct(&REPLICATIONCONFIGURATION_SCHEMA, &mut |member, deser| {
  101    101   
            match member.member_index() {
  102    102   
                Some(0) => {
  103    103   
                    builder.role = Some(deser.read_string(member)?);
  104    104   
                }
  105    105   
                Some(1) => {
  106    106   
                    builder.rules = Some({
  107         -
                        let container = if let Some(cap) = deser.container_size() {
  108         -
                            Vec::with_capacity(cap)
  109         -
                        } else {
  110         -
                            Vec::new()
  111         -
                        };
  112         -
                        deser.read_list(member, container, |mut list, deser| {
  113         -
                            list.push(crate::types::ReplicationRule::deserialize(deser)?);
  114         -
                            Ok(list)
  115         -
                        })?
         107  +
                        let mut container = Vec::new();
         108  +
                        deser.read_list(member, &mut |deser| {
         109  +
                            container.push(crate::types::ReplicationRule::deserialize(deser)?);
         110  +
                            Ok(())
         111  +
                        })?;
         112  +
                        container
  116    113   
                    });
  117    114   
                }
  118    115   
                _ => {}
  119    116   
            }
  120    117   
            Ok(())
  121    118   
        })?;
         119  +
        builder.role = builder.role.or(Some(String::new()));
         120  +
        builder.rules = builder.rules.or(Some(Vec::new()));
  122    121   
        builder
  123    122   
            .build()
  124    123   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  125    124   
    }
  126    125   
}
         126  +
impl ReplicationConfiguration {
         127  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         128  +
    pub fn deserialize_with_response(
         129  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         130  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         131  +
        _status: u16,
         132  +
        _body: &[u8],
         133  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         134  +
        Self::deserialize(deserializer)
         135  +
    }
         136  +
}
  127    137   
impl ReplicationConfiguration {
  128    138   
    /// Creates a new builder-style object to manufacture [`ReplicationConfiguration`](crate::types::ReplicationConfiguration).
  129    139   
    pub fn builder() -> crate::types::builders::ReplicationConfigurationBuilder {
  130    140   
        crate::types::builders::ReplicationConfigurationBuilder::default()
  131    141   
    }
  132    142   
}
  133    143   
  134    144   
/// A builder for [`ReplicationConfiguration`](crate::types::ReplicationConfiguration).
  135    145   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  136    146   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_replication_rule.rs

@@ -57,57 +287,298 @@
   77     77   
    /// </note>
   78     78   
    pub fn delete_marker_replication(&self) -> ::std::option::Option<&crate::types::DeleteMarkerReplication> {
   79     79   
        self.delete_marker_replication.as_ref()
   80     80   
    }
   81     81   
}
   82     82   
static REPLICATIONRULE_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   83     83   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#ReplicationRule", "com.amazonaws.s3", "ReplicationRule");
   84     84   
static REPLICATIONRULE_MEMBER_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   85     85   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#ReplicationRule$ID", "com.amazonaws.s3", "ReplicationRule"),
   86     86   
    ::aws_smithy_schema::ShapeType::String,
   87         -
    "id",
          87  +
    "ID",
   88     88   
    0,
   89     89   
);
   90     90   
static REPLICATIONRULE_MEMBER_PRIORITY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   91     91   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#ReplicationRule$Priority", "com.amazonaws.s3", "ReplicationRule"),
   92     92   
    ::aws_smithy_schema::ShapeType::Integer,
   93         -
    "priority",
          93  +
    "Priority",
   94     94   
    1,
   95     95   
);
   96     96   
static REPLICATIONRULE_MEMBER_PREFIX: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   97     97   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#ReplicationRule$Prefix", "com.amazonaws.s3", "ReplicationRule"),
   98     98   
    ::aws_smithy_schema::ShapeType::String,
   99         -
    "prefix",
          99  +
    "Prefix",
  100    100   
    2,
  101    101   
);
  102    102   
static REPLICATIONRULE_MEMBER_FILTER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  103    103   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#ReplicationRule$Filter", "com.amazonaws.s3", "ReplicationRule"),
  104    104   
    ::aws_smithy_schema::ShapeType::Structure,
  105         -
    "filter",
         105  +
    "Filter",
  106    106   
    3,
  107    107   
);
  108    108   
static REPLICATIONRULE_MEMBER_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  109    109   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#ReplicationRule$Status", "com.amazonaws.s3", "ReplicationRule"),
  110    110   
    ::aws_smithy_schema::ShapeType::String,
  111         -
    "status",
         111  +
    "Status",
  112    112   
    4,
  113    113   
);
  114    114   
static REPLICATIONRULE_MEMBER_SOURCE_SELECTION_CRITERIA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  115    115   
    ::aws_smithy_schema::ShapeId::from_static(
  116    116   
        "com.amazonaws.s3#ReplicationRule$SourceSelectionCriteria",
  117    117   
        "com.amazonaws.s3",
  118    118   
        "ReplicationRule",
  119    119   
    ),
  120    120   
    ::aws_smithy_schema::ShapeType::Structure,
  121         -
    "source_selection_criteria",
         121  +
    "SourceSelectionCriteria",
  122    122   
    5,
  123    123   
);
  124    124   
static REPLICATIONRULE_MEMBER_EXISTING_OBJECT_REPLICATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  125    125   
    ::aws_smithy_schema::ShapeId::from_static(
  126    126   
        "com.amazonaws.s3#ReplicationRule$ExistingObjectReplication",
  127    127   
        "com.amazonaws.s3",
  128    128   
        "ReplicationRule",
  129    129   
    ),
  130    130   
    ::aws_smithy_schema::ShapeType::Structure,
  131         -
    "existing_object_replication",
         131  +
    "ExistingObjectReplication",
  132    132   
    6,
  133    133   
);
  134    134   
static REPLICATIONRULE_MEMBER_DESTINATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  135    135   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#ReplicationRule$Destination", "com.amazonaws.s3", "ReplicationRule"),
  136    136   
    ::aws_smithy_schema::ShapeType::Structure,
  137         -
    "destination",
         137  +
    "Destination",
  138    138   
    7,
  139    139   
);
  140    140   
static REPLICATIONRULE_MEMBER_DELETE_MARKER_REPLICATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  141    141   
    ::aws_smithy_schema::ShapeId::from_static(
  142    142   
        "com.amazonaws.s3#ReplicationRule$DeleteMarkerReplication",
  143    143   
        "com.amazonaws.s3",
  144    144   
        "ReplicationRule",
  145    145   
    ),
  146    146   
    ::aws_smithy_schema::ShapeType::Structure,
  147         -
    "delete_marker_replication",
         147  +
    "DeleteMarkerReplication",
  148    148   
    8,
  149    149   
);
  150    150   
static REPLICATIONRULE_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  151    151   
    REPLICATIONRULE_SCHEMA_ID,
  152    152   
    ::aws_smithy_schema::ShapeType::Structure,
  153    153   
    &[
  154    154   
        &REPLICATIONRULE_MEMBER_ID,
  155    155   
        &REPLICATIONRULE_MEMBER_PRIORITY,
  156    156   
        &REPLICATIONRULE_MEMBER_PREFIX,
  157    157   
        &REPLICATIONRULE_MEMBER_FILTER,
  158    158   
        &REPLICATIONRULE_MEMBER_STATUS,
  159    159   
        &REPLICATIONRULE_MEMBER_SOURCE_SELECTION_CRITERIA,
  160    160   
        &REPLICATIONRULE_MEMBER_EXISTING_OBJECT_REPLICATION,
  161    161   
        &REPLICATIONRULE_MEMBER_DESTINATION,
  162    162   
        &REPLICATIONRULE_MEMBER_DELETE_MARKER_REPLICATION,
  163    163   
    ],
  164    164   
);
  165    165   
impl ReplicationRule {
  166    166   
    /// The schema for this shape.
  167    167   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &REPLICATIONRULE_SCHEMA;
  168    168   
}
  169    169   
impl ::aws_smithy_schema::serde::SerializableStruct for ReplicationRule {
  170    170   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  171    171   
    fn serialize_members(
  172    172   
        &self,
  173    173   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  174    174   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  175    175   
        if let Some(ref val) = self.id {
  176    176   
            ser.write_string(&REPLICATIONRULE_MEMBER_ID, val)?;
  177    177   
        }
  178    178   
        if let Some(ref val) = self.priority {
  179    179   
            ser.write_integer(&REPLICATIONRULE_MEMBER_PRIORITY, *val)?;
  180    180   
        }
  181    181   
        if let Some(ref val) = self.prefix {
  182    182   
            ser.write_string(&REPLICATIONRULE_MEMBER_PREFIX, val)?;
  183    183   
        }
  184    184   
        if let Some(ref val) = self.filter {
  185    185   
            ser.write_struct(&REPLICATIONRULE_MEMBER_FILTER, val)?;
  186    186   
        }
  187    187   
        {
  188    188   
            let val = &self.status;
  189    189   
            ser.write_string(&REPLICATIONRULE_MEMBER_STATUS, val.as_str())?;
  190    190   
        }
  191    191   
        if let Some(ref val) = self.source_selection_criteria {
  192    192   
            ser.write_struct(&REPLICATIONRULE_MEMBER_SOURCE_SELECTION_CRITERIA, val)?;
  193    193   
        }
  194    194   
        if let Some(ref val) = self.existing_object_replication {
  195    195   
            ser.write_struct(&REPLICATIONRULE_MEMBER_EXISTING_OBJECT_REPLICATION, val)?;
  196    196   
        }
  197    197   
        if let Some(ref val) = self.destination {
  198    198   
            ser.write_struct(&REPLICATIONRULE_MEMBER_DESTINATION, val)?;
  199    199   
        }
  200    200   
        if let Some(ref val) = self.delete_marker_replication {
  201    201   
            ser.write_struct(&REPLICATIONRULE_MEMBER_DELETE_MARKER_REPLICATION, val)?;
  202    202   
        }
  203    203   
        Ok(())
  204    204   
    }
  205    205   
}
  206    206   
impl ReplicationRule {
  207    207   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  208         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  209         -
        deserializer: &mut D,
         208  +
    pub fn deserialize(
         209  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  210    210   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  211    211   
        #[allow(unused_variables, unused_mut)]
  212    212   
        let mut builder = Self::builder();
  213    213   
        #[allow(
  214    214   
            unused_variables,
  215    215   
            unreachable_code,
  216    216   
            clippy::single_match,
  217    217   
            clippy::match_single_binding,
  218    218   
            clippy::diverging_sub_expression
  219    219   
        )]
  220         -
        deserializer.read_struct(&REPLICATIONRULE_SCHEMA, (), |_, member, deser| {
         220  +
        deserializer.read_struct(&REPLICATIONRULE_SCHEMA, &mut |member, deser| {
  221    221   
            match member.member_index() {
  222    222   
                Some(0) => {
  223    223   
                    builder.id = Some(deser.read_string(member)?);
  224    224   
                }
  225    225   
                Some(1) => {
  226    226   
                    builder.priority = Some(deser.read_integer(member)?);
  227    227   
                }
  228    228   
                Some(2) => {
  229    229   
                    builder.prefix = Some(deser.read_string(member)?);
  230    230   
                }
  231    231   
                Some(3) => {
  232    232   
                    builder.filter = Some(crate::types::ReplicationRuleFilter::deserialize(deser)?);
  233    233   
                }
  234    234   
                Some(4) => {
  235    235   
                    builder.status = Some(crate::types::ReplicationRuleStatus::from(deser.read_string(member)?.as_str()));
  236    236   
                }
  237    237   
                Some(5) => {
  238    238   
                    builder.source_selection_criteria = Some(crate::types::SourceSelectionCriteria::deserialize(deser)?);
  239    239   
                }
  240    240   
                Some(6) => {
  241    241   
                    builder.existing_object_replication = Some(crate::types::ExistingObjectReplication::deserialize(deser)?);
  242    242   
                }
  243    243   
                Some(7) => {
  244    244   
                    builder.destination = Some(crate::types::Destination::deserialize(deser)?);
  245    245   
                }
  246    246   
                Some(8) => {
  247    247   
                    builder.delete_marker_replication = Some(crate::types::DeleteMarkerReplication::deserialize(deser)?);
  248    248   
                }
  249    249   
                _ => {}
  250    250   
            }
  251    251   
            Ok(())
  252    252   
        })?;
  253    253   
        builder
  254    254   
            .build()
  255    255   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  256    256   
    }
  257    257   
}
         258  +
impl ReplicationRule {
         259  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         260  +
    pub fn deserialize_with_response(
         261  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         262  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         263  +
        _status: u16,
         264  +
        _body: &[u8],
         265  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         266  +
        Self::deserialize(deserializer)
         267  +
    }
         268  +
}
  258    269   
impl ReplicationRule {
  259    270   
    /// Creates a new builder-style object to manufacture [`ReplicationRule`](crate::types::ReplicationRule).
  260    271   
    pub fn builder() -> crate::types::builders::ReplicationRuleBuilder {
  261    272   
        crate::types::builders::ReplicationRuleBuilder::default()
  262    273   
    }
  263    274   
}
  264    275   
  265    276   
/// A builder for [`ReplicationRule`](crate::types::ReplicationRule).
  266    277   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  267    278   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_replication_rule_and_operator.rs

@@ -13,13 +158,166 @@
   33     33   
    "com.amazonaws.s3",
   34     34   
    "ReplicationRuleAndOperator",
   35     35   
);
   36     36   
static REPLICATIONRULEANDOPERATOR_MEMBER_PREFIX: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   37     37   
    ::aws_smithy_schema::ShapeId::from_static(
   38     38   
        "com.amazonaws.s3#ReplicationRuleAndOperator$Prefix",
   39     39   
        "com.amazonaws.s3",
   40     40   
        "ReplicationRuleAndOperator",
   41     41   
    ),
   42     42   
    ::aws_smithy_schema::ShapeType::String,
   43         -
    "prefix",
          43  +
    "Prefix",
   44     44   
    0,
   45     45   
);
   46     46   
static REPLICATIONRULEANDOPERATOR_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   47     47   
    ::aws_smithy_schema::ShapeId::from_static(
   48     48   
        "com.amazonaws.s3#ReplicationRuleAndOperator$Tags",
   49     49   
        "com.amazonaws.s3",
   50     50   
        "ReplicationRuleAndOperator",
   51     51   
    ),
   52     52   
    ::aws_smithy_schema::ShapeType::List,
   53         -
    "tags",
          53  +
    "Tags",
   54     54   
    1,
   55     55   
)
   56     56   
.with_xml_name("Tag")
   57     57   
.with_xml_flattened();
   58     58   
static REPLICATIONRULEANDOPERATOR_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   59     59   
    REPLICATIONRULEANDOPERATOR_SCHEMA_ID,
   60     60   
    ::aws_smithy_schema::ShapeType::Structure,
   61     61   
    &[&REPLICATIONRULEANDOPERATOR_MEMBER_PREFIX, &REPLICATIONRULEANDOPERATOR_MEMBER_TAGS],
   62     62   
);
   63     63   
impl ReplicationRuleAndOperator {
   64     64   
    /// The schema for this shape.
   65     65   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &REPLICATIONRULEANDOPERATOR_SCHEMA;
   66     66   
}
   67     67   
impl ::aws_smithy_schema::serde::SerializableStruct for ReplicationRuleAndOperator {
   68     68   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   69     69   
    fn serialize_members(
   70     70   
        &self,
   71     71   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   72     72   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   73     73   
        if let Some(ref val) = self.prefix {
   74     74   
            ser.write_string(&REPLICATIONRULEANDOPERATOR_MEMBER_PREFIX, val)?;
   75     75   
        }
   76     76   
        if let Some(ref val) = self.tags {
   77     77   
            ser.write_list(
   78     78   
                &REPLICATIONRULEANDOPERATOR_MEMBER_TAGS,
   79     79   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   80     80   
                    for item in val {
   81     81   
                        ser.write_struct(crate::types::Tag::SCHEMA, item)?;
   82     82   
                    }
   83     83   
                    Ok(())
   84     84   
                },
   85     85   
            )?;
   86     86   
        }
   87     87   
        Ok(())
   88     88   
    }
   89     89   
}
   90     90   
impl ReplicationRuleAndOperator {
   91     91   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   92         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   93         -
        deserializer: &mut D,
          92  +
    pub fn deserialize(
          93  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   94     94   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   95     95   
        #[allow(unused_variables, unused_mut)]
   96     96   
        let mut builder = Self::builder();
   97     97   
        #[allow(
   98     98   
            unused_variables,
   99     99   
            unreachable_code,
  100    100   
            clippy::single_match,
  101    101   
            clippy::match_single_binding,
  102    102   
            clippy::diverging_sub_expression
  103    103   
        )]
  104         -
        deserializer.read_struct(&REPLICATIONRULEANDOPERATOR_SCHEMA, (), |_, member, deser| {
         104  +
        deserializer.read_struct(&REPLICATIONRULEANDOPERATOR_SCHEMA, &mut |member, deser| {
  105    105   
            match member.member_index() {
  106    106   
                Some(0) => {
  107    107   
                    builder.prefix = Some(deser.read_string(member)?);
  108    108   
                }
  109    109   
                Some(1) => {
  110    110   
                    builder.tags = Some({
  111         -
                        let container = if let Some(cap) = deser.container_size() {
  112         -
                            Vec::with_capacity(cap)
  113         -
                        } else {
  114         -
                            Vec::new()
  115         -
                        };
  116         -
                        deser.read_list(member, container, |mut list, deser| {
  117         -
                            list.push(crate::types::Tag::deserialize(deser)?);
  118         -
                            Ok(list)
  119         -
                        })?
         111  +
                        let mut container = Vec::new();
         112  +
                        deser.read_list(member, &mut |deser| {
         113  +
                            container.push(crate::types::Tag::deserialize(deser)?);
         114  +
                            Ok(())
         115  +
                        })?;
         116  +
                        container
  120    117   
                    });
  121    118   
                }
  122    119   
                _ => {}
  123    120   
            }
  124    121   
            Ok(())
  125    122   
        })?;
  126    123   
        Ok(builder.build())
  127    124   
    }
  128    125   
}
         126  +
impl ReplicationRuleAndOperator {
         127  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         128  +
    pub fn deserialize_with_response(
         129  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         130  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         131  +
        _status: u16,
         132  +
        _body: &[u8],
         133  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         134  +
        Self::deserialize(deserializer)
         135  +
    }
         136  +
}
  129    137   
impl ReplicationRuleAndOperator {
  130    138   
    /// Creates a new builder-style object to manufacture [`ReplicationRuleAndOperator`](crate::types::ReplicationRuleAndOperator).
  131    139   
    pub fn builder() -> crate::types::builders::ReplicationRuleAndOperatorBuilder {
  132    140   
        crate::types::builders::ReplicationRuleAndOperatorBuilder::default()
  133    141   
    }
  134    142   
}
  135    143   
  136    144   
/// A builder for [`ReplicationRuleAndOperator`](crate::types::ReplicationRuleAndOperator).
  137    145   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  138    146   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_replication_rule_filter.rs

@@ -25,25 +162,173 @@
   45     45   
}
   46     46   
static REPLICATIONRULEFILTER_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   47     47   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#ReplicationRuleFilter", "com.amazonaws.s3", "ReplicationRuleFilter");
   48     48   
static REPLICATIONRULEFILTER_MEMBER_PREFIX: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   49     49   
    ::aws_smithy_schema::ShapeId::from_static(
   50     50   
        "com.amazonaws.s3#ReplicationRuleFilter$Prefix",
   51     51   
        "com.amazonaws.s3",
   52     52   
        "ReplicationRuleFilter",
   53     53   
    ),
   54     54   
    ::aws_smithy_schema::ShapeType::String,
   55         -
    "prefix",
          55  +
    "Prefix",
   56     56   
    0,
   57     57   
);
   58     58   
static REPLICATIONRULEFILTER_MEMBER_TAG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   59     59   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#ReplicationRuleFilter$Tag", "com.amazonaws.s3", "ReplicationRuleFilter"),
   60     60   
    ::aws_smithy_schema::ShapeType::Structure,
   61         -
    "tag",
          61  +
    "Tag",
   62     62   
    1,
   63     63   
);
   64     64   
static REPLICATIONRULEFILTER_MEMBER_AND: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   65     65   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#ReplicationRuleFilter$And", "com.amazonaws.s3", "ReplicationRuleFilter"),
   66     66   
    ::aws_smithy_schema::ShapeType::Structure,
   67         -
    "and",
          67  +
    "And",
   68     68   
    2,
   69     69   
);
   70     70   
static REPLICATIONRULEFILTER_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   71     71   
    REPLICATIONRULEFILTER_SCHEMA_ID,
   72     72   
    ::aws_smithy_schema::ShapeType::Structure,
   73     73   
    &[
   74     74   
        &REPLICATIONRULEFILTER_MEMBER_PREFIX,
   75     75   
        &REPLICATIONRULEFILTER_MEMBER_TAG,
   76     76   
        &REPLICATIONRULEFILTER_MEMBER_AND,
   77     77   
    ],
   78     78   
);
   79     79   
impl ReplicationRuleFilter {
   80     80   
    /// The schema for this shape.
   81     81   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &REPLICATIONRULEFILTER_SCHEMA;
   82     82   
}
   83     83   
impl ::aws_smithy_schema::serde::SerializableStruct for ReplicationRuleFilter {
   84     84   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   85     85   
    fn serialize_members(
   86     86   
        &self,
   87     87   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   88     88   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   89     89   
        if let Some(ref val) = self.prefix {
   90     90   
            ser.write_string(&REPLICATIONRULEFILTER_MEMBER_PREFIX, val)?;
   91     91   
        }
   92     92   
        if let Some(ref val) = self.tag {
   93     93   
            ser.write_struct(&REPLICATIONRULEFILTER_MEMBER_TAG, val)?;
   94     94   
        }
   95     95   
        if let Some(ref val) = self.and {
   96     96   
            ser.write_struct(&REPLICATIONRULEFILTER_MEMBER_AND, val)?;
   97     97   
        }
   98     98   
        Ok(())
   99     99   
    }
  100    100   
}
  101    101   
impl ReplicationRuleFilter {
  102    102   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  103         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  104         -
        deserializer: &mut D,
         103  +
    pub fn deserialize(
         104  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  105    105   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  106    106   
        #[allow(unused_variables, unused_mut)]
  107    107   
        let mut builder = Self::builder();
  108    108   
        #[allow(
  109    109   
            unused_variables,
  110    110   
            unreachable_code,
  111    111   
            clippy::single_match,
  112    112   
            clippy::match_single_binding,
  113    113   
            clippy::diverging_sub_expression
  114    114   
        )]
  115         -
        deserializer.read_struct(&REPLICATIONRULEFILTER_SCHEMA, (), |_, member, deser| {
         115  +
        deserializer.read_struct(&REPLICATIONRULEFILTER_SCHEMA, &mut |member, deser| {
  116    116   
            match member.member_index() {
  117    117   
                Some(0) => {
  118    118   
                    builder.prefix = Some(deser.read_string(member)?);
  119    119   
                }
  120    120   
                Some(1) => {
  121    121   
                    builder.tag = Some(crate::types::Tag::deserialize(deser)?);
  122    122   
                }
  123    123   
                Some(2) => {
  124    124   
                    builder.and = Some(crate::types::ReplicationRuleAndOperator::deserialize(deser)?);
  125    125   
                }
  126    126   
                _ => {}
  127    127   
            }
  128    128   
            Ok(())
  129    129   
        })?;
  130    130   
        Ok(builder.build())
  131    131   
    }
  132    132   
}
         133  +
impl ReplicationRuleFilter {
         134  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         135  +
    pub fn deserialize_with_response(
         136  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         137  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         138  +
        _status: u16,
         139  +
        _body: &[u8],
         140  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         141  +
        Self::deserialize(deserializer)
         142  +
    }
         143  +
}
  133    144   
impl ReplicationRuleFilter {
  134    145   
    /// Creates a new builder-style object to manufacture [`ReplicationRuleFilter`](crate::types::ReplicationRuleFilter).
  135    146   
    pub fn builder() -> crate::types::builders::ReplicationRuleFilterBuilder {
  136    147   
        crate::types::builders::ReplicationRuleFilterBuilder::default()
  137    148   
    }
  138    149   
}
  139    150   
  140    151   
/// A builder for [`ReplicationRuleFilter`](crate::types::ReplicationRuleFilter).
  141    152   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  142    153   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_replication_time.rs

@@ -1,1 +121,132 @@
   17     17   
    /// <p>A container specifying the time by which replication should be complete for all objects and operations on objects.</p>
   18     18   
    pub fn time(&self) -> ::std::option::Option<&crate::types::ReplicationTimeValue> {
   19     19   
        self.time.as_ref()
   20     20   
    }
   21     21   
}
   22     22   
static REPLICATIONTIME_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   23     23   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#ReplicationTime", "com.amazonaws.s3", "ReplicationTime");
   24     24   
static REPLICATIONTIME_MEMBER_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   25     25   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#ReplicationTime$Status", "com.amazonaws.s3", "ReplicationTime"),
   26     26   
    ::aws_smithy_schema::ShapeType::String,
   27         -
    "status",
          27  +
    "Status",
   28     28   
    0,
   29     29   
);
   30     30   
static REPLICATIONTIME_MEMBER_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   31     31   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#ReplicationTime$Time", "com.amazonaws.s3", "ReplicationTime"),
   32     32   
    ::aws_smithy_schema::ShapeType::Structure,
   33         -
    "time",
          33  +
    "Time",
   34     34   
    1,
   35     35   
);
   36     36   
static REPLICATIONTIME_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   37     37   
    REPLICATIONTIME_SCHEMA_ID,
   38     38   
    ::aws_smithy_schema::ShapeType::Structure,
   39     39   
    &[&REPLICATIONTIME_MEMBER_STATUS, &REPLICATIONTIME_MEMBER_TIME],
   40     40   
);
   41     41   
impl ReplicationTime {
   42     42   
    /// The schema for this shape.
   43     43   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &REPLICATIONTIME_SCHEMA;
   44     44   
}
   45     45   
impl ::aws_smithy_schema::serde::SerializableStruct for ReplicationTime {
   46     46   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   47     47   
    fn serialize_members(
   48     48   
        &self,
   49     49   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   50     50   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   51     51   
        {
   52     52   
            let val = &self.status;
   53     53   
            ser.write_string(&REPLICATIONTIME_MEMBER_STATUS, val.as_str())?;
   54     54   
        }
   55     55   
        if let Some(ref val) = self.time {
   56     56   
            ser.write_struct(&REPLICATIONTIME_MEMBER_TIME, val)?;
   57     57   
        }
   58     58   
        Ok(())
   59     59   
    }
   60     60   
}
   61     61   
impl ReplicationTime {
   62     62   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   63         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   64         -
        deserializer: &mut D,
          63  +
    pub fn deserialize(
          64  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   65     65   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   66     66   
        #[allow(unused_variables, unused_mut)]
   67     67   
        let mut builder = Self::builder();
   68     68   
        #[allow(
   69     69   
            unused_variables,
   70     70   
            unreachable_code,
   71     71   
            clippy::single_match,
   72     72   
            clippy::match_single_binding,
   73     73   
            clippy::diverging_sub_expression
   74     74   
        )]
   75         -
        deserializer.read_struct(&REPLICATIONTIME_SCHEMA, (), |_, member, deser| {
          75  +
        deserializer.read_struct(&REPLICATIONTIME_SCHEMA, &mut |member, deser| {
   76     76   
            match member.member_index() {
   77     77   
                Some(0) => {
   78     78   
                    builder.status = Some(crate::types::ReplicationTimeStatus::from(deser.read_string(member)?.as_str()));
   79     79   
                }
   80     80   
                Some(1) => {
   81     81   
                    builder.time = Some(crate::types::ReplicationTimeValue::deserialize(deser)?);
   82     82   
                }
   83     83   
                _ => {}
   84     84   
            }
   85     85   
            Ok(())
   86     86   
        })?;
   87     87   
        builder
   88     88   
            .build()
   89     89   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   90     90   
    }
   91     91   
}
          92  +
impl ReplicationTime {
          93  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          94  +
    pub fn deserialize_with_response(
          95  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          96  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          97  +
        _status: u16,
          98  +
        _body: &[u8],
          99  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         100  +
        Self::deserialize(deserializer)
         101  +
    }
         102  +
}
   92    103   
impl ReplicationTime {
   93    104   
    /// Creates a new builder-style object to manufacture [`ReplicationTime`](crate::types::ReplicationTime).
   94    105   
    pub fn builder() -> crate::types::builders::ReplicationTimeBuilder {
   95    106   
        crate::types::builders::ReplicationTimeBuilder::default()
   96    107   
    }
   97    108   
}
   98    109   
   99    110   
/// A builder for [`ReplicationTime`](crate::types::ReplicationTime).
  100    111   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  101    112   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_replication_time_value.rs

@@ -1,1 +106,117 @@
   17     17   
}
   18     18   
static REPLICATIONTIMEVALUE_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   19     19   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#ReplicationTimeValue", "com.amazonaws.s3", "ReplicationTimeValue");
   20     20   
static REPLICATIONTIMEVALUE_MEMBER_MINUTES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   21     21   
    ::aws_smithy_schema::ShapeId::from_static(
   22     22   
        "com.amazonaws.s3#ReplicationTimeValue$Minutes",
   23     23   
        "com.amazonaws.s3",
   24     24   
        "ReplicationTimeValue",
   25     25   
    ),
   26     26   
    ::aws_smithy_schema::ShapeType::Integer,
   27         -
    "minutes",
          27  +
    "Minutes",
   28     28   
    0,
   29     29   
);
   30     30   
static REPLICATIONTIMEVALUE_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   31     31   
    REPLICATIONTIMEVALUE_SCHEMA_ID,
   32     32   
    ::aws_smithy_schema::ShapeType::Structure,
   33     33   
    &[&REPLICATIONTIMEVALUE_MEMBER_MINUTES],
   34     34   
);
   35     35   
impl ReplicationTimeValue {
   36     36   
    /// The schema for this shape.
   37     37   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &REPLICATIONTIMEVALUE_SCHEMA;
   38     38   
}
   39     39   
impl ::aws_smithy_schema::serde::SerializableStruct for ReplicationTimeValue {
   40     40   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   41     41   
    fn serialize_members(
   42     42   
        &self,
   43     43   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   44     44   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   45     45   
        if let Some(ref val) = self.minutes {
   46     46   
            ser.write_integer(&REPLICATIONTIMEVALUE_MEMBER_MINUTES, *val)?;
   47     47   
        }
   48     48   
        Ok(())
   49     49   
    }
   50     50   
}
   51     51   
impl ReplicationTimeValue {
   52     52   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   53         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   54         -
        deserializer: &mut D,
          53  +
    pub fn deserialize(
          54  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   55     55   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   56     56   
        #[allow(unused_variables, unused_mut)]
   57     57   
        let mut builder = Self::builder();
   58     58   
        #[allow(
   59     59   
            unused_variables,
   60     60   
            unreachable_code,
   61     61   
            clippy::single_match,
   62     62   
            clippy::match_single_binding,
   63     63   
            clippy::diverging_sub_expression
   64     64   
        )]
   65         -
        deserializer.read_struct(&REPLICATIONTIMEVALUE_SCHEMA, (), |_, member, deser| {
          65  +
        deserializer.read_struct(&REPLICATIONTIMEVALUE_SCHEMA, &mut |member, deser| {
   66     66   
            match member.member_index() {
   67     67   
                Some(0) => {
   68     68   
                    builder.minutes = Some(deser.read_integer(member)?);
   69     69   
                }
   70     70   
                _ => {}
   71     71   
            }
   72     72   
            Ok(())
   73     73   
        })?;
   74     74   
        Ok(builder.build())
   75     75   
    }
   76     76   
}
          77  +
impl ReplicationTimeValue {
          78  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          79  +
    pub fn deserialize_with_response(
          80  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          81  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          82  +
        _status: u16,
          83  +
        _body: &[u8],
          84  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          85  +
        Self::deserialize(deserializer)
          86  +
    }
          87  +
}
   77     88   
impl ReplicationTimeValue {
   78     89   
    /// Creates a new builder-style object to manufacture [`ReplicationTimeValue`](crate::types::ReplicationTimeValue).
   79     90   
    pub fn builder() -> crate::types::builders::ReplicationTimeValueBuilder {
   80     91   
        crate::types::builders::ReplicationTimeValueBuilder::default()
   81     92   
    }
   82     93   
}
   83     94   
   84     95   
/// A builder for [`ReplicationTimeValue`](crate::types::ReplicationTimeValue).
   85     96   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   86     97   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_request_payment_configuration.rs

@@ -1,1 +110,121 @@
   18     18   
    "com.amazonaws.s3",
   19     19   
    "RequestPaymentConfiguration",
   20     20   
);
   21     21   
static REQUESTPAYMENTCONFIGURATION_MEMBER_PAYER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.s3#RequestPaymentConfiguration$Payer",
   24     24   
        "com.amazonaws.s3",
   25     25   
        "RequestPaymentConfiguration",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::String,
   28         -
    "payer",
          28  +
    "Payer",
   29     29   
    0,
   30     30   
);
   31     31   
static REQUESTPAYMENTCONFIGURATION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   32     32   
    REQUESTPAYMENTCONFIGURATION_SCHEMA_ID,
   33     33   
    ::aws_smithy_schema::ShapeType::Structure,
   34     34   
    &[&REQUESTPAYMENTCONFIGURATION_MEMBER_PAYER],
   35     35   
);
   36     36   
impl RequestPaymentConfiguration {
   37     37   
    /// The schema for this shape.
   38     38   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &REQUESTPAYMENTCONFIGURATION_SCHEMA;
   39     39   
}
   40     40   
impl ::aws_smithy_schema::serde::SerializableStruct for RequestPaymentConfiguration {
   41     41   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   42     42   
    fn serialize_members(
   43     43   
        &self,
   44     44   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   45     45   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   46     46   
        {
   47     47   
            let val = &self.payer;
   48     48   
            ser.write_string(&REQUESTPAYMENTCONFIGURATION_MEMBER_PAYER, val.as_str())?;
   49     49   
        }
   50     50   
        Ok(())
   51     51   
    }
   52     52   
}
   53     53   
impl RequestPaymentConfiguration {
   54     54   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   55         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   56         -
        deserializer: &mut D,
          55  +
    pub fn deserialize(
          56  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   57     57   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   58     58   
        #[allow(unused_variables, unused_mut)]
   59     59   
        let mut builder = Self::builder();
   60     60   
        #[allow(
   61     61   
            unused_variables,
   62     62   
            unreachable_code,
   63     63   
            clippy::single_match,
   64     64   
            clippy::match_single_binding,
   65     65   
            clippy::diverging_sub_expression
   66     66   
        )]
   67         -
        deserializer.read_struct(&REQUESTPAYMENTCONFIGURATION_SCHEMA, (), |_, member, deser| {
          67  +
        deserializer.read_struct(&REQUESTPAYMENTCONFIGURATION_SCHEMA, &mut |member, deser| {
   68     68   
            match member.member_index() {
   69     69   
                Some(0) => {
   70     70   
                    builder.payer = Some(crate::types::Payer::from(deser.read_string(member)?.as_str()));
   71     71   
                }
   72     72   
                _ => {}
   73     73   
            }
   74     74   
            Ok(())
   75     75   
        })?;
   76     76   
        builder
   77     77   
            .build()
   78     78   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   79     79   
    }
   80     80   
}
          81  +
impl RequestPaymentConfiguration {
          82  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          83  +
    pub fn deserialize_with_response(
          84  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          85  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          86  +
        _status: u16,
          87  +
        _body: &[u8],
          88  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          89  +
        Self::deserialize(deserializer)
          90  +
    }
          91  +
}
   81     92   
impl RequestPaymentConfiguration {
   82     93   
    /// Creates a new builder-style object to manufacture [`RequestPaymentConfiguration`](crate::types::RequestPaymentConfiguration).
   83     94   
    pub fn builder() -> crate::types::builders::RequestPaymentConfigurationBuilder {
   84     95   
        crate::types::builders::RequestPaymentConfigurationBuilder::default()
   85     96   
    }
   86     97   
}
   87     98   
   88     99   
/// A builder for [`RequestPaymentConfiguration`](crate::types::RequestPaymentConfiguration).
   89    100   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   90    101   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_request_progress.rs

@@ -1,1 +100,111 @@
   11     11   
    /// <p>Specifies whether periodic QueryProgress frames should be sent. Valid values: TRUE, FALSE. Default value: FALSE.</p>
   12     12   
    pub fn enabled(&self) -> ::std::option::Option<bool> {
   13     13   
        self.enabled
   14     14   
    }
   15     15   
}
   16     16   
static REQUESTPROGRESS_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   17     17   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#RequestProgress", "com.amazonaws.s3", "RequestProgress");
   18     18   
static REQUESTPROGRESS_MEMBER_ENABLED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   19     19   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#RequestProgress$Enabled", "com.amazonaws.s3", "RequestProgress"),
   20     20   
    ::aws_smithy_schema::ShapeType::Boolean,
   21         -
    "enabled",
          21  +
    "Enabled",
   22     22   
    0,
   23     23   
);
   24     24   
static REQUESTPROGRESS_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   25     25   
    REQUESTPROGRESS_SCHEMA_ID,
   26     26   
    ::aws_smithy_schema::ShapeType::Structure,
   27     27   
    &[&REQUESTPROGRESS_MEMBER_ENABLED],
   28     28   
);
   29     29   
impl RequestProgress {
   30     30   
    /// The schema for this shape.
   31     31   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &REQUESTPROGRESS_SCHEMA;
   32     32   
}
   33     33   
impl ::aws_smithy_schema::serde::SerializableStruct for RequestProgress {
   34     34   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   35     35   
    fn serialize_members(
   36     36   
        &self,
   37     37   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   38     38   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   39     39   
        if let Some(ref val) = self.enabled {
   40     40   
            ser.write_boolean(&REQUESTPROGRESS_MEMBER_ENABLED, *val)?;
   41     41   
        }
   42     42   
        Ok(())
   43     43   
    }
   44     44   
}
   45     45   
impl RequestProgress {
   46     46   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   47         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   48         -
        deserializer: &mut D,
          47  +
    pub fn deserialize(
          48  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   49     49   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   50     50   
        #[allow(unused_variables, unused_mut)]
   51     51   
        let mut builder = Self::builder();
   52     52   
        #[allow(
   53     53   
            unused_variables,
   54     54   
            unreachable_code,
   55     55   
            clippy::single_match,
   56     56   
            clippy::match_single_binding,
   57     57   
            clippy::diverging_sub_expression
   58     58   
        )]
   59         -
        deserializer.read_struct(&REQUESTPROGRESS_SCHEMA, (), |_, member, deser| {
          59  +
        deserializer.read_struct(&REQUESTPROGRESS_SCHEMA, &mut |member, deser| {
   60     60   
            match member.member_index() {
   61     61   
                Some(0) => {
   62     62   
                    builder.enabled = Some(deser.read_boolean(member)?);
   63     63   
                }
   64     64   
                _ => {}
   65     65   
            }
   66     66   
            Ok(())
   67     67   
        })?;
   68     68   
        Ok(builder.build())
   69     69   
    }
   70     70   
}
          71  +
impl RequestProgress {
          72  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          73  +
    pub fn deserialize_with_response(
          74  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          75  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          76  +
        _status: u16,
          77  +
        _body: &[u8],
          78  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          79  +
        Self::deserialize(deserializer)
          80  +
    }
          81  +
}
   71     82   
impl RequestProgress {
   72     83   
    /// Creates a new builder-style object to manufacture [`RequestProgress`](crate::types::RequestProgress).
   73     84   
    pub fn builder() -> crate::types::builders::RequestProgressBuilder {
   74     85   
        crate::types::builders::RequestProgressBuilder::default()
   75     86   
    }
   76     87   
}
   77     88   
   78     89   
/// A builder for [`RequestProgress`](crate::types::RequestProgress).
   79     90   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   80     91   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_restore_request.rs

@@ -41,41 +234,245 @@
   61     61   
    /// <p>Describes the location where the restore job's output is stored.</p>
   62     62   
    pub fn output_location(&self) -> ::std::option::Option<&crate::types::OutputLocation> {
   63     63   
        self.output_location.as_ref()
   64     64   
    }
   65     65   
}
   66     66   
static RESTOREREQUEST_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   67     67   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#RestoreRequest", "com.amazonaws.s3", "RestoreRequest");
   68     68   
static RESTOREREQUEST_MEMBER_DAYS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   69     69   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#RestoreRequest$Days", "com.amazonaws.s3", "RestoreRequest"),
   70     70   
    ::aws_smithy_schema::ShapeType::Integer,
   71         -
    "days",
          71  +
    "Days",
   72     72   
    0,
   73     73   
);
   74     74   
static RESTOREREQUEST_MEMBER_GLACIER_JOB_PARAMETERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   75     75   
    ::aws_smithy_schema::ShapeId::from_static(
   76     76   
        "com.amazonaws.s3#RestoreRequest$GlacierJobParameters",
   77     77   
        "com.amazonaws.s3",
   78     78   
        "RestoreRequest",
   79     79   
    ),
   80     80   
    ::aws_smithy_schema::ShapeType::Structure,
   81         -
    "glacier_job_parameters",
          81  +
    "GlacierJobParameters",
   82     82   
    1,
   83     83   
);
   84     84   
static RESTOREREQUEST_MEMBER_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   85     85   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#RestoreRequest$Type", "com.amazonaws.s3", "RestoreRequest"),
   86     86   
    ::aws_smithy_schema::ShapeType::String,
   87         -
    "r##type",
          87  +
    "Type",
   88     88   
    2,
   89     89   
);
   90     90   
static RESTOREREQUEST_MEMBER_TIER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   91     91   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#RestoreRequest$Tier", "com.amazonaws.s3", "RestoreRequest"),
   92     92   
    ::aws_smithy_schema::ShapeType::String,
   93         -
    "tier",
          93  +
    "Tier",
   94     94   
    3,
   95     95   
);
   96     96   
static RESTOREREQUEST_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   97     97   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#RestoreRequest$Description", "com.amazonaws.s3", "RestoreRequest"),
   98     98   
    ::aws_smithy_schema::ShapeType::String,
   99         -
    "description",
          99  +
    "Description",
  100    100   
    4,
  101    101   
);
  102    102   
static RESTOREREQUEST_MEMBER_SELECT_PARAMETERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  103    103   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#RestoreRequest$SelectParameters", "com.amazonaws.s3", "RestoreRequest"),
  104    104   
    ::aws_smithy_schema::ShapeType::Structure,
  105         -
    "select_parameters",
         105  +
    "SelectParameters",
  106    106   
    5,
  107    107   
);
  108    108   
static RESTOREREQUEST_MEMBER_OUTPUT_LOCATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  109    109   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#RestoreRequest$OutputLocation", "com.amazonaws.s3", "RestoreRequest"),
  110    110   
    ::aws_smithy_schema::ShapeType::Structure,
  111         -
    "output_location",
         111  +
    "OutputLocation",
  112    112   
    6,
  113    113   
);
  114    114   
static RESTOREREQUEST_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  115    115   
    RESTOREREQUEST_SCHEMA_ID,
  116    116   
    ::aws_smithy_schema::ShapeType::Structure,
  117    117   
    &[
  118    118   
        &RESTOREREQUEST_MEMBER_DAYS,
  119    119   
        &RESTOREREQUEST_MEMBER_GLACIER_JOB_PARAMETERS,
  120    120   
        &RESTOREREQUEST_MEMBER_TYPE,
  121    121   
        &RESTOREREQUEST_MEMBER_TIER,
  122    122   
        &RESTOREREQUEST_MEMBER_DESCRIPTION,
  123    123   
        &RESTOREREQUEST_MEMBER_SELECT_PARAMETERS,
  124    124   
        &RESTOREREQUEST_MEMBER_OUTPUT_LOCATION,
  125    125   
    ],
  126    126   
);
  127    127   
impl RestoreRequest {
  128    128   
    /// The schema for this shape.
  129    129   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &RESTOREREQUEST_SCHEMA;
  130    130   
}
  131    131   
impl ::aws_smithy_schema::serde::SerializableStruct for RestoreRequest {
  132    132   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  133    133   
    fn serialize_members(
  134    134   
        &self,
  135    135   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  136    136   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  137    137   
        if let Some(ref val) = self.days {
  138    138   
            ser.write_integer(&RESTOREREQUEST_MEMBER_DAYS, *val)?;
  139    139   
        }
  140    140   
        if let Some(ref val) = self.glacier_job_parameters {
  141    141   
            ser.write_struct(&RESTOREREQUEST_MEMBER_GLACIER_JOB_PARAMETERS, val)?;
  142    142   
        }
  143    143   
        if let Some(ref val) = self.r#type {
  144    144   
            ser.write_string(&RESTOREREQUEST_MEMBER_TYPE, val.as_str())?;
  145    145   
        }
  146    146   
        if let Some(ref val) = self.tier {
  147    147   
            ser.write_string(&RESTOREREQUEST_MEMBER_TIER, val.as_str())?;
  148    148   
        }
  149    149   
        if let Some(ref val) = self.description {
  150    150   
            ser.write_string(&RESTOREREQUEST_MEMBER_DESCRIPTION, val)?;
  151    151   
        }
  152    152   
        if let Some(ref val) = self.select_parameters {
  153    153   
            ser.write_struct(&RESTOREREQUEST_MEMBER_SELECT_PARAMETERS, val)?;
  154    154   
        }
  155    155   
        if let Some(ref val) = self.output_location {
  156    156   
            ser.write_struct(&RESTOREREQUEST_MEMBER_OUTPUT_LOCATION, val)?;
  157    157   
        }
  158    158   
        Ok(())
  159    159   
    }
  160    160   
}
  161    161   
impl RestoreRequest {
  162    162   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  163         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  164         -
        deserializer: &mut D,
         163  +
    pub fn deserialize(
         164  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  165    165   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  166    166   
        #[allow(unused_variables, unused_mut)]
  167    167   
        let mut builder = Self::builder();
  168    168   
        #[allow(
  169    169   
            unused_variables,
  170    170   
            unreachable_code,
  171    171   
            clippy::single_match,
  172    172   
            clippy::match_single_binding,
  173    173   
            clippy::diverging_sub_expression
  174    174   
        )]
  175         -
        deserializer.read_struct(&RESTOREREQUEST_SCHEMA, (), |_, member, deser| {
         175  +
        deserializer.read_struct(&RESTOREREQUEST_SCHEMA, &mut |member, deser| {
  176    176   
            match member.member_index() {
  177    177   
                Some(0) => {
  178    178   
                    builder.days = Some(deser.read_integer(member)?);
  179    179   
                }
  180    180   
                Some(1) => {
  181    181   
                    builder.glacier_job_parameters = Some(crate::types::GlacierJobParameters::deserialize(deser)?);
  182    182   
                }
  183    183   
                Some(2) => {
  184    184   
                    builder.r#type = Some(crate::types::RestoreRequestType::from(deser.read_string(member)?.as_str()));
  185    185   
                }
  186    186   
                Some(3) => {
  187    187   
                    builder.tier = Some(crate::types::Tier::from(deser.read_string(member)?.as_str()));
  188    188   
                }
  189    189   
                Some(4) => {
  190    190   
                    builder.description = Some(deser.read_string(member)?);
  191    191   
                }
  192    192   
                Some(5) => {
  193    193   
                    builder.select_parameters = Some(crate::types::SelectParameters::deserialize(deser)?);
  194    194   
                }
  195    195   
                Some(6) => {
  196    196   
                    builder.output_location = Some(crate::types::OutputLocation::deserialize(deser)?);
  197    197   
                }
  198    198   
                _ => {}
  199    199   
            }
  200    200   
            Ok(())
  201    201   
        })?;
  202    202   
        Ok(builder.build())
  203    203   
    }
  204    204   
}
         205  +
impl RestoreRequest {
         206  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         207  +
    pub fn deserialize_with_response(
         208  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         209  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         210  +
        _status: u16,
         211  +
        _body: &[u8],
         212  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         213  +
        Self::deserialize(deserializer)
         214  +
    }
         215  +
}
  205    216   
impl RestoreRequest {
  206    217   
    /// Creates a new builder-style object to manufacture [`RestoreRequest`](crate::types::RestoreRequest).
  207    218   
    pub fn builder() -> crate::types::builders::RestoreRequestBuilder {
  208    219   
        crate::types::builders::RestoreRequestBuilder::default()
  209    220   
    }
  210    221   
}
  211    222   
  212    223   
/// A builder for [`RestoreRequest`](crate::types::RestoreRequest).
  213    224   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  214    225   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_restore_status.rs

@@ -9,9 +130,141 @@
   29     29   
    /// <p><code>x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z"</code></p>
   30     30   
    pub fn restore_expiry_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
   31     31   
        self.restore_expiry_date.as_ref()
   32     32   
    }
   33     33   
}
   34     34   
static RESTORESTATUS_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   35     35   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#RestoreStatus", "com.amazonaws.s3", "RestoreStatus");
   36     36   
static RESTORESTATUS_MEMBER_IS_RESTORE_IN_PROGRESS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   37     37   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#RestoreStatus$IsRestoreInProgress", "com.amazonaws.s3", "RestoreStatus"),
   38     38   
    ::aws_smithy_schema::ShapeType::Boolean,
   39         -
    "is_restore_in_progress",
          39  +
    "IsRestoreInProgress",
   40     40   
    0,
   41     41   
);
   42     42   
static RESTORESTATUS_MEMBER_RESTORE_EXPIRY_DATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   43     43   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#RestoreStatus$RestoreExpiryDate", "com.amazonaws.s3", "RestoreStatus"),
   44     44   
    ::aws_smithy_schema::ShapeType::Timestamp,
   45         -
    "restore_expiry_date",
          45  +
    "RestoreExpiryDate",
   46     46   
    1,
   47     47   
);
   48     48   
static RESTORESTATUS_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     49   
    RESTORESTATUS_SCHEMA_ID,
   50     50   
    ::aws_smithy_schema::ShapeType::Structure,
   51     51   
    &[&RESTORESTATUS_MEMBER_IS_RESTORE_IN_PROGRESS, &RESTORESTATUS_MEMBER_RESTORE_EXPIRY_DATE],
   52     52   
);
   53     53   
impl RestoreStatus {
   54     54   
    /// The schema for this shape.
   55     55   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &RESTORESTATUS_SCHEMA;
   56     56   
}
   57     57   
impl ::aws_smithy_schema::serde::SerializableStruct for RestoreStatus {
   58     58   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   59     59   
    fn serialize_members(
   60     60   
        &self,
   61     61   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   62     62   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   63     63   
        if let Some(ref val) = self.is_restore_in_progress {
   64     64   
            ser.write_boolean(&RESTORESTATUS_MEMBER_IS_RESTORE_IN_PROGRESS, *val)?;
   65     65   
        }
   66     66   
        if let Some(ref val) = self.restore_expiry_date {
   67     67   
            ser.write_timestamp(&RESTORESTATUS_MEMBER_RESTORE_EXPIRY_DATE, val)?;
   68     68   
        }
   69     69   
        Ok(())
   70     70   
    }
   71     71   
}
   72     72   
impl RestoreStatus {
   73     73   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   74         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   75         -
        deserializer: &mut D,
          74  +
    pub fn deserialize(
          75  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   76     76   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   77     77   
        #[allow(unused_variables, unused_mut)]
   78     78   
        let mut builder = Self::builder();
   79     79   
        #[allow(
   80     80   
            unused_variables,
   81     81   
            unreachable_code,
   82     82   
            clippy::single_match,
   83     83   
            clippy::match_single_binding,
   84     84   
            clippy::diverging_sub_expression
   85     85   
        )]
   86         -
        deserializer.read_struct(&RESTORESTATUS_SCHEMA, (), |_, member, deser| {
          86  +
        deserializer.read_struct(&RESTORESTATUS_SCHEMA, &mut |member, deser| {
   87     87   
            match member.member_index() {
   88     88   
                Some(0) => {
   89     89   
                    builder.is_restore_in_progress = Some(deser.read_boolean(member)?);
   90     90   
                }
   91     91   
                Some(1) => {
   92     92   
                    builder.restore_expiry_date = Some(deser.read_timestamp(member)?);
   93     93   
                }
   94     94   
                _ => {}
   95     95   
            }
   96     96   
            Ok(())
   97     97   
        })?;
   98     98   
        Ok(builder.build())
   99     99   
    }
  100    100   
}
         101  +
impl RestoreStatus {
         102  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         103  +
    pub fn deserialize_with_response(
         104  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         105  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         106  +
        _status: u16,
         107  +
        _body: &[u8],
         108  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         109  +
        Self::deserialize(deserializer)
         110  +
    }
         111  +
}
  101    112   
impl RestoreStatus {
  102    113   
    /// Creates a new builder-style object to manufacture [`RestoreStatus`](crate::types::RestoreStatus).
  103    114   
    pub fn builder() -> crate::types::builders::RestoreStatusBuilder {
  104    115   
        crate::types::builders::RestoreStatusBuilder::default()
  105    116   
    }
  106    117   
}
  107    118   
  108    119   
/// A builder for [`RestoreStatus`](crate::types::RestoreStatus).
  109    120   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  110    121   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_routing_rule.rs

@@ -1,1 +118,129 @@
   17     17   
    /// <p>Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can specify a different error code to return.</p>
   18     18   
    pub fn redirect(&self) -> ::std::option::Option<&crate::types::Redirect> {
   19     19   
        self.redirect.as_ref()
   20     20   
    }
   21     21   
}
   22     22   
static ROUTINGRULE_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   23     23   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#RoutingRule", "com.amazonaws.s3", "RoutingRule");
   24     24   
static ROUTINGRULE_MEMBER_CONDITION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   25     25   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#RoutingRule$Condition", "com.amazonaws.s3", "RoutingRule"),
   26     26   
    ::aws_smithy_schema::ShapeType::Structure,
   27         -
    "condition",
          27  +
    "Condition",
   28     28   
    0,
   29     29   
);
   30     30   
static ROUTINGRULE_MEMBER_REDIRECT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   31     31   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#RoutingRule$Redirect", "com.amazonaws.s3", "RoutingRule"),
   32     32   
    ::aws_smithy_schema::ShapeType::Structure,
   33         -
    "redirect",
          33  +
    "Redirect",
   34     34   
    1,
   35     35   
);
   36     36   
static ROUTINGRULE_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   37     37   
    ROUTINGRULE_SCHEMA_ID,
   38     38   
    ::aws_smithy_schema::ShapeType::Structure,
   39     39   
    &[&ROUTINGRULE_MEMBER_CONDITION, &ROUTINGRULE_MEMBER_REDIRECT],
   40     40   
);
   41     41   
impl RoutingRule {
   42     42   
    /// The schema for this shape.
   43     43   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &ROUTINGRULE_SCHEMA;
   44     44   
}
   45     45   
impl ::aws_smithy_schema::serde::SerializableStruct for RoutingRule {
   46     46   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   47     47   
    fn serialize_members(
   48     48   
        &self,
   49     49   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   50     50   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   51     51   
        if let Some(ref val) = self.condition {
   52     52   
            ser.write_struct(&ROUTINGRULE_MEMBER_CONDITION, val)?;
   53     53   
        }
   54     54   
        if let Some(ref val) = self.redirect {
   55     55   
            ser.write_struct(&ROUTINGRULE_MEMBER_REDIRECT, val)?;
   56     56   
        }
   57     57   
        Ok(())
   58     58   
    }
   59     59   
}
   60     60   
impl RoutingRule {
   61     61   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   62         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   63         -
        deserializer: &mut D,
          62  +
    pub fn deserialize(
          63  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   64     64   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   65     65   
        #[allow(unused_variables, unused_mut)]
   66     66   
        let mut builder = Self::builder();
   67     67   
        #[allow(
   68     68   
            unused_variables,
   69     69   
            unreachable_code,
   70     70   
            clippy::single_match,
   71     71   
            clippy::match_single_binding,
   72     72   
            clippy::diverging_sub_expression
   73     73   
        )]
   74         -
        deserializer.read_struct(&ROUTINGRULE_SCHEMA, (), |_, member, deser| {
          74  +
        deserializer.read_struct(&ROUTINGRULE_SCHEMA, &mut |member, deser| {
   75     75   
            match member.member_index() {
   76     76   
                Some(0) => {
   77     77   
                    builder.condition = Some(crate::types::Condition::deserialize(deser)?);
   78     78   
                }
   79     79   
                Some(1) => {
   80     80   
                    builder.redirect = Some(crate::types::Redirect::deserialize(deser)?);
   81     81   
                }
   82     82   
                _ => {}
   83     83   
            }
   84     84   
            Ok(())
   85     85   
        })?;
   86     86   
        Ok(builder.build())
   87     87   
    }
   88     88   
}
          89  +
impl RoutingRule {
          90  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          91  +
    pub fn deserialize_with_response(
          92  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          93  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          94  +
        _status: u16,
          95  +
        _body: &[u8],
          96  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          97  +
        Self::deserialize(deserializer)
          98  +
    }
          99  +
}
   89    100   
impl RoutingRule {
   90    101   
    /// Creates a new builder-style object to manufacture [`RoutingRule`](crate::types::RoutingRule).
   91    102   
    pub fn builder() -> crate::types::builders::RoutingRuleBuilder {
   92    103   
        crate::types::builders::RoutingRuleBuilder::default()
   93    104   
    }
   94    105   
}
   95    106   
   96    107   
/// A builder for [`RoutingRule`](crate::types::RoutingRule).
   97    108   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   98    109   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_s3_key_filter.rs

@@ -1,1 +122,130 @@
   13     13   
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.filter_rules.is_none()`.
   14     14   
    pub fn filter_rules(&self) -> &[crate::types::FilterRule] {
   15     15   
        self.filter_rules.as_deref().unwrap_or_default()
   16     16   
    }
   17     17   
}
   18     18   
static S3KEYFILTER_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   19     19   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3KeyFilter", "com.amazonaws.s3", "S3KeyFilter");
   20     20   
static S3KEYFILTER_MEMBER_FILTER_RULES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   21     21   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3KeyFilter$FilterRules", "com.amazonaws.s3", "S3KeyFilter"),
   22     22   
    ::aws_smithy_schema::ShapeType::List,
   23         -
    "filter_rules",
          23  +
    "FilterRules",
   24     24   
    0,
   25     25   
)
   26     26   
.with_xml_name("FilterRule")
   27     27   
.with_xml_flattened();
   28     28   
static S3KEYFILTER_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   29     29   
    S3KEYFILTER_SCHEMA_ID,
   30     30   
    ::aws_smithy_schema::ShapeType::Structure,
   31     31   
    &[&S3KEYFILTER_MEMBER_FILTER_RULES],
   32     32   
);
   33     33   
impl S3KeyFilter {
   34     34   
    /// The schema for this shape.
   35     35   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &S3KEYFILTER_SCHEMA;
   36     36   
}
   37     37   
impl ::aws_smithy_schema::serde::SerializableStruct for S3KeyFilter {
   38     38   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   39     39   
    fn serialize_members(
   40     40   
        &self,
   41     41   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   42     42   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   43     43   
        if let Some(ref val) = self.filter_rules {
   44     44   
            ser.write_list(
   45     45   
                &S3KEYFILTER_MEMBER_FILTER_RULES,
   46     46   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   47     47   
                    for item in val {
   48     48   
                        ser.write_struct(crate::types::FilterRule::SCHEMA, item)?;
   49     49   
                    }
   50     50   
                    Ok(())
   51     51   
                },
   52     52   
            )?;
   53     53   
        }
   54     54   
        Ok(())
   55     55   
    }
   56     56   
}
   57     57   
impl S3KeyFilter {
   58     58   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   59         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   60         -
        deserializer: &mut D,
          59  +
    pub fn deserialize(
          60  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   61     61   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   62     62   
        #[allow(unused_variables, unused_mut)]
   63     63   
        let mut builder = Self::builder();
   64     64   
        #[allow(
   65     65   
            unused_variables,
   66     66   
            unreachable_code,
   67     67   
            clippy::single_match,
   68     68   
            clippy::match_single_binding,
   69     69   
            clippy::diverging_sub_expression
   70     70   
        )]
   71         -
        deserializer.read_struct(&S3KEYFILTER_SCHEMA, (), |_, member, deser| {
          71  +
        deserializer.read_struct(&S3KEYFILTER_SCHEMA, &mut |member, deser| {
   72     72   
            match member.member_index() {
   73     73   
                Some(0) => {
   74     74   
                    builder.filter_rules = Some({
   75         -
                        let container = if let Some(cap) = deser.container_size() {
   76         -
                            Vec::with_capacity(cap)
   77         -
                        } else {
   78         -
                            Vec::new()
   79         -
                        };
   80         -
                        deser.read_list(member, container, |mut list, deser| {
   81         -
                            list.push(crate::types::FilterRule::deserialize(deser)?);
   82         -
                            Ok(list)
   83         -
                        })?
          75  +
                        let mut container = Vec::new();
          76  +
                        deser.read_list(member, &mut |deser| {
          77  +
                            container.push(crate::types::FilterRule::deserialize(deser)?);
          78  +
                            Ok(())
          79  +
                        })?;
          80  +
                        container
   84     81   
                    });
   85     82   
                }
   86     83   
                _ => {}
   87     84   
            }
   88     85   
            Ok(())
   89     86   
        })?;
   90     87   
        Ok(builder.build())
   91     88   
    }
   92     89   
}
          90  +
impl S3KeyFilter {
          91  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          92  +
    pub fn deserialize_with_response(
          93  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          94  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          95  +
        _status: u16,
          96  +
        _body: &[u8],
          97  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          98  +
        Self::deserialize(deserializer)
          99  +
    }
         100  +
}
   93    101   
impl S3KeyFilter {
   94    102   
    /// Creates a new builder-style object to manufacture [`S3KeyFilter`](crate::types::S3KeyFilter).
   95    103   
    pub fn builder() -> crate::types::builders::S3KeyFilterBuilder {
   96    104   
        crate::types::builders::S3KeyFilterBuilder::default()
   97    105   
    }
   98    106   
}
   99    107   
  100    108   
/// A builder for [`S3KeyFilter`](crate::types::S3KeyFilter).
  101    109   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  102    110   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_s3_location.rs

@@ -39,39 +141,141 @@
   59     59   
    /// <p>The class of storage used to store the restore results.</p>
   60     60   
    pub fn storage_class(&self) -> ::std::option::Option<&crate::types::StorageClass> {
   61     61   
        self.storage_class.as_ref()
   62     62   
    }
   63     63   
}
   64     64   
static S3LOCATION_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   65     65   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3Location", "com.amazonaws.s3", "S3Location");
   66     66   
static S3LOCATION_MEMBER_BUCKET_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   67     67   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3Location$BucketName", "com.amazonaws.s3", "S3Location"),
   68     68   
    ::aws_smithy_schema::ShapeType::String,
   69         -
    "bucket_name",
          69  +
    "BucketName",
   70     70   
    0,
   71     71   
);
   72     72   
static S3LOCATION_MEMBER_PREFIX: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   73     73   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3Location$Prefix", "com.amazonaws.s3", "S3Location"),
   74     74   
    ::aws_smithy_schema::ShapeType::String,
   75         -
    "prefix",
          75  +
    "Prefix",
   76     76   
    1,
   77     77   
);
   78     78   
static S3LOCATION_MEMBER_ENCRYPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   79     79   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3Location$Encryption", "com.amazonaws.s3", "S3Location"),
   80     80   
    ::aws_smithy_schema::ShapeType::Structure,
   81         -
    "encryption",
          81  +
    "Encryption",
   82     82   
    2,
   83     83   
);
   84     84   
static S3LOCATION_MEMBER_CANNED_ACL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   85     85   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3Location$CannedACL", "com.amazonaws.s3", "S3Location"),
   86     86   
    ::aws_smithy_schema::ShapeType::String,
   87         -
    "canned_acl",
          87  +
    "CannedACL",
   88     88   
    3,
   89     89   
);
   90     90   
static S3LOCATION_MEMBER_ACCESS_CONTROL_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   91     91   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3Location$AccessControlList", "com.amazonaws.s3", "S3Location"),
   92     92   
    ::aws_smithy_schema::ShapeType::List,
   93         -
    "access_control_list",
          93  +
    "AccessControlList",
   94     94   
    4,
   95     95   
);
   96     96   
static S3LOCATION_MEMBER_TAGGING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   97     97   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3Location$Tagging", "com.amazonaws.s3", "S3Location"),
   98     98   
    ::aws_smithy_schema::ShapeType::Structure,
   99         -
    "tagging",
          99  +
    "Tagging",
  100    100   
    5,
  101    101   
);
  102    102   
static S3LOCATION_MEMBER_USER_METADATA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  103    103   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3Location$UserMetadata", "com.amazonaws.s3", "S3Location"),
  104    104   
    ::aws_smithy_schema::ShapeType::List,
  105         -
    "user_metadata",
         105  +
    "UserMetadata",
  106    106   
    6,
  107    107   
);
  108    108   
static S3LOCATION_MEMBER_STORAGE_CLASS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  109    109   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3Location$StorageClass", "com.amazonaws.s3", "S3Location"),
  110    110   
    ::aws_smithy_schema::ShapeType::String,
  111         -
    "storage_class",
         111  +
    "StorageClass",
  112    112   
    7,
  113    113   
);
  114    114   
static S3LOCATION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  115    115   
    S3LOCATION_SCHEMA_ID,
  116    116   
    ::aws_smithy_schema::ShapeType::Structure,
  117    117   
    &[
  118    118   
        &S3LOCATION_MEMBER_BUCKET_NAME,
  119    119   
        &S3LOCATION_MEMBER_PREFIX,
  120    120   
        &S3LOCATION_MEMBER_ENCRYPTION,
  121    121   
        &S3LOCATION_MEMBER_CANNED_ACL,
@@ -155,155 +281,288 @@
  175    175   
            )?;
  176    176   
        }
  177    177   
        if let Some(ref val) = self.storage_class {
  178    178   
            ser.write_string(&S3LOCATION_MEMBER_STORAGE_CLASS, val.as_str())?;
  179    179   
        }
  180    180   
        Ok(())
  181    181   
    }
  182    182   
}
  183    183   
impl S3Location {
  184    184   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  185         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  186         -
        deserializer: &mut D,
         185  +
    pub fn deserialize(
         186  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  187    187   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  188    188   
        #[allow(unused_variables, unused_mut)]
  189    189   
        let mut builder = Self::builder();
  190    190   
        #[allow(
  191    191   
            unused_variables,
  192    192   
            unreachable_code,
  193    193   
            clippy::single_match,
  194    194   
            clippy::match_single_binding,
  195    195   
            clippy::diverging_sub_expression
  196    196   
        )]
  197         -
        deserializer.read_struct(&S3LOCATION_SCHEMA, (), |_, member, deser| {
         197  +
        deserializer.read_struct(&S3LOCATION_SCHEMA, &mut |member, deser| {
  198    198   
            match member.member_index() {
  199    199   
                Some(0) => {
  200    200   
                    builder.bucket_name = Some(deser.read_string(member)?);
  201    201   
                }
  202    202   
                Some(1) => {
  203    203   
                    builder.prefix = Some(deser.read_string(member)?);
  204    204   
                }
  205    205   
                Some(2) => {
  206    206   
                    builder.encryption = Some(crate::types::Encryption::deserialize(deser)?);
  207    207   
                }
  208    208   
                Some(3) => {
  209    209   
                    builder.canned_acl = Some(crate::types::ObjectCannedAcl::from(deser.read_string(member)?.as_str()));
  210    210   
                }
  211    211   
                Some(4) => {
  212    212   
                    builder.access_control_list = Some({
  213         -
                        let container = if let Some(cap) = deser.container_size() {
  214         -
                            Vec::with_capacity(cap)
  215         -
                        } else {
  216         -
                            Vec::new()
  217         -
                        };
  218         -
                        deser.read_list(member, container, |mut list, deser| {
  219         -
                            list.push(crate::types::Grant::deserialize(deser)?);
  220         -
                            Ok(list)
  221         -
                        })?
         213  +
                        let mut container = Vec::new();
         214  +
                        deser.read_list(member, &mut |deser| {
         215  +
                            container.push(crate::types::Grant::deserialize(deser)?);
         216  +
                            Ok(())
         217  +
                        })?;
         218  +
                        container
  222    219   
                    });
  223    220   
                }
  224    221   
                Some(5) => {
  225    222   
                    builder.tagging = Some(crate::types::Tagging::deserialize(deser)?);
  226    223   
                }
  227    224   
                Some(6) => {
  228    225   
                    builder.user_metadata = Some({
  229         -
                        let container = if let Some(cap) = deser.container_size() {
  230         -
                            Vec::with_capacity(cap)
  231         -
                        } else {
  232         -
                            Vec::new()
  233         -
                        };
  234         -
                        deser.read_list(member, container, |mut list, deser| {
  235         -
                            list.push(crate::types::MetadataEntry::deserialize(deser)?);
  236         -
                            Ok(list)
  237         -
                        })?
         226  +
                        let mut container = Vec::new();
         227  +
                        deser.read_list(member, &mut |deser| {
         228  +
                            container.push(crate::types::MetadataEntry::deserialize(deser)?);
         229  +
                            Ok(())
         230  +
                        })?;
         231  +
                        container
  238    232   
                    });
  239    233   
                }
  240    234   
                Some(7) => {
  241    235   
                    builder.storage_class = Some(crate::types::StorageClass::from(deser.read_string(member)?.as_str()));
  242    236   
                }
  243    237   
                _ => {}
  244    238   
            }
  245    239   
            Ok(())
  246    240   
        })?;
         241  +
        builder.bucket_name = builder.bucket_name.or(Some(String::new()));
         242  +
        builder.prefix = builder.prefix.or(Some(String::new()));
  247    243   
        builder
  248    244   
            .build()
  249    245   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  250    246   
    }
  251    247   
}
         248  +
impl S3Location {
         249  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         250  +
    pub fn deserialize_with_response(
         251  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         252  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         253  +
        _status: u16,
         254  +
        _body: &[u8],
         255  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         256  +
        Self::deserialize(deserializer)
         257  +
    }
         258  +
}
  252    259   
impl S3Location {
  253    260   
    /// Creates a new builder-style object to manufacture [`S3Location`](crate::types::S3Location).
  254    261   
    pub fn builder() -> crate::types::builders::S3LocationBuilder {
  255    262   
        crate::types::builders::S3LocationBuilder::default()
  256    263   
    }
  257    264   
}
  258    265   
  259    266   
/// A builder for [`S3Location`](crate::types::S3Location).
  260    267   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  261    268   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_s3_tables_destination.rs

@@ -5,5 +134,147 @@
   25     25   
}
   26     26   
static S3TABLESDESTINATION_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   27     27   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#S3TablesDestination", "com.amazonaws.s3", "S3TablesDestination");
   28     28   
static S3TABLESDESTINATION_MEMBER_TABLE_BUCKET_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   29     29   
    ::aws_smithy_schema::ShapeId::from_static(
   30     30   
        "com.amazonaws.s3#S3TablesDestination$TableBucketArn",
   31     31   
        "com.amazonaws.s3",
   32     32   
        "S3TablesDestination",
   33     33   
    ),
   34     34   
    ::aws_smithy_schema::ShapeType::String,
   35         -
    "table_bucket_arn",
          35  +
    "TableBucketArn",
   36     36   
    0,
   37     37   
);
   38     38   
static S3TABLESDESTINATION_MEMBER_TABLE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.s3#S3TablesDestination$TableName",
   41     41   
        "com.amazonaws.s3",
   42     42   
        "S3TablesDestination",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::String,
   45         -
    "table_name",
          45  +
    "TableName",
   46     46   
    1,
   47     47   
);
   48     48   
static S3TABLESDESTINATION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     49   
    S3TABLESDESTINATION_SCHEMA_ID,
   50     50   
    ::aws_smithy_schema::ShapeType::Structure,
   51     51   
    &[&S3TABLESDESTINATION_MEMBER_TABLE_BUCKET_ARN, &S3TABLESDESTINATION_MEMBER_TABLE_NAME],
   52     52   
);
   53     53   
impl S3TablesDestination {
   54     54   
    /// The schema for this shape.
   55     55   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &S3TABLESDESTINATION_SCHEMA;
   56     56   
}
   57     57   
impl ::aws_smithy_schema::serde::SerializableStruct for S3TablesDestination {
   58     58   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   59     59   
    fn serialize_members(
   60     60   
        &self,
   61     61   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   62     62   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   63     63   
        {
   64     64   
            let val = &self.table_bucket_arn;
   65     65   
            ser.write_string(&S3TABLESDESTINATION_MEMBER_TABLE_BUCKET_ARN, val)?;
   66     66   
        }
   67     67   
        {
   68     68   
            let val = &self.table_name;
   69     69   
            ser.write_string(&S3TABLESDESTINATION_MEMBER_TABLE_NAME, val)?;
   70     70   
        }
   71     71   
        Ok(())
   72     72   
    }
   73     73   
}
   74     74   
impl S3TablesDestination {
   75     75   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   76         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   77         -
        deserializer: &mut D,
          76  +
    pub fn deserialize(
          77  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   78     78   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   79     79   
        #[allow(unused_variables, unused_mut)]
   80     80   
        let mut builder = Self::builder();
   81     81   
        #[allow(
   82     82   
            unused_variables,
   83     83   
            unreachable_code,
   84     84   
            clippy::single_match,
   85     85   
            clippy::match_single_binding,
   86     86   
            clippy::diverging_sub_expression
   87     87   
        )]
   88         -
        deserializer.read_struct(&S3TABLESDESTINATION_SCHEMA, (), |_, member, deser| {
          88  +
        deserializer.read_struct(&S3TABLESDESTINATION_SCHEMA, &mut |member, deser| {
   89     89   
            match member.member_index() {
   90     90   
                Some(0) => {
   91     91   
                    builder.table_bucket_arn = Some(deser.read_string(member)?);
   92     92   
                }
   93     93   
                Some(1) => {
   94     94   
                    builder.table_name = Some(deser.read_string(member)?);
   95     95   
                }
   96     96   
                _ => {}
   97     97   
            }
   98     98   
            Ok(())
   99     99   
        })?;
         100  +
        builder.table_bucket_arn = builder.table_bucket_arn.or(Some(String::new()));
         101  +
        builder.table_name = builder.table_name.or(Some(String::new()));
  100    102   
        builder
  101    103   
            .build()
  102    104   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  103    105   
    }
  104    106   
}
         107  +
impl S3TablesDestination {
         108  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         109  +
    pub fn deserialize_with_response(
         110  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         111  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         112  +
        _status: u16,
         113  +
        _body: &[u8],
         114  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         115  +
        Self::deserialize(deserializer)
         116  +
    }
         117  +
}
  105    118   
impl S3TablesDestination {
  106    119   
    /// Creates a new builder-style object to manufacture [`S3TablesDestination`](crate::types::S3TablesDestination).
  107    120   
    pub fn builder() -> crate::types::builders::S3TablesDestinationBuilder {
  108    121   
        crate::types::builders::S3TablesDestinationBuilder::default()
  109    122   
    }
  110    123   
}
  111    124   
  112    125   
/// A builder for [`S3TablesDestination`](crate::types::S3TablesDestination).
  113    126   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  114    127   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_s3_tables_destination_result.rs

@@ -22,22 +190,205 @@
   42     42   
    "com.amazonaws.s3",
   43     43   
    "S3TablesDestinationResult",
   44     44   
);
   45     45   
static S3TABLESDESTINATIONRESULT_MEMBER_TABLE_BUCKET_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   46     46   
    ::aws_smithy_schema::ShapeId::from_static(
   47     47   
        "com.amazonaws.s3#S3TablesDestinationResult$TableBucketArn",
   48     48   
        "com.amazonaws.s3",
   49     49   
        "S3TablesDestinationResult",
   50     50   
    ),
   51     51   
    ::aws_smithy_schema::ShapeType::String,
   52         -
    "table_bucket_arn",
          52  +
    "TableBucketArn",
   53     53   
    0,
   54     54   
);
   55     55   
static S3TABLESDESTINATIONRESULT_MEMBER_TABLE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   56     56   
    ::aws_smithy_schema::ShapeId::from_static(
   57     57   
        "com.amazonaws.s3#S3TablesDestinationResult$TableName",
   58     58   
        "com.amazonaws.s3",
   59     59   
        "S3TablesDestinationResult",
   60     60   
    ),
   61     61   
    ::aws_smithy_schema::ShapeType::String,
   62         -
    "table_name",
          62  +
    "TableName",
   63     63   
    1,
   64     64   
);
   65     65   
static S3TABLESDESTINATIONRESULT_MEMBER_TABLE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   66     66   
    ::aws_smithy_schema::ShapeId::from_static(
   67     67   
        "com.amazonaws.s3#S3TablesDestinationResult$TableArn",
   68     68   
        "com.amazonaws.s3",
   69     69   
        "S3TablesDestinationResult",
   70     70   
    ),
   71     71   
    ::aws_smithy_schema::ShapeType::String,
   72         -
    "table_arn",
          72  +
    "TableArn",
   73     73   
    2,
   74     74   
);
   75     75   
static S3TABLESDESTINATIONRESULT_MEMBER_TABLE_NAMESPACE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   76     76   
    ::aws_smithy_schema::ShapeId::from_static(
   77     77   
        "com.amazonaws.s3#S3TablesDestinationResult$TableNamespace",
   78     78   
        "com.amazonaws.s3",
   79     79   
        "S3TablesDestinationResult",
   80     80   
    ),
   81     81   
    ::aws_smithy_schema::ShapeType::String,
   82         -
    "table_namespace",
          82  +
    "TableNamespace",
   83     83   
    3,
   84     84   
);
   85     85   
static S3TABLESDESTINATIONRESULT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   86     86   
    S3TABLESDESTINATIONRESULT_SCHEMA_ID,
   87     87   
    ::aws_smithy_schema::ShapeType::Structure,
   88     88   
    &[
   89     89   
        &S3TABLESDESTINATIONRESULT_MEMBER_TABLE_BUCKET_ARN,
   90     90   
        &S3TABLESDESTINATIONRESULT_MEMBER_TABLE_NAME,
   91     91   
        &S3TABLESDESTINATIONRESULT_MEMBER_TABLE_ARN,
   92     92   
        &S3TABLESDESTINATIONRESULT_MEMBER_TABLE_NAMESPACE,
   93     93   
    ],
   94     94   
);
   95     95   
impl S3TablesDestinationResult {
   96     96   
    /// The schema for this shape.
   97     97   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &S3TABLESDESTINATIONRESULT_SCHEMA;
   98     98   
}
   99     99   
impl ::aws_smithy_schema::serde::SerializableStruct for S3TablesDestinationResult {
  100    100   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  101    101   
    fn serialize_members(
  102    102   
        &self,
  103    103   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  104    104   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  105    105   
        {
  106    106   
            let val = &self.table_bucket_arn;
  107    107   
            ser.write_string(&S3TABLESDESTINATIONRESULT_MEMBER_TABLE_BUCKET_ARN, val)?;
  108    108   
        }
  109    109   
        {
  110    110   
            let val = &self.table_name;
  111    111   
            ser.write_string(&S3TABLESDESTINATIONRESULT_MEMBER_TABLE_NAME, val)?;
  112    112   
        }
  113    113   
        {
  114    114   
            let val = &self.table_arn;
  115    115   
            ser.write_string(&S3TABLESDESTINATIONRESULT_MEMBER_TABLE_ARN, val)?;
  116    116   
        }
  117    117   
        {
  118    118   
            let val = &self.table_namespace;
  119    119   
            ser.write_string(&S3TABLESDESTINATIONRESULT_MEMBER_TABLE_NAMESPACE, val)?;
  120    120   
        }
  121    121   
        Ok(())
  122    122   
    }
  123    123   
}
  124    124   
impl S3TablesDestinationResult {
  125    125   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  126         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  127         -
        deserializer: &mut D,
         126  +
    pub fn deserialize(
         127  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  128    128   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  129    129   
        #[allow(unused_variables, unused_mut)]
  130    130   
        let mut builder = Self::builder();
  131    131   
        #[allow(
  132    132   
            unused_variables,
  133    133   
            unreachable_code,
  134    134   
            clippy::single_match,
  135    135   
            clippy::match_single_binding,
  136    136   
            clippy::diverging_sub_expression
  137    137   
        )]
  138         -
        deserializer.read_struct(&S3TABLESDESTINATIONRESULT_SCHEMA, (), |_, member, deser| {
         138  +
        deserializer.read_struct(&S3TABLESDESTINATIONRESULT_SCHEMA, &mut |member, deser| {
  139    139   
            match member.member_index() {
  140    140   
                Some(0) => {
  141    141   
                    builder.table_bucket_arn = Some(deser.read_string(member)?);
  142    142   
                }
  143    143   
                Some(1) => {
  144    144   
                    builder.table_name = Some(deser.read_string(member)?);
  145    145   
                }
  146    146   
                Some(2) => {
  147    147   
                    builder.table_arn = Some(deser.read_string(member)?);
  148    148   
                }
  149    149   
                Some(3) => {
  150    150   
                    builder.table_namespace = Some(deser.read_string(member)?);
  151    151   
                }
  152    152   
                _ => {}
  153    153   
            }
  154    154   
            Ok(())
  155    155   
        })?;
         156  +
        builder.table_bucket_arn = builder.table_bucket_arn.or(Some(String::new()));
         157  +
        builder.table_name = builder.table_name.or(Some(String::new()));
         158  +
        builder.table_arn = builder.table_arn.or(Some(String::new()));
         159  +
        builder.table_namespace = builder.table_namespace.or(Some(String::new()));
  156    160   
        builder
  157    161   
            .build()
  158    162   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  159    163   
    }
  160    164   
}
         165  +
impl S3TablesDestinationResult {
         166  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         167  +
    pub fn deserialize_with_response(
         168  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         169  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         170  +
        _status: u16,
         171  +
        _body: &[u8],
         172  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         173  +
        Self::deserialize(deserializer)
         174  +
    }
         175  +
}
  161    176   
impl S3TablesDestinationResult {
  162    177   
    /// Creates a new builder-style object to manufacture [`S3TablesDestinationResult`](crate::types::S3TablesDestinationResult).
  163    178   
    pub fn builder() -> crate::types::builders::S3TablesDestinationResultBuilder {
  164    179   
        crate::types::builders::S3TablesDestinationResultBuilder::default()
  165    180   
    }
  166    181   
}
  167    182   
  168    183   
/// A builder for [`S3TablesDestinationResult`](crate::types::S3TablesDestinationResult).
  169    184   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  170    185   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_scan_range.rs

@@ -13,13 +134,145 @@
   33     33   
    /// </scanrange></code> means scan the last 50 bytes.</p>
   34     34   
    pub fn end(&self) -> ::std::option::Option<i64> {
   35     35   
        self.end
   36     36   
    }
   37     37   
}
   38     38   
static SCANRANGE_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   39     39   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#ScanRange", "com.amazonaws.s3", "ScanRange");
   40     40   
static SCANRANGE_MEMBER_START: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   41     41   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#ScanRange$Start", "com.amazonaws.s3", "ScanRange"),
   42     42   
    ::aws_smithy_schema::ShapeType::Long,
   43         -
    "start",
          43  +
    "Start",
   44     44   
    0,
   45     45   
);
   46     46   
static SCANRANGE_MEMBER_END: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   47     47   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.s3#ScanRange$End", "com.amazonaws.s3", "ScanRange"),
   48     48   
    ::aws_smithy_schema::ShapeType::Long,
   49         -
    "end",
          49  +
    "End",
   50     50   
    1,
   51     51   
);
   52     52   
static SCANRANGE_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   53     53   
    SCANRANGE_SCHEMA_ID,
   54     54   
    ::aws_smithy_schema::ShapeType::Structure,
   55     55   
    &[&SCANRANGE_MEMBER_START, &SCANRANGE_MEMBER_END],
   56     56   
);
   57     57   
impl ScanRange {
   58     58   
    /// The schema for this shape.
   59     59   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &SCANRANGE_SCHEMA;
   60     60   
}
   61     61   
impl ::aws_smithy_schema::serde::SerializableStruct for ScanRange {
   62     62   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   63     63   
    fn serialize_members(
   64     64   
        &self,
   65     65   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   66     66   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   67     67   
        if let Some(ref val) = self.start {
   68     68   
            ser.write_long(&SCANRANGE_MEMBER_START, *val)?;
   69     69   
        }
   70     70   
        if let Some(ref val) = self.end {
   71     71   
            ser.write_long(&SCANRANGE_MEMBER_END, *val)?;
   72     72   
        }
   73     73   
        Ok(())
   74     74   
    }
   75     75   
}
   76     76   
impl ScanRange {
   77     77   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   78         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   79         -
        deserializer: &mut D,
          78  +
    pub fn deserialize(
          79  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   80     80   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   81     81   
        #[allow(unused_variables, unused_mut)]
   82     82   
        let mut builder = Self::builder();
   83     83   
        #[allow(
   84     84   
            unused_variables,
   85     85   
            unreachable_code,
   86     86   
            clippy::single_match,
   87     87   
            clippy::match_single_binding,
   88     88   
            clippy::diverging_sub_expression
   89     89   
        )]
   90         -
        deserializer.read_struct(&SCANRANGE_SCHEMA, (), |_, member, deser| {
          90  +
        deserializer.read_struct(&SCANRANGE_SCHEMA, &mut |member, deser| {
   91     91   
            match member.member_index() {
   92     92   
                Some(0) => {
   93     93   
                    builder.start = Some(deser.read_long(member)?);
   94     94   
                }
   95     95   
                Some(1) => {
   96     96   
                    builder.end = Some(deser.read_long(member)?);
   97     97   
                }
   98     98   
                _ => {}
   99     99   
            }
  100    100   
            Ok(())
  101    101   
        })?;
  102    102   
        Ok(builder.build())
  103    103   
    }
  104    104   
}
         105  +
impl ScanRange {
         106  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         107  +
    pub fn deserialize_with_response(
         108  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         109  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         110  +
        _status: u16,
         111  +
        _body: &[u8],
         112  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         113  +
        Self::deserialize(deserializer)
         114  +
    }
         115  +
}
  105    116   
impl ScanRange {
  106    117   
    /// Creates a new builder-style object to manufacture [`ScanRange`](crate::types::ScanRange).
  107    118   
    pub fn builder() -> crate::types::builders::ScanRangeBuilder {
  108    119   
        crate::types::builders::ScanRangeBuilder::default()
  109    120   
    }
  110    121   
}
  111    122   
  112    123   
/// A builder for [`ScanRange`](crate::types::ScanRange).
  113    124   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  114    125   
#[non_exhaustive]