Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943

Files changed:

tmp-codegen-diff/codegen-client-test/rest_xml_namespace/rust-client-codegen/src/error_meta.rs

@@ -1,1 +72,106 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ServiceErrorGenerator.kt:252 */
    2      3   
/// All possible error types for this service.
           4  +
/* RustType.kt:516 */
    3      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    4      7   
#[derive(::std::fmt::Debug)]
    5         -
pub enum Error {
    6         -
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
           8  +
pub /* ServiceErrorGenerator.kt:257 */ enum Error {
           9  +
    /// /* ServiceErrorGenerator.kt:264 */An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
          10  +
    /* ServiceErrorGenerator.kt:320 */
    7     11   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
    8     12   
    variable wildcard pattern and check `.code()`:
    9     13   
     \
   10     14   
       `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
   11     15   
     \
   12     16   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
   13         -
    Unhandled(crate::error::sealed_unhandled::Unhandled),
          17  +
    /* ServiceErrorGenerator.kt:266 */
          18  +
    Unhandled(crate::error::sealed_unhandled::Unhandled), /* ServiceErrorGenerator.kt:257 */
   14     19   
}
          20  +
/* ServiceErrorGenerator.kt:131 */
   15     21   
impl ::std::fmt::Display for Error {
          22  +
    /* ServiceErrorGenerator.kt:132 */
   16     23   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          24  +
        /* ServiceErrorGenerator.kt:133 */
   17     25   
        match self {
          26  +
            /* ServiceErrorGenerator.kt:137 */
   18     27   
            Error::Unhandled(_) => {
   19     28   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
   20     29   
                    write!(f, "unhandled error ({code})")
   21     30   
                } else {
   22     31   
                    f.write_str("unhandled error")
   23     32   
                }
   24         -
            }
          33  +
            } /* ServiceErrorGenerator.kt:133 */
   25     34   
        }
          35  +
        /* ServiceErrorGenerator.kt:132 */
   26     36   
    }
          37  +
    /* ServiceErrorGenerator.kt:131 */
   27     38   
}
          39  +
/* ServiceErrorGenerator.kt:154 */
   28     40   
impl From<::aws_smithy_types::error::operation::BuildError> for Error {
   29     41   
    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
   30     42   
        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
   31     43   
            source: value.into(),
   32     44   
            meta: ::std::default::Default::default(),
   33     45   
        })
   34     46   
    }
   35     47   
}
          48  +
/* ServiceErrorGenerator.kt:223 */
   36     49   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
   37     50   
    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
   38     51   
        match self {
   39     52   
            Self::Unhandled(inner) => &inner.meta,
   40     53   
        }
   41     54   
    }
   42     55   
}
          56  +
/* ServiceErrorGenerator.kt:174 */
   43     57   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::simple_scalar_properties::SimpleScalarPropertiesError, R>> for Error
   44     58   
where
   45     59   
    R: Send + Sync + std::fmt::Debug + 'static,
   46     60   
{
          61  +
    /* ServiceErrorGenerator.kt:179 */
   47     62   
    fn from(
   48     63   
        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::simple_scalar_properties::SimpleScalarPropertiesError, R>,
   49     64   
    ) -> Self {
          65  +
        /* ServiceErrorGenerator.kt:184 */
   50     66   
        match err {
          67  +
            /* ServiceErrorGenerator.kt:185 */
   51     68   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
          69  +
            /* ServiceErrorGenerator.kt:186 */
   52     70   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
   53     71   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
   54     72   
                source: err.into(),
   55     73   
            }),
          74  +
            /* ServiceErrorGenerator.kt:184 */
   56     75   
        }
          76  +
        /* ServiceErrorGenerator.kt:179 */
   57     77   
    }
          78  +
    /* ServiceErrorGenerator.kt:174 */
   58     79   
}
          80  +
/* ServiceErrorGenerator.kt:202 */
   59     81   
impl From<crate::operation::simple_scalar_properties::SimpleScalarPropertiesError> for Error {
          82  +
    /* ServiceErrorGenerator.kt:203 */
   60     83   
    fn from(err: crate::operation::simple_scalar_properties::SimpleScalarPropertiesError) -> Self {
          84  +
        /* ServiceErrorGenerator.kt:204 */
   61     85   
        match err {
          86  +
            /* ServiceErrorGenerator.kt:212 */
   62     87   
            crate::operation::simple_scalar_properties::SimpleScalarPropertiesError::Unhandled(inner) => Error::Unhandled(inner),
          88  +
            /* ServiceErrorGenerator.kt:204 */
   63     89   
        }
          90  +
        /* ServiceErrorGenerator.kt:203 */
   64     91   
    }
          92  +
    /* ServiceErrorGenerator.kt:202 */
   65     93   
}
          94  +
/* ServiceErrorGenerator.kt:115 */
   66     95   
impl ::std::error::Error for Error {
          96  +
    /* ServiceErrorGenerator.kt:116 */
   67     97   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
          98  +
        /* ServiceErrorGenerator.kt:117 */
   68     99   
        match self {
   69         -
            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
         100  +
            /* ServiceErrorGenerator.kt:121 */
         101  +
            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source), /* ServiceErrorGenerator.kt:117 */
   70    102   
        }
         103  +
        /* ServiceErrorGenerator.kt:116 */
   71    104   
    }
         105  +
    /* ServiceErrorGenerator.kt:115 */
   72    106   
}

tmp-codegen-diff/codegen-client-test/rest_xml_namespace/rust-client-codegen/src/lib.rs

@@ -24,24 +136,145 @@
   44     44   
//! The [`operation`](crate::operation) module has a submodule for every API, and in each submodule
   45     45   
//! is the input, output, and error type for that API, as well as builders to construct each of those.
   46     46   
//!
   47     47   
//! There is a top-level [`Error`](crate::Error) type that encompasses all the errors that the
   48     48   
//! client can return. Any other error type can be converted to this `Error` type via the
   49     49   
//! [`From`](std::convert::From) trait.
   50     50   
//!
   51     51   
//! The other modules within this crate are not required for normal usage.
   52     52   
   53     53   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
          54  +
/* ServiceErrorGenerator.kt:127 */
   54     55   
pub use error_meta::Error;
   55     56   
          57  +
/* RustType.kt:516 */
   56     58   
#[doc(inline)]
          59  +
/* ServiceGenerator.kt:63 */
   57     60   
pub use config::Config;
   58     61   
   59         -
/// Client for calling Sample Rest Xml Protocol Service With Namespace.
          62  +
/// /* FluentClientDocs.kt:24 */Client for calling Sample Rest Xml Protocol Service With Namespace.
   60     63   
///
   61     64   
/// ## Constructing a `Client`
   62     65   
///
   63     66   
/// A `Client` requires a config in order to be constructed. With the default set of Cargo features,
   64     67   
/// this config will only require an endpoint to produce a functioning client. However, some Smithy
   65     68   
/// features will require additional configuration. For example, `@auth` requires some kind of identity
   66     69   
/// or identity resolver to be configured. The config is used to customize various aspects of the client,
   67     70   
/// such as:
   68     71   
///
   69     72   
///   - [The underlying HTTP client](crate::config::Builder::http_client)
   70     73   
///   - [Retries](crate::config::Builder::retry_config)
   71     74   
///   - [Timeouts](crate::config::Builder::timeout_config)
   72     75   
///   - [... and more](crate::config::Builder)
   73     76   
///
   74     77   
/// Below is a minimal example of how to create a client:
   75     78   
///
   76     79   
/// ```rust,no_run
   77     80   
/// let config = rest_xml_namespace::Config::builder()
   78     81   
///     .endpoint_url("http://localhost:1234")
   79     82   
///     .build();
   80     83   
/// let client = rest_xml_namespace::Client::from_conf(config);
   81     84   
/// ```
   82     85   
///
   83     86   
/// _Note:_ Client construction is expensive due to connection thread pool initialization, and should be done
   84     87   
/// once at application start-up. Cloning a client is cheap (it's just an [`Arc`](std::sync::Arc) under the hood),
   85     88   
/// so creating it once at start-up and cloning it around the application as needed is recommended.
   86         -
/// # Using the `Client`
          89  +
/// /* FluentClientDocs.kt:79 */# Using the `Client`
   87     90   
///
   88     91   
/// A client has a function for every operation that can be performed by the service.
   89     92   
/// For example, the [`SimpleScalarProperties`](crate::operation::simple_scalar_properties) operation has
   90     93   
/// a [`Client::simple_scalar_properties`], function which returns a builder for that operation.
   91     94   
/// The fluent builder ultimately has a `send()` function that returns an async future that
   92     95   
/// returns a result, as illustrated below:
   93     96   
///
   94     97   
/// ```rust,ignore
   95     98   
/// let result = client.simple_scalar_properties()
   96     99   
///     .foo("example")
   97    100   
///     .send()
   98    101   
///     .await;
   99    102   
/// ```
  100    103   
///
  101    104   
/// The underlying HTTP requests that get made by this can be modified with the `customize_operation`
  102    105   
/// function on the fluent builder. See the [`customize`](crate::client::customize) module for more
  103    106   
/// information.
  104    107   
pub mod client;
  105    108   
  106         -
/// Configuration for Sample Rest Xml Protocol Service With Namespace.
         109  +
/// /* ClientRustModule.kt:121 */Configuration for Sample Rest Xml Protocol Service With Namespace.
  107    110   
pub mod config;
  108    111   
  109         -
/// Common errors and error handling utilities.
         112  +
/// /* ClientRustModule.kt:121 */Common errors and error handling utilities.
  110    113   
pub mod error;
  111    114   
         115  +
/* RustModule.kt:172 */
  112    116   
mod error_meta;
  113    117   
  114         -
/// Information about this crate.
         118  +
/// /* ClientRustModule.kt:121 */Information about this crate.
  115    119   
pub mod meta;
  116    120   
  117         -
/// Primitives such as `Blob` or `DateTime` used by other types.
         121  +
/// /* ClientRustModule.kt:121 */Primitives such as `Blob` or `DateTime` used by other types.
  118    122   
pub mod primitives;
  119    123   
  120         -
/// Data structures used by operation inputs/outputs.
         124  +
/// /* ClientRustModule.kt:121 */Data structures used by operation inputs/outputs.
  121    125   
pub mod types;
  122    126   
         127  +
/* RustModule.kt:172 */
  123    128   
mod auth_plugin;
  124    129   
  125         -
/// All operations that this crate can perform.
         130  +
/// /* ClientRustModule.kt:121 */All operations that this crate can perform.
  126    131   
pub mod operation;
  127    132   
  128    133   
pub(crate) mod protocol_serde;
  129    134   
         135  +
/* RustModule.kt:172 */
  130    136   
mod sdk_feature_tracker;
  131    137   
         138  +
/* RustModule.kt:172 */
  132    139   
mod serialization_settings;
  133    140   
         141  +
/* RustModule.kt:172 */
  134    142   
mod rest_xml_wrapped_errors;
  135    143   
         144  +
/* FluentClientDecorator.kt:76 */
  136    145   
pub use client::Client;

tmp-codegen-diff/codegen-client-test/rest_xml_namespace/rust-client-codegen/src/meta.rs

@@ -1,1 +4,5 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
           3  +
/* CrateVersionCustomization.kt:23 */
    3      4   
/// Crate version number.
    4      5   
pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION");

tmp-codegen-diff/codegen-client-test/rest_xml_namespace/rust-client-codegen/src/operation.rs

@@ -1,1 +4,4 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// Types for the `SimpleScalarProperties` operation.
           2  +
/* CodegenDelegator.kt:51 */
           3  +
/// /* CodegenDelegator.kt:51 */Types for the `SimpleScalarProperties` operation.
    4      4   
pub mod simple_scalar_properties;

tmp-codegen-diff/codegen-client-test/rest_xml_namespace/rust-client-codegen/src/operation/simple_scalar_properties.rs

@@ -1,1 +40,49 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* OperationGenerator.kt:77 */
    2      3   
/// Orchestration and serialization glue logic for `SimpleScalarProperties`.
           4  +
/* RustType.kt:516 */
    3      5   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
           6  +
/* RustType.kt:516 */
    4      7   
#[non_exhaustive]
           8  +
/* OperationGenerator.kt:84 */
    5      9   
pub struct SimpleScalarProperties;
          10  +
/* OperationGenerator.kt:85 */
    6     11   
impl SimpleScalarProperties {
    7         -
    /// Creates a new `SimpleScalarProperties`
          12  +
    /// /* OperationGenerator.kt:86 */Creates a new `SimpleScalarProperties`
          13  +
    /* OperationGenerator.kt:87 */
    8     14   
    pub fn new() -> Self {
          15  +
        /* OperationGenerator.kt:88 */
    9     16   
        Self
          17  +
        /* OperationGenerator.kt:87 */
   10     18   
    }
          19  +
    /* OperationGenerator.kt:138 */
   11     20   
    pub(crate) async fn orchestrate(
   12     21   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     22   
        input: crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput,
   14     23   
    ) -> ::std::result::Result<
   15     24   
        crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput,
   16     25   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     26   
            crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
   18     27   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     28   
        >,
   20     29   
    > {
@@ -63,72 +272,289 @@
   83     92   
                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
   84     93   
            }
   85     94   
            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
   86     95   
                config_override,
   87     96   
                client_config.config.clone(),
   88     97   
                &client_config.runtime_components,
   89     98   
            ));
   90     99   
        }
   91    100   
        runtime_plugins
   92    101   
    }
         102  +
    /* OperationGenerator.kt:85 */
   93    103   
}
         104  +
/* OperationRuntimePluginGenerator.kt:55 */
   94    105   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for SimpleScalarProperties {
   95    106   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
   96    107   
        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("SimpleScalarProperties");
   97    108   
   98    109   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
   99    110   
            SimpleScalarPropertiesRequestSerializer,
  100    111   
        ));
  101    112   
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
  102    113   
            SimpleScalarPropertiesResponseDeserializer,
  103    114   
        ));
  104    115   
  105    116   
        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
  106    117   
            ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
  107    118   
        ));
  108    119   
  109    120   
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
  110    121   
            "SimpleScalarProperties",
  111    122   
            "Rest Xml Protocol Namespace",
  112    123   
        ));
  113    124   
  114    125   
        ::std::option::Option::Some(cfg.freeze())
  115    126   
    }
  116    127   
  117    128   
    fn runtime_components(
  118    129   
        &self,
  119    130   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  120    131   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  121    132   
        #[allow(unused_mut)]
  122    133   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("SimpleScalarProperties")
  123    134   
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  124    135   
            .with_interceptor(SimpleScalarPropertiesEndpointParamsInterceptor)
  125    136   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  126    137   
                crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
  127    138   
            >::new())
  128    139   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  129    140   
                crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
  130    141   
            >::new());
  131    142   
  132    143   
        ::std::borrow::Cow::Owned(rcb)
  133    144   
    }
  134    145   
}
  135    146   
         147  +
/* ResponseDeserializerGenerator.kt:64 */
  136    148   
#[derive(Debug)]
  137    149   
struct SimpleScalarPropertiesResponseDeserializer;
  138    150   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for SimpleScalarPropertiesResponseDeserializer {
  139    151   
    fn deserialize_nonstreaming(
  140    152   
        &self,
  141    153   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
  142    154   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  143    155   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  144    156   
        let headers = response.headers();
  145    157   
        let body = response.body().bytes().expect("body loaded");
  146    158   
        #[allow(unused_mut)]
  147    159   
        let mut force_error = false;
  148    160   
  149    161   
        let parse_result = if !success && status != 200 || force_error {
  150    162   
            crate::protocol_serde::shape_simple_scalar_properties::de_simple_scalar_properties_http_error(status, headers, body)
  151    163   
        } else {
  152    164   
            crate::protocol_serde::shape_simple_scalar_properties::de_simple_scalar_properties_http_response(status, headers, body)
  153    165   
        };
  154    166   
        crate::protocol_serde::type_erase_result(parse_result)
  155    167   
    }
  156    168   
}
         169  +
/* RequestSerializerGenerator.kt:67 */
  157    170   
#[derive(Debug)]
  158    171   
struct SimpleScalarPropertiesRequestSerializer;
  159    172   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for SimpleScalarPropertiesRequestSerializer {
  160    173   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  161    174   
    fn serialize_input(
  162    175   
        &self,
  163    176   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  164    177   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  165    178   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  166    179   
        let input = input
  167    180   
            .downcast::<crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput>()
  168    181   
            .expect("correct type");
  169    182   
        let _header_serialization_settings = _cfg
  170    183   
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  171    184   
            .cloned()
  172    185   
            .unwrap_or_default();
  173    186   
        let mut request_builder = {
  174    187   
            fn uri_base(
  175    188   
                _input: &crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput,
  176    189   
                output: &mut ::std::string::String,
  177    190   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  178    191   
                use ::std::fmt::Write as _;
  179    192   
                ::std::write!(output, "/SimpleScalarProperties").expect("formatting should succeed");
  180    193   
                ::std::result::Result::Ok(())
  181    194   
            }
  182    195   
            #[allow(clippy::unnecessary_wraps)]
  183    196   
            fn update_http_builder(
  184    197   
                input: &crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput,
  185    198   
                builder: ::http::request::Builder,
  186    199   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  187    200   
                let mut uri = ::std::string::String::new();
  188    201   
                uri_base(input, &mut uri)?;
  189    202   
                let builder = crate::protocol_serde::shape_simple_scalar_properties::ser_simple_scalar_properties_headers(input, builder)?;
  190    203   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  191    204   
            }
  192    205   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  193    206   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/xml");
  194    207   
            builder
  195    208   
        };
  196    209   
        let body = ::aws_smithy_types::body::SdkBody::from(
  197    210   
            crate::protocol_serde::shape_simple_scalar_properties::ser_simple_scalar_properties_op_input(&input)?,
  198    211   
        );
  199    212   
        if let Some(content_length) = body.content_length() {
  200    213   
            let content_length = content_length.to_string();
  201    214   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  202    215   
        }
  203    216   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  204    217   
    }
  205    218   
}
         219  +
/* EndpointParamsInterceptorGenerator.kt:86 */
  206    220   
#[derive(Debug)]
  207    221   
struct SimpleScalarPropertiesEndpointParamsInterceptor;
  208    222   
  209    223   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for SimpleScalarPropertiesEndpointParamsInterceptor {
  210    224   
    fn name(&self) -> &'static str {
  211    225   
        "SimpleScalarPropertiesEndpointParamsInterceptor"
  212    226   
    }
  213    227   
  214    228   
    fn read_before_execution(
  215    229   
        &self,
  216    230   
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
  217    231   
            '_,
  218    232   
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
  219    233   
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
  220    234   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
  221    235   
        >,
  222    236   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  223    237   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  224    238   
        let _input = context
  225    239   
            .input()
  226    240   
            .downcast_ref::<SimpleScalarPropertiesInput>()
  227    241   
            .ok_or("failed to downcast to SimpleScalarPropertiesInput")?;
  228    242   
  229    243   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  230    244   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  231    245   
        })?;
  232    246   
        cfg.interceptor_state()
  233    247   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
  234    248   
        ::std::result::Result::Ok(())
  235    249   
    }
  236    250   
}
  237    251   
  238    252   
// The get_* functions below are generated from JMESPath expressions in the
  239    253   
// operationContextParams trait. They target the operation's input shape.
  240    254   
         255  +
/* RustType.kt:516 */
  241    256   
#[allow(unreachable_code, unused_variables)]
         257  +
/* RustType.kt:516 */
  242    258   
#[cfg(test)]
         259  +
/* ProtocolTestGenerator.kt:98 */
  243    260   
mod simple_scalar_properties_test {
  244    261   
    use ::aws_smithy_protocol_test::FloatEquals;
  245    262   
  246    263   
    /// Serializes simple scalar properties
  247    264   
    /// Test ID: XmlNamespaceSimpleScalarProperties
  248    265   
    #[::tokio::test]
  249    266   
    #[::tracing_test::traced_test]
  250    267   
    async fn xml_namespace_simple_scalar_properties_request() {
  251    268   
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  252    269   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
@@ -343,360 +472,548 @@
  363    380   
            parsed.float_value
  364    381   
        );
  365    382   
        ::pretty_assertions::assert_eq!(parsed.nested, expected_output.nested, "Unexpected value for `nested`");
  366    383   
        assert!(
  367    384   
            parsed.double_value.float_equals(&expected_output.double_value),
  368    385   
            "Unexpected value for `double_value` {:?} vs. {:?}",
  369    386   
            expected_output.double_value,
  370    387   
            parsed.double_value
  371    388   
        );
  372    389   
    }
         390  +
         391  +
    /* ProtocolTestGenerator.kt:98 */
  373    392   
}
  374    393   
         394  +
/* OperationErrorGenerator.kt:79 */
  375    395   
/// Error type for the `SimpleScalarPropertiesError` operation.
         396  +
/* RustType.kt:516 */
  376    397   
#[non_exhaustive]
         398  +
/* RustType.kt:516 */
  377    399   
#[derive(::std::fmt::Debug)]
  378         -
pub enum SimpleScalarPropertiesError {
         400  +
pub /* OperationErrorGenerator.kt:81 */ enum SimpleScalarPropertiesError {
         401  +
    /* OperationErrorGenerator.kt:88 */
  379    402   
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
  380    403   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
  381    404   
    variable wildcard pattern and check `.code()`:
  382    405   
     \
  383    406   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
  384    407   
     \
  385    408   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-SimpleScalarPropertiesError) for what information is available for the error.")]
  386    409   
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         410  +
    /* OperationErrorGenerator.kt:81 */
  387    411   
}
         412  +
/* OperationErrorGenerator.kt:218 */
  388    413   
impl SimpleScalarPropertiesError {
         414  +
    /* OperationErrorGenerator.kt:219 */
  389    415   
    /// Creates the `SimpleScalarPropertiesError::Unhandled` variant from any error type.
  390    416   
    pub fn unhandled(
  391    417   
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
  392    418   
    ) -> Self {
  393    419   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  394    420   
            source: err.into(),
  395    421   
            meta: ::std::default::Default::default(),
  396    422   
        })
  397    423   
    }
  398    424   
  399    425   
    /// Creates the `SimpleScalarPropertiesError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
  400    426   
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  401    427   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  402    428   
            source: err.clone().into(),
  403    429   
            meta: err,
  404    430   
        })
  405    431   
    }
  406         -
    ///
         432  +
    /// /* OperationErrorGenerator.kt:236 */
  407    433   
    /// Returns error metadata, which includes the error code, message,
  408    434   
    /// request ID, and potentially additional information.
  409    435   
    ///
         436  +
    /* OperationErrorGenerator.kt:242 */
  410    437   
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         438  +
        /* OperationErrorGenerator.kt:243 */
  411    439   
        match self {
  412         -
            Self::Unhandled(e) => &e.meta,
         440  +
            /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
         441  +
            /* OperationErrorGenerator.kt:243 */
  413    442   
        }
         443  +
        /* OperationErrorGenerator.kt:242 */
  414    444   
    }
         445  +
    /* OperationErrorGenerator.kt:218 */
  415    446   
}
         447  +
/* OperationErrorGenerator.kt:269 */
  416    448   
impl ::std::error::Error for SimpleScalarPropertiesError {
         449  +
    /* OperationErrorGenerator.kt:270 */
  417    450   
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         451  +
        /* OperationErrorGenerator.kt:318 */
  418    452   
        match self {
  419         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         453  +
            /* OperationErrorGenerator.kt:326 */
         454  +
            Self::Unhandled(_inner) => {
         455  +
                /* OperationErrorGenerator.kt:279 */
         456  +
                ::std::option::Option::Some(&*_inner.source)
         457  +
                /* OperationErrorGenerator.kt:326 */
         458  +
            } /* OperationErrorGenerator.kt:318 */
  420    459   
        }
         460  +
        /* OperationErrorGenerator.kt:270 */
  421    461   
    }
         462  +
    /* OperationErrorGenerator.kt:269 */
  422    463   
}
         464  +
/* OperationErrorGenerator.kt:133 */
  423    465   
impl ::std::fmt::Display for SimpleScalarPropertiesError {
         466  +
    /* OperationErrorGenerator.kt:134 */
  424    467   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         468  +
        /* OperationErrorGenerator.kt:318 */
  425    469   
        match self {
         470  +
            /* OperationErrorGenerator.kt:326 */
  426    471   
            Self::Unhandled(_inner) => {
         472  +
                /* OperationErrorGenerator.kt:139 */
  427    473   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
  428    474   
                    write!(f, "unhandled error ({code})")
  429    475   
                } else {
  430    476   
                    f.write_str("unhandled error")
  431    477   
                }
  432         -
            }
         478  +
                /* OperationErrorGenerator.kt:326 */
         479  +
            } /* OperationErrorGenerator.kt:318 */
  433    480   
        }
         481  +
        /* OperationErrorGenerator.kt:134 */
  434    482   
    }
         483  +
    /* OperationErrorGenerator.kt:133 */
  435    484   
}
         485  +
/* OperationErrorGenerator.kt:182 */
  436    486   
impl ::aws_smithy_types::retry::ProvideErrorKind for SimpleScalarPropertiesError {
         487  +
    /* OperationErrorGenerator.kt:186 */
  437    488   
    fn code(&self) -> ::std::option::Option<&str> {
         489  +
        /* OperationErrorGenerator.kt:187 */
  438    490   
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         491  +
        /* OperationErrorGenerator.kt:186 */
  439    492   
    }
         493  +
    /* OperationErrorGenerator.kt:190 */
  440    494   
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         495  +
        /* OperationErrorGenerator.kt:197 */
  441    496   
        ::std::option::Option::None
         497  +
        /* OperationErrorGenerator.kt:190 */
  442    498   
    }
         499  +
    /* OperationErrorGenerator.kt:182 */
  443    500   
}
         501  +
/* OperationErrorGenerator.kt:163 */
  444    502   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for SimpleScalarPropertiesError {
         503  +
    /* OperationErrorGenerator.kt:164 */
  445    504   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         505  +
        /* OperationErrorGenerator.kt:318 */
  446    506   
        match self {
  447         -
            Self::Unhandled(_inner) => &_inner.meta,
         507  +
            /* OperationErrorGenerator.kt:326 */
         508  +
            Self::Unhandled(_inner) => {
         509  +
                /* OperationErrorGenerator.kt:168 */
         510  +
                &_inner.meta
         511  +
                /* OperationErrorGenerator.kt:326 */
         512  +
            } /* OperationErrorGenerator.kt:318 */
  448    513   
        }
         514  +
        /* OperationErrorGenerator.kt:164 */
  449    515   
    }
         516  +
    /* OperationErrorGenerator.kt:163 */
  450    517   
}
         518  +
/* OperationErrorGenerator.kt:109 */
  451    519   
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for SimpleScalarPropertiesError {
         520  +
    /* OperationErrorGenerator.kt:110 */
  452    521   
    fn create_unhandled_error(
  453    522   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  454    523   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  455    524   
    ) -> Self {
         525  +
        /* OperationErrorGenerator.kt:121 */
  456    526   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  457    527   
            source,
  458    528   
            meta: meta.unwrap_or_default(),
  459    529   
        })
         530  +
        /* OperationErrorGenerator.kt:110 */
  460    531   
    }
         532  +
    /* OperationErrorGenerator.kt:109 */
  461    533   
}
  462    534   
         535  +
/* CodegenDelegator.kt:255 */
  463    536   
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_output::SimpleScalarPropertiesOutput;
  464    537   
         538  +
/* CodegenDelegator.kt:255 */
  465    539   
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_input::SimpleScalarPropertiesInput;
  466    540   
         541  +
/* RustModule.kt:172 */
  467    542   
mod _simple_scalar_properties_input;
  468    543   
         544  +
/* RustModule.kt:172 */
  469    545   
mod _simple_scalar_properties_output;
  470    546   
  471         -
/// Builders
         547  +
/// /* CodegenDelegator.kt:51 */Builders
  472    548   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_xml_namespace/rust-client-codegen/src/operation/simple_scalar_properties/_simple_scalar_properties_input.rs

@@ -1,1 +274,501 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* StructureGenerator.kt:197 */
    2      3   
#[allow(missing_docs)] // documentation missing in model
           4  +
/* RustType.kt:516 */
    3      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    4      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5         -
pub struct SimpleScalarPropertiesInput {
           8  +
pub /* StructureGenerator.kt:201 */ struct SimpleScalarPropertiesInput {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub foo: ::std::option::Option<::std::string::String>,
          12  +
    /* StructureGenerator.kt:231 */
    8     13   
    #[allow(missing_docs)] // documentation missing in model
    9     14   
    pub string_value: ::std::option::Option<::std::string::String>,
          15  +
    /* StructureGenerator.kt:231 */
   10     16   
    #[allow(missing_docs)] // documentation missing in model
   11     17   
    pub true_boolean_value: ::std::option::Option<bool>,
          18  +
    /* StructureGenerator.kt:231 */
   12     19   
    #[allow(missing_docs)] // documentation missing in model
   13     20   
    pub false_boolean_value: ::std::option::Option<bool>,
   14         -
    #[allow(missing_docs)] // documentation missing in model
          21  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   15     22   
    pub byte_value: ::std::option::Option<i8>,
   16         -
    #[allow(missing_docs)] // documentation missing in model
          23  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   17     24   
    pub short_value: ::std::option::Option<i16>,
   18         -
    #[allow(missing_docs)] // documentation missing in model
          25  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   19     26   
    pub integer_value: ::std::option::Option<i32>,
   20         -
    #[allow(missing_docs)] // documentation missing in model
          27  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   21     28   
    pub long_value: ::std::option::Option<i64>,
   22         -
    #[allow(missing_docs)] // documentation missing in model
          29  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   23     30   
    pub float_value: ::std::option::Option<f32>,
          31  +
    /* StructureGenerator.kt:231 */
   24     32   
    #[allow(missing_docs)] // documentation missing in model
   25     33   
    pub nested: ::std::option::Option<crate::types::NestedWithNamespace>,
          34  +
    /* StructureGenerator.kt:231 */
   26     35   
    #[allow(missing_docs)] // documentation missing in model
   27     36   
    pub double_value: ::std::option::Option<f64>,
          37  +
    /* StructureGenerator.kt:201 */
   28     38   
}
          39  +
/* StructureGenerator.kt:135 */
   29     40   
impl SimpleScalarPropertiesInput {
          41  +
    /* StructureGenerator.kt:231 */
   30     42   
    #[allow(missing_docs)] // documentation missing in model
          43  +
                           /* StructureGenerator.kt:166 */
   31     44   
    pub fn foo(&self) -> ::std::option::Option<&str> {
          45  +
        /* StructureGenerator.kt:169 */
   32     46   
        self.foo.as_deref()
          47  +
        /* StructureGenerator.kt:166 */
   33     48   
    }
          49  +
    /* StructureGenerator.kt:231 */
   34     50   
    #[allow(missing_docs)] // documentation missing in model
          51  +
                           /* StructureGenerator.kt:166 */
   35     52   
    pub fn string_value(&self) -> ::std::option::Option<&str> {
          53  +
        /* StructureGenerator.kt:169 */
   36     54   
        self.string_value.as_deref()
          55  +
        /* StructureGenerator.kt:166 */
   37     56   
    }
          57  +
    /* StructureGenerator.kt:231 */
   38     58   
    #[allow(missing_docs)] // documentation missing in model
          59  +
                           /* StructureGenerator.kt:166 */
   39     60   
    pub fn true_boolean_value(&self) -> ::std::option::Option<bool> {
          61  +
        /* StructureGenerator.kt:168 */
   40     62   
        self.true_boolean_value
          63  +
        /* StructureGenerator.kt:166 */
   41     64   
    }
          65  +
    /* StructureGenerator.kt:231 */
   42     66   
    #[allow(missing_docs)] // documentation missing in model
          67  +
                           /* StructureGenerator.kt:166 */
   43     68   
    pub fn false_boolean_value(&self) -> ::std::option::Option<bool> {
          69  +
        /* StructureGenerator.kt:168 */
   44     70   
        self.false_boolean_value
          71  +
        /* StructureGenerator.kt:166 */
   45     72   
    }
          73  +
    /* StructureGenerator.kt:231 */
   46     74   
    #[allow(missing_docs)] // documentation missing in model
          75  +
                           /* StructureGenerator.kt:166 */
   47     76   
    pub fn byte_value(&self) -> ::std::option::Option<i8> {
          77  +
        /* StructureGenerator.kt:168 */
   48     78   
        self.byte_value
          79  +
        /* StructureGenerator.kt:166 */
   49     80   
    }
          81  +
    /* StructureGenerator.kt:231 */
   50     82   
    #[allow(missing_docs)] // documentation missing in model
          83  +
                           /* StructureGenerator.kt:166 */
   51     84   
    pub fn short_value(&self) -> ::std::option::Option<i16> {
          85  +
        /* StructureGenerator.kt:168 */
   52     86   
        self.short_value
          87  +
        /* StructureGenerator.kt:166 */
   53     88   
    }
          89  +
    /* StructureGenerator.kt:231 */
   54     90   
    #[allow(missing_docs)] // documentation missing in model
          91  +
                           /* StructureGenerator.kt:166 */
   55     92   
    pub fn integer_value(&self) -> ::std::option::Option<i32> {
          93  +
        /* StructureGenerator.kt:168 */
   56     94   
        self.integer_value
          95  +
        /* StructureGenerator.kt:166 */
   57     96   
    }
          97  +
    /* StructureGenerator.kt:231 */
   58     98   
    #[allow(missing_docs)] // documentation missing in model
          99  +
                           /* StructureGenerator.kt:166 */
   59    100   
    pub fn long_value(&self) -> ::std::option::Option<i64> {
         101  +
        /* StructureGenerator.kt:168 */
   60    102   
        self.long_value
         103  +
        /* StructureGenerator.kt:166 */
   61    104   
    }
         105  +
    /* StructureGenerator.kt:231 */
   62    106   
    #[allow(missing_docs)] // documentation missing in model
         107  +
                           /* StructureGenerator.kt:166 */
   63    108   
    pub fn float_value(&self) -> ::std::option::Option<f32> {
         109  +
        /* StructureGenerator.kt:168 */
   64    110   
        self.float_value
         111  +
        /* StructureGenerator.kt:166 */
   65    112   
    }
         113  +
    /* StructureGenerator.kt:231 */
   66    114   
    #[allow(missing_docs)] // documentation missing in model
         115  +
                           /* StructureGenerator.kt:166 */
   67    116   
    pub fn nested(&self) -> ::std::option::Option<&crate::types::NestedWithNamespace> {
         117  +
        /* StructureGenerator.kt:170 */
   68    118   
        self.nested.as_ref()
         119  +
        /* StructureGenerator.kt:166 */
   69    120   
    }
         121  +
    /* StructureGenerator.kt:231 */
   70    122   
    #[allow(missing_docs)] // documentation missing in model
         123  +
                           /* StructureGenerator.kt:166 */
   71    124   
    pub fn double_value(&self) -> ::std::option::Option<f64> {
         125  +
        /* StructureGenerator.kt:168 */
   72    126   
        self.double_value
         127  +
        /* StructureGenerator.kt:166 */
   73    128   
    }
         129  +
    /* StructureGenerator.kt:135 */
   74    130   
}
         131  +
/* ClientCodegenVisitor.kt:237 */
   75    132   
impl SimpleScalarPropertiesInput {
   76         -
    /// Creates a new builder-style object to manufacture [`SimpleScalarPropertiesInput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput).
         133  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`SimpleScalarPropertiesInput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput).
         134  +
    /* BuilderGenerator.kt:175 */
   77    135   
    pub fn builder() -> crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesInputBuilder {
         136  +
        /* BuilderGenerator.kt:176 */
   78    137   
        crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesInputBuilder::default()
         138  +
        /* BuilderGenerator.kt:175 */
   79    139   
    }
         140  +
    /* ClientCodegenVisitor.kt:237 */
   80    141   
}
   81    142   
   82         -
/// A builder for [`SimpleScalarPropertiesInput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput).
         143  +
/// /* BuilderGenerator.kt:342 */A builder for [`SimpleScalarPropertiesInput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput).
         144  +
/* RustType.kt:516 */
   83    145   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         146  +
/* RustType.kt:516 */
   84    147   
#[non_exhaustive]
         148  +
/* BuilderGenerator.kt:345 */
   85    149   
pub struct SimpleScalarPropertiesInputBuilder {
   86         -
    pub(crate) foo: ::std::option::Option<::std::string::String>,
   87         -
    pub(crate) string_value: ::std::option::Option<::std::string::String>,
   88         -
    pub(crate) true_boolean_value: ::std::option::Option<bool>,
   89         -
    pub(crate) false_boolean_value: ::std::option::Option<bool>,
   90         -
    pub(crate) byte_value: ::std::option::Option<i8>,
   91         -
    pub(crate) short_value: ::std::option::Option<i16>,
   92         -
    pub(crate) integer_value: ::std::option::Option<i32>,
   93         -
    pub(crate) long_value: ::std::option::Option<i64>,
   94         -
    pub(crate) float_value: ::std::option::Option<f32>,
   95         -
    pub(crate) nested: ::std::option::Option<crate::types::NestedWithNamespace>,
   96         -
    pub(crate) double_value: ::std::option::Option<f64>,
         150  +
    /* BuilderGenerator.kt:275 */ pub(crate) foo: ::std::option::Option<::std::string::String>,
         151  +
    /* BuilderGenerator.kt:275 */ pub(crate) string_value: ::std::option::Option<::std::string::String>,
         152  +
    /* BuilderGenerator.kt:275 */ pub(crate) true_boolean_value: ::std::option::Option<bool>,
         153  +
    /* BuilderGenerator.kt:275 */ pub(crate) false_boolean_value: ::std::option::Option<bool>,
         154  +
    /* BuilderGenerator.kt:275 */ pub(crate) byte_value: ::std::option::Option<i8>,
         155  +
    /* BuilderGenerator.kt:275 */ pub(crate) short_value: ::std::option::Option<i16>,
         156  +
    /* BuilderGenerator.kt:275 */ pub(crate) integer_value: ::std::option::Option<i32>,
         157  +
    /* BuilderGenerator.kt:275 */ pub(crate) long_value: ::std::option::Option<i64>,
         158  +
    /* BuilderGenerator.kt:275 */ pub(crate) float_value: ::std::option::Option<f32>,
         159  +
    /* BuilderGenerator.kt:275 */ pub(crate) nested: ::std::option::Option<crate::types::NestedWithNamespace>,
         160  +
    /* BuilderGenerator.kt:275 */ pub(crate) double_value: ::std::option::Option<f64>,
         161  +
    /* BuilderGenerator.kt:345 */
   97    162   
}
         163  +
/* BuilderGenerator.kt:355 */
   98    164   
impl SimpleScalarPropertiesInputBuilder {
         165  +
    /* BuilderGenerator.kt:286 */
   99    166   
    #[allow(missing_docs)] // documentation missing in model
         167  +
                           /* BuilderGenerator.kt:291 */
  100    168   
    pub fn foo(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         169  +
        /* BuilderGenerator.kt:292 */
  101    170   
        self.foo = ::std::option::Option::Some(input.into());
         171  +
        /* BuilderGenerator.kt:293 */
  102    172   
        self
         173  +
        /* BuilderGenerator.kt:291 */
  103    174   
    }
         175  +
    /* BuilderGenerator.kt:312 */
  104    176   
    #[allow(missing_docs)] // documentation missing in model
         177  +
                           /* BuilderGenerator.kt:314 */
  105    178   
    pub fn set_foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         179  +
        /* BuilderGenerator.kt:315 */
  106    180   
        self.foo = input;
  107    181   
        self
         182  +
        /* BuilderGenerator.kt:314 */
  108    183   
    }
         184  +
    /* BuilderGenerator.kt:334 */
  109    185   
    #[allow(missing_docs)] // documentation missing in model
         186  +
                           /* BuilderGenerator.kt:336 */
  110    187   
    pub fn get_foo(&self) -> &::std::option::Option<::std::string::String> {
         188  +
        /* BuilderGenerator.kt:337 */
  111    189   
        &self.foo
         190  +
        /* BuilderGenerator.kt:336 */
  112    191   
    }
         192  +
    /* BuilderGenerator.kt:286 */
  113    193   
    #[allow(missing_docs)] // documentation missing in model
         194  +
                           /* BuilderGenerator.kt:291 */
  114    195   
    pub fn string_value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         196  +
        /* BuilderGenerator.kt:292 */
  115    197   
        self.string_value = ::std::option::Option::Some(input.into());
         198  +
        /* BuilderGenerator.kt:293 */
  116    199   
        self
         200  +
        /* BuilderGenerator.kt:291 */
  117    201   
    }
         202  +
    /* BuilderGenerator.kt:312 */
  118    203   
    #[allow(missing_docs)] // documentation missing in model
         204  +
                           /* BuilderGenerator.kt:314 */
  119    205   
    pub fn set_string_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         206  +
        /* BuilderGenerator.kt:315 */
  120    207   
        self.string_value = input;
  121    208   
        self
         209  +
        /* BuilderGenerator.kt:314 */
  122    210   
    }
         211  +
    /* BuilderGenerator.kt:334 */
  123    212   
    #[allow(missing_docs)] // documentation missing in model
         213  +
                           /* BuilderGenerator.kt:336 */
  124    214   
    pub fn get_string_value(&self) -> &::std::option::Option<::std::string::String> {
         215  +
        /* BuilderGenerator.kt:337 */
  125    216   
        &self.string_value
         217  +
        /* BuilderGenerator.kt:336 */
  126    218   
    }
         219  +
    /* BuilderGenerator.kt:286 */
  127    220   
    #[allow(missing_docs)] // documentation missing in model
         221  +
                           /* BuilderGenerator.kt:291 */
  128    222   
    pub fn true_boolean_value(mut self, input: bool) -> Self {
         223  +
        /* BuilderGenerator.kt:292 */
  129    224   
        self.true_boolean_value = ::std::option::Option::Some(input);
         225  +
        /* BuilderGenerator.kt:293 */
  130    226   
        self
         227  +
        /* BuilderGenerator.kt:291 */
  131    228   
    }
         229  +
    /* BuilderGenerator.kt:312 */
  132    230   
    #[allow(missing_docs)] // documentation missing in model
         231  +
                           /* BuilderGenerator.kt:314 */
  133    232   
    pub fn set_true_boolean_value(mut self, input: ::std::option::Option<bool>) -> Self {
         233  +
        /* BuilderGenerator.kt:315 */
  134    234   
        self.true_boolean_value = input;
  135    235   
        self
         236  +
        /* BuilderGenerator.kt:314 */
  136    237   
    }
         238  +
    /* BuilderGenerator.kt:334 */
  137    239   
    #[allow(missing_docs)] // documentation missing in model
         240  +
                           /* BuilderGenerator.kt:336 */
  138    241   
    pub fn get_true_boolean_value(&self) -> &::std::option::Option<bool> {
         242  +
        /* BuilderGenerator.kt:337 */
  139    243   
        &self.true_boolean_value
         244  +
        /* BuilderGenerator.kt:336 */
  140    245   
    }
         246  +
    /* BuilderGenerator.kt:286 */
  141    247   
    #[allow(missing_docs)] // documentation missing in model
         248  +
                           /* BuilderGenerator.kt:291 */
  142    249   
    pub fn false_boolean_value(mut self, input: bool) -> Self {
         250  +
        /* BuilderGenerator.kt:292 */
  143    251   
        self.false_boolean_value = ::std::option::Option::Some(input);
         252  +
        /* BuilderGenerator.kt:293 */
  144    253   
        self
         254  +
        /* BuilderGenerator.kt:291 */
  145    255   
    }
         256  +
    /* BuilderGenerator.kt:312 */
  146    257   
    #[allow(missing_docs)] // documentation missing in model
         258  +
                           /* BuilderGenerator.kt:314 */
  147    259   
    pub fn set_false_boolean_value(mut self, input: ::std::option::Option<bool>) -> Self {
         260  +
        /* BuilderGenerator.kt:315 */
  148    261   
        self.false_boolean_value = input;
  149    262   
        self
         263  +
        /* BuilderGenerator.kt:314 */
  150    264   
    }
         265  +
    /* BuilderGenerator.kt:334 */
  151    266   
    #[allow(missing_docs)] // documentation missing in model
         267  +
                           /* BuilderGenerator.kt:336 */
  152    268   
    pub fn get_false_boolean_value(&self) -> &::std::option::Option<bool> {
         269  +
        /* BuilderGenerator.kt:337 */
  153    270   
        &self.false_boolean_value
         271  +
        /* BuilderGenerator.kt:336 */
  154    272   
    }
         273  +
    /* BuilderGenerator.kt:286 */
  155    274   
    #[allow(missing_docs)] // documentation missing in model
         275  +
                           /* BuilderGenerator.kt:291 */
  156    276   
    pub fn byte_value(mut self, input: i8) -> Self {
         277  +
        /* BuilderGenerator.kt:292 */
  157    278   
        self.byte_value = ::std::option::Option::Some(input);
         279  +
        /* BuilderGenerator.kt:293 */
  158    280   
        self
         281  +
        /* BuilderGenerator.kt:291 */
  159    282   
    }
         283  +
    /* BuilderGenerator.kt:312 */
  160    284   
    #[allow(missing_docs)] // documentation missing in model
         285  +
                           /* BuilderGenerator.kt:314 */
  161    286   
    pub fn set_byte_value(mut self, input: ::std::option::Option<i8>) -> Self {
         287  +
        /* BuilderGenerator.kt:315 */
  162    288   
        self.byte_value = input;
  163    289   
        self
         290  +
        /* BuilderGenerator.kt:314 */
  164    291   
    }
         292  +
    /* BuilderGenerator.kt:334 */
  165    293   
    #[allow(missing_docs)] // documentation missing in model
         294  +
                           /* BuilderGenerator.kt:336 */
  166    295   
    pub fn get_byte_value(&self) -> &::std::option::Option<i8> {
         296  +
        /* BuilderGenerator.kt:337 */
  167    297   
        &self.byte_value
         298  +
        /* BuilderGenerator.kt:336 */
  168    299   
    }
         300  +
    /* BuilderGenerator.kt:286 */
  169    301   
    #[allow(missing_docs)] // documentation missing in model
         302  +
                           /* BuilderGenerator.kt:291 */
  170    303   
    pub fn short_value(mut self, input: i16) -> Self {
         304  +
        /* BuilderGenerator.kt:292 */
  171    305   
        self.short_value = ::std::option::Option::Some(input);
         306  +
        /* BuilderGenerator.kt:293 */
  172    307   
        self
         308  +
        /* BuilderGenerator.kt:291 */
  173    309   
    }
         310  +
    /* BuilderGenerator.kt:312 */
  174    311   
    #[allow(missing_docs)] // documentation missing in model
         312  +
                           /* BuilderGenerator.kt:314 */
  175    313   
    pub fn set_short_value(mut self, input: ::std::option::Option<i16>) -> Self {
         314  +
        /* BuilderGenerator.kt:315 */
  176    315   
        self.short_value = input;
  177    316   
        self
         317  +
        /* BuilderGenerator.kt:314 */
  178    318   
    }
         319  +
    /* BuilderGenerator.kt:334 */
  179    320   
    #[allow(missing_docs)] // documentation missing in model
         321  +
                           /* BuilderGenerator.kt:336 */
  180    322   
    pub fn get_short_value(&self) -> &::std::option::Option<i16> {
         323  +
        /* BuilderGenerator.kt:337 */
  181    324   
        &self.short_value
         325  +
        /* BuilderGenerator.kt:336 */
  182    326   
    }
         327  +
    /* BuilderGenerator.kt:286 */
  183    328   
    #[allow(missing_docs)] // documentation missing in model
         329  +
                           /* BuilderGenerator.kt:291 */
  184    330   
    pub fn integer_value(mut self, input: i32) -> Self {
         331  +
        /* BuilderGenerator.kt:292 */
  185    332   
        self.integer_value = ::std::option::Option::Some(input);
         333  +
        /* BuilderGenerator.kt:293 */
  186    334   
        self
         335  +
        /* BuilderGenerator.kt:291 */
  187    336   
    }
         337  +
    /* BuilderGenerator.kt:312 */
  188    338   
    #[allow(missing_docs)] // documentation missing in model
         339  +
                           /* BuilderGenerator.kt:314 */
  189    340   
    pub fn set_integer_value(mut self, input: ::std::option::Option<i32>) -> Self {
         341  +
        /* BuilderGenerator.kt:315 */
  190    342   
        self.integer_value = input;
  191    343   
        self
         344  +
        /* BuilderGenerator.kt:314 */
  192    345   
    }
         346  +
    /* BuilderGenerator.kt:334 */
  193    347   
    #[allow(missing_docs)] // documentation missing in model
         348  +
                           /* BuilderGenerator.kt:336 */
  194    349   
    pub fn get_integer_value(&self) -> &::std::option::Option<i32> {
         350  +
        /* BuilderGenerator.kt:337 */
  195    351   
        &self.integer_value
         352  +
        /* BuilderGenerator.kt:336 */
  196    353   
    }
         354  +
    /* BuilderGenerator.kt:286 */
  197    355   
    #[allow(missing_docs)] // documentation missing in model
         356  +
                           /* BuilderGenerator.kt:291 */
  198    357   
    pub fn long_value(mut self, input: i64) -> Self {
         358  +
        /* BuilderGenerator.kt:292 */
  199    359   
        self.long_value = ::std::option::Option::Some(input);
         360  +
        /* BuilderGenerator.kt:293 */
  200    361   
        self
         362  +
        /* BuilderGenerator.kt:291 */
  201    363   
    }
         364  +
    /* BuilderGenerator.kt:312 */
  202    365   
    #[allow(missing_docs)] // documentation missing in model
         366  +
                           /* BuilderGenerator.kt:314 */
  203    367   
    pub fn set_long_value(mut self, input: ::std::option::Option<i64>) -> Self {
         368  +
        /* BuilderGenerator.kt:315 */
  204    369   
        self.long_value = input;
  205    370   
        self
         371  +
        /* BuilderGenerator.kt:314 */
  206    372   
    }
         373  +
    /* BuilderGenerator.kt:334 */
  207    374   
    #[allow(missing_docs)] // documentation missing in model
         375  +
                           /* BuilderGenerator.kt:336 */
  208    376   
    pub fn get_long_value(&self) -> &::std::option::Option<i64> {
         377  +
        /* BuilderGenerator.kt:337 */
  209    378   
        &self.long_value
         379  +
        /* BuilderGenerator.kt:336 */
  210    380   
    }
         381  +
    /* BuilderGenerator.kt:286 */
  211    382   
    #[allow(missing_docs)] // documentation missing in model
         383  +
                           /* BuilderGenerator.kt:291 */
  212    384   
    pub fn float_value(mut self, input: f32) -> Self {
         385  +
        /* BuilderGenerator.kt:292 */
  213    386   
        self.float_value = ::std::option::Option::Some(input);
         387  +
        /* BuilderGenerator.kt:293 */
  214    388   
        self
         389  +
        /* BuilderGenerator.kt:291 */
  215    390   
    }
         391  +
    /* BuilderGenerator.kt:312 */
  216    392   
    #[allow(missing_docs)] // documentation missing in model
         393  +
                           /* BuilderGenerator.kt:314 */
  217    394   
    pub fn set_float_value(mut self, input: ::std::option::Option<f32>) -> Self {
         395  +
        /* BuilderGenerator.kt:315 */
  218    396   
        self.float_value = input;
  219    397   
        self
         398  +
        /* BuilderGenerator.kt:314 */
  220    399   
    }
         400  +
    /* BuilderGenerator.kt:334 */
  221    401   
    #[allow(missing_docs)] // documentation missing in model
         402  +
                           /* BuilderGenerator.kt:336 */
  222    403   
    pub fn get_float_value(&self) -> &::std::option::Option<f32> {
         404  +
        /* BuilderGenerator.kt:337 */
  223    405   
        &self.float_value
         406  +
        /* BuilderGenerator.kt:336 */
  224    407   
    }
         408  +
    /* BuilderGenerator.kt:286 */
  225    409   
    #[allow(missing_docs)] // documentation missing in model
         410  +
                           /* BuilderGenerator.kt:291 */
  226    411   
    pub fn nested(mut self, input: crate::types::NestedWithNamespace) -> Self {
         412  +
        /* BuilderGenerator.kt:292 */
  227    413   
        self.nested = ::std::option::Option::Some(input);
         414  +
        /* BuilderGenerator.kt:293 */
  228    415   
        self
         416  +
        /* BuilderGenerator.kt:291 */
  229    417   
    }
         418  +
    /* BuilderGenerator.kt:312 */
  230    419   
    #[allow(missing_docs)] // documentation missing in model
         420  +
                           /* BuilderGenerator.kt:314 */
  231    421   
    pub fn set_nested(mut self, input: ::std::option::Option<crate::types::NestedWithNamespace>) -> Self {
         422  +
        /* BuilderGenerator.kt:315 */
  232    423   
        self.nested = input;
  233    424   
        self
         425  +
        /* BuilderGenerator.kt:314 */
  234    426   
    }
         427  +
    /* BuilderGenerator.kt:334 */
  235    428   
    #[allow(missing_docs)] // documentation missing in model
         429  +
                           /* BuilderGenerator.kt:336 */
  236    430   
    pub fn get_nested(&self) -> &::std::option::Option<crate::types::NestedWithNamespace> {
         431  +
        /* BuilderGenerator.kt:337 */
  237    432   
        &self.nested
         433  +
        /* BuilderGenerator.kt:336 */
  238    434   
    }
         435  +
    /* BuilderGenerator.kt:286 */
  239    436   
    #[allow(missing_docs)] // documentation missing in model
         437  +
                           /* BuilderGenerator.kt:291 */
  240    438   
    pub fn double_value(mut self, input: f64) -> Self {
         439  +
        /* BuilderGenerator.kt:292 */
  241    440   
        self.double_value = ::std::option::Option::Some(input);
         441  +
        /* BuilderGenerator.kt:293 */
  242    442   
        self
         443  +
        /* BuilderGenerator.kt:291 */
  243    444   
    }
         445  +
    /* BuilderGenerator.kt:312 */
  244    446   
    #[allow(missing_docs)] // documentation missing in model
         447  +
                           /* BuilderGenerator.kt:314 */
  245    448   
    pub fn set_double_value(mut self, input: ::std::option::Option<f64>) -> Self {
         449  +
        /* BuilderGenerator.kt:315 */
  246    450   
        self.double_value = input;
  247    451   
        self
         452  +
        /* BuilderGenerator.kt:314 */
  248    453   
    }
         454  +
    /* BuilderGenerator.kt:334 */
  249    455   
    #[allow(missing_docs)] // documentation missing in model
         456  +
                           /* BuilderGenerator.kt:336 */
  250    457   
    pub fn get_double_value(&self) -> &::std::option::Option<f64> {
         458  +
        /* BuilderGenerator.kt:337 */
  251    459   
        &self.double_value
         460  +
        /* BuilderGenerator.kt:336 */
  252    461   
    }
  253         -
    /// Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput).
         462  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput).
         463  +
    /* BuilderGenerator.kt:253 */
  254    464   
    pub fn build(
  255    465   
        self,
  256    466   
    ) -> ::std::result::Result<
  257    467   
        crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput,
  258    468   
        ::aws_smithy_types::error::operation::BuildError,
  259    469   
    > {
  260         -
        ::std::result::Result::Ok(crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput {
  261         -
            foo: self.foo,
  262         -
            string_value: self.string_value,
  263         -
            true_boolean_value: self.true_boolean_value,
  264         -
            false_boolean_value: self.false_boolean_value,
  265         -
            byte_value: self.byte_value,
  266         -
            short_value: self.short_value,
  267         -
            integer_value: self.integer_value,
  268         -
            long_value: self.long_value,
  269         -
            float_value: self.float_value,
  270         -
            nested: self.nested,
  271         -
            double_value: self.double_value,
  272         -
        })
  273         -
    }
         470  +
        /* BuilderGenerator.kt:254 */
         471  +
        ::std::result::Result::Ok(
         472  +
            /* BuilderGenerator.kt:477 */
         473  +
            crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput {
         474  +
                /* BuilderGenerator.kt:481 */ foo: self.foo,
         475  +
                /* BuilderGenerator.kt:481 */
         476  +
                string_value: self.string_value,
         477  +
                /* BuilderGenerator.kt:481 */
         478  +
                true_boolean_value: self.true_boolean_value,
         479  +
                /* BuilderGenerator.kt:481 */
         480  +
                false_boolean_value: self.false_boolean_value,
         481  +
                /* BuilderGenerator.kt:481 */
         482  +
                byte_value: self.byte_value,
         483  +
                /* BuilderGenerator.kt:481 */
         484  +
                short_value: self.short_value,
         485  +
                /* BuilderGenerator.kt:481 */
         486  +
                integer_value: self.integer_value,
         487  +
                /* BuilderGenerator.kt:481 */
         488  +
                long_value: self.long_value,
         489  +
                /* BuilderGenerator.kt:481 */
         490  +
                float_value: self.float_value,
         491  +
                /* BuilderGenerator.kt:481 */
         492  +
                nested: self.nested,
         493  +
                /* BuilderGenerator.kt:481 */
         494  +
                double_value: self.double_value,
         495  +
                /* BuilderGenerator.kt:477 */
         496  +
            }, /* BuilderGenerator.kt:254 */
         497  +
        )
         498  +
        /* BuilderGenerator.kt:253 */
         499  +
    }
         500  +
    /* BuilderGenerator.kt:355 */
  274    501   
}

tmp-codegen-diff/codegen-client-test/rest_xml_namespace/rust-client-codegen/src/operation/simple_scalar_properties/_simple_scalar_properties_output.rs

@@ -1,1 +269,493 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* StructureGenerator.kt:197 */
    2      3   
#[allow(missing_docs)] // documentation missing in model
           4  +
/* RustType.kt:516 */
    3      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    4      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5         -
pub struct SimpleScalarPropertiesOutput {
           8  +
pub /* StructureGenerator.kt:201 */ struct SimpleScalarPropertiesOutput {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub foo: ::std::option::Option<::std::string::String>,
          12  +
    /* StructureGenerator.kt:231 */
    8     13   
    #[allow(missing_docs)] // documentation missing in model
    9     14   
    pub string_value: ::std::option::Option<::std::string::String>,
          15  +
    /* StructureGenerator.kt:231 */
   10     16   
    #[allow(missing_docs)] // documentation missing in model
   11     17   
    pub true_boolean_value: ::std::option::Option<bool>,
          18  +
    /* StructureGenerator.kt:231 */
   12     19   
    #[allow(missing_docs)] // documentation missing in model
   13     20   
    pub false_boolean_value: ::std::option::Option<bool>,
   14         -
    #[allow(missing_docs)] // documentation missing in model
          21  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   15     22   
    pub byte_value: ::std::option::Option<i8>,
   16         -
    #[allow(missing_docs)] // documentation missing in model
          23  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   17     24   
    pub short_value: ::std::option::Option<i16>,
   18         -
    #[allow(missing_docs)] // documentation missing in model
          25  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   19     26   
    pub integer_value: ::std::option::Option<i32>,
   20         -
    #[allow(missing_docs)] // documentation missing in model
          27  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   21     28   
    pub long_value: ::std::option::Option<i64>,
   22         -
    #[allow(missing_docs)] // documentation missing in model
          29  +
    /* StructureGenerator.kt:231 */ #[allow(missing_docs)] // documentation missing in model
   23     30   
    pub float_value: ::std::option::Option<f32>,
          31  +
    /* StructureGenerator.kt:231 */
   24     32   
    #[allow(missing_docs)] // documentation missing in model
   25     33   
    pub nested: ::std::option::Option<crate::types::NestedWithNamespace>,
          34  +
    /* StructureGenerator.kt:231 */
   26     35   
    #[allow(missing_docs)] // documentation missing in model
   27     36   
    pub double_value: ::std::option::Option<f64>,
          37  +
    /* StructureGenerator.kt:201 */
   28     38   
}
          39  +
/* StructureGenerator.kt:135 */
   29     40   
impl SimpleScalarPropertiesOutput {
          41  +
    /* StructureGenerator.kt:231 */
   30     42   
    #[allow(missing_docs)] // documentation missing in model
          43  +
                           /* StructureGenerator.kt:166 */
   31     44   
    pub fn foo(&self) -> ::std::option::Option<&str> {
          45  +
        /* StructureGenerator.kt:169 */
   32     46   
        self.foo.as_deref()
          47  +
        /* StructureGenerator.kt:166 */
   33     48   
    }
          49  +
    /* StructureGenerator.kt:231 */
   34     50   
    #[allow(missing_docs)] // documentation missing in model
          51  +
                           /* StructureGenerator.kt:166 */
   35     52   
    pub fn string_value(&self) -> ::std::option::Option<&str> {
          53  +
        /* StructureGenerator.kt:169 */
   36     54   
        self.string_value.as_deref()
          55  +
        /* StructureGenerator.kt:166 */
   37     56   
    }
          57  +
    /* StructureGenerator.kt:231 */
   38     58   
    #[allow(missing_docs)] // documentation missing in model
          59  +
                           /* StructureGenerator.kt:166 */
   39     60   
    pub fn true_boolean_value(&self) -> ::std::option::Option<bool> {
          61  +
        /* StructureGenerator.kt:168 */
   40     62   
        self.true_boolean_value
          63  +
        /* StructureGenerator.kt:166 */
   41     64   
    }
          65  +
    /* StructureGenerator.kt:231 */
   42     66   
    #[allow(missing_docs)] // documentation missing in model
          67  +
                           /* StructureGenerator.kt:166 */
   43     68   
    pub fn false_boolean_value(&self) -> ::std::option::Option<bool> {
          69  +
        /* StructureGenerator.kt:168 */
   44     70   
        self.false_boolean_value
          71  +
        /* StructureGenerator.kt:166 */
   45     72   
    }
          73  +
    /* StructureGenerator.kt:231 */
   46     74   
    #[allow(missing_docs)] // documentation missing in model
          75  +
                           /* StructureGenerator.kt:166 */
   47     76   
    pub fn byte_value(&self) -> ::std::option::Option<i8> {
          77  +
        /* StructureGenerator.kt:168 */
   48     78   
        self.byte_value
          79  +
        /* StructureGenerator.kt:166 */
   49     80   
    }
          81  +
    /* StructureGenerator.kt:231 */
   50     82   
    #[allow(missing_docs)] // documentation missing in model
          83  +
                           /* StructureGenerator.kt:166 */
   51     84   
    pub fn short_value(&self) -> ::std::option::Option<i16> {
          85  +
        /* StructureGenerator.kt:168 */
   52     86   
        self.short_value
          87  +
        /* StructureGenerator.kt:166 */
   53     88   
    }
          89  +
    /* StructureGenerator.kt:231 */
   54     90   
    #[allow(missing_docs)] // documentation missing in model
          91  +
                           /* StructureGenerator.kt:166 */
   55     92   
    pub fn integer_value(&self) -> ::std::option::Option<i32> {
          93  +
        /* StructureGenerator.kt:168 */
   56     94   
        self.integer_value
          95  +
        /* StructureGenerator.kt:166 */
   57     96   
    }
          97  +
    /* StructureGenerator.kt:231 */
   58     98   
    #[allow(missing_docs)] // documentation missing in model
          99  +
                           /* StructureGenerator.kt:166 */
   59    100   
    pub fn long_value(&self) -> ::std::option::Option<i64> {
         101  +
        /* StructureGenerator.kt:168 */
   60    102   
        self.long_value
         103  +
        /* StructureGenerator.kt:166 */
   61    104   
    }
         105  +
    /* StructureGenerator.kt:231 */
   62    106   
    #[allow(missing_docs)] // documentation missing in model
         107  +
                           /* StructureGenerator.kt:166 */
   63    108   
    pub fn float_value(&self) -> ::std::option::Option<f32> {
         109  +
        /* StructureGenerator.kt:168 */
   64    110   
        self.float_value
         111  +
        /* StructureGenerator.kt:166 */
   65    112   
    }
         113  +
    /* StructureGenerator.kt:231 */
   66    114   
    #[allow(missing_docs)] // documentation missing in model
         115  +
                           /* StructureGenerator.kt:166 */
   67    116   
    pub fn nested(&self) -> ::std::option::Option<&crate::types::NestedWithNamespace> {
         117  +
        /* StructureGenerator.kt:170 */
   68    118   
        self.nested.as_ref()
         119  +
        /* StructureGenerator.kt:166 */
   69    120   
    }
         121  +
    /* StructureGenerator.kt:231 */
   70    122   
    #[allow(missing_docs)] // documentation missing in model
         123  +
                           /* StructureGenerator.kt:166 */
   71    124   
    pub fn double_value(&self) -> ::std::option::Option<f64> {
         125  +
        /* StructureGenerator.kt:168 */
   72    126   
        self.double_value
         127  +
        /* StructureGenerator.kt:166 */
   73    128   
    }
         129  +
    /* StructureGenerator.kt:135 */
   74    130   
}
         131  +
/* ClientCodegenVisitor.kt:237 */
   75    132   
impl SimpleScalarPropertiesOutput {
   76         -
    /// Creates a new builder-style object to manufacture [`SimpleScalarPropertiesOutput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput).
         133  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`SimpleScalarPropertiesOutput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput).
         134  +
    /* BuilderGenerator.kt:175 */
   77    135   
    pub fn builder() -> crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesOutputBuilder {
         136  +
        /* BuilderGenerator.kt:176 */
   78    137   
        crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesOutputBuilder::default()
         138  +
        /* BuilderGenerator.kt:175 */
   79    139   
    }
         140  +
    /* ClientCodegenVisitor.kt:237 */
   80    141   
}
   81    142   
   82         -
/// A builder for [`SimpleScalarPropertiesOutput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput).
         143  +
/// /* BuilderGenerator.kt:342 */A builder for [`SimpleScalarPropertiesOutput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput).
         144  +
/* RustType.kt:516 */
   83    145   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         146  +
/* RustType.kt:516 */
   84    147   
#[non_exhaustive]
         148  +
/* BuilderGenerator.kt:345 */
   85    149   
pub struct SimpleScalarPropertiesOutputBuilder {
   86         -
    pub(crate) foo: ::std::option::Option<::std::string::String>,
   87         -
    pub(crate) string_value: ::std::option::Option<::std::string::String>,
   88         -
    pub(crate) true_boolean_value: ::std::option::Option<bool>,
   89         -
    pub(crate) false_boolean_value: ::std::option::Option<bool>,
   90         -
    pub(crate) byte_value: ::std::option::Option<i8>,
   91         -
    pub(crate) short_value: ::std::option::Option<i16>,
   92         -
    pub(crate) integer_value: ::std::option::Option<i32>,
   93         -
    pub(crate) long_value: ::std::option::Option<i64>,
   94         -
    pub(crate) float_value: ::std::option::Option<f32>,
   95         -
    pub(crate) nested: ::std::option::Option<crate::types::NestedWithNamespace>,
   96         -
    pub(crate) double_value: ::std::option::Option<f64>,
         150  +
    /* BuilderGenerator.kt:275 */ pub(crate) foo: ::std::option::Option<::std::string::String>,
         151  +
    /* BuilderGenerator.kt:275 */ pub(crate) string_value: ::std::option::Option<::std::string::String>,
         152  +
    /* BuilderGenerator.kt:275 */ pub(crate) true_boolean_value: ::std::option::Option<bool>,
         153  +
    /* BuilderGenerator.kt:275 */ pub(crate) false_boolean_value: ::std::option::Option<bool>,
         154  +
    /* BuilderGenerator.kt:275 */ pub(crate) byte_value: ::std::option::Option<i8>,
         155  +
    /* BuilderGenerator.kt:275 */ pub(crate) short_value: ::std::option::Option<i16>,
         156  +
    /* BuilderGenerator.kt:275 */ pub(crate) integer_value: ::std::option::Option<i32>,
         157  +
    /* BuilderGenerator.kt:275 */ pub(crate) long_value: ::std::option::Option<i64>,
         158  +
    /* BuilderGenerator.kt:275 */ pub(crate) float_value: ::std::option::Option<f32>,
         159  +
    /* BuilderGenerator.kt:275 */ pub(crate) nested: ::std::option::Option<crate::types::NestedWithNamespace>,
         160  +
    /* BuilderGenerator.kt:275 */ pub(crate) double_value: ::std::option::Option<f64>,
         161  +
    /* BuilderGenerator.kt:345 */
   97    162   
}
         163  +
/* BuilderGenerator.kt:355 */
   98    164   
impl SimpleScalarPropertiesOutputBuilder {
         165  +
    /* BuilderGenerator.kt:286 */
   99    166   
    #[allow(missing_docs)] // documentation missing in model
         167  +
                           /* BuilderGenerator.kt:291 */
  100    168   
    pub fn foo(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         169  +
        /* BuilderGenerator.kt:292 */
  101    170   
        self.foo = ::std::option::Option::Some(input.into());
         171  +
        /* BuilderGenerator.kt:293 */
  102    172   
        self
         173  +
        /* BuilderGenerator.kt:291 */
  103    174   
    }
         175  +
    /* BuilderGenerator.kt:312 */
  104    176   
    #[allow(missing_docs)] // documentation missing in model
         177  +
                           /* BuilderGenerator.kt:314 */
  105    178   
    pub fn set_foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         179  +
        /* BuilderGenerator.kt:315 */
  106    180   
        self.foo = input;
  107    181   
        self
         182  +
        /* BuilderGenerator.kt:314 */
  108    183   
    }
         184  +
    /* BuilderGenerator.kt:334 */
  109    185   
    #[allow(missing_docs)] // documentation missing in model
         186  +
                           /* BuilderGenerator.kt:336 */
  110    187   
    pub fn get_foo(&self) -> &::std::option::Option<::std::string::String> {
         188  +
        /* BuilderGenerator.kt:337 */
  111    189   
        &self.foo
         190  +
        /* BuilderGenerator.kt:336 */
  112    191   
    }
         192  +
    /* BuilderGenerator.kt:286 */
  113    193   
    #[allow(missing_docs)] // documentation missing in model
         194  +
                           /* BuilderGenerator.kt:291 */
  114    195   
    pub fn string_value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         196  +
        /* BuilderGenerator.kt:292 */
  115    197   
        self.string_value = ::std::option::Option::Some(input.into());
         198  +
        /* BuilderGenerator.kt:293 */
  116    199   
        self
         200  +
        /* BuilderGenerator.kt:291 */
  117    201   
    }
         202  +
    /* BuilderGenerator.kt:312 */
  118    203   
    #[allow(missing_docs)] // documentation missing in model
         204  +
                           /* BuilderGenerator.kt:314 */
  119    205   
    pub fn set_string_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         206  +
        /* BuilderGenerator.kt:315 */
  120    207   
        self.string_value = input;
  121    208   
        self
         209  +
        /* BuilderGenerator.kt:314 */
  122    210   
    }
         211  +
    /* BuilderGenerator.kt:334 */
  123    212   
    #[allow(missing_docs)] // documentation missing in model
         213  +
                           /* BuilderGenerator.kt:336 */
  124    214   
    pub fn get_string_value(&self) -> &::std::option::Option<::std::string::String> {
         215  +
        /* BuilderGenerator.kt:337 */
  125    216   
        &self.string_value
         217  +
        /* BuilderGenerator.kt:336 */
  126    218   
    }
         219  +
    /* BuilderGenerator.kt:286 */
  127    220   
    #[allow(missing_docs)] // documentation missing in model
         221  +
                           /* BuilderGenerator.kt:291 */
  128    222   
    pub fn true_boolean_value(mut self, input: bool) -> Self {
         223  +
        /* BuilderGenerator.kt:292 */
  129    224   
        self.true_boolean_value = ::std::option::Option::Some(input);
         225  +
        /* BuilderGenerator.kt:293 */
  130    226   
        self
         227  +
        /* BuilderGenerator.kt:291 */
  131    228   
    }
         229  +
    /* BuilderGenerator.kt:312 */
  132    230   
    #[allow(missing_docs)] // documentation missing in model
         231  +
                           /* BuilderGenerator.kt:314 */
  133    232   
    pub fn set_true_boolean_value(mut self, input: ::std::option::Option<bool>) -> Self {
         233  +
        /* BuilderGenerator.kt:315 */
  134    234   
        self.true_boolean_value = input;
  135    235   
        self
         236  +
        /* BuilderGenerator.kt:314 */
  136    237   
    }
         238  +
    /* BuilderGenerator.kt:334 */
  137    239   
    #[allow(missing_docs)] // documentation missing in model
         240  +
                           /* BuilderGenerator.kt:336 */
  138    241   
    pub fn get_true_boolean_value(&self) -> &::std::option::Option<bool> {
         242  +
        /* BuilderGenerator.kt:337 */
  139    243   
        &self.true_boolean_value
         244  +
        /* BuilderGenerator.kt:336 */
  140    245   
    }
         246  +
    /* BuilderGenerator.kt:286 */
  141    247   
    #[allow(missing_docs)] // documentation missing in model
         248  +
                           /* BuilderGenerator.kt:291 */
  142    249   
    pub fn false_boolean_value(mut self, input: bool) -> Self {
         250  +
        /* BuilderGenerator.kt:292 */
  143    251   
        self.false_boolean_value = ::std::option::Option::Some(input);
         252  +
        /* BuilderGenerator.kt:293 */
  144    253   
        self
         254  +
        /* BuilderGenerator.kt:291 */
  145    255   
    }
         256  +
    /* BuilderGenerator.kt:312 */
  146    257   
    #[allow(missing_docs)] // documentation missing in model
         258  +
                           /* BuilderGenerator.kt:314 */
  147    259   
    pub fn set_false_boolean_value(mut self, input: ::std::option::Option<bool>) -> Self {
         260  +
        /* BuilderGenerator.kt:315 */
  148    261   
        self.false_boolean_value = input;
  149    262   
        self
         263  +
        /* BuilderGenerator.kt:314 */
  150    264   
    }
         265  +
    /* BuilderGenerator.kt:334 */
  151    266   
    #[allow(missing_docs)] // documentation missing in model
         267  +
                           /* BuilderGenerator.kt:336 */
  152    268   
    pub fn get_false_boolean_value(&self) -> &::std::option::Option<bool> {
         269  +
        /* BuilderGenerator.kt:337 */
  153    270   
        &self.false_boolean_value
         271  +
        /* BuilderGenerator.kt:336 */
  154    272   
    }
         273  +
    /* BuilderGenerator.kt:286 */
  155    274   
    #[allow(missing_docs)] // documentation missing in model
         275  +
                           /* BuilderGenerator.kt:291 */
  156    276   
    pub fn byte_value(mut self, input: i8) -> Self {
         277  +
        /* BuilderGenerator.kt:292 */
  157    278   
        self.byte_value = ::std::option::Option::Some(input);
         279  +
        /* BuilderGenerator.kt:293 */
  158    280   
        self
         281  +
        /* BuilderGenerator.kt:291 */
  159    282   
    }
         283  +
    /* BuilderGenerator.kt:312 */
  160    284   
    #[allow(missing_docs)] // documentation missing in model
         285  +
                           /* BuilderGenerator.kt:314 */
  161    286   
    pub fn set_byte_value(mut self, input: ::std::option::Option<i8>) -> Self {
         287  +
        /* BuilderGenerator.kt:315 */
  162    288   
        self.byte_value = input;
  163    289   
        self
         290  +
        /* BuilderGenerator.kt:314 */
  164    291   
    }
         292  +
    /* BuilderGenerator.kt:334 */
  165    293   
    #[allow(missing_docs)] // documentation missing in model
         294  +
                           /* BuilderGenerator.kt:336 */
  166    295   
    pub fn get_byte_value(&self) -> &::std::option::Option<i8> {
         296  +
        /* BuilderGenerator.kt:337 */
  167    297   
        &self.byte_value
         298  +
        /* BuilderGenerator.kt:336 */
  168    299   
    }
         300  +
    /* BuilderGenerator.kt:286 */
  169    301   
    #[allow(missing_docs)] // documentation missing in model
         302  +
                           /* BuilderGenerator.kt:291 */
  170    303   
    pub fn short_value(mut self, input: i16) -> Self {
         304  +
        /* BuilderGenerator.kt:292 */
  171    305   
        self.short_value = ::std::option::Option::Some(input);
         306  +
        /* BuilderGenerator.kt:293 */
  172    307   
        self
         308  +
        /* BuilderGenerator.kt:291 */
  173    309   
    }
         310  +
    /* BuilderGenerator.kt:312 */
  174    311   
    #[allow(missing_docs)] // documentation missing in model
         312  +
                           /* BuilderGenerator.kt:314 */
  175    313   
    pub fn set_short_value(mut self, input: ::std::option::Option<i16>) -> Self {
         314  +
        /* BuilderGenerator.kt:315 */
  176    315   
        self.short_value = input;
  177    316   
        self
         317  +
        /* BuilderGenerator.kt:314 */
  178    318   
    }
         319  +
    /* BuilderGenerator.kt:334 */
  179    320   
    #[allow(missing_docs)] // documentation missing in model
         321  +
                           /* BuilderGenerator.kt:336 */
  180    322   
    pub fn get_short_value(&self) -> &::std::option::Option<i16> {
         323  +
        /* BuilderGenerator.kt:337 */
  181    324   
        &self.short_value
         325  +
        /* BuilderGenerator.kt:336 */
  182    326   
    }
         327  +
    /* BuilderGenerator.kt:286 */
  183    328   
    #[allow(missing_docs)] // documentation missing in model
         329  +
                           /* BuilderGenerator.kt:291 */
  184    330   
    pub fn integer_value(mut self, input: i32) -> Self {
         331  +
        /* BuilderGenerator.kt:292 */
  185    332   
        self.integer_value = ::std::option::Option::Some(input);
         333  +
        /* BuilderGenerator.kt:293 */
  186    334   
        self
         335  +
        /* BuilderGenerator.kt:291 */
  187    336   
    }
         337  +
    /* BuilderGenerator.kt:312 */
  188    338   
    #[allow(missing_docs)] // documentation missing in model
         339  +
                           /* BuilderGenerator.kt:314 */
  189    340   
    pub fn set_integer_value(mut self, input: ::std::option::Option<i32>) -> Self {
         341  +
        /* BuilderGenerator.kt:315 */
  190    342   
        self.integer_value = input;
  191    343   
        self
         344  +
        /* BuilderGenerator.kt:314 */
  192    345   
    }
         346  +
    /* BuilderGenerator.kt:334 */
  193    347   
    #[allow(missing_docs)] // documentation missing in model
         348  +
                           /* BuilderGenerator.kt:336 */
  194    349   
    pub fn get_integer_value(&self) -> &::std::option::Option<i32> {
         350  +
        /* BuilderGenerator.kt:337 */
  195    351   
        &self.integer_value
         352  +
        /* BuilderGenerator.kt:336 */
  196    353   
    }
         354  +
    /* BuilderGenerator.kt:286 */
  197    355   
    #[allow(missing_docs)] // documentation missing in model
         356  +
                           /* BuilderGenerator.kt:291 */
  198    357   
    pub fn long_value(mut self, input: i64) -> Self {
         358  +
        /* BuilderGenerator.kt:292 */
  199    359   
        self.long_value = ::std::option::Option::Some(input);
         360  +
        /* BuilderGenerator.kt:293 */
  200    361   
        self
         362  +
        /* BuilderGenerator.kt:291 */
  201    363   
    }
         364  +
    /* BuilderGenerator.kt:312 */
  202    365   
    #[allow(missing_docs)] // documentation missing in model
         366  +
                           /* BuilderGenerator.kt:314 */
  203    367   
    pub fn set_long_value(mut self, input: ::std::option::Option<i64>) -> Self {
         368  +
        /* BuilderGenerator.kt:315 */
  204    369   
        self.long_value = input;
  205    370   
        self
         371  +
        /* BuilderGenerator.kt:314 */
  206    372   
    }
         373  +
    /* BuilderGenerator.kt:334 */
  207    374   
    #[allow(missing_docs)] // documentation missing in model
         375  +
                           /* BuilderGenerator.kt:336 */
  208    376   
    pub fn get_long_value(&self) -> &::std::option::Option<i64> {
         377  +
        /* BuilderGenerator.kt:337 */
  209    378   
        &self.long_value
         379  +
        /* BuilderGenerator.kt:336 */
  210    380   
    }
         381  +
    /* BuilderGenerator.kt:286 */
  211    382   
    #[allow(missing_docs)] // documentation missing in model
         383  +
                           /* BuilderGenerator.kt:291 */
  212    384   
    pub fn float_value(mut self, input: f32) -> Self {
         385  +
        /* BuilderGenerator.kt:292 */
  213    386   
        self.float_value = ::std::option::Option::Some(input);
         387  +
        /* BuilderGenerator.kt:293 */
  214    388   
        self
         389  +
        /* BuilderGenerator.kt:291 */
  215    390   
    }
         391  +
    /* BuilderGenerator.kt:312 */
  216    392   
    #[allow(missing_docs)] // documentation missing in model
         393  +
                           /* BuilderGenerator.kt:314 */
  217    394   
    pub fn set_float_value(mut self, input: ::std::option::Option<f32>) -> Self {
         395  +
        /* BuilderGenerator.kt:315 */
  218    396   
        self.float_value = input;
  219    397   
        self
         398  +
        /* BuilderGenerator.kt:314 */
  220    399   
    }
         400  +
    /* BuilderGenerator.kt:334 */
  221    401   
    #[allow(missing_docs)] // documentation missing in model
         402  +
                           /* BuilderGenerator.kt:336 */
  222    403   
    pub fn get_float_value(&self) -> &::std::option::Option<f32> {
         404  +
        /* BuilderGenerator.kt:337 */
  223    405   
        &self.float_value
         406  +
        /* BuilderGenerator.kt:336 */
  224    407   
    }
         408  +
    /* BuilderGenerator.kt:286 */
  225    409   
    #[allow(missing_docs)] // documentation missing in model
         410  +
                           /* BuilderGenerator.kt:291 */
  226    411   
    pub fn nested(mut self, input: crate::types::NestedWithNamespace) -> Self {
         412  +
        /* BuilderGenerator.kt:292 */
  227    413   
        self.nested = ::std::option::Option::Some(input);
         414  +
        /* BuilderGenerator.kt:293 */
  228    415   
        self
         416  +
        /* BuilderGenerator.kt:291 */
  229    417   
    }
         418  +
    /* BuilderGenerator.kt:312 */
  230    419   
    #[allow(missing_docs)] // documentation missing in model
         420  +
                           /* BuilderGenerator.kt:314 */
  231    421   
    pub fn set_nested(mut self, input: ::std::option::Option<crate::types::NestedWithNamespace>) -> Self {
         422  +
        /* BuilderGenerator.kt:315 */
  232    423   
        self.nested = input;
  233    424   
        self
         425  +
        /* BuilderGenerator.kt:314 */
  234    426   
    }
         427  +
    /* BuilderGenerator.kt:334 */
  235    428   
    #[allow(missing_docs)] // documentation missing in model
         429  +
                           /* BuilderGenerator.kt:336 */
  236    430   
    pub fn get_nested(&self) -> &::std::option::Option<crate::types::NestedWithNamespace> {
         431  +
        /* BuilderGenerator.kt:337 */
  237    432   
        &self.nested
         433  +
        /* BuilderGenerator.kt:336 */
  238    434   
    }
         435  +
    /* BuilderGenerator.kt:286 */
  239    436   
    #[allow(missing_docs)] // documentation missing in model
         437  +
                           /* BuilderGenerator.kt:291 */
  240    438   
    pub fn double_value(mut self, input: f64) -> Self {
         439  +
        /* BuilderGenerator.kt:292 */
  241    440   
        self.double_value = ::std::option::Option::Some(input);
         441  +
        /* BuilderGenerator.kt:293 */
  242    442   
        self
         443  +
        /* BuilderGenerator.kt:291 */
  243    444   
    }
         445  +
    /* BuilderGenerator.kt:312 */
  244    446   
    #[allow(missing_docs)] // documentation missing in model
         447  +
                           /* BuilderGenerator.kt:314 */
  245    448   
    pub fn set_double_value(mut self, input: ::std::option::Option<f64>) -> Self {
         449  +
        /* BuilderGenerator.kt:315 */
  246    450   
        self.double_value = input;
  247    451   
        self
         452  +
        /* BuilderGenerator.kt:314 */
  248    453   
    }
         454  +
    /* BuilderGenerator.kt:334 */
  249    455   
    #[allow(missing_docs)] // documentation missing in model
         456  +
                           /* BuilderGenerator.kt:336 */
  250    457   
    pub fn get_double_value(&self) -> &::std::option::Option<f64> {
         458  +
        /* BuilderGenerator.kt:337 */
  251    459   
        &self.double_value
         460  +
        /* BuilderGenerator.kt:336 */
  252    461   
    }
  253         -
    /// Consumes the builder and constructs a [`SimpleScalarPropertiesOutput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput).
         462  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`SimpleScalarPropertiesOutput`](crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput).
         463  +
    /* BuilderGenerator.kt:253 */
  254    464   
    pub fn build(self) -> crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput {
         465  +
        /* BuilderGenerator.kt:477 */
  255    466   
        crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput {
  256         -
            foo: self.foo,
         467  +
            /* BuilderGenerator.kt:481 */ foo: self.foo,
         468  +
            /* BuilderGenerator.kt:481 */
  257    469   
            string_value: self.string_value,
         470  +
            /* BuilderGenerator.kt:481 */
  258    471   
            true_boolean_value: self.true_boolean_value,
         472  +
            /* BuilderGenerator.kt:481 */
  259    473   
            false_boolean_value: self.false_boolean_value,
         474  +
            /* BuilderGenerator.kt:481 */
  260    475   
            byte_value: self.byte_value,
         476  +
            /* BuilderGenerator.kt:481 */
  261    477   
            short_value: self.short_value,
         478  +
            /* BuilderGenerator.kt:481 */
  262    479   
            integer_value: self.integer_value,
         480  +
            /* BuilderGenerator.kt:481 */
  263    481   
            long_value: self.long_value,
         482  +
            /* BuilderGenerator.kt:481 */
  264    483   
            float_value: self.float_value,
         484  +
            /* BuilderGenerator.kt:481 */
  265    485   
            nested: self.nested,
         486  +
            /* BuilderGenerator.kt:481 */
  266    487   
            double_value: self.double_value,
         488  +
            /* BuilderGenerator.kt:477 */
  267    489   
        }
         490  +
        /* BuilderGenerator.kt:253 */
  268    491   
    }
         492  +
    /* BuilderGenerator.kt:355 */
  269    493   
}

tmp-codegen-diff/codegen-client-test/rest_xml_namespace/rust-client-codegen/src/operation/simple_scalar_properties/builders.rs

@@ -1,1 +264,342 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CodegenDelegator.kt:255 */
    2      3   
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_output::SimpleScalarPropertiesOutputBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_input::SimpleScalarPropertiesInputBuilder;
    5      7   
           8  +
/* FluentBuilderGenerator.kt:408 */
    6      9   
impl crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesInputBuilder {
    7     10   
    /// Sends a request with this input using the given client.
    8     11   
    pub async fn send_with(
    9     12   
        self,
   10     13   
        client: &crate::Client,
   11     14   
    ) -> ::std::result::Result<
   12     15   
        crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput,
   13     16   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     17   
            crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
   15     18   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   16     19   
        >,
   17     20   
    > {
   18     21   
        let mut fluent_builder = client.simple_scalar_properties();
   19     22   
        fluent_builder.inner = self;
   20     23   
        fluent_builder.send().await
   21     24   
    }
   22     25   
}
   23         -
/// Fluent builder constructing a request to `SimpleScalarProperties`.
          26  +
/// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `SimpleScalarProperties`.
   24     27   
///
          28  +
/* RustType.kt:516 */
   25     29   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          30  +
/* FluentBuilderGenerator.kt:270 */
   26     31   
pub struct SimpleScalarPropertiesFluentBuilder {
   27     32   
    handle: ::std::sync::Arc<crate::client::Handle>,
   28     33   
    inner: crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesInputBuilder,
   29     34   
    config_override: ::std::option::Option<crate::config::Builder>,
   30     35   
}
          36  +
/* FluentBuilderGenerator.kt:381 */
   31     37   
impl
   32     38   
    crate::client::customize::internal::CustomizableSend<
   33     39   
        crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput,
   34     40   
        crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
   35     41   
    > for SimpleScalarPropertiesFluentBuilder
   36     42   
{
   37     43   
    fn send(
   38     44   
        self,
   39     45   
        config_override: crate::config::Builder,
   40     46   
    ) -> crate::client::customize::internal::BoxFuture<
   41     47   
        crate::client::customize::internal::SendResult<
   42     48   
            crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput,
   43     49   
            crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
   44     50   
        >,
   45     51   
    > {
   46     52   
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
   47     53   
    }
   48     54   
}
          55  +
/* FluentBuilderGenerator.kt:282 */
   49     56   
impl SimpleScalarPropertiesFluentBuilder {
          57  +
    /* FluentBuilderGenerator.kt:288 */
   50     58   
    /// Creates a new `SimpleScalarPropertiesFluentBuilder`.
   51     59   
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
   52     60   
        Self {
   53     61   
            handle,
   54     62   
            inner: ::std::default::Default::default(),
   55     63   
            config_override: ::std::option::Option::None,
   56     64   
        }
   57     65   
    }
          66  +
    /* FluentBuilderGenerator.kt:301 */
   58     67   
    /// Access the SimpleScalarProperties as a reference.
   59     68   
    pub fn as_input(&self) -> &crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesInputBuilder {
   60     69   
        &self.inner
   61     70   
    }
          71  +
    /* FluentBuilderGenerator.kt:145 */
   62     72   
    /// Sends the request and returns the response.
   63     73   
    ///
   64     74   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   65     75   
    /// can be matched against.
   66     76   
    ///
   67     77   
    /// By default, any retryable failures will be retried twice. Retry behavior
   68     78   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   69     79   
    /// set when configuring the client.
   70     80   
    pub async fn send(
   71     81   
        self,
   72     82   
    ) -> ::std::result::Result<
   73     83   
        crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput,
   74     84   
        ::aws_smithy_runtime_api::client::result::SdkError<
   75     85   
            crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
   76     86   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   77     87   
        >,
   78     88   
    > {
   79     89   
        let input = self
   80     90   
            .inner
   81     91   
            .build()
   82     92   
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
   83     93   
        let runtime_plugins = crate::operation::simple_scalar_properties::SimpleScalarProperties::operation_runtime_plugins(
   84     94   
            self.handle.runtime_plugins.clone(),
   85     95   
            &self.handle.conf,
   86     96   
            self.config_override,
   87     97   
        );
   88     98   
        crate::operation::simple_scalar_properties::SimpleScalarProperties::orchestrate(&runtime_plugins, input).await
   89     99   
    }
   90    100   
   91    101   
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
   92    102   
    pub fn customize(
   93    103   
        self,
   94    104   
    ) -> crate::client::customize::CustomizableOperation<
   95    105   
        crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput,
   96    106   
        crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
   97    107   
        Self,
   98    108   
    > {
   99    109   
        crate::client::customize::CustomizableOperation::new(self)
  100    110   
    }
         111  +
    /* FluentBuilderGenerator.kt:315 */
  101    112   
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
  102    113   
        self.set_config_override(::std::option::Option::Some(config_override.into()));
  103    114   
        self
  104    115   
    }
  105    116   
  106    117   
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
  107    118   
        self.config_override = config_override;
  108    119   
        self
  109    120   
    }
         121  +
    /* FluentBuilderGenerator.kt:498 */
  110    122   
    #[allow(missing_docs)] // documentation missing in model
         123  +
                           /* FluentBuilderGenerator.kt:500 */
  111    124   
    pub fn foo(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  112    125   
        self.inner = self.inner.foo(input.into());
  113    126   
        self
  114    127   
    }
         128  +
    /* FluentBuilderGenerator.kt:498 */
  115    129   
    #[allow(missing_docs)] // documentation missing in model
         130  +
                           /* FluentBuilderGenerator.kt:500 */
  116    131   
    pub fn set_foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  117    132   
        self.inner = self.inner.set_foo(input);
  118    133   
        self
  119    134   
    }
         135  +
    /* FluentBuilderGenerator.kt:518 */
  120    136   
    #[allow(missing_docs)] // documentation missing in model
         137  +
                           /* FluentBuilderGenerator.kt:520 */
  121    138   
    pub fn get_foo(&self) -> &::std::option::Option<::std::string::String> {
  122    139   
        self.inner.get_foo()
  123    140   
    }
         141  +
    /* FluentBuilderGenerator.kt:498 */
  124    142   
    #[allow(missing_docs)] // documentation missing in model
         143  +
                           /* FluentBuilderGenerator.kt:500 */
  125    144   
    pub fn string_value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  126    145   
        self.inner = self.inner.string_value(input.into());
  127    146   
        self
  128    147   
    }
         148  +
    /* FluentBuilderGenerator.kt:498 */
  129    149   
    #[allow(missing_docs)] // documentation missing in model
         150  +
                           /* FluentBuilderGenerator.kt:500 */
  130    151   
    pub fn set_string_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  131    152   
        self.inner = self.inner.set_string_value(input);
  132    153   
        self
  133    154   
    }
         155  +
    /* FluentBuilderGenerator.kt:518 */
  134    156   
    #[allow(missing_docs)] // documentation missing in model
         157  +
                           /* FluentBuilderGenerator.kt:520 */
  135    158   
    pub fn get_string_value(&self) -> &::std::option::Option<::std::string::String> {
  136    159   
        self.inner.get_string_value()
  137    160   
    }
         161  +
    /* FluentBuilderGenerator.kt:498 */
  138    162   
    #[allow(missing_docs)] // documentation missing in model
         163  +
                           /* FluentBuilderGenerator.kt:500 */
  139    164   
    pub fn true_boolean_value(mut self, input: bool) -> Self {
  140    165   
        self.inner = self.inner.true_boolean_value(input);
  141    166   
        self
  142    167   
    }
         168  +
    /* FluentBuilderGenerator.kt:498 */
  143    169   
    #[allow(missing_docs)] // documentation missing in model
         170  +
                           /* FluentBuilderGenerator.kt:500 */
  144    171   
    pub fn set_true_boolean_value(mut self, input: ::std::option::Option<bool>) -> Self {
  145    172   
        self.inner = self.inner.set_true_boolean_value(input);
  146    173   
        self
  147    174   
    }
         175  +
    /* FluentBuilderGenerator.kt:518 */
  148    176   
    #[allow(missing_docs)] // documentation missing in model
         177  +
                           /* FluentBuilderGenerator.kt:520 */
  149    178   
    pub fn get_true_boolean_value(&self) -> &::std::option::Option<bool> {
  150    179   
        self.inner.get_true_boolean_value()
  151    180   
    }
         181  +
    /* FluentBuilderGenerator.kt:498 */
  152    182   
    #[allow(missing_docs)] // documentation missing in model
         183  +
                           /* FluentBuilderGenerator.kt:500 */
  153    184   
    pub fn false_boolean_value(mut self, input: bool) -> Self {
  154    185   
        self.inner = self.inner.false_boolean_value(input);
  155    186   
        self
  156    187   
    }
         188  +
    /* FluentBuilderGenerator.kt:498 */
  157    189   
    #[allow(missing_docs)] // documentation missing in model
         190  +
                           /* FluentBuilderGenerator.kt:500 */
  158    191   
    pub fn set_false_boolean_value(mut self, input: ::std::option::Option<bool>) -> Self {
  159    192   
        self.inner = self.inner.set_false_boolean_value(input);
  160    193   
        self
  161    194   
    }
         195  +
    /* FluentBuilderGenerator.kt:518 */
  162    196   
    #[allow(missing_docs)] // documentation missing in model
         197  +
                           /* FluentBuilderGenerator.kt:520 */
  163    198   
    pub fn get_false_boolean_value(&self) -> &::std::option::Option<bool> {
  164    199   
        self.inner.get_false_boolean_value()
  165    200   
    }
         201  +
    /* FluentBuilderGenerator.kt:498 */
  166    202   
    #[allow(missing_docs)] // documentation missing in model
         203  +
                           /* FluentBuilderGenerator.kt:500 */
  167    204   
    pub fn byte_value(mut self, input: i8) -> Self {
  168    205   
        self.inner = self.inner.byte_value(input);
  169    206   
        self
  170    207   
    }
         208  +
    /* FluentBuilderGenerator.kt:498 */
  171    209   
    #[allow(missing_docs)] // documentation missing in model
         210  +
                           /* FluentBuilderGenerator.kt:500 */
  172    211   
    pub fn set_byte_value(mut self, input: ::std::option::Option<i8>) -> Self {
  173    212   
        self.inner = self.inner.set_byte_value(input);
  174    213   
        self
  175    214   
    }
         215  +
    /* FluentBuilderGenerator.kt:518 */
  176    216   
    #[allow(missing_docs)] // documentation missing in model
         217  +
                           /* FluentBuilderGenerator.kt:520 */
  177    218   
    pub fn get_byte_value(&self) -> &::std::option::Option<i8> {
  178    219   
        self.inner.get_byte_value()
  179    220   
    }
         221  +
    /* FluentBuilderGenerator.kt:498 */
  180    222   
    #[allow(missing_docs)] // documentation missing in model
         223  +
                           /* FluentBuilderGenerator.kt:500 */
  181    224   
    pub fn short_value(mut self, input: i16) -> Self {
  182    225   
        self.inner = self.inner.short_value(input);
  183    226   
        self
  184    227   
    }
         228  +
    /* FluentBuilderGenerator.kt:498 */
  185    229   
    #[allow(missing_docs)] // documentation missing in model
         230  +
                           /* FluentBuilderGenerator.kt:500 */
  186    231   
    pub fn set_short_value(mut self, input: ::std::option::Option<i16>) -> Self {
  187    232   
        self.inner = self.inner.set_short_value(input);
  188    233   
        self
  189    234   
    }
         235  +
    /* FluentBuilderGenerator.kt:518 */
  190    236   
    #[allow(missing_docs)] // documentation missing in model
         237  +
                           /* FluentBuilderGenerator.kt:520 */
  191    238   
    pub fn get_short_value(&self) -> &::std::option::Option<i16> {
  192    239   
        self.inner.get_short_value()
  193    240   
    }
         241  +
    /* FluentBuilderGenerator.kt:498 */
  194    242   
    #[allow(missing_docs)] // documentation missing in model
         243  +
                           /* FluentBuilderGenerator.kt:500 */
  195    244   
    pub fn integer_value(mut self, input: i32) -> Self {
  196    245   
        self.inner = self.inner.integer_value(input);
  197    246   
        self
  198    247   
    }
         248  +
    /* FluentBuilderGenerator.kt:498 */
  199    249   
    #[allow(missing_docs)] // documentation missing in model
         250  +
                           /* FluentBuilderGenerator.kt:500 */
  200    251   
    pub fn set_integer_value(mut self, input: ::std::option::Option<i32>) -> Self {
  201    252   
        self.inner = self.inner.set_integer_value(input);
  202    253   
        self
  203    254   
    }
         255  +
    /* FluentBuilderGenerator.kt:518 */
  204    256   
    #[allow(missing_docs)] // documentation missing in model
         257  +
                           /* FluentBuilderGenerator.kt:520 */
  205    258   
    pub fn get_integer_value(&self) -> &::std::option::Option<i32> {
  206    259   
        self.inner.get_integer_value()
  207    260   
    }
         261  +
    /* FluentBuilderGenerator.kt:498 */
  208    262   
    #[allow(missing_docs)] // documentation missing in model
         263  +
                           /* FluentBuilderGenerator.kt:500 */
  209    264   
    pub fn long_value(mut self, input: i64) -> Self {
  210    265   
        self.inner = self.inner.long_value(input);
  211    266   
        self
  212    267   
    }
         268  +
    /* FluentBuilderGenerator.kt:498 */
  213    269   
    #[allow(missing_docs)] // documentation missing in model
         270  +
                           /* FluentBuilderGenerator.kt:500 */
  214    271   
    pub fn set_long_value(mut self, input: ::std::option::Option<i64>) -> Self {
  215    272   
        self.inner = self.inner.set_long_value(input);
  216    273   
        self
  217    274   
    }
         275  +
    /* FluentBuilderGenerator.kt:518 */
  218    276   
    #[allow(missing_docs)] // documentation missing in model
         277  +
                           /* FluentBuilderGenerator.kt:520 */
  219    278   
    pub fn get_long_value(&self) -> &::std::option::Option<i64> {
  220    279   
        self.inner.get_long_value()
  221    280   
    }
         281  +
    /* FluentBuilderGenerator.kt:498 */
  222    282   
    #[allow(missing_docs)] // documentation missing in model
         283  +
                           /* FluentBuilderGenerator.kt:500 */
  223    284   
    pub fn float_value(mut self, input: f32) -> Self {
  224    285   
        self.inner = self.inner.float_value(input);
  225    286   
        self
  226    287   
    }
         288  +
    /* FluentBuilderGenerator.kt:498 */
  227    289   
    #[allow(missing_docs)] // documentation missing in model
         290  +
                           /* FluentBuilderGenerator.kt:500 */
  228    291   
    pub fn set_float_value(mut self, input: ::std::option::Option<f32>) -> Self {
  229    292   
        self.inner = self.inner.set_float_value(input);
  230    293   
        self
  231    294   
    }
         295  +
    /* FluentBuilderGenerator.kt:518 */
  232    296   
    #[allow(missing_docs)] // documentation missing in model
         297  +
                           /* FluentBuilderGenerator.kt:520 */
  233    298   
    pub fn get_float_value(&self) -> &::std::option::Option<f32> {
  234    299   
        self.inner.get_float_value()
  235    300   
    }
         301  +
    /* FluentBuilderGenerator.kt:498 */
  236    302   
    #[allow(missing_docs)] // documentation missing in model
         303  +
                           /* FluentBuilderGenerator.kt:500 */
  237    304   
    pub fn nested(mut self, input: crate::types::NestedWithNamespace) -> Self {
  238    305   
        self.inner = self.inner.nested(input);
  239    306   
        self
  240    307   
    }
         308  +
    /* FluentBuilderGenerator.kt:498 */
  241    309   
    #[allow(missing_docs)] // documentation missing in model
         310  +
                           /* FluentBuilderGenerator.kt:500 */
  242    311   
    pub fn set_nested(mut self, input: ::std::option::Option<crate::types::NestedWithNamespace>) -> Self {
  243    312   
        self.inner = self.inner.set_nested(input);
  244    313   
        self
  245    314   
    }
         315  +
    /* FluentBuilderGenerator.kt:518 */
  246    316   
    #[allow(missing_docs)] // documentation missing in model
         317  +
                           /* FluentBuilderGenerator.kt:520 */
  247    318   
    pub fn get_nested(&self) -> &::std::option::Option<crate::types::NestedWithNamespace> {
  248    319   
        self.inner.get_nested()
  249    320   
    }
         321  +
    /* FluentBuilderGenerator.kt:498 */
  250    322   
    #[allow(missing_docs)] // documentation missing in model
         323  +
                           /* FluentBuilderGenerator.kt:500 */
  251    324   
    pub fn double_value(mut self, input: f64) -> Self {
  252    325   
        self.inner = self.inner.double_value(input);
  253    326   
        self
  254    327   
    }
         328  +
    /* FluentBuilderGenerator.kt:498 */
  255    329   
    #[allow(missing_docs)] // documentation missing in model
         330  +
                           /* FluentBuilderGenerator.kt:500 */
  256    331   
    pub fn set_double_value(mut self, input: ::std::option::Option<f64>) -> Self {
  257    332   
        self.inner = self.inner.set_double_value(input);
  258    333   
        self
  259    334   
    }
         335  +
    /* FluentBuilderGenerator.kt:518 */
  260    336   
    #[allow(missing_docs)] // documentation missing in model
         337  +
                           /* FluentBuilderGenerator.kt:520 */
  261    338   
    pub fn get_double_value(&self) -> &::std::option::Option<f64> {
  262    339   
        self.inner.get_double_value()
  263    340   
    }
         341  +
    /* FluentBuilderGenerator.kt:282 */
  264    342   
}

tmp-codegen-diff/codegen-client-test/rest_xml_namespace/rust-client-codegen/src/primitives.rs

@@ -1,1 +7,8 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* SmithyTypesPubUseExtra.kt:66 */
    2      3   
pub use ::aws_smithy_types::date_time::Format as DateTimeFormat;
    3      4   
pub use ::aws_smithy_types::Blob;
    4         -
pub use ::aws_smithy_types::DateTime;
           5  +
/* SmithyTypesPubUseExtra.kt:69 */ pub use ::aws_smithy_types::DateTime;
    5      6   
    6         -
/// Event stream related primitives such as `Message` or `Header`.
           7  +
/// /* ClientRustModule.kt:121 */Event stream related primitives such as `Message` or `Header`.
    7      8   
pub mod event_stream;

tmp-codegen-diff/codegen-client-test/rest_xml_namespace/rust-client-codegen/src/protocol_serde.rs

@@ -1,1 +32,36 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ResponseDeserializerGenerator.kt:170 */
    2      3   
pub(crate) fn type_erase_result<O, E>(
    3      4   
    result: ::std::result::Result<O, E>,
    4      5   
) -> ::std::result::Result<
    5      6   
    ::aws_smithy_runtime_api::client::interceptors::context::Output,
    6      7   
    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError<::aws_smithy_runtime_api::client::interceptors::context::Error>,
    7      8   
>
    8      9   
where
    9     10   
    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
   10     11   
    E: ::std::error::Error + std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
   11     12   
{
   12     13   
    result
   13     14   
        .map(|output| ::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
   14     15   
        .map_err(|error| ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(error))
   15     16   
        .map_err(::std::convert::Into::into)
   16     17   
}
   17     18   
          19  +
/* RestXml.kt:61 */
   18     20   
pub fn parse_http_error_metadata(
   19     21   
    _response_status: u16,
   20     22   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   21     23   
    response_body: &[u8],
   22     24   
) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_xml::decode::XmlDecodeError> {
          25  +
    /* RestXml.kt:65 */
   23     26   
    crate::rest_xml_wrapped_errors::parse_error_metadata(response_body)
          27  +
    /* RestXml.kt:61 */
   24     28   
}
   25     29   
   26     30   
pub(crate) mod shape_simple_scalar_properties;
   27     31   
   28     32   
pub(crate) mod shape_simple_scalar_properties_input;
   29     33   
   30     34   
pub(crate) mod shape_simple_scalar_properties_output;
   31     35   
   32     36   
pub(crate) mod shape_nested_with_namespace;

tmp-codegen-diff/codegen-client-test/rest_xml_namespace/rust-client-codegen/src/protocol_serde/shape_nested_with_namespace.rs

@@ -1,1 +31,62 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* RustType.kt:516 */
    2      3   
#[allow(clippy::needless_question_mark)]
           4  +
/* XmlBindingTraitParserGenerator.kt:510 */
    3      5   
pub fn de_nested_with_namespace(
    4      6   
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
    5      7   
) -> ::std::result::Result<crate::types::NestedWithNamespace, ::aws_smithy_xml::decode::XmlDecodeError> {
           8  +
    /* RustType.kt:516 */
    6      9   
    #[allow(unused_mut)]
          10  +
    /* XmlBindingTraitParserGenerator.kt:515 */
    7     11   
    let mut builder = crate::types::NestedWithNamespace::builder();
    8         -
    let attrib_1 = {
    9         -
        let s = decoder.start_el().attr("xsi:someName");
   10         -
        match s {
   11         -
            None => None,
   12         -
            Some(s) => Some(Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(s.into())?),
   13         -
        }
   14         -
    };
          12  +
    /* XmlBindingTraitParserGenerator.kt:316 */
          13  +
    let attrib_1 =
          14  +
        /* XmlBindingTraitParserGenerator.kt:411 */ {
          15  +
            /* XmlBindingTraitParserGenerator.kt:412 */let s = decoder
          16  +
                                .start_el()
          17  +
                                .attr("xsi:someName");
          18  +
            /* XmlBindingTraitParserGenerator.kt:420 */match s {
          19  +
                /* XmlBindingTraitParserGenerator.kt:421 */None => None,
          20  +
                /* XmlBindingTraitParserGenerator.kt:422 */Some(s) => Some(
          21  +
                    /* XmlBindingTraitParserGenerator.kt:729 */Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
          22  +
                        /* XmlBindingTraitParserGenerator.kt:424 */s
          23  +
                        /* XmlBindingTraitParserGenerator.kt:748 */.into()
          24  +
                    /* XmlBindingTraitParserGenerator.kt:729 */)
          25  +
                    /* XmlBindingTraitParserGenerator.kt:426 */?
          26  +
                /* XmlBindingTraitParserGenerator.kt:422 */)
          27  +
            /* XmlBindingTraitParserGenerator.kt:420 */}
          28  +
        /* XmlBindingTraitParserGenerator.kt:411 */}
          29  +
    /* XmlBindingTraitParserGenerator.kt:316 */;
          30  +
    /* XmlBindingTraitParserGenerator.kt:319 */
   15     31   
    builder.attr_field = attrib_1;
          32  +
    /* XmlBindingTraitParserGenerator.kt:533 */
   16     33   
    Ok(builder.build())
          34  +
    /* XmlBindingTraitParserGenerator.kt:510 */
   17     35   
}
   18     36   
          37  +
/* XmlBindingTraitSerializerGenerator.kt:427 */
   19     38   
pub fn ser_nested_with_namespace(
   20     39   
    input: &crate::types::NestedWithNamespace,
   21     40   
    writer: ::aws_smithy_xml::encode::ElWriter,
   22     41   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
          42  +
    /* XmlBindingTraitSerializerGenerator.kt:289 */
   23     43   
    let mut writer = writer;
          44  +
    /* XmlBindingTraitSerializerGenerator.kt:555 */
   24     45   
    if let Some(var_2) = &input.attr_field {
   25         -
        writer.write_attribute("xsi:someName", var_2.as_str());
          46  +
        /* XmlBindingTraitSerializerGenerator.kt:293 */
          47  +
        writer.write_attribute(
          48  +
            "xsi:someName",
          49  +
            /* XmlBindingTraitSerializerGenerator.kt:321 */ var_2.as_str(), /* XmlBindingTraitSerializerGenerator.kt:293 */
          50  +
        );
          51  +
        /* XmlBindingTraitSerializerGenerator.kt:555 */
   26     52   
    }
          53  +
    /* RustType.kt:516 */
   27     54   
    #[allow(unused_mut)]
          55  +
    /* XmlBindingTraitSerializerGenerator.kt:299 */
   28     56   
    let mut scope = writer.finish();
          57  +
    /* XmlBindingTraitSerializerGenerator.kt:304 */
   29     58   
    scope.finish();
          59  +
    /* XmlBindingTraitSerializerGenerator.kt:437 */
   30     60   
    Ok(())
          61  +
    /* XmlBindingTraitSerializerGenerator.kt:427 */
   31     62   
}

tmp-codegen-diff/codegen-client-test/rest_xml_namespace/rust-client-codegen/src/protocol_serde/shape_simple_scalar_properties.rs

@@ -1,1 +241,283 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* RustType.kt:516 */
    2      3   
#[allow(clippy::unnecessary_wraps)]
           4  +
/* ProtocolParserGenerator.kt:99 */
    3      5   
pub fn de_simple_scalar_properties_http_error(
    4      6   
    _response_status: u16,
    5      7   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6      8   
    _response_body: &[u8],
    7      9   
) -> std::result::Result<
    8     10   
    crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput,
    9     11   
    crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
   10     12   
> {
          13  +
    /* RustType.kt:516 */
   11     14   
    #[allow(unused_mut)]
          15  +
    /* ProtocolParserGenerator.kt:106 */
   12     16   
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   13     17   
        .map_err(crate::operation::simple_scalar_properties::SimpleScalarPropertiesError::unhandled)?;
          18  +
    /* ProtocolParserGenerator.kt:120 */
   14     19   
    let generic = generic_builder.build();
          20  +
    /* ProtocolParserGenerator.kt:185 */
   15     21   
    Err(crate::operation::simple_scalar_properties::SimpleScalarPropertiesError::generic(generic))
          22  +
    /* ProtocolParserGenerator.kt:99 */
   16     23   
}
   17     24   
          25  +
/* RustType.kt:516 */
   18     26   
#[allow(clippy::unnecessary_wraps)]
          27  +
/* ProtocolParserGenerator.kt:71 */
   19     28   
pub fn de_simple_scalar_properties_http_response(
   20     29   
    _response_status: u16,
   21     30   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   22     31   
    _response_body: &[u8],
   23     32   
) -> std::result::Result<
   24     33   
    crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput,
   25     34   
    crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
   26     35   
> {
          36  +
    /* ProtocolParserGenerator.kt:77 */
   27     37   
    Ok({
          38  +
        /* RustType.kt:516 */
   28     39   
        #[allow(unused_mut)]
          40  +
        /* ProtocolParserGenerator.kt:240 */
   29     41   
        let mut output = crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesOutputBuilder::default();
          42  +
        /* ProtocolParserGenerator.kt:247 */
   30     43   
        output = crate::protocol_serde::shape_simple_scalar_properties::de_simple_scalar_properties(_response_body, output)
   31     44   
            .map_err(crate::operation::simple_scalar_properties::SimpleScalarPropertiesError::unhandled)?;
          45  +
        /* ProtocolParserGenerator.kt:267 */
   32     46   
        output = output.set_foo(
          47  +
            /* ProtocolParserGenerator.kt:302 */
   33     48   
            crate::protocol_serde::shape_simple_scalar_properties_output::de_foo_header(_response_headers).map_err(|_| {
   34     49   
                crate::operation::simple_scalar_properties::SimpleScalarPropertiesError::unhandled("Failed to parse foo from header `X-Foo")
   35         -
            })?,
          50  +
            })?, /* ProtocolParserGenerator.kt:267 */
   36     51   
        );
          52  +
        /* ClientBuilderInstantiator.kt:56 */
   37     53   
        output.build()
          54  +
        /* ProtocolParserGenerator.kt:77 */
   38     55   
    })
          56  +
    /* ProtocolParserGenerator.kt:71 */
   39     57   
}
   40     58   
          59  +
/* HttpBindingGenerator.kt:542 */
   41     60   
pub fn ser_simple_scalar_properties_headers(
   42     61   
    input: &crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput,
   43     62   
    mut builder: ::http::request::Builder,
   44     63   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
          64  +
    /* HttpBindingGenerator.kt:592 */
   45     65   
    if let ::std::option::Option::Some(inner_1) = &input.foo {
          66  +
        /* HttpBindingGenerator.kt:704 */
   46     67   
        let formatted_2 = inner_1.as_str();
          68  +
        /* HttpBindingGenerator.kt:706 */
   47     69   
        let header_value = formatted_2;
   48     70   
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   49     71   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   50     72   
                "foo",
   51     73   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   52     74   
            )
   53     75   
        })?;
   54     76   
        builder = builder.header("X-Foo", header_value);
          77  +
        /* HttpBindingGenerator.kt:592 */
   55     78   
    }
          79  +
    /* HttpBindingGenerator.kt:555 */
   56     80   
    Ok(builder)
          81  +
    /* HttpBindingGenerator.kt:542 */
   57     82   
}
   58     83   
          84  +
/* XmlBindingTraitSerializerGenerator.kt:116 */
   59     85   
pub fn ser_simple_scalar_properties_op_input(
   60     86   
    input: &crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput,
   61     87   
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
          88  +
    /* XmlBindingTraitSerializerGenerator.kt:120 */
   62     89   
    let mut out = String::new();
          90  +
    /* XmlBindingTraitSerializerGenerator.kt:124 */
   63     91   
    {
          92  +
        /* XmlBindingTraitSerializerGenerator.kt:125 */
   64     93   
        let mut writer = ::aws_smithy_xml::encode::XmlWriter::new(&mut out);
   65     94   
        #[allow(unused_mut)]
   66     95   
        let mut root = writer.start_el("SimpleScalarPropertiesInputOutput").write_ns("https://example.com", None);
          96  +
        /* XmlBindingTraitSerializerGenerator.kt:440 */
   67     97   
        crate::protocol_serde::shape_simple_scalar_properties_input::ser_simple_scalar_properties_input_input_input(input, root)?
          98  +
        /* XmlBindingTraitSerializerGenerator.kt:124 */
   68     99   
    }
         100  +
    /* XmlBindingTraitSerializerGenerator.kt:137 */
   69    101   
    Ok(::aws_smithy_types::body::SdkBody::from(out))
         102  +
    /* XmlBindingTraitSerializerGenerator.kt:116 */
   70    103   
}
   71    104   
         105  +
/* RustType.kt:516 */
   72    106   
#[allow(unused_mut)]
         107  +
/* XmlBindingTraitParserGenerator.kt:189 */
   73    108   
pub fn de_simple_scalar_properties(
   74    109   
    inp: &[u8],
   75    110   
    mut builder: crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesOutputBuilder,
   76    111   
) -> std::result::Result<
   77    112   
    crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesOutputBuilder,
   78    113   
    ::aws_smithy_xml::decode::XmlDecodeError,
   79    114   
> {
         115  +
    /* XmlBindingTraitParserGenerator.kt:194 */
   80    116   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
   81    117   
   82    118   
    #[allow(unused_mut)]
   83    119   
    let mut decoder = doc.root_element()?;
   84    120   
    #[allow(unused_variables)]
   85    121   
    let start_el = decoder.start_el();
         122  +
    /* RestXmlParserGenerator.kt:36 */
   86    123   
    if !start_el.matches("SimpleScalarPropertiesInputOutput") {
   87    124   
        return Err(::aws_smithy_xml::decode::XmlDecodeError::custom(format!(
   88    125   
            "encountered invalid XML root: expected SimpleScalarPropertiesInputOutput but got {:?}. This is likely a bug in the SDK.",
   89    126   
            start_el
   90    127   
        )));
   91    128   
    }
         129  +
    /* XmlBindingTraitParserGenerator.kt:352 */
   92    130   
    while let Some(mut tag) = decoder.next_tag() {
         131  +
        /* XmlBindingTraitParserGenerator.kt:353 */
   93    132   
        match tag.start_el() {
   94         -
            s if s.matches("stringValue") /* stringValue aws.protocoltests.restxml.xmlns.synthetic#SimpleScalarPropertiesOutput$stringValue */ =>  {
   95         -
                let var_3 =
   96         -
                    Some(
   97         -
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   98         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   99         -
                            .into()
  100         -
                        )
  101         -
                        ?
  102         -
                    )
  103         -
                ;
  104         -
                builder = builder.set_string_value(var_3);
  105         -
            }
         133  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("stringValue") /* stringValue aws.protocoltests.restxml.xmlns.synthetic#SimpleScalarPropertiesOutput$stringValue */ =>  {
         134  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_3 =
         135  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         136  +
                        /* XmlBindingTraitParserGenerator.kt:729 */Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
         137  +
                            /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         138  +
                            /* XmlBindingTraitParserGenerator.kt:748 */.into()
         139  +
                        /* XmlBindingTraitParserGenerator.kt:729 */)
         140  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         141  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         142  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         143  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_string_value(var_3);
         144  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  106    145   
            ,
  107         -
            s if s.matches("Nested") /* Nested aws.protocoltests.restxml.xmlns.synthetic#SimpleScalarPropertiesOutput$Nested */ =>  {
  108         -
                let var_4 =
  109         -
                    Some(
  110         -
                        crate::protocol_serde::shape_nested_with_namespace::de_nested_with_namespace(&mut tag)
  111         -
                        ?
  112         -
                    )
  113         -
                ;
  114         -
                builder = builder.set_nested(var_4);
  115         -
            }
         146  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("Nested") /* Nested aws.protocoltests.restxml.xmlns.synthetic#SimpleScalarPropertiesOutput$Nested */ =>  {
         147  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_4 =
         148  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         149  +
                        /* XmlBindingTraitParserGenerator.kt:536 */crate::protocol_serde::shape_nested_with_namespace::de_nested_with_namespace(&mut tag)
         150  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         151  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         152  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         153  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_nested(var_4);
         154  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  116    155   
            ,
  117         -
            s if s.matches("floatValue") /* floatValue aws.protocoltests.restxml.xmlns.synthetic#SimpleScalarPropertiesOutput$floatValue */ =>  {
  118         -
                let var_5 =
  119         -
                    Some(
  120         -
                         {
  121         -
                            <f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
  122         -
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
  123         -
                            )
  124         -
                            .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (float: `smithy.api#Float`)"))
  125         -
                        }
  126         -
                        ?
  127         -
                    )
  128         -
                ;
  129         -
                builder = builder.set_float_value(var_5);
  130         -
            }
         156  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("floatValue") /* floatValue aws.protocoltests.restxml.xmlns.synthetic#SimpleScalarPropertiesOutput$floatValue */ =>  {
         157  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_5 =
         158  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         159  +
                        /* XmlBindingTraitParserGenerator.kt:676 */ {
         160  +
                            /* XmlBindingTraitParserGenerator.kt:677 */<f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
         161  +
                                /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         162  +
                            /* XmlBindingTraitParserGenerator.kt:677 */)
         163  +
                            /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (float: `smithy.api#Float`)"))
         164  +
                        /* XmlBindingTraitParserGenerator.kt:676 */}
         165  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         166  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         167  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         168  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_float_value(var_5);
         169  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  131    170   
            ,
  132         -
            s if s.matches("falseBooleanValue") /* falseBooleanValue aws.protocoltests.restxml.xmlns.synthetic#SimpleScalarPropertiesOutput$falseBooleanValue */ =>  {
  133         -
                let var_6 =
  134         -
                    Some(
  135         -
                         {
  136         -
                            <bool as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
  137         -
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
  138         -
                            )
  139         -
                            .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `smithy.api#Boolean`)"))
  140         -
                        }
  141         -
                        ?
  142         -
                    )
  143         -
                ;
  144         -
                builder = builder.set_false_boolean_value(var_6);
  145         -
            }
         171  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("falseBooleanValue") /* falseBooleanValue aws.protocoltests.restxml.xmlns.synthetic#SimpleScalarPropertiesOutput$falseBooleanValue */ =>  {
         172  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_6 =
         173  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         174  +
                        /* XmlBindingTraitParserGenerator.kt:676 */ {
         175  +
                            /* XmlBindingTraitParserGenerator.kt:677 */<bool as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
         176  +
                                /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         177  +
                            /* XmlBindingTraitParserGenerator.kt:677 */)
         178  +
                            /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `smithy.api#Boolean`)"))
         179  +
                        /* XmlBindingTraitParserGenerator.kt:676 */}
         180  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         181  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         182  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         183  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_false_boolean_value(var_6);
         184  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  146    185   
            ,
  147         -
            s if s.matches("shortValue") /* shortValue aws.protocoltests.restxml.xmlns.synthetic#SimpleScalarPropertiesOutput$shortValue */ =>  {
  148         -
                let var_7 =
  149         -
                    Some(
  150         -
                         {
  151         -
                            <i16 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
  152         -
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
  153         -
                            )
  154         -
                            .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (short: `smithy.api#Short`)"))
  155         -
                        }
  156         -
                        ?
  157         -
                    )
  158         -
                ;
  159         -
                builder = builder.set_short_value(var_7);
  160         -
            }
         186  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("shortValue") /* shortValue aws.protocoltests.restxml.xmlns.synthetic#SimpleScalarPropertiesOutput$shortValue */ =>  {
         187  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_7 =
         188  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         189  +
                        /* XmlBindingTraitParserGenerator.kt:676 */ {
         190  +
                            /* XmlBindingTraitParserGenerator.kt:677 */<i16 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
         191  +
                                /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         192  +
                            /* XmlBindingTraitParserGenerator.kt:677 */)
         193  +
                            /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (short: `smithy.api#Short`)"))
         194  +
                        /* XmlBindingTraitParserGenerator.kt:676 */}
         195  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         196  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         197  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         198  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_short_value(var_7);
         199  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  161    200   
            ,
  162         -
            s if s.matches("integerValue") /* integerValue aws.protocoltests.restxml.xmlns.synthetic#SimpleScalarPropertiesOutput$integerValue */ =>  {
  163         -
                let var_8 =
  164         -
                    Some(
  165         -
                         {
  166         -
                            <i32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
  167         -
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
  168         -
                            )
  169         -
                            .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `smithy.api#Integer`)"))
  170         -
                        }
  171         -
                        ?
  172         -
                    )
  173         -
                ;
  174         -
                builder = builder.set_integer_value(var_8);
  175         -
            }
         201  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("integerValue") /* integerValue aws.protocoltests.restxml.xmlns.synthetic#SimpleScalarPropertiesOutput$integerValue */ =>  {
         202  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_8 =
         203  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         204  +
                        /* XmlBindingTraitParserGenerator.kt:676 */ {
         205  +
                            /* XmlBindingTraitParserGenerator.kt:677 */<i32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
         206  +
                                /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         207  +
                            /* XmlBindingTraitParserGenerator.kt:677 */)
         208  +
                            /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `smithy.api#Integer`)"))
         209  +
                        /* XmlBindingTraitParserGenerator.kt:676 */}
         210  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         211  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         212  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         213  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_integer_value(var_8);
         214  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  176    215   
            ,
  177         -
            s if s.matches("DoubleDribble") /* doubleValue aws.protocoltests.restxml.xmlns.synthetic#SimpleScalarPropertiesOutput$doubleValue */ =>  {
  178         -
                let var_9 =
  179         -
                    Some(
  180         -
                         {
  181         -
                            <f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
  182         -
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
  183         -
                            )
  184         -
                            .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `smithy.api#Double`)"))
  185         -
                        }
  186         -
                        ?
  187         -
                    )
  188         -
                ;
  189         -
                builder = builder.set_double_value(var_9);
  190         -
            }
         216  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("DoubleDribble") /* doubleValue aws.protocoltests.restxml.xmlns.synthetic#SimpleScalarPropertiesOutput$doubleValue */ =>  {
         217  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_9 =
         218  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         219  +
                        /* XmlBindingTraitParserGenerator.kt:676 */ {
         220  +
                            /* XmlBindingTraitParserGenerator.kt:677 */<f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
         221  +
                                /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         222  +
                            /* XmlBindingTraitParserGenerator.kt:677 */)
         223  +
                            /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `smithy.api#Double`)"))
         224  +
                        /* XmlBindingTraitParserGenerator.kt:676 */}
         225  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         226  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         227  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         228  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_double_value(var_9);
         229  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  191    230   
            ,
  192         -
            s if s.matches("trueBooleanValue") /* trueBooleanValue aws.protocoltests.restxml.xmlns.synthetic#SimpleScalarPropertiesOutput$trueBooleanValue */ =>  {
  193         -
                let var_10 =
  194         -
                    Some(
  195         -
                         {
  196         -
                            <bool as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
  197         -
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
  198         -
                            )
  199         -
                            .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `smithy.api#Boolean`)"))
  200         -
                        }
  201         -
                        ?
  202         -
                    )
  203         -
                ;
  204         -
                builder = builder.set_true_boolean_value(var_10);
  205         -
            }
         231  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("trueBooleanValue") /* trueBooleanValue aws.protocoltests.restxml.xmlns.synthetic#SimpleScalarPropertiesOutput$trueBooleanValue */ =>  {
         232  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_10 =
         233  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         234  +
                        /* XmlBindingTraitParserGenerator.kt:676 */ {
         235  +
                            /* XmlBindingTraitParserGenerator.kt:677 */<bool as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
         236  +
                                /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         237  +
                            /* XmlBindingTraitParserGenerator.kt:677 */)
         238  +
                            /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `smithy.api#Boolean`)"))
         239  +
                        /* XmlBindingTraitParserGenerator.kt:676 */}
         240  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         241  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         242  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         243  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_true_boolean_value(var_10);
         244  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  206    245   
            ,
  207         -
            s if s.matches("longValue") /* longValue aws.protocoltests.restxml.xmlns.synthetic#SimpleScalarPropertiesOutput$longValue */ =>  {
  208         -
                let var_11 =
  209         -
                    Some(
  210         -
                         {
  211         -
                            <i64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
  212         -
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
  213         -
                            )
  214         -
                            .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `smithy.api#Long`)"))
  215         -
                        }
  216         -
                        ?
  217         -
                    )
  218         -
                ;
  219         -
                builder = builder.set_long_value(var_11);
  220         -
            }
         246  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("longValue") /* longValue aws.protocoltests.restxml.xmlns.synthetic#SimpleScalarPropertiesOutput$longValue */ =>  {
         247  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_11 =
         248  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         249  +
                        /* XmlBindingTraitParserGenerator.kt:676 */ {
         250  +
                            /* XmlBindingTraitParserGenerator.kt:677 */<i64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
         251  +
                                /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         252  +
                            /* XmlBindingTraitParserGenerator.kt:677 */)
         253  +
                            /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `smithy.api#Long`)"))
         254  +
                        /* XmlBindingTraitParserGenerator.kt:676 */}
         255  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         256  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         257  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         258  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_long_value(var_11);
         259  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  221    260   
            ,
  222         -
            s if s.matches("byteValue") /* byteValue aws.protocoltests.restxml.xmlns.synthetic#SimpleScalarPropertiesOutput$byteValue */ =>  {
  223         -
                let var_12 =
  224         -
                    Some(
  225         -
                         {
  226         -
                            <i8 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
  227         -
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
  228         -
                            )
  229         -
                            .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (byte: `smithy.api#Byte`)"))
  230         -
                        }
  231         -
                        ?
  232         -
                    )
  233         -
                ;
  234         -
                builder = builder.set_byte_value(var_12);
  235         -
            }
         261  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("byteValue") /* byteValue aws.protocoltests.restxml.xmlns.synthetic#SimpleScalarPropertiesOutput$byteValue */ =>  {
         262  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_12 =
         263  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         264  +
                        /* XmlBindingTraitParserGenerator.kt:676 */ {
         265  +
                            /* XmlBindingTraitParserGenerator.kt:677 */<i8 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
         266  +
                                /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         267  +
                            /* XmlBindingTraitParserGenerator.kt:677 */)
         268  +
                            /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (byte: `smithy.api#Byte`)"))
         269  +
                        /* XmlBindingTraitParserGenerator.kt:676 */}
         270  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         271  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         272  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         273  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_byte_value(var_12);
         274  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  236    275   
            ,
  237         -
            _ => {}
  238         -
        }
         276  +
            /* XmlBindingTraitParserGenerator.kt:356 */_ => {}
         277  +
        /* XmlBindingTraitParserGenerator.kt:353 */}
         278  +
        /* XmlBindingTraitParserGenerator.kt:352 */
  239    279   
    }
         280  +
    /* XmlBindingTraitParserGenerator.kt:213 */
  240    281   
    Ok(builder)
         282  +
    /* XmlBindingTraitParserGenerator.kt:189 */
  241    283   
}