Server Test Python

Server Test Python

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943

Files changed:

tmp-codegen-diff/codegen-server-test-python/misc/rust-server-codegen-python/src/lib.rs

@@ -1,1 +54,55 @@
   15     15   
#![allow(rustdoc::bare_urls)]
   16     16   
#![allow(rustdoc::redundant_explicit_links)]
   17     17   
#![allow(rustdoc::invalid_html_tags)]
   18     18   
#![forbid(unsafe_code)]
   19     19   
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
   20     20   
//! A service to test miscellaneous aspects of code generation where protocol
   21     21   
//! selection is not relevant. If you want to test something protocol-specific,
   22     22   
//! add it to a separate `[protocol]-extras.smithy`.
   23     23   
   24     24   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
          25  +
/* ServerRootGenerator.kt:65 */
   25     26   
//! A fast and customizable Rust implementation of the MiscService Smithy service.
   26     27   
//!
   27     28   
//! # Using MiscService
   28     29   
//!
   29     30   
//! The primary entrypoint is [`MiscService`]: it satisfies the [`Service<http::Request, Response = http::Response>`](::tower::Service)
   30     31   
//! trait and therefore can be handed to a [`hyper` server](https://github.com/hyperium/hyper) via [`MiscService::into_make_service`]
   31     32   
//! or used in AWS Lambda
   32     33   
#![cfg_attr(
   33     34   
    feature = "aws-lambda",
   34     35   
    doc = " via [`LambdaHandler`](crate::server::routing::LambdaHandler)."
@@ -194,195 +289,303 @@
  214    215   
//! }
  215    216   
//!
  216    217   
//! ```
  217    218   
//!
  218    219   
//! [`serve`]: https://docs.rs/hyper/0.14.16/hyper/server/struct.Builder.html#method.serve
  219    220   
//! [`tower::make::MakeService`]: https://docs.rs/tower/latest/tower/make/trait.MakeService.html
  220    221   
//! [HTTP binding traits]: https://smithy.io/2.0/spec/http-bindings.html
  221    222   
//! [operations]: https://smithy.io/2.0/spec/service-types.html#operation
  222    223   
//! [hyper server]: https://docs.rs/hyper/latest/hyper/server/index.html
  223    224   
//! [Service]: https://docs.rs/tower-service/latest/tower_service/trait.Service.html
         225  +
/* ServerRootGenerator.kt:261 */
  224    226   
pub use crate::service::{
  225    227   
    MiscService, MiscServiceBuilder, MiscServiceConfig, MiscServiceConfigBuilder,
  226    228   
    MissingOperationsError,
  227    229   
};
  228    230   
  229         -
/// Contains the types that are re-exported from the `aws-smithy-http-server` crate.
         231  +
/// /* ServerRustModule.kt:55 */Contains the types that are re-exported from the `aws-smithy-http-server` crate.
  230    232   
pub mod server {
  231    233   
    // Re-export all types from the `aws-smithy-http-server` crate.
  232    234   
    pub use ::aws_smithy_http_server::*;
         235  +
         236  +
    /* CodegenDelegator.kt:200 */
  233    237   
}
  234    238   
         239  +
/* CrateVersionCustomization.kt:23 */
  235    240   
/// Crate version number.
  236    241   
pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION");
  237    242   
  238         -
/// All error types that operations can return. Documentation on these types is copied from the model.
         243  +
/// /* ServerRustModule.kt:55 */All error types that operations can return. Documentation on these types is copied from the model.
  239    244   
pub mod error;
  240    245   
  241         -
/// Input structures for operations. Documentation on these types is copied from the model.
         246  +
/// /* ServerRustModule.kt:55 */Input structures for operations. Documentation on these types is copied from the model.
  242    247   
pub mod input;
  243    248   
  244         -
/// Data structures used by operation inputs/outputs. Documentation on these types is copied from the model.
         249  +
/// /* ServerRustModule.kt:55 */Data structures used by operation inputs/outputs. Documentation on these types is copied from the model.
  245    250   
pub mod model;
  246    251   
  247         -
/// All operations that this crate can perform.
         252  +
/// /* ServerRustModule.kt:55 */All operations that this crate can perform.
  248    253   
pub mod operation;
  249    254   
         255  +
/* ServerRustModule.kt:79 */
  250    256   
/// A collection of types representing each operation defined in the service closure.
  251    257   
///
  252    258   
/// The [plugin system](::aws_smithy_http_server::plugin) makes use of these
  253    259   
/// [zero-sized types](https://doc.rust-lang.org/nomicon/exotic-sizes.html#zero-sized-types-zsts) (ZSTs) to
  254    260   
/// parameterize [`Plugin`](::aws_smithy_http_server::plugin::Plugin) implementations. Their traits, such as
  255    261   
/// [`OperationShape`](::aws_smithy_http_server::operation::OperationShape), can be used to provide
  256    262   
/// operation specific information to the [`Layer`](::tower::Layer) being applied.
  257    263   
pub mod operation_shape;
  258    264   
  259         -
/// Output structures for operations. Documentation on these types is copied from the model.
         265  +
/// /* ServerRustModule.kt:55 */Output structures for operations. Documentation on these types is copied from the model.
  260    266   
pub mod output;
  261    267   
  262         -
/// Export PyO3 symbols in the shared library
         268  +
/// /* PythonServerRustModule.kt:23 */Export PyO3 symbols in the shared library
  263    269   
pub mod python_module_export;
  264    270   
  265         -
/// Operation adapters that delegate to Python handlers.
         271  +
/// /* PythonServerRustModule.kt:23 */Operation adapters that delegate to Python handlers.
  266    272   
pub mod python_operation_adaptor;
  267    273   
  268         -
/// Python server and application implementation.
         274  +
/// /* PythonServerRustModule.kt:23 */Python server and application implementation.
  269    275   
pub mod python_server_application;
  270    276   
         277  +
/* RustModule.kt:172 */
  271    278   
mod service;
  272    279   
  273         -
/// Data primitives referenced by other data types.
         280  +
/// /* ServerRustModule.kt:55 */Data primitives referenced by other data types.
  274    281   
pub mod types;
  275    282   
  276         -
/// Unconstrained types for constrained shapes.
         283  +
/// /* ServerRustModule.kt:55 */Unconstrained types for constrained shapes.
         284  +
/* RustModule.kt:172 */
  277    285   
mod unconstrained;
  278    286   
  279         -
/// Constrained types for constrained shapes.
         287  +
/// /* ServerRustModule.kt:55 */Constrained types for constrained shapes.
         288  +
/* RustModule.kt:172 */
  280    289   
mod constrained;
  281    290   
  282    291   
pub(crate) mod protocol_serde;
  283    292   
  284         -
/// Re-exported Python types from supporting crates.
         293  +
/// /* PythonServerCodegenDecorator.kt:57 */Re-exported Python types from supporting crates.
         294  +
/* PythonServerCodegenDecorator.kt:58 */
  285    295   
pub mod python_types {
         296  +
    /* PythonServerCodegenDecorator.kt:59 */
  286    297   
    pub use ::aws_smithy_http_server_python::types::Blob;
         298  +
    /* PythonServerCodegenDecorator.kt:60 */
  287    299   
    pub use ::aws_smithy_http_server_python::types::DateTime;
         300  +
    /* PythonServerCodegenDecorator.kt:61 */
  288    301   
    pub use ::aws_smithy_http_server_python::types::Document;
         302  +
    /* PythonServerCodegenDecorator.kt:58 */
  289    303   
}

tmp-codegen-diff/codegen-server-test-python/misc/rust-server-codegen-python/src/model.rs

@@ -1,1 +948,1406 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* RustType.kt:516 */
    2      3   
#[::pyo3::pyclass]
           4  +
/* PythonServerStructureGenerator.kt:63 */
    3      5   
/// :param path str:
    4      6   
/// :param message str:
    5      7   
/// :rtype None:
    6         -
/// Describes one specific validation failure for an input member.
           8  +
/// /* StructureGenerator.kt:197 */Describes one specific validation failure for an input member.
           9  +
/* RustType.kt:516 */
    7     10   
#[derive(
    8     11   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
    9     12   
)]
   10         -
pub struct ValidationExceptionField {
          13  +
pub /* StructureGenerator.kt:201 */ struct ValidationExceptionField {
          14  +
    /* RustType.kt:516 */
   11     15   
    #[pyo3(get, set)]
          16  +
    /* PythonServerStructureGenerator.kt:80 */
   12     17   
    /// :type str:
   13         -
    /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
          18  +
    /// /* StructureGenerator.kt:231 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
   14     19   
    pub path: ::std::string::String,
          20  +
    /* RustType.kt:516 */
   15     21   
    #[pyo3(get, set)]
          22  +
    /* PythonServerStructureGenerator.kt:80 */
   16     23   
    /// :type str:
   17         -
    /// A detailed description of the validation failure.
          24  +
    /// /* StructureGenerator.kt:231 */A detailed description of the validation failure.
   18     25   
    pub message: ::std::string::String,
          26  +
    /* StructureGenerator.kt:201 */
   19     27   
}
          28  +
/* StructureGenerator.kt:135 */
   20     29   
impl ValidationExceptionField {
   21         -
    /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
          30  +
    /// /* StructureGenerator.kt:231 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
          31  +
    /* StructureGenerator.kt:166 */
   22     32   
    pub fn path(&self) -> &str {
          33  +
        /* StructureGenerator.kt:171 */
   23     34   
        use std::ops::Deref;
   24     35   
        self.path.deref()
          36  +
        /* StructureGenerator.kt:166 */
   25     37   
    }
   26         -
    /// A detailed description of the validation failure.
          38  +
    /// /* StructureGenerator.kt:231 */A detailed description of the validation failure.
          39  +
    /* StructureGenerator.kt:166 */
   27     40   
    pub fn message(&self) -> &str {
          41  +
        /* StructureGenerator.kt:171 */
   28     42   
        use std::ops::Deref;
   29     43   
        self.message.deref()
          44  +
        /* StructureGenerator.kt:166 */
   30     45   
    }
          46  +
    /* StructureGenerator.kt:135 */
   31     47   
}
          48  +
/* RustType.kt:516 */
   32     49   
#[allow(clippy::new_without_default)]
          50  +
/* RustType.kt:516 */
   33     51   
#[allow(clippy::too_many_arguments)]
          52  +
/* RustType.kt:516 */
   34     53   
#[::pyo3::pymethods]
          54  +
/* PythonServerStructureGenerator.kt:88 */
   35     55   
impl ValidationExceptionField {
   36     56   
    #[new]
   37     57   
    pub fn new(path: ::std::string::String, message: ::std::string::String) -> Self {
   38     58   
        Self { path, message }
   39     59   
    }
   40     60   
    fn __repr__(&self) -> String {
   41     61   
        format!("{self:?}")
   42     62   
    }
   43     63   
    fn __str__(&self) -> String {
   44     64   
        format!("{self:?}")
   45     65   
    }
   46     66   
}
          67  +
/* PythonServerStructureGenerator.kt:111 */
   47     68   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<ValidationExceptionField> {
   48     69   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
   49     70   
        ob.extract::<ValidationExceptionField>().map(Box::new)
   50     71   
    }
   51     72   
}
   52     73   
   53     74   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ValidationExceptionField> {
   54     75   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
   55     76   
        (*self).into_py(py)
   56     77   
    }
   57     78   
}
          79  +
/* ServerCodegenVisitor.kt:370 */
   58     80   
impl ValidationExceptionField {
   59         -
    /// Creates a new builder-style object to manufacture [`ValidationExceptionField`](crate::model::ValidationExceptionField).
          81  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ValidationExceptionField`](crate::model::ValidationExceptionField).
          82  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
   60     83   
    pub fn builder() -> crate::model::validation_exception_field::Builder {
          84  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
   61     85   
        crate::model::validation_exception_field::Builder::default()
          86  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
   62     87   
    }
          88  +
    /* ServerCodegenVisitor.kt:370 */
   63     89   
}
   64     90   
          91  +
/* ConstrainedCollectionGenerator.kt:93 */
   65     92   
#[allow(missing_docs)] // documentation missing in model
   66         -
///
          93  +
/// /* ConstrainedCollectionGenerator.kt:94 */
   67     94   
/// This is a constrained type because its corresponding modeled Smithy shape has one or more
   68     95   
/// [constraint traits]. Use [`HeaderSet::try_from`] to construct values of this type.
   69     96   
///
   70     97   
/// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
   71     98   
///
          99  +
/* RustType.kt:516 */
   72    100   
#[derive(
   73    101   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   74    102   
)]
   75         -
pub(crate) struct HeaderSet(pub(crate) ::std::vec::Vec<::std::string::String>);
         103  +
pub(crate) /* ConstrainedCollectionGenerator.kt:97 */ struct HeaderSet(
         104  +
    pub(crate) ::std::vec::Vec<::std::string::String>,
         105  +
);
         106  +
/* ConstrainedCollectionGenerator.kt:104 */
   76    107   
impl HeaderSet {
         108  +
    /* ConstrainedCollectionGenerator.kt:116 */
   77    109   
    /// Consumes the value, returning the underlying [`::std::vec::Vec<::std::string::String>`].
   78    110   
    pub fn into_inner(self) -> ::std::vec::Vec<::std::string::String> {
   79    111   
        self.0
   80    112   
    }
   81    113   
   82    114   
    fn check_unique_items(
   83    115   
        items: ::std::vec::Vec<::std::string::String>,
   84    116   
    ) -> ::std::result::Result<
   85    117   
        ::std::vec::Vec<::std::string::String>,
   86    118   
        crate::model::header_set_internal::ConstraintViolation,
   87    119   
    > {
   88    120   
        let mut seen = ::std::collections::HashMap::new();
   89    121   
        let mut duplicate_indices = ::std::vec::Vec::new();
   90    122   
        for (idx, item) in items.iter().enumerate() {
   91    123   
            if let Some(prev_idx) = seen.insert(item, idx) {
   92    124   
                duplicate_indices.push(prev_idx);
   93    125   
            }
   94    126   
        }
   95    127   
   96    128   
        let mut last_duplicate_indices = ::std::vec::Vec::new();
   97    129   
        for idx in &duplicate_indices {
   98    130   
            if let Some(prev_idx) = seen.remove(&items[*idx]) {
   99    131   
                last_duplicate_indices.push(prev_idx);
  100    132   
            }
  101    133   
        }
  102    134   
        duplicate_indices.extend(last_duplicate_indices);
  103    135   
  104    136   
        if !duplicate_indices.is_empty() {
  105    137   
            debug_assert!(duplicate_indices.len() >= 2);
  106    138   
            Err(
  107    139   
                crate::model::header_set_internal::ConstraintViolation::UniqueItems {
  108    140   
                    duplicate_indices,
  109    141   
                    original: items,
  110    142   
                },
  111    143   
            )
  112    144   
        } else {
  113    145   
            Ok(items)
  114    146   
        }
  115    147   
    }
         148  +
    /* ConstrainedCollectionGenerator.kt:104 */
  116    149   
}
         150  +
/* ConstrainedCollectionGenerator.kt:133 */
  117    151   
impl ::std::convert::TryFrom<::std::vec::Vec<::std::string::String>> for HeaderSet {
  118    152   
    type Error = crate::model::header_set_internal::ConstraintViolation;
  119    153   
  120    154   
    /// Constructs a `HeaderSet` from an [`::std::vec::Vec<::std::string::String>`], failing when the provided value does not satisfy the modeled constraints.
  121    155   
    fn try_from(
  122    156   
        value: ::std::vec::Vec<::std::string::String>,
  123    157   
    ) -> ::std::result::Result<Self, Self::Error> {
  124    158   
        let value = Self::check_unique_items(value)?;
  125    159   
  126    160   
        Ok(Self(value))
  127    161   
    }
  128    162   
}
  129    163   
  130    164   
impl ::std::convert::From<HeaderSet> for ::std::vec::Vec<::std::string::String> {
  131    165   
    fn from(value: HeaderSet) -> Self {
  132    166   
        value.into_inner()
  133    167   
    }
  134    168   
}
         169  +
/* ConstrainedCollectionGenerator.kt:181 */
  135    170   
impl crate::constrained::Constrained for HeaderSet {
  136    171   
    type Unconstrained = crate::unconstrained::header_set_unconstrained::HeaderSetUnconstrained;
  137    172   
}
  138    173   
         174  +
/* RustType.kt:516 */
  139    175   
#[::pyo3::pyclass]
         176  +
/* PythonServerStructureGenerator.kt:63 */
  140    177   
/// :param required_inner_most_shape misc.model.InnermostShape:
  141    178   
/// :rtype None:
         179  +
/* StructureGenerator.kt:197 */
  142    180   
#[allow(missing_docs)] // documentation missing in model
         181  +
/* RustType.kt:516 */
  143    182   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
  144         -
pub struct InnerShape {
         183  +
pub /* StructureGenerator.kt:201 */ struct InnerShape {
         184  +
    /* RustType.kt:516 */
  145    185   
    #[pyo3(get, set)]
         186  +
    /* PythonServerStructureGenerator.kt:80 */
  146    187   
    /// :type misc.model.InnermostShape:
         188  +
    /* StructureGenerator.kt:231 */
  147    189   
    #[allow(missing_docs)] // documentation missing in model
  148    190   
    pub required_inner_most_shape: crate::model::InnermostShape,
         191  +
    /* StructureGenerator.kt:201 */
  149    192   
}
         193  +
/* StructureGenerator.kt:135 */
  150    194   
impl InnerShape {
         195  +
    /* StructureGenerator.kt:231 */
  151    196   
    #[allow(missing_docs)] // documentation missing in model
         197  +
                           /* StructureGenerator.kt:166 */
  152    198   
    pub fn required_inner_most_shape(&self) -> &crate::model::InnermostShape {
         199  +
        /* StructureGenerator.kt:172 */
  153    200   
        &self.required_inner_most_shape
         201  +
        /* StructureGenerator.kt:166 */
  154    202   
    }
         203  +
    /* StructureGenerator.kt:135 */
  155    204   
}
         205  +
/* RustType.kt:516 */
  156    206   
#[allow(clippy::new_without_default)]
         207  +
/* RustType.kt:516 */
  157    208   
#[allow(clippy::too_many_arguments)]
         209  +
/* RustType.kt:516 */
  158    210   
#[::pyo3::pymethods]
         211  +
/* PythonServerStructureGenerator.kt:88 */
  159    212   
impl InnerShape {
  160    213   
    #[new]
  161    214   
    pub fn new(required_inner_most_shape: crate::model::InnermostShape) -> Self {
  162    215   
        Self {
  163    216   
            required_inner_most_shape,
  164    217   
        }
  165    218   
    }
  166    219   
    fn __repr__(&self) -> String {
  167    220   
        format!("{self:?}")
  168    221   
    }
  169    222   
    fn __str__(&self) -> String {
  170    223   
        format!("{self:?}")
  171    224   
    }
  172    225   
}
         226  +
/* PythonServerStructureGenerator.kt:111 */
  173    227   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<InnerShape> {
  174    228   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  175    229   
        ob.extract::<InnerShape>().map(Box::new)
  176    230   
    }
  177    231   
}
  178    232   
  179    233   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<InnerShape> {
  180    234   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  181    235   
        (*self).into_py(py)
  182    236   
    }
  183    237   
}
         238  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  184    239   
impl crate::constrained::Constrained for crate::model::InnerShape {
  185    240   
    type Unconstrained = crate::model::inner_shape_internal::Builder;
  186    241   
}
         242  +
/* ServerCodegenVisitor.kt:370 */
  187    243   
impl InnerShape {
  188         -
    /// Creates a new builder-style object to manufacture [`InnerShape`](crate::model::InnerShape).
         244  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`InnerShape`](crate::model::InnerShape).
         245  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  189    246   
    pub fn builder() -> crate::model::inner_shape::Builder {
         247  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  190    248   
        crate::model::inner_shape::Builder::default()
         249  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  191    250   
    }
         251  +
    /* ServerCodegenVisitor.kt:370 */
  192    252   
}
  193    253   
         254  +
/* RustType.kt:516 */
  194    255   
#[::pyo3::pyclass]
         256  +
/* PythonServerStructureGenerator.kt:63 */
  195    257   
/// :param a_string str:
  196    258   
/// :param a_boolean bool:
  197    259   
/// :param a_byte int:
  198    260   
/// :param a_short int:
  199    261   
/// :param an_int int:
  200    262   
/// :param a_long int:
  201    263   
/// :param a_float float:
  202    264   
/// :param a_double float:
  203    265   
/// :param a_timestamp misc.types.DateTime:
  204    266   
/// :param a_document misc.types.DateTime:
  205    267   
/// :param a_string_list typing.List\[str\]:
  206    268   
/// :param a_string_map typing.Dict\[str, misc.types.DateTime\]:
  207    269   
/// :param a_string_set typing.List\[str\]:
  208    270   
/// :param a_blob misc.types.Blob:
  209    271   
/// :param a_union misc.model.AUnion:
  210    272   
/// :rtype None:
         273  +
/* StructureGenerator.kt:197 */
  211    274   
#[allow(missing_docs)] // documentation missing in model
         275  +
/* RustType.kt:516 */
  212    276   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
  213         -
pub struct InnermostShape {
         277  +
pub /* StructureGenerator.kt:201 */ struct InnermostShape {
         278  +
    /* RustType.kt:516 */
  214    279   
    #[pyo3(get, set)]
         280  +
    /* PythonServerStructureGenerator.kt:80 */
  215    281   
    /// :type str:
         282  +
    /* StructureGenerator.kt:231 */
  216    283   
    #[allow(missing_docs)] // documentation missing in model
  217    284   
    pub a_string: ::std::string::String,
         285  +
    /* RustType.kt:516 */
  218    286   
    #[pyo3(get, set)]
         287  +
    /* PythonServerStructureGenerator.kt:80 */
  219    288   
    /// :type bool:
         289  +
    /* StructureGenerator.kt:231 */
  220    290   
    #[allow(missing_docs)] // documentation missing in model
  221    291   
    pub a_boolean: bool,
         292  +
    /* RustType.kt:516 */
  222    293   
    #[pyo3(get, set)]
         294  +
    /* PythonServerStructureGenerator.kt:80 */
  223    295   
    /// :type int:
         296  +
    /* StructureGenerator.kt:231 */
  224    297   
    #[allow(missing_docs)] // documentation missing in model
  225    298   
    pub a_byte: i8,
         299  +
    /* RustType.kt:516 */
  226    300   
    #[pyo3(get, set)]
         301  +
    /* PythonServerStructureGenerator.kt:80 */
  227    302   
    /// :type int:
         303  +
    /* StructureGenerator.kt:231 */
  228    304   
    #[allow(missing_docs)] // documentation missing in model
  229    305   
    pub a_short: i16,
         306  +
    /* RustType.kt:516 */
  230    307   
    #[pyo3(get, set)]
         308  +
    /* PythonServerStructureGenerator.kt:80 */
  231    309   
    /// :type int:
         310  +
    /* StructureGenerator.kt:231 */
  232    311   
    #[allow(missing_docs)] // documentation missing in model
  233    312   
    pub an_int: i32,
         313  +
    /* RustType.kt:516 */
  234    314   
    #[pyo3(get, set)]
         315  +
    /* PythonServerStructureGenerator.kt:80 */
  235    316   
    /// :type int:
         317  +
    /* StructureGenerator.kt:231 */
  236    318   
    #[allow(missing_docs)] // documentation missing in model
  237    319   
    pub a_long: i64,
         320  +
    /* RustType.kt:516 */
  238    321   
    #[pyo3(get, set)]
         322  +
    /* PythonServerStructureGenerator.kt:80 */
  239    323   
    /// :type float:
         324  +
    /* StructureGenerator.kt:231 */
  240    325   
    #[allow(missing_docs)] // documentation missing in model
  241    326   
    pub a_float: f32,
         327  +
    /* RustType.kt:516 */
  242    328   
    #[pyo3(get, set)]
         329  +
    /* PythonServerStructureGenerator.kt:80 */
  243    330   
    /// :type float:
         331  +
    /* StructureGenerator.kt:231 */
  244    332   
    #[allow(missing_docs)] // documentation missing in model
  245    333   
    pub a_double: f64,
         334  +
    /* RustType.kt:516 */
  246    335   
    #[pyo3(get, set)]
         336  +
    /* PythonServerStructureGenerator.kt:80 */
  247    337   
    /// :type misc.types.DateTime:
         338  +
    /* StructureGenerator.kt:231 */
  248    339   
    #[allow(missing_docs)] // documentation missing in model
  249    340   
    pub a_timestamp: ::aws_smithy_http_server_python::types::DateTime,
         341  +
    /* RustType.kt:516 */
  250    342   
    #[pyo3(get, set)]
         343  +
    /* PythonServerStructureGenerator.kt:80 */
  251    344   
    /// :type misc.types.DateTime:
         345  +
    /* StructureGenerator.kt:231 */
  252    346   
    #[allow(missing_docs)] // documentation missing in model
  253    347   
    pub a_document: ::aws_smithy_http_server_python::types::DateTime,
         348  +
    /* RustType.kt:516 */
  254    349   
    #[pyo3(get, set)]
         350  +
    /* PythonServerStructureGenerator.kt:80 */
  255    351   
    /// :type typing.List\[str\]:
         352  +
    /* StructureGenerator.kt:231 */
  256    353   
    #[allow(missing_docs)] // documentation missing in model
  257    354   
    pub a_string_list: ::std::vec::Vec<::std::string::String>,
         355  +
    /* RustType.kt:516 */
  258    356   
    #[pyo3(get, set)]
         357  +
    /* PythonServerStructureGenerator.kt:80 */
  259    358   
    /// :type typing.Dict\[str, misc.types.DateTime\]:
         359  +
    /* StructureGenerator.kt:231 */
  260    360   
    #[allow(missing_docs)] // documentation missing in model
  261    361   
    pub a_string_map: ::std::collections::HashMap<
  262    362   
        ::std::string::String,
  263    363   
        ::aws_smithy_http_server_python::types::DateTime,
  264    364   
    >,
         365  +
    /* RustType.kt:516 */
  265    366   
    #[pyo3(get, set)]
         367  +
    /* PythonServerStructureGenerator.kt:80 */
  266    368   
    /// :type typing.List\[str\]:
         369  +
    /* StructureGenerator.kt:231 */
  267    370   
    #[allow(missing_docs)] // documentation missing in model
  268    371   
    pub a_string_set: ::std::vec::Vec<::std::string::String>,
         372  +
    /* RustType.kt:516 */
  269    373   
    #[pyo3(get, set)]
         374  +
    /* PythonServerStructureGenerator.kt:80 */
  270    375   
    /// :type misc.types.Blob:
         376  +
    /* StructureGenerator.kt:231 */
  271    377   
    #[allow(missing_docs)] // documentation missing in model
  272    378   
    pub a_blob: ::aws_smithy_http_server_python::types::Blob,
         379  +
    /* RustType.kt:516 */
  273    380   
    #[pyo3(get, set)]
         381  +
    /* PythonServerStructureGenerator.kt:80 */
  274    382   
    /// :type misc.model.AUnion:
         383  +
    /* StructureGenerator.kt:231 */
  275    384   
    #[allow(missing_docs)] // documentation missing in model
  276    385   
    pub a_union: crate::model::AUnion,
         386  +
    /* StructureGenerator.kt:201 */
  277    387   
}
         388  +
/* StructureGenerator.kt:135 */
  278    389   
impl InnermostShape {
         390  +
    /* StructureGenerator.kt:231 */
  279    391   
    #[allow(missing_docs)] // documentation missing in model
         392  +
                           /* StructureGenerator.kt:166 */
  280    393   
    pub fn a_string(&self) -> &str {
         394  +
        /* StructureGenerator.kt:171 */
  281    395   
        use std::ops::Deref;
  282    396   
        self.a_string.deref()
         397  +
        /* StructureGenerator.kt:166 */
  283    398   
    }
         399  +
    /* StructureGenerator.kt:231 */
  284    400   
    #[allow(missing_docs)] // documentation missing in model
         401  +
                           /* StructureGenerator.kt:166 */
  285    402   
    pub fn a_boolean(&self) -> bool {
         403  +
        /* StructureGenerator.kt:168 */
  286    404   
        self.a_boolean
         405  +
        /* StructureGenerator.kt:166 */
  287    406   
    }
         407  +
    /* StructureGenerator.kt:231 */
  288    408   
    #[allow(missing_docs)] // documentation missing in model
         409  +
                           /* StructureGenerator.kt:166 */
  289    410   
    pub fn a_byte(&self) -> i8 {
         411  +
        /* StructureGenerator.kt:168 */
  290    412   
        self.a_byte
         413  +
        /* StructureGenerator.kt:166 */
  291    414   
    }
         415  +
    /* StructureGenerator.kt:231 */
  292    416   
    #[allow(missing_docs)] // documentation missing in model
         417  +
                           /* StructureGenerator.kt:166 */
  293    418   
    pub fn a_short(&self) -> i16 {
         419  +
        /* StructureGenerator.kt:168 */
  294    420   
        self.a_short
         421  +
        /* StructureGenerator.kt:166 */
  295    422   
    }
         423  +
    /* StructureGenerator.kt:231 */
  296    424   
    #[allow(missing_docs)] // documentation missing in model
         425  +
                           /* StructureGenerator.kt:166 */
  297    426   
    pub fn an_int(&self) -> i32 {
         427  +
        /* StructureGenerator.kt:168 */
  298    428   
        self.an_int
         429  +
        /* StructureGenerator.kt:166 */
  299    430   
    }
         431  +
    /* StructureGenerator.kt:231 */
  300    432   
    #[allow(missing_docs)] // documentation missing in model
         433  +
                           /* StructureGenerator.kt:166 */
  301    434   
    pub fn a_long(&self) -> i64 {
         435  +
        /* StructureGenerator.kt:168 */
  302    436   
        self.a_long
         437  +
        /* StructureGenerator.kt:166 */
  303    438   
    }
         439  +
    /* StructureGenerator.kt:231 */
  304    440   
    #[allow(missing_docs)] // documentation missing in model
         441  +
                           /* StructureGenerator.kt:166 */
  305    442   
    pub fn a_float(&self) -> f32 {
         443  +
        /* StructureGenerator.kt:168 */
  306    444   
        self.a_float
         445  +
        /* StructureGenerator.kt:166 */
  307    446   
    }
         447  +
    /* StructureGenerator.kt:231 */
  308    448   
    #[allow(missing_docs)] // documentation missing in model
         449  +
                           /* StructureGenerator.kt:166 */
  309    450   
    pub fn a_double(&self) -> f64 {
         451  +
        /* StructureGenerator.kt:168 */
  310    452   
        self.a_double
         453  +
        /* StructureGenerator.kt:166 */
  311    454   
    }
         455  +
    /* StructureGenerator.kt:231 */
  312    456   
    #[allow(missing_docs)] // documentation missing in model
         457  +
                           /* StructureGenerator.kt:166 */
  313    458   
    pub fn a_timestamp(&self) -> &::aws_smithy_http_server_python::types::DateTime {
         459  +
        /* StructureGenerator.kt:172 */
  314    460   
        &self.a_timestamp
         461  +
        /* StructureGenerator.kt:166 */
  315    462   
    }
         463  +
    /* StructureGenerator.kt:231 */
  316    464   
    #[allow(missing_docs)] // documentation missing in model
         465  +
                           /* StructureGenerator.kt:166 */
  317    466   
    pub fn a_document(&self) -> &::aws_smithy_http_server_python::types::DateTime {
         467  +
        /* StructureGenerator.kt:172 */
  318    468   
        &self.a_document
         469  +
        /* StructureGenerator.kt:166 */
  319    470   
    }
         471  +
    /* StructureGenerator.kt:231 */
  320    472   
    #[allow(missing_docs)] // documentation missing in model
         473  +
                           /* StructureGenerator.kt:166 */
  321    474   
    pub fn a_string_list(&self) -> &[::std::string::String] {
         475  +
        /* StructureGenerator.kt:171 */
  322    476   
        use std::ops::Deref;
  323    477   
        self.a_string_list.deref()
         478  +
        /* StructureGenerator.kt:166 */
  324    479   
    }
         480  +
    /* StructureGenerator.kt:231 */
  325    481   
    #[allow(missing_docs)] // documentation missing in model
         482  +
                           /* StructureGenerator.kt:166 */
  326    483   
    pub fn a_string_map(
  327    484   
        &self,
  328    485   
    ) -> &::std::collections::HashMap<
  329    486   
        ::std::string::String,
  330    487   
        ::aws_smithy_http_server_python::types::DateTime,
  331    488   
    > {
         489  +
        /* StructureGenerator.kt:172 */
  332    490   
        &self.a_string_map
         491  +
        /* StructureGenerator.kt:166 */
  333    492   
    }
         493  +
    /* StructureGenerator.kt:231 */
  334    494   
    #[allow(missing_docs)] // documentation missing in model
         495  +
                           /* StructureGenerator.kt:166 */
  335    496   
    pub fn a_string_set(&self) -> &[::std::string::String] {
         497  +
        /* StructureGenerator.kt:171 */
  336    498   
        use std::ops::Deref;
  337    499   
        self.a_string_set.deref()
         500  +
        /* StructureGenerator.kt:166 */
  338    501   
    }
         502  +
    /* StructureGenerator.kt:231 */
  339    503   
    #[allow(missing_docs)] // documentation missing in model
         504  +
                           /* StructureGenerator.kt:166 */
  340    505   
    pub fn a_blob(&self) -> &::aws_smithy_http_server_python::types::Blob {
         506  +
        /* StructureGenerator.kt:172 */
  341    507   
        &self.a_blob
         508  +
        /* StructureGenerator.kt:166 */
  342    509   
    }
         510  +
    /* StructureGenerator.kt:231 */
  343    511   
    #[allow(missing_docs)] // documentation missing in model
         512  +
                           /* StructureGenerator.kt:166 */
  344    513   
    pub fn a_union(&self) -> &crate::model::AUnion {
         514  +
        /* StructureGenerator.kt:172 */
  345    515   
        &self.a_union
         516  +
        /* StructureGenerator.kt:166 */
  346    517   
    }
         518  +
    /* StructureGenerator.kt:135 */
  347    519   
}
         520  +
/* RustType.kt:516 */
  348    521   
#[allow(clippy::new_without_default)]
         522  +
/* RustType.kt:516 */
  349    523   
#[allow(clippy::too_many_arguments)]
         524  +
/* RustType.kt:516 */
  350    525   
#[::pyo3::pymethods]
         526  +
/* PythonServerStructureGenerator.kt:88 */
  351    527   
impl InnermostShape {
  352    528   
    #[new]
  353    529   
    pub fn new(
  354    530   
        a_string: ::std::string::String,
  355    531   
        a_boolean: bool,
  356    532   
        a_byte: i8,
  357    533   
        a_short: i16,
  358    534   
        an_int: i32,
  359    535   
        a_long: i64,
  360    536   
        a_float: f32,
  361    537   
        a_double: f64,
  362    538   
        a_timestamp: ::aws_smithy_http_server_python::types::DateTime,
  363    539   
        a_document: ::aws_smithy_http_server_python::types::DateTime,
  364    540   
        a_string_list: ::std::vec::Vec<::std::string::String>,
  365    541   
        a_string_map: ::std::collections::HashMap<
  366    542   
            ::std::string::String,
  367    543   
            ::aws_smithy_http_server_python::types::DateTime,
  368    544   
        >,
  369    545   
        a_string_set: ::std::vec::Vec<::std::string::String>,
  370    546   
        a_blob: ::aws_smithy_http_server_python::types::Blob,
  371    547   
        a_union: crate::model::AUnion,
  372    548   
    ) -> Self {
  373    549   
        Self {
  374    550   
            a_string,
  375    551   
            a_boolean,
  376    552   
            a_byte,
  377    553   
            a_short,
  378    554   
            an_int,
  379    555   
            a_long,
  380    556   
            a_float,
  381    557   
            a_double,
  382    558   
            a_timestamp,
  383    559   
            a_document,
  384    560   
            a_string_list,
  385    561   
            a_string_map,
  386    562   
            a_string_set,
  387    563   
            a_blob,
  388    564   
            a_union,
  389    565   
        }
  390    566   
    }
  391    567   
    fn __repr__(&self) -> String {
  392    568   
        format!("{self:?}")
  393    569   
    }
  394    570   
    fn __str__(&self) -> String {
  395    571   
        format!("{self:?}")
  396    572   
    }
  397    573   
}
         574  +
/* PythonServerStructureGenerator.kt:111 */
  398    575   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<InnermostShape> {
  399    576   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  400    577   
        ob.extract::<InnermostShape>().map(Box::new)
  401    578   
    }
  402    579   
}
  403    580   
  404    581   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<InnermostShape> {
  405    582   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  406    583   
        (*self).into_py(py)
  407    584   
    }
  408    585   
}
         586  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  409    587   
impl crate::constrained::Constrained for crate::model::InnermostShape {
  410    588   
    type Unconstrained = crate::model::innermost_shape_internal::Builder;
  411    589   
}
         590  +
/* ServerCodegenVisitor.kt:370 */
  412    591   
impl InnermostShape {
  413         -
    /// Creates a new builder-style object to manufacture [`InnermostShape`](crate::model::InnermostShape).
         592  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`InnermostShape`](crate::model::InnermostShape).
         593  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  414    594   
    pub fn builder() -> crate::model::innermost_shape::Builder {
         595  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  415    596   
        crate::model::innermost_shape::Builder::default()
         597  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  416    598   
    }
         599  +
    /* ServerCodegenVisitor.kt:370 */
  417    600   
}
  418    601   
         602  +
/* UnionGenerator.kt:67 */
  419    603   
#[allow(missing_docs)] // documentation missing in model
         604  +
/* RustType.kt:516 */
  420    605   
#[derive(
  421    606   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  422    607   
)]
  423         -
pub enum AUnion {
         608  +
pub /* UnionGenerator.kt:85 */ enum AUnion {
         609  +
    /* UnionGenerator.kt:90 */
  424    610   
    #[allow(missing_docs)] // documentation missing in model
         611  +
    /* UnionGenerator.kt:190 */
  425    612   
    I32(i32),
         613  +
    /* UnionGenerator.kt:90 */
  426    614   
    #[allow(missing_docs)] // documentation missing in model
         615  +
    /* UnionGenerator.kt:190 */
  427    616   
    String(::std::string::String),
         617  +
    /* UnionGenerator.kt:90 */
  428    618   
    #[allow(missing_docs)] // documentation missing in model
         619  +
    /* UnionGenerator.kt:190 */
  429    620   
    Time(::aws_smithy_http_server_python::types::DateTime),
         621  +
    /* UnionGenerator.kt:85 */
  430    622   
}
         623  +
/* UnionGenerator.kt:111 */
  431    624   
impl AUnion {
         625  +
    /* UnionGenerator.kt:217 */
  432    626   
    /// Tries to convert the enum instance into [`I32`](crate::model::AUnion::I32), extracting the inner [`i32`](i32).
         627  +
    /* UnionGenerator.kt:222 */
  433    628   
    /// Returns `Err(&Self)` if it can't be converted.
         629  +
    /* UnionGenerator.kt:223 */
  434    630   
    pub fn as_i32(&self) -> ::std::result::Result<&i32, &Self> {
         631  +
        /* UnionGenerator.kt:227 */
  435    632   
        if let AUnion::I32(val) = &self {
  436    633   
            ::std::result::Result::Ok(val)
  437    634   
        } else {
  438    635   
            ::std::result::Result::Err(self)
  439    636   
        }
         637  +
        /* UnionGenerator.kt:223 */
  440    638   
    }
         639  +
    /* UnionGenerator.kt:121 */
  441    640   
    /// Returns true if this is a [`I32`](crate::model::AUnion::I32).
         641  +
    /* UnionGenerator.kt:122 */
  442    642   
    pub fn is_i32(&self) -> bool {
         643  +
        /* UnionGenerator.kt:123 */
  443    644   
        self.as_i32().is_ok()
         645  +
        /* UnionGenerator.kt:122 */
  444    646   
    }
         647  +
    /* UnionGenerator.kt:217 */
  445    648   
    /// Tries to convert the enum instance into [`String`](crate::model::AUnion::String), extracting the inner [`String`](::std::string::String).
         649  +
    /* UnionGenerator.kt:222 */
  446    650   
    /// Returns `Err(&Self)` if it can't be converted.
         651  +
    /* UnionGenerator.kt:223 */
  447    652   
    pub fn as_string(&self) -> ::std::result::Result<&::std::string::String, &Self> {
         653  +
        /* UnionGenerator.kt:227 */
  448    654   
        if let AUnion::String(val) = &self {
  449    655   
            ::std::result::Result::Ok(val)
  450    656   
        } else {
  451    657   
            ::std::result::Result::Err(self)
  452    658   
        }
         659  +
        /* UnionGenerator.kt:223 */
  453    660   
    }
         661  +
    /* UnionGenerator.kt:121 */
  454    662   
    /// Returns true if this is a [`String`](crate::model::AUnion::String).
         663  +
    /* UnionGenerator.kt:122 */
  455    664   
    pub fn is_string(&self) -> bool {
         665  +
        /* UnionGenerator.kt:123 */
  456    666   
        self.as_string().is_ok()
         667  +
        /* UnionGenerator.kt:122 */
  457    668   
    }
         669  +
    /* UnionGenerator.kt:217 */
  458    670   
    /// Tries to convert the enum instance into [`Time`](crate::model::AUnion::Time), extracting the inner [`DateTime`](::aws_smithy_http_server_python::types::DateTime).
         671  +
    /* UnionGenerator.kt:222 */
  459    672   
    /// Returns `Err(&Self)` if it can't be converted.
         673  +
    /* UnionGenerator.kt:223 */
  460    674   
    pub fn as_time(
  461    675   
        &self,
  462    676   
    ) -> ::std::result::Result<&::aws_smithy_http_server_python::types::DateTime, &Self> {
         677  +
        /* UnionGenerator.kt:227 */
  463    678   
        if let AUnion::Time(val) = &self {
  464    679   
            ::std::result::Result::Ok(val)
  465    680   
        } else {
  466    681   
            ::std::result::Result::Err(self)
  467    682   
        }
         683  +
        /* UnionGenerator.kt:223 */
  468    684   
    }
         685  +
    /* UnionGenerator.kt:121 */
  469    686   
    /// Returns true if this is a [`Time`](crate::model::AUnion::Time).
         687  +
    /* UnionGenerator.kt:122 */
  470    688   
    pub fn is_time(&self) -> bool {
         689  +
        /* UnionGenerator.kt:123 */
  471    690   
        self.as_time().is_ok()
         691  +
        /* UnionGenerator.kt:122 */
  472    692   
    }
         693  +
    /* UnionGenerator.kt:111 */
  473    694   
}
         695  +
/* PythonServerUnionGenerator.kt:58 */
  474    696   
#[pyo3::pyclass(name = "AUnion")]
         697  +
/* RustType.kt:516 */
  475    698   
#[derive(
  476    699   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  477    700   
)]
  478         -
pub struct PyUnionMarkerAUnion(pub AUnion);
         701  +
pub /* PythonServerUnionGenerator.kt:61 */ struct PyUnionMarkerAUnion(pub AUnion);
         702  +
/* RustType.kt:516 */
  479    703   
#[::pyo3::pymethods]
         704  +
/* PythonServerUnionGenerator.kt:66 */
  480    705   
impl PyUnionMarkerAUnion {
         706  +
    /* RustType.kt:516 */
  481    707   
    #[staticmethod]
         708  +
    /* PythonServerUnionGenerator.kt:134 */
  482    709   
    /// Creates a new union instance of [`I32`](crate::model::AUnion::I32)
         710  +
    /* PythonServerUnionGenerator.kt:138 */
  483    711   
    /// :param data int:
         712  +
    /* PythonServerUnionGenerator.kt:139 */
  484    713   
    /// :rtype AUnion:
         714  +
    /* PythonServerUnionGenerator.kt:140 */
  485    715   
    pub fn i32(data: i32) -> Self {
         716  +
        /* PythonServerUnionGenerator.kt:141 */
  486    717   
        Self(AUnion::I32(data))
         718  +
        /* PythonServerUnionGenerator.kt:140 */
  487    719   
    }
         720  +
    /* PythonServerUnionGenerator.kt:176 */
  488    721   
    /// Tries to convert the enum instance into [`I32`](crate::model::AUnion::I32), extracting the inner [`i32`](i32).
         722  +
    /* PythonServerUnionGenerator.kt:181 */
  489    723   
    /// :rtype int:
         724  +
    /* PythonServerUnionGenerator.kt:182 */
  490    725   
    pub fn as_i32(&self) -> ::pyo3::PyResult<i32> {
         726  +
        /* PythonServerUnionGenerator.kt:190 */
  491    727   
        match self.0.as_i32() {
  492    728   
            Ok(variant) => Ok(*variant),
  493    729   
            Err(_) => Err(::pyo3::exceptions::PyValueError::new_err(
  494    730   
                r"AUnion variant is not of type int",
  495    731   
            )),
  496    732   
        }
         733  +
        /* PythonServerUnionGenerator.kt:182 */
  497    734   
    }
         735  +
    /* PythonServerUnionGenerator.kt:76 */
  498    736   
    /// Returns true if this is a [`I32`](crate::model::AUnion::I32).
         737  +
    /* PythonServerUnionGenerator.kt:77 */
  499    738   
    /// :rtype bool:
         739  +
    /* PythonServerUnionGenerator.kt:78 */
  500    740   
    pub fn is_i32(&self) -> bool {
         741  +
        /* PythonServerUnionGenerator.kt:79 */
  501    742   
        self.0.is_i32()
         743  +
        /* PythonServerUnionGenerator.kt:78 */
  502    744   
    }
         745  +
    /* RustType.kt:516 */
  503    746   
    #[staticmethod]
         747  +
    /* PythonServerUnionGenerator.kt:134 */
  504    748   
    /// Creates a new union instance of [`String`](crate::model::AUnion::String)
         749  +
    /* PythonServerUnionGenerator.kt:138 */
  505    750   
    /// :param data str:
         751  +
    /* PythonServerUnionGenerator.kt:139 */
  506    752   
    /// :rtype AUnion:
         753  +
    /* PythonServerUnionGenerator.kt:140 */
  507    754   
    pub fn string(data: ::std::string::String) -> Self {
         755  +
        /* PythonServerUnionGenerator.kt:141 */
  508    756   
        Self(AUnion::String(data))
         757  +
        /* PythonServerUnionGenerator.kt:140 */
  509    758   
    }
         759  +
    /* PythonServerUnionGenerator.kt:176 */
  510    760   
    /// Tries to convert the enum instance into [`String`](crate::model::AUnion::String), extracting the inner [`String`](::std::string::String).
         761  +
    /* PythonServerUnionGenerator.kt:181 */
  511    762   
    /// :rtype str:
         763  +
    /* PythonServerUnionGenerator.kt:182 */
  512    764   
    pub fn as_string(&self) -> ::pyo3::PyResult<::std::string::String> {
         765  +
        /* PythonServerUnionGenerator.kt:190 */
  513    766   
        match self.0.as_string() {
  514    767   
            Ok(variant) => Ok(variant.clone()),
  515    768   
            Err(_) => Err(::pyo3::exceptions::PyValueError::new_err(
  516    769   
                r"AUnion variant is not of type str",
  517    770   
            )),
  518    771   
        }
         772  +
        /* PythonServerUnionGenerator.kt:182 */
  519    773   
    }
         774  +
    /* PythonServerUnionGenerator.kt:76 */
  520    775   
    /// Returns true if this is a [`String`](crate::model::AUnion::String).
         776  +
    /* PythonServerUnionGenerator.kt:77 */
  521    777   
    /// :rtype bool:
         778  +
    /* PythonServerUnionGenerator.kt:78 */
  522    779   
    pub fn is_string(&self) -> bool {
         780  +
        /* PythonServerUnionGenerator.kt:79 */
  523    781   
        self.0.is_string()
         782  +
        /* PythonServerUnionGenerator.kt:78 */
  524    783   
    }
         784  +
    /* RustType.kt:516 */
  525    785   
    #[staticmethod]
         786  +
    /* PythonServerUnionGenerator.kt:134 */
  526    787   
    /// Creates a new union instance of [`Time`](crate::model::AUnion::Time)
         788  +
    /* PythonServerUnionGenerator.kt:138 */
  527    789   
    /// :param data misc.types.DateTime:
         790  +
    /* PythonServerUnionGenerator.kt:139 */
  528    791   
    /// :rtype AUnion:
         792  +
    /* PythonServerUnionGenerator.kt:140 */
  529    793   
    pub fn time(data: ::aws_smithy_http_server_python::types::DateTime) -> Self {
         794  +
        /* PythonServerUnionGenerator.kt:141 */
  530    795   
        Self(AUnion::Time(data))
         796  +
        /* PythonServerUnionGenerator.kt:140 */
  531    797   
    }
         798  +
    /* PythonServerUnionGenerator.kt:176 */
  532    799   
    /// Tries to convert the enum instance into [`Time`](crate::model::AUnion::Time), extracting the inner [`DateTime`](::aws_smithy_http_server_python::types::DateTime).
         800  +
    /* PythonServerUnionGenerator.kt:181 */
  533    801   
    /// :rtype misc.types.DateTime:
         802  +
    /* PythonServerUnionGenerator.kt:182 */
  534    803   
    pub fn as_time(&self) -> ::pyo3::PyResult<::aws_smithy_http_server_python::types::DateTime> {
         804  +
        /* PythonServerUnionGenerator.kt:190 */
  535    805   
        match self.0.as_time() {
  536    806   
            Ok(variant) => Ok(variant.clone()),
  537    807   
            Err(_) => Err(::pyo3::exceptions::PyValueError::new_err(
  538    808   
                r"AUnion variant is not of type misc.types.DateTime",
  539    809   
            )),
  540    810   
        }
         811  +
        /* PythonServerUnionGenerator.kt:182 */
  541    812   
    }
         813  +
    /* PythonServerUnionGenerator.kt:76 */
  542    814   
    /// Returns true if this is a [`Time`](crate::model::AUnion::Time).
         815  +
    /* PythonServerUnionGenerator.kt:77 */
  543    816   
    /// :rtype bool:
         817  +
    /* PythonServerUnionGenerator.kt:78 */
  544    818   
    pub fn is_time(&self) -> bool {
         819  +
        /* PythonServerUnionGenerator.kt:79 */
  545    820   
        self.0.is_time()
         821  +
        /* PythonServerUnionGenerator.kt:78 */
  546    822   
    }
         823  +
    /* PythonServerUnionGenerator.kt:66 */
  547    824   
}
         825  +
/* PythonServerUnionGenerator.kt:93 */
  548    826   
impl ::pyo3::IntoPy<::pyo3::PyObject> for AUnion {
         827  +
    /* PythonServerUnionGenerator.kt:94 */
  549    828   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
         829  +
        /* PythonServerUnionGenerator.kt:95 */
  550    830   
        PyUnionMarkerAUnion(self).into_py(py)
         831  +
        /* PythonServerUnionGenerator.kt:94 */
  551    832   
    }
         833  +
    /* PythonServerUnionGenerator.kt:93 */
  552    834   
}
         835  +
/* PythonServerUnionGenerator.kt:98 */
  553    836   
impl<'source> ::pyo3::FromPyObject<'source> for AUnion {
         837  +
    /* PythonServerUnionGenerator.kt:99 */
  554    838   
    fn extract(obj: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
         839  +
        /* PythonServerUnionGenerator.kt:100 */
  555    840   
        let data: PyUnionMarkerAUnion = obj.extract()?;
  556    841   
        Ok(data.0)
         842  +
        /* PythonServerUnionGenerator.kt:99 */
  557    843   
    }
         844  +
    /* PythonServerUnionGenerator.kt:98 */
  558    845   
}
  559    846   
         847  +
/* RustType.kt:516 */
  560    848   
#[::pyo3::pyclass]
         849  +
/* PythonServerStructureGenerator.kt:63 */
  561    850   
/// :rtype None:
         851  +
/* StructureGenerator.kt:197 */
  562    852   
#[allow(missing_docs)] // documentation missing in model
         853  +
/* RustType.kt:516 */
  563    854   
#[derive(
  564    855   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  565    856   
)]
  566         -
pub struct EmptyStructure {}
         857  +
pub /* StructureGenerator.kt:201 */ struct EmptyStructure {/* StructureGenerator.kt:201 */}
         858  +
/* RustType.kt:516 */
  567    859   
#[allow(clippy::new_without_default)]
         860  +
/* RustType.kt:516 */
  568    861   
#[allow(clippy::too_many_arguments)]
         862  +
/* RustType.kt:516 */
  569    863   
#[::pyo3::pymethods]
         864  +
/* PythonServerStructureGenerator.kt:88 */
  570    865   
impl EmptyStructure {
  571    866   
    #[new]
  572    867   
    pub fn new() -> Self {
  573    868   
        Self {}
  574    869   
    }
  575    870   
    fn __repr__(&self) -> String {
  576    871   
        format!("{self:?}")
  577    872   
    }
  578    873   
    fn __str__(&self) -> String {
  579    874   
        format!("{self:?}")
  580    875   
    }
  581    876   
}
         877  +
/* PythonServerStructureGenerator.kt:111 */
  582    878   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<EmptyStructure> {
  583    879   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  584    880   
        ob.extract::<EmptyStructure>().map(Box::new)
  585    881   
    }
  586    882   
}
  587    883   
  588    884   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<EmptyStructure> {
  589    885   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  590    886   
        (*self).into_py(py)
  591    887   
    }
  592    888   
}
         889  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  593    890   
impl crate::constrained::Constrained for crate::model::EmptyStructure {
  594    891   
    type Unconstrained = crate::model::empty_structure_internal::Builder;
  595    892   
}
         893  +
/* ServerCodegenVisitor.kt:370 */
  596    894   
impl EmptyStructure {
  597         -
    /// Creates a new builder-style object to manufacture [`EmptyStructure`](crate::model::EmptyStructure).
         895  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`EmptyStructure`](crate::model::EmptyStructure).
         896  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  598    897   
    pub fn builder() -> crate::model::empty_structure::Builder {
         898  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  599    899   
        crate::model::empty_structure::Builder::default()
         900  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  600    901   
    }
         902  +
    /* ServerCodegenVisitor.kt:370 */
  601    903   
}
  602         -
/// See [`ValidationExceptionField`](crate::model::ValidationExceptionField).
         904  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ValidationExceptionField`](crate::model::ValidationExceptionField).
  603    905   
pub mod validation_exception_field {
  604    906   
         907  +
    /* RustType.kt:516 */
  605    908   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  606         -
    /// Holds one variant for each of the ways the builder can fail.
  607         -
         909  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
         910  +
    /* ServerBuilderConstraintViolations.kt:75 */
  608    911   
    #[allow(clippy::enum_variant_names)]
  609    912   
    pub enum ConstraintViolation {
  610         -
        /// `path` was not provided but it is required when building `ValidationExceptionField`.
         913  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`path` was not provided but it is required when building `ValidationExceptionField`.
         914  +
        /* ServerBuilderConstraintViolations.kt:143 */
  611    915   
        MissingPath,
  612         -
        /// `message` was not provided but it is required when building `ValidationExceptionField`.
         916  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`message` was not provided but it is required when building `ValidationExceptionField`.
         917  +
        /* ServerBuilderConstraintViolations.kt:143 */
  613    918   
        MissingMessage,
         919  +
        /* ServerBuilderConstraintViolations.kt:75 */
  614    920   
    }
         921  +
    /* ServerBuilderConstraintViolations.kt:117 */
  615    922   
    impl ::std::fmt::Display for ConstraintViolation {
         923  +
        /* ServerBuilderConstraintViolations.kt:118 */
  616    924   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         925  +
            /* ServerBuilderConstraintViolations.kt:119 */
  617    926   
            match self {
  618         -
                ConstraintViolation::MissingPath => write!(f, "`path` was not provided but it is required when building `ValidationExceptionField`"),
  619         -
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationExceptionField`"),
  620         -
            }
         927  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingPath => write!(f, "`path` was not provided but it is required when building `ValidationExceptionField`"),
         928  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationExceptionField`"),
         929  +
            /* ServerBuilderConstraintViolations.kt:119 */}
         930  +
            /* ServerBuilderConstraintViolations.kt:118 */
  621    931   
        }
         932  +
        /* ServerBuilderConstraintViolations.kt:117 */
  622    933   
    }
         934  +
    /* ServerBuilderConstraintViolations.kt:84 */
  623    935   
    impl ::std::error::Error for ConstraintViolation {}
         936  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
  624    937   
    impl ::std::convert::TryFrom<Builder> for crate::model::ValidationExceptionField {
  625    938   
        type Error = ConstraintViolation;
  626    939   
  627    940   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  628    941   
            builder.build()
  629    942   
        }
  630    943   
    }
  631         -
    /// A builder for [`ValidationExceptionField`](crate::model::ValidationExceptionField).
         944  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ValidationExceptionField`](crate::model::ValidationExceptionField).
         945  +
    /* RustType.kt:516 */
  632    946   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         947  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  633    948   
    pub struct Builder {
         949  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  634    950   
        pub(crate) path: ::std::option::Option<::std::string::String>,
         951  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  635    952   
        pub(crate) message: ::std::option::Option<::std::string::String>,
         953  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  636    954   
    }
         955  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  637    956   
    impl Builder {
  638         -
        /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
         957  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
         958  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  639    959   
        pub fn path(mut self, input: ::std::string::String) -> Self {
  640         -
            self.path = Some(input);
         960  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         961  +
            self.path =
         962  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
         963  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         964  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
         965  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  641    966   
            self
         967  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  642    968   
        }
  643         -
        /// A detailed description of the validation failure.
         969  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A detailed description of the validation failure.
         970  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  644    971   
        pub fn message(mut self, input: ::std::string::String) -> Self {
  645         -
            self.message = Some(input);
         972  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         973  +
            self.message =
         974  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
         975  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         976  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
         977  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  646    978   
            self
         979  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  647    980   
        }
  648         -
        /// Consumes the builder and constructs a [`ValidationExceptionField`](crate::model::ValidationExceptionField).
  649         -
        ///
         981  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ValidationExceptionField`](crate::model::ValidationExceptionField).
         982  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
  650    983   
        /// The builder fails to construct a [`ValidationExceptionField`](crate::model::ValidationExceptionField) if you do not provide a value for all non-`Option`al members.
  651    984   
        ///
         985  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  652    986   
        pub fn build(self) -> Result<crate::model::ValidationExceptionField, ConstraintViolation> {
  653    987   
            self.build_enforcing_required_and_enum_traits()
  654    988   
        }
         989  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  655    990   
        fn build_enforcing_required_and_enum_traits(
  656    991   
            self,
  657    992   
        ) -> Result<crate::model::ValidationExceptionField, ConstraintViolation> {
  658         -
            Ok(crate::model::ValidationExceptionField {
  659         -
                path: self.path.ok_or(ConstraintViolation::MissingPath)?,
  660         -
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
  661         -
            })
         993  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         994  +
            Ok(
         995  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         996  +
                crate::model::ValidationExceptionField {
         997  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
         998  +
                    path: self
         999  +
                        .path
        1000  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        1001  +
                        .ok_or(ConstraintViolation::MissingPath)?,
        1002  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        1003  +
                    message: self
        1004  +
                        .message
        1005  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        1006  +
                        .ok_or(ConstraintViolation::MissingMessage)?,
        1007  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        1008  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        1009  +
            )
        1010  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  662   1011   
        }
        1012  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  663   1013   
    }
        1014  +
        1015  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  664   1016   
}
  665   1017   
pub(crate) mod header_set_internal {
  666   1018   
        1019  +
    /* CollectionConstraintViolationGenerator.kt:78 */
  667   1020   
    #[allow(clippy::enum_variant_names)]
  668   1021   
    #[derive(Debug, PartialEq)]
  669   1022   
    pub(crate) enum ConstraintViolation {
  670   1023   
        /// Constraint violation error when the list does not contain unique items
  671   1024   
        UniqueItems {
  672   1025   
            /// A vector of indices into `original` pointing to all duplicate items. This vector has
  673   1026   
            /// at least two elements.
  674   1027   
            /// More specifically, for every element `idx_1` in `duplicate_indices`, there exists another
  675   1028   
            /// distinct element `idx_2` such that `original[idx_1] == original[idx_2]` is `true`.
  676   1029   
            /// Nothing is guaranteed about the order of the indices.
  677   1030   
            duplicate_indices: ::std::vec::Vec<usize>,
  678   1031   
            /// The original vector, that contains duplicate items.
  679   1032   
            original: ::std::vec::Vec<::std::string::String>,
  680   1033   
        },
  681   1034   
    }
  682   1035   
  683   1036   
    impl ::std::fmt::Display for ConstraintViolation {
  684   1037   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  685   1038   
            let message = match self {
  686   1039   
                                Self::UniqueItems { duplicate_indices, .. } =>
  687   1040   
                            format!("Value with repeated values at indices {:?} provided for 'aws.protocoltests.misc#HeaderSet' failed to satisfy constraint: Member must have unique values", &duplicate_indices),
  688   1041   
                            };
  689   1042   
            write!(f, "{message}")
  690   1043   
        }
  691   1044   
    }
  692   1045   
  693   1046   
    impl ::std::error::Error for ConstraintViolation {}
        1047  +
    /* CollectionConstraintViolationGenerator.kt:104 */
  694   1048   
    impl ConstraintViolation {
  695   1049   
        pub(crate) fn as_validation_exception_field(
  696   1050   
            self,
  697   1051   
            path: ::std::string::String,
  698   1052   
        ) -> crate::model::ValidationExceptionField {
  699   1053   
            match self {
  700   1054   
                        Self::UniqueItems { duplicate_indices, .. } =>
  701   1055   
                                crate::model::ValidationExceptionField {
  702   1056   
                                    message: format!("Value with repeated values at indices {:?} at '{}' failed to satisfy constraint: Member must have unique values", &duplicate_indices, &path),
  703   1057   
                                    path,
  704   1058   
                                },
  705   1059   
                    }
  706   1060   
        }
  707   1061   
    }
        1062  +
        1063  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  708   1064   
}
  709         -
/// See [`InnerShape`](crate::model::InnerShape).
        1065  +
/// /* ServerBuilderGenerator.kt:171 */See [`InnerShape`](crate::model::InnerShape).
  710   1066   
pub(crate) mod inner_shape_internal {
  711   1067   
        1068  +
    /* RustType.kt:516 */
  712   1069   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  713         -
    /// Holds one variant for each of the ways the builder can fail.
        1070  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        1071  +
    /* RustType.kt:516 */
  714   1072   
    #[non_exhaustive]
        1073  +
    /* ServerBuilderConstraintViolations.kt:75 */
  715   1074   
    #[allow(clippy::enum_variant_names)]
  716   1075   
    pub(crate) enum ConstraintViolation {
  717         -
        /// `required_inner_most_shape` was not provided but it is required when building `InnerShape`.
        1076  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`required_inner_most_shape` was not provided but it is required when building `InnerShape`.
        1077  +
        /* ServerBuilderConstraintViolations.kt:143 */
  718   1078   
        MissingRequiredInnerMostShape,
  719         -
        /// Constraint violation occurred building member `required_inner_most_shape` when building `InnerShape`.
        1079  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `required_inner_most_shape` when building `InnerShape`.
        1080  +
        /* RustType.kt:516 */
  720   1081   
        #[doc(hidden)]
        1082  +
        /* ServerBuilderConstraintViolations.kt:164 */
  721   1083   
        RequiredInnerMostShape(crate::model::innermost_shape_internal::ConstraintViolation),
        1084  +
        /* ServerBuilderConstraintViolations.kt:75 */
  722   1085   
    }
        1086  +
    /* ServerBuilderConstraintViolations.kt:117 */
  723   1087   
    impl ::std::fmt::Display for ConstraintViolation {
        1088  +
        /* ServerBuilderConstraintViolations.kt:118 */
  724   1089   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1090  +
            /* ServerBuilderConstraintViolations.kt:119 */
  725   1091   
            match self {
  726         -
                ConstraintViolation::MissingRequiredInnerMostShape => write!(f, "`required_inner_most_shape` was not provided but it is required when building `InnerShape`"),
  727         -
                ConstraintViolation::RequiredInnerMostShape(_) => write!(f, "constraint violation occurred building member `required_inner_most_shape` when building `InnerShape`"),
  728         -
            }
        1092  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingRequiredInnerMostShape => write!(f, "`required_inner_most_shape` was not provided but it is required when building `InnerShape`"),
        1093  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RequiredInnerMostShape(_) => write!(f, "constraint violation occurred building member `required_inner_most_shape` when building `InnerShape`"),
        1094  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        1095  +
            /* ServerBuilderConstraintViolations.kt:118 */
  729   1096   
        }
        1097  +
        /* ServerBuilderConstraintViolations.kt:117 */
  730   1098   
    }
        1099  +
    /* ServerBuilderConstraintViolations.kt:84 */
  731   1100   
    impl ::std::error::Error for ConstraintViolation {}
        1101  +
    /* ServerBuilderConstraintViolations.kt:171 */
  732   1102   
    impl ConstraintViolation {
  733   1103   
        pub(crate) fn as_validation_exception_field(
  734   1104   
            self,
  735   1105   
            path: ::std::string::String,
  736   1106   
        ) -> crate::model::ValidationExceptionField {
  737   1107   
            match self {
  738   1108   
            ConstraintViolation::MissingRequiredInnerMostShape => crate::model::ValidationExceptionField {
  739   1109   
                                                message: format!("Value at '{}/requiredInnerMostShape' failed to satisfy constraint: Member must not be null", path),
  740   1110   
                                                path: path + "/requiredInnerMostShape",
  741   1111   
                                            },
  742   1112   
            ConstraintViolation::RequiredInnerMostShape(inner) => inner.as_validation_exception_field(path + "/requiredInnerMostShape"),
  743   1113   
        }
  744   1114   
        }
  745   1115   
    }
        1116  +
    /* ServerBuilderGenerator.kt:244 */
  746   1117   
    impl ::std::convert::From<Builder>
  747   1118   
        for crate::constrained::MaybeConstrained<crate::model::InnerShape>
  748   1119   
    {
  749   1120   
        fn from(builder: Builder) -> Self {
  750   1121   
            Self::Unconstrained(builder)
  751   1122   
        }
  752   1123   
    }
        1124  +
    /* ServerBuilderGenerator.kt:446 */
  753   1125   
    impl ::std::convert::TryFrom<Builder> for crate::model::InnerShape {
  754   1126   
        type Error = ConstraintViolation;
  755   1127   
  756   1128   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  757   1129   
            builder.build()
  758   1130   
        }
  759   1131   
    }
  760         -
    /// A builder for [`InnerShape`](crate::model::InnerShape).
        1132  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`InnerShape`](crate::model::InnerShape).
        1133  +
    /* RustType.kt:516 */
  761   1134   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1135  +
    /* ServerBuilderGenerator.kt:211 */
  762   1136   
    pub(crate) struct Builder {
        1137  +
        /* ServerBuilderGenerator.kt:308 */
  763   1138   
        pub(crate) required_inner_most_shape: ::std::option::Option<
  764   1139   
            crate::constrained::MaybeConstrained<crate::model::InnermostShape>,
  765   1140   
        >,
        1141  +
        /* ServerBuilderGenerator.kt:211 */
  766   1142   
    }
        1143  +
    /* ServerBuilderGenerator.kt:215 */
  767   1144   
    impl Builder {
        1145  +
        /* ServerBuilderGenerator.kt:426 */
  768   1146   
        #[allow(missing_docs)] // documentation missing in model
        1147  +
                               /* ServerBuilderGenerator.kt:428 */
  769   1148   
        pub(crate) fn set_required_inner_most_shape(
  770   1149   
            mut self,
  771   1150   
            input: impl ::std::convert::Into<
  772   1151   
                crate::constrained::MaybeConstrained<crate::model::InnermostShape>,
  773   1152   
            >,
  774   1153   
        ) -> Self {
        1154  +
            /* ServerBuilderGenerator.kt:429 */
  775   1155   
            self.required_inner_most_shape = Some(input.into());
  776   1156   
            self
        1157  +
            /* ServerBuilderGenerator.kt:428 */
  777   1158   
        }
  778         -
        /// Consumes the builder and constructs a [`InnerShape`](crate::model::InnerShape).
  779         -
        ///
        1159  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`InnerShape`](crate::model::InnerShape).
        1160  +
        /// /* ServerBuilderGenerator.kt:260 */
  780   1161   
        /// The builder fails to construct a [`InnerShape`](crate::model::InnerShape) if a [`ConstraintViolation`] occurs.
  781   1162   
        ///
  782         -
        /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        1163  +
        /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        1164  +
        /* ServerBuilderGenerator.kt:271 */
  783   1165   
        pub fn build(self) -> Result<crate::model::InnerShape, ConstraintViolation> {
  784   1166   
            self.build_enforcing_all_constraints()
  785   1167   
        }
        1168  +
        /* ServerBuilderGenerator.kt:283 */
  786   1169   
        fn build_enforcing_all_constraints(
  787   1170   
            self,
  788   1171   
        ) -> Result<crate::model::InnerShape, ConstraintViolation> {
  789         -
            Ok(crate::model::InnerShape {
  790         -
                required_inner_most_shape: self
  791         -
                    .required_inner_most_shape
  792         -
                    .map(|v| match v {
  793         -
                        crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
  794         -
                        crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
  795         -
                    })
  796         -
                    .map(|res| res.map_err(ConstraintViolation::RequiredInnerMostShape))
  797         -
                    .transpose()?
  798         -
                    .ok_or(ConstraintViolation::MissingRequiredInnerMostShape)?,
  799         -
            })
        1172  +
            /* ServerBuilderGenerator.kt:287 */
        1173  +
            Ok(
        1174  +
                /* ServerBuilderGenerator.kt:542 */
        1175  +
                crate::model::InnerShape {
        1176  +
                    /* ServerBuilderGenerator.kt:546 */
        1177  +
                    required_inner_most_shape: self
        1178  +
                        .required_inner_most_shape
        1179  +
                        /* ServerBuilderGenerator.kt:602 */
        1180  +
                        .map(|v| match v {
        1181  +
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        1182  +
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        1183  +
                        })
        1184  +
                        /* ServerBuilderGenerator.kt:614 */
        1185  +
                        .map(|res| res.map_err(ConstraintViolation::RequiredInnerMostShape))
        1186  +
                        .transpose()?
        1187  +
                        /* ServerBuilderGenerator.kt:569 */
        1188  +
                        .ok_or(ConstraintViolation::MissingRequiredInnerMostShape)?,
        1189  +
                    /* ServerBuilderGenerator.kt:542 */
        1190  +
                }, /* ServerBuilderGenerator.kt:287 */
        1191  +
            )
        1192  +
            /* ServerBuilderGenerator.kt:283 */
  800   1193   
        }
        1194  +
        /* ServerBuilderGenerator.kt:215 */
  801   1195   
    }
        1196  +
        1197  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  802   1198   
}
  803         -
/// See [`InnerShape`](crate::model::InnerShape).
        1199  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`InnerShape`](crate::model::InnerShape).
  804   1200   
pub mod inner_shape {
  805   1201   
        1202  +
    /* RustType.kt:516 */
  806   1203   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  807         -
    /// Holds one variant for each of the ways the builder can fail.
  808         -
        1204  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        1205  +
    /* ServerBuilderConstraintViolations.kt:75 */
  809   1206   
    #[allow(clippy::enum_variant_names)]
  810   1207   
    pub enum ConstraintViolation {
  811         -
        /// `required_inner_most_shape` was not provided but it is required when building `InnerShape`.
        1208  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`required_inner_most_shape` was not provided but it is required when building `InnerShape`.
        1209  +
        /* ServerBuilderConstraintViolations.kt:143 */
  812   1210   
        MissingRequiredInnerMostShape,
        1211  +
        /* ServerBuilderConstraintViolations.kt:75 */
  813   1212   
    }
        1213  +
    /* ServerBuilderConstraintViolations.kt:117 */
  814   1214   
    impl ::std::fmt::Display for ConstraintViolation {
        1215  +
        /* ServerBuilderConstraintViolations.kt:118 */
  815   1216   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1217  +
            /* ServerBuilderConstraintViolations.kt:119 */
  816   1218   
            match self {
  817         -
                ConstraintViolation::MissingRequiredInnerMostShape => write!(f, "`required_inner_most_shape` was not provided but it is required when building `InnerShape`"),
  818         -
            }
        1219  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingRequiredInnerMostShape => write!(f, "`required_inner_most_shape` was not provided but it is required when building `InnerShape`"),
        1220  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        1221  +
            /* ServerBuilderConstraintViolations.kt:118 */
  819   1222   
        }
        1223  +
        /* ServerBuilderConstraintViolations.kt:117 */
  820   1224   
    }
        1225  +
    /* ServerBuilderConstraintViolations.kt:84 */
  821   1226   
    impl ::std::error::Error for ConstraintViolation {}
        1227  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
  822   1228   
    impl ::std::convert::TryFrom<Builder> for crate::model::InnerShape {
  823   1229   
        type Error = ConstraintViolation;
  824   1230   
  825   1231   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  826   1232   
            builder.build()
  827   1233   
        }
  828   1234   
    }
  829         -
    /// A builder for [`InnerShape`](crate::model::InnerShape).
        1235  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`InnerShape`](crate::model::InnerShape).
        1236  +
    /* RustType.kt:516 */
  830   1237   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1238  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  831   1239   
    pub struct Builder {
        1240  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  832   1241   
        pub(crate) required_inner_most_shape: ::std::option::Option<crate::model::InnermostShape>,
        1242  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  833   1243   
    }
        1244  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  834   1245   
    impl Builder {
        1246  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
  835   1247   
        #[allow(missing_docs)] // documentation missing in model
        1248  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  836   1249   
        pub fn required_inner_most_shape(mut self, input: crate::model::InnermostShape) -> Self {
  837         -
            self.required_inner_most_shape = Some(input);
        1250  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1251  +
            self.required_inner_most_shape =
        1252  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        1253  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1254  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        1255  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  838   1256   
            self
        1257  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  839   1258   
        }
  840         -
        /// Consumes the builder and constructs a [`InnerShape`](crate::model::InnerShape).
  841         -
        ///
        1259  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`InnerShape`](crate::model::InnerShape).
        1260  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
  842   1261   
        /// The builder fails to construct a [`InnerShape`](crate::model::InnerShape) if you do not provide a value for all non-`Option`al members.
  843   1262   
        ///
        1263  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  844   1264   
        pub fn build(self) -> Result<crate::model::InnerShape, ConstraintViolation> {
  845   1265   
            self.build_enforcing_required_and_enum_traits()
  846   1266   
        }
        1267  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  847   1268   
        fn build_enforcing_required_and_enum_traits(
  848   1269   
            self,
  849   1270   
        ) -> Result<crate::model::InnerShape, ConstraintViolation> {
  850         -
            Ok(crate::model::InnerShape {
  851         -
                required_inner_most_shape: self
  852         -
                    .required_inner_most_shape
  853         -
                    .ok_or(ConstraintViolation::MissingRequiredInnerMostShape)?,
  854         -
            })
        1271  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        1272  +
            Ok(
        1273  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        1274  +
                crate::model::InnerShape {
        1275  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        1276  +
                    required_inner_most_shape: self
        1277  +
                        .required_inner_most_shape
        1278  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        1279  +
                        .ok_or(ConstraintViolation::MissingRequiredInnerMostShape)?,
        1280  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        1281  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        1282  +
            )
        1283  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  855   1284   
        }
        1285  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  856   1286   
    }
        1287  +
        1288  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  857   1289   
}
  858         -
/// See [`InnermostShape`](crate::model::InnermostShape).
        1290  +
/// /* ServerBuilderGenerator.kt:171 */See [`InnermostShape`](crate::model::InnermostShape).
  859   1291   
pub(crate) mod innermost_shape_internal {
  860   1292   
        1293  +
    /* RustType.kt:516 */
  861   1294   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  862         -
    /// Holds one variant for each of the ways the builder can fail.
        1295  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        1296  +
    /* RustType.kt:516 */
  863   1297   
    #[non_exhaustive]
        1298  +
    /* ServerBuilderConstraintViolations.kt:75 */
  864   1299   
    #[allow(clippy::enum_variant_names)]
  865   1300   
    pub(crate) enum ConstraintViolation {
  866         -
        /// `a_string` was not provided but it is required when building `InnermostShape`.
        1301  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_string` was not provided but it is required when building `InnermostShape`.
        1302  +
        /* ServerBuilderConstraintViolations.kt:143 */
  867   1303   
        MissingAString,
  868         -
        /// `a_boolean` was not provided but it is required when building `InnermostShape`.
        1304  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_boolean` was not provided but it is required when building `InnermostShape`.
        1305  +
        /* ServerBuilderConstraintViolations.kt:143 */
  869   1306   
        MissingABoolean,
  870         -
        /// `a_byte` was not provided but it is required when building `InnermostShape`.
        1307  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_byte` was not provided but it is required when building `InnermostShape`.
        1308  +
        /* ServerBuilderConstraintViolations.kt:143 */
  871   1309   
        MissingAByte,
  872         -
        /// `a_short` was not provided but it is required when building `InnermostShape`.
        1310  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_short` was not provided but it is required when building `InnermostShape`.
        1311  +
        /* ServerBuilderConstraintViolations.kt:143 */
  873   1312   
        MissingAShort,
  874         -
        /// `an_int` was not provided but it is required when building `InnermostShape`.
        1313  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`an_int` was not provided but it is required when building `InnermostShape`.
        1314  +
        /* ServerBuilderConstraintViolations.kt:143 */
  875   1315   
        MissingAnInt,
  876         -
        /// `a_long` was not provided but it is required when building `InnermostShape`.
        1316  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_long` was not provided but it is required when building `InnermostShape`.
        1317  +
        /* ServerBuilderConstraintViolations.kt:143 */
  877   1318   
        MissingALong,
  878         -
        /// `a_float` was not provided but it is required when building `InnermostShape`.
        1319  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_float` was not provided but it is required when building `InnermostShape`.
        1320  +
        /* ServerBuilderConstraintViolations.kt:143 */
  879   1321   
        MissingAFloat,
  880         -
        /// `a_double` was not provided but it is required when building `InnermostShape`.
        1322  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_double` was not provided but it is required when building `InnermostShape`.
        1323  +
        /* ServerBuilderConstraintViolations.kt:143 */
  881   1324   
        MissingADouble,
  882         -
        /// `a_timestamp` was not provided but it is required when building `InnermostShape`.
        1325  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_timestamp` was not provided but it is required when building `InnermostShape`.
        1326  +
        /* ServerBuilderConstraintViolations.kt:143 */
  883   1327   
        MissingATimestamp,
  884         -
        /// `a_document` was not provided but it is required when building `InnermostShape`.
        1328  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_document` was not provided but it is required when building `InnermostShape`.
        1329  +
        /* ServerBuilderConstraintViolations.kt:143 */
  885   1330   
        MissingADocument,
  886         -
        /// `a_string_list` was not provided but it is required when building `InnermostShape`.
        1331  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_string_list` was not provided but it is required when building `InnermostShape`.
        1332  +
        /* ServerBuilderConstraintViolations.kt:143 */
  887   1333   
        MissingAStringList,
  888         -
        /// `a_string_map` was not provided but it is required when building `InnermostShape`.
        1334  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_string_map` was not provided but it is required when building `InnermostShape`.
        1335  +
        /* ServerBuilderConstraintViolations.kt:143 */
  889   1336   
        MissingAStringMap,
  890         -
        /// `a_string_set` was not provided but it is required when building `InnermostShape`.
        1337  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_string_set` was not provided but it is required when building `InnermostShape`.
        1338  +
        /* ServerBuilderConstraintViolations.kt:143 */
  891   1339   
        MissingAStringSet,
  892         -
        /// `a_blob` was not provided but it is required when building `InnermostShape`.
        1340  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_blob` was not provided but it is required when building `InnermostShape`.
        1341  +
        /* ServerBuilderConstraintViolations.kt:143 */
  893   1342   
        MissingABlob,
  894         -
        /// `a_union` was not provided but it is required when building `InnermostShape`.
        1343  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_union` was not provided but it is required when building `InnermostShape`.
        1344  +
        /* ServerBuilderConstraintViolations.kt:143 */
  895   1345   
        MissingAUnion,
        1346  +
        /* ServerBuilderConstraintViolations.kt:75 */
  896   1347   
    }
        1348  +
    /* ServerBuilderConstraintViolations.kt:117 */
  897   1349   
    impl ::std::fmt::Display for ConstraintViolation {
        1350  +
        /* ServerBuilderConstraintViolations.kt:118 */
  898   1351   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1352  +
            /* ServerBuilderConstraintViolations.kt:119 */
  899   1353   
            match self {
  900         -
                ConstraintViolation::MissingAString => write!(f, "`a_string` was not provided but it is required when building `InnermostShape`"),
  901         -
                ConstraintViolation::MissingABoolean => write!(f, "`a_boolean` was not provided but it is required when building `InnermostShape`"),
  902         -
                ConstraintViolation::MissingAByte => write!(f, "`a_byte` was not provided but it is required when building `InnermostShape`"),
  903         -
                ConstraintViolation::MissingAShort => write!(f, "`a_short` was not provided but it is required when building `InnermostShape`"),
  904         -
                ConstraintViolation::MissingAnInt => write!(f, "`an_int` was not provided but it is required when building `InnermostShape`"),
  905         -
                ConstraintViolation::MissingALong => write!(f, "`a_long` was not provided but it is required when building `InnermostShape`"),
  906         -
                ConstraintViolation::MissingAFloat => write!(f, "`a_float` was not provided but it is required when building `InnermostShape`"),
  907         -
                ConstraintViolation::MissingADouble => write!(f, "`a_double` was not provided but it is required when building `InnermostShape`"),
  908         -
                ConstraintViolation::MissingATimestamp => write!(f, "`a_timestamp` was not provided but it is required when building `InnermostShape`"),
  909         -
                ConstraintViolation::MissingADocument => write!(f, "`a_document` was not provided but it is required when building `InnermostShape`"),
  910         -
                ConstraintViolation::MissingAStringList => write!(f, "`a_string_list` was not provided but it is required when building `InnermostShape`"),
  911         -
                ConstraintViolation::MissingAStringMap => write!(f, "`a_string_map` was not provided but it is required when building `InnermostShape`"),
  912         -
                ConstraintViolation::MissingAStringSet => write!(f, "`a_string_set` was not provided but it is required when building `InnermostShape`"),
  913         -
                ConstraintViolation::MissingABlob => write!(f, "`a_blob` was not provided but it is required when building `InnermostShape`"),
  914         -
                ConstraintViolation::MissingAUnion => write!(f, "`a_union` was not provided but it is required when building `InnermostShape`"),
  915         -
            }
  916         -
        }
  917         -
    }
        1354  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAString => write!(f, "`a_string` was not provided but it is required when building `InnermostShape`"),
        1355  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingABoolean => write!(f, "`a_boolean` was not provided but it is required when building `InnermostShape`"),
        1356  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAByte => write!(f, "`a_byte` was not provided but it is required when building `InnermostShape`"),
        1357  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAShort => write!(f, "`a_short` was not provided but it is required when building `InnermostShape`"),
        1358  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAnInt => write!(f, "`an_int` was not provided but it is required when building `InnermostShape`"),
        1359  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingALong => write!(f, "`a_long` was not provided but it is required when building `InnermostShape`"),
        1360  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAFloat => write!(f, "`a_float` was not provided but it is required when building `InnermostShape`"),
        1361  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingADouble => write!(f, "`a_double` was not provided but it is required when building `InnermostShape`"),
        1362  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingATimestamp => write!(f, "`a_timestamp` was not provided but it is required when building `InnermostShape`"),
        1363  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingADocument => write!(f, "`a_document` was not provided but it is required when building `InnermostShape`"),
        1364  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAStringList => write!(f, "`a_string_list` was not provided but it is required when building `InnermostShape`"),
        1365  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAStringMap => write!(f, "`a_string_map` was not provided but it is required when building `InnermostShape`"),
        1366  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAStringSet => write!(f, "`a_string_set` was not provided but it is required when building `InnermostShape`"),
        1367  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingABlob => write!(f, "`a_blob` was not provided but it is required when building `InnermostShape`"),
        1368  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAUnion => write!(f, "`a_union` was not provided but it is required when building `InnermostShape`"),
        1369  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        1370  +
            /* ServerBuilderConstraintViolations.kt:118 */
        1371  +
        }
        1372  +
        /* ServerBuilderConstraintViolations.kt:117 */
        1373  +
    }
        1374  +
    /* ServerBuilderConstraintViolations.kt:84 */
  918   1375   
    impl ::std::error::Error for ConstraintViolation {}
        1376  +
    /* ServerBuilderConstraintViolations.kt:171 */
  919   1377   
    impl ConstraintViolation {
  920   1378   
        pub(crate) fn as_validation_exception_field(
  921   1379   
            self,
  922   1380   
            path: ::std::string::String,
  923   1381   
        ) -> crate::model::ValidationExceptionField {
  924   1382   
            match self {
  925   1383   
            ConstraintViolation::MissingAString => crate::model::ValidationExceptionField {
  926   1384   
                                                message: format!("Value at '{}/aString' failed to satisfy constraint: Member must not be null", path),
  927   1385   
                                                path: path + "/aString",
  928   1386   
                                            },
@@ -958,1416 +1437,2279 @@
  978   1436   
                                                message: format!("Value at '{}/aBlob' failed to satisfy constraint: Member must not be null", path),
  979   1437   
                                                path: path + "/aBlob",
  980   1438   
                                            },
  981   1439   
            ConstraintViolation::MissingAUnion => crate::model::ValidationExceptionField {
  982   1440   
                                                message: format!("Value at '{}/aUnion' failed to satisfy constraint: Member must not be null", path),
  983   1441   
                                                path: path + "/aUnion",
  984   1442   
                                            },
  985   1443   
        }
  986   1444   
        }
  987   1445   
    }
        1446  +
    /* ServerBuilderGenerator.kt:244 */
  988   1447   
    impl ::std::convert::From<Builder>
  989   1448   
        for crate::constrained::MaybeConstrained<crate::model::InnermostShape>
  990   1449   
    {
  991   1450   
        fn from(builder: Builder) -> Self {
  992   1451   
            Self::Unconstrained(builder)
  993   1452   
        }
  994   1453   
    }
        1454  +
    /* ServerBuilderGenerator.kt:446 */
  995   1455   
    impl ::std::convert::TryFrom<Builder> for crate::model::InnermostShape {
  996   1456   
        type Error = ConstraintViolation;
  997   1457   
  998   1458   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  999   1459   
            builder.build()
 1000   1460   
        }
 1001   1461   
    }
 1002         -
    /// A builder for [`InnermostShape`](crate::model::InnermostShape).
        1462  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`InnermostShape`](crate::model::InnermostShape).
        1463  +
    /* RustType.kt:516 */
 1003   1464   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1465  +
    /* ServerBuilderGenerator.kt:211 */
 1004   1466   
    pub(crate) struct Builder {
        1467  +
        /* ServerBuilderGenerator.kt:308 */
 1005   1468   
        pub(crate) a_string: ::std::option::Option<::std::string::String>,
        1469  +
        /* ServerBuilderGenerator.kt:308 */
 1006   1470   
        pub(crate) a_boolean: ::std::option::Option<bool>,
 1007         -
        pub(crate) a_byte: ::std::option::Option<i8>,
 1008         -
        pub(crate) a_short: ::std::option::Option<i16>,
 1009         -
        pub(crate) an_int: ::std::option::Option<i32>,
 1010         -
        pub(crate) a_long: ::std::option::Option<i64>,
 1011         -
        pub(crate) a_float: ::std::option::Option<f32>,
 1012         -
        pub(crate) a_double: ::std::option::Option<f64>,
        1471  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) a_byte: ::std::option::Option<i8>,
        1472  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) a_short: ::std::option::Option<i16>,
        1473  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) an_int: ::std::option::Option<i32>,
        1474  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) a_long: ::std::option::Option<i64>,
        1475  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) a_float: ::std::option::Option<f32>,
        1476  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) a_double: ::std::option::Option<f64>,
        1477  +
        /* ServerBuilderGenerator.kt:308 */
 1013   1478   
        pub(crate) a_timestamp:
 1014   1479   
            ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
        1480  +
        /* ServerBuilderGenerator.kt:308 */
 1015   1481   
        pub(crate) a_document:
 1016   1482   
            ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
        1483  +
        /* ServerBuilderGenerator.kt:308 */
 1017   1484   
        pub(crate) a_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
        1485  +
        /* ServerBuilderGenerator.kt:308 */
 1018   1486   
        pub(crate) a_string_map: ::std::option::Option<
 1019   1487   
            ::std::collections::HashMap<
 1020   1488   
                ::std::string::String,
 1021   1489   
                ::aws_smithy_http_server_python::types::DateTime,
 1022   1490   
            >,
 1023   1491   
        >,
        1492  +
        /* ServerBuilderGenerator.kt:308 */
 1024   1493   
        pub(crate) a_string_set: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
        1494  +
        /* ServerBuilderGenerator.kt:308 */
 1025   1495   
        pub(crate) a_blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
        1496  +
        /* ServerBuilderGenerator.kt:308 */
 1026   1497   
        pub(crate) a_union: ::std::option::Option<crate::model::AUnion>,
        1498  +
        /* ServerBuilderGenerator.kt:211 */
 1027   1499   
    }
        1500  +
    /* ServerBuilderGenerator.kt:215 */
 1028   1501   
    impl Builder {
        1502  +
        /* ServerBuilderGenerator.kt:426 */
 1029   1503   
        #[allow(missing_docs)] // documentation missing in model
        1504  +
                               /* ServerBuilderGenerator.kt:428 */
 1030   1505   
        pub(crate) fn set_a_string(
 1031   1506   
            mut self,
 1032   1507   
            input: impl ::std::convert::Into<::std::string::String>,
 1033   1508   
        ) -> Self {
        1509  +
            /* ServerBuilderGenerator.kt:429 */
 1034   1510   
            self.a_string = Some(input.into());
 1035   1511   
            self
        1512  +
            /* ServerBuilderGenerator.kt:428 */
 1036   1513   
        }
        1514  +
        /* ServerBuilderGenerator.kt:426 */
 1037   1515   
        #[allow(missing_docs)] // documentation missing in model
        1516  +
                               /* ServerBuilderGenerator.kt:428 */
 1038   1517   
        pub(crate) fn set_a_boolean(mut self, input: impl ::std::convert::Into<bool>) -> Self {
        1518  +
            /* ServerBuilderGenerator.kt:429 */
 1039   1519   
            self.a_boolean = Some(input.into());
 1040   1520   
            self
        1521  +
            /* ServerBuilderGenerator.kt:428 */
 1041   1522   
        }
        1523  +
        /* ServerBuilderGenerator.kt:426 */
 1042   1524   
        #[allow(missing_docs)] // documentation missing in model
        1525  +
                               /* ServerBuilderGenerator.kt:428 */
 1043   1526   
        pub(crate) fn set_a_byte(mut self, input: impl ::std::convert::Into<i8>) -> Self {
        1527  +
            /* ServerBuilderGenerator.kt:429 */
 1044   1528   
            self.a_byte = Some(input.into());
 1045   1529   
            self
        1530  +
            /* ServerBuilderGenerator.kt:428 */
 1046   1531   
        }
        1532  +
        /* ServerBuilderGenerator.kt:426 */
 1047   1533   
        #[allow(missing_docs)] // documentation missing in model
        1534  +
                               /* ServerBuilderGenerator.kt:428 */
 1048   1535   
        pub(crate) fn set_a_short(mut self, input: impl ::std::convert::Into<i16>) -> Self {
        1536  +
            /* ServerBuilderGenerator.kt:429 */
 1049   1537   
            self.a_short = Some(input.into());
 1050   1538   
            self
        1539  +
            /* ServerBuilderGenerator.kt:428 */
 1051   1540   
        }
        1541  +
        /* ServerBuilderGenerator.kt:426 */
 1052   1542   
        #[allow(missing_docs)] // documentation missing in model
        1543  +
                               /* ServerBuilderGenerator.kt:428 */
 1053   1544   
        pub(crate) fn set_an_int(mut self, input: impl ::std::convert::Into<i32>) -> Self {
        1545  +
            /* ServerBuilderGenerator.kt:429 */
 1054   1546   
            self.an_int = Some(input.into());
 1055   1547   
            self
        1548  +
            /* ServerBuilderGenerator.kt:428 */
 1056   1549   
        }
        1550  +
        /* ServerBuilderGenerator.kt:426 */
 1057   1551   
        #[allow(missing_docs)] // documentation missing in model
        1552  +
                               /* ServerBuilderGenerator.kt:428 */
 1058   1553   
        pub(crate) fn set_a_long(mut self, input: impl ::std::convert::Into<i64>) -> Self {
        1554  +
            /* ServerBuilderGenerator.kt:429 */
 1059   1555   
            self.a_long = Some(input.into());
 1060   1556   
            self
        1557  +
            /* ServerBuilderGenerator.kt:428 */
 1061   1558   
        }
        1559  +
        /* ServerBuilderGenerator.kt:426 */
 1062   1560   
        #[allow(missing_docs)] // documentation missing in model
        1561  +
                               /* ServerBuilderGenerator.kt:428 */
 1063   1562   
        pub(crate) fn set_a_float(mut self, input: impl ::std::convert::Into<f32>) -> Self {
        1563  +
            /* ServerBuilderGenerator.kt:429 */
 1064   1564   
            self.a_float = Some(input.into());
 1065   1565   
            self
        1566  +
            /* ServerBuilderGenerator.kt:428 */
 1066   1567   
        }
        1568  +
        /* ServerBuilderGenerator.kt:426 */
 1067   1569   
        #[allow(missing_docs)] // documentation missing in model
        1570  +
                               /* ServerBuilderGenerator.kt:428 */
 1068   1571   
        pub(crate) fn set_a_double(mut self, input: impl ::std::convert::Into<f64>) -> Self {
        1572  +
            /* ServerBuilderGenerator.kt:429 */
 1069   1573   
            self.a_double = Some(input.into());
 1070   1574   
            self
        1575  +
            /* ServerBuilderGenerator.kt:428 */
 1071   1576   
        }
        1577  +
        /* ServerBuilderGenerator.kt:426 */
 1072   1578   
        #[allow(missing_docs)] // documentation missing in model
        1579  +
                               /* ServerBuilderGenerator.kt:428 */
 1073   1580   
        pub(crate) fn set_a_timestamp(
 1074   1581   
            mut self,
 1075   1582   
            input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
 1076   1583   
        ) -> Self {
        1584  +
            /* ServerBuilderGenerator.kt:429 */
 1077   1585   
            self.a_timestamp = Some(input.into());
 1078   1586   
            self
        1587  +
            /* ServerBuilderGenerator.kt:428 */
 1079   1588   
        }
        1589  +
        /* ServerBuilderGenerator.kt:426 */
 1080   1590   
        #[allow(missing_docs)] // documentation missing in model
        1591  +
                               /* ServerBuilderGenerator.kt:428 */
 1081   1592   
        pub(crate) fn set_a_document(
 1082   1593   
            mut self,
 1083   1594   
            input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
 1084   1595   
        ) -> Self {
        1596  +
            /* ServerBuilderGenerator.kt:429 */
 1085   1597   
            self.a_document = Some(input.into());
 1086   1598   
            self
        1599  +
            /* ServerBuilderGenerator.kt:428 */
 1087   1600   
        }
        1601  +
        /* ServerBuilderGenerator.kt:426 */
 1088   1602   
        #[allow(missing_docs)] // documentation missing in model
        1603  +
                               /* ServerBuilderGenerator.kt:428 */
 1089   1604   
        pub(crate) fn set_a_string_list(
 1090   1605   
            mut self,
 1091   1606   
            input: impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>,
 1092   1607   
        ) -> Self {
        1608  +
            /* ServerBuilderGenerator.kt:429 */
 1093   1609   
            self.a_string_list = Some(input.into());
 1094   1610   
            self
        1611  +
            /* ServerBuilderGenerator.kt:428 */
 1095   1612   
        }
        1613  +
        /* ServerBuilderGenerator.kt:426 */
 1096   1614   
        #[allow(missing_docs)] // documentation missing in model
        1615  +
                               /* ServerBuilderGenerator.kt:428 */
 1097   1616   
        pub(crate) fn set_a_string_map(
 1098   1617   
            mut self,
 1099   1618   
            input: impl ::std::convert::Into<
 1100   1619   
                ::std::collections::HashMap<
 1101   1620   
                    ::std::string::String,
 1102   1621   
                    ::aws_smithy_http_server_python::types::DateTime,
 1103   1622   
                >,
 1104   1623   
            >,
 1105   1624   
        ) -> Self {
        1625  +
            /* ServerBuilderGenerator.kt:429 */
 1106   1626   
            self.a_string_map = Some(input.into());
 1107   1627   
            self
        1628  +
            /* ServerBuilderGenerator.kt:428 */
 1108   1629   
        }
        1630  +
        /* ServerBuilderGenerator.kt:426 */
 1109   1631   
        #[allow(missing_docs)] // documentation missing in model
        1632  +
                               /* ServerBuilderGenerator.kt:428 */
 1110   1633   
        pub(crate) fn set_a_string_set(
 1111   1634   
            mut self,
 1112   1635   
            input: impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>,
 1113   1636   
        ) -> Self {
        1637  +
            /* ServerBuilderGenerator.kt:429 */
 1114   1638   
            self.a_string_set = Some(input.into());
 1115   1639   
            self
        1640  +
            /* ServerBuilderGenerator.kt:428 */
 1116   1641   
        }
        1642  +
        /* ServerBuilderGenerator.kt:426 */
 1117   1643   
        #[allow(missing_docs)] // documentation missing in model
        1644  +
                               /* ServerBuilderGenerator.kt:428 */
 1118   1645   
        pub(crate) fn set_a_blob(
 1119   1646   
            mut self,
 1120   1647   
            input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::Blob>,
 1121   1648   
        ) -> Self {
        1649  +
            /* ServerBuilderGenerator.kt:429 */
 1122   1650   
            self.a_blob = Some(input.into());
 1123   1651   
            self
        1652  +
            /* ServerBuilderGenerator.kt:428 */
 1124   1653   
        }
        1654  +
        /* ServerBuilderGenerator.kt:426 */
 1125   1655   
        #[allow(missing_docs)] // documentation missing in model
        1656  +
                               /* ServerBuilderGenerator.kt:428 */
 1126   1657   
        pub(crate) fn set_a_union(
 1127   1658   
            mut self,
 1128   1659   
            input: impl ::std::convert::Into<crate::model::AUnion>,
 1129   1660   
        ) -> Self {
        1661  +
            /* ServerBuilderGenerator.kt:429 */
 1130   1662   
            self.a_union = Some(input.into());
 1131   1663   
            self
        1664  +
            /* ServerBuilderGenerator.kt:428 */
 1132   1665   
        }
 1133         -
        /// Consumes the builder and constructs a [`InnermostShape`](crate::model::InnermostShape).
 1134         -
        ///
        1666  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`InnermostShape`](crate::model::InnermostShape).
        1667  +
        /// /* ServerBuilderGenerator.kt:260 */
 1135   1668   
        /// The builder fails to construct a [`InnermostShape`](crate::model::InnermostShape) if a [`ConstraintViolation`] occurs.
 1136   1669   
        ///
 1137         -
        /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        1670  +
        /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        1671  +
        /* ServerBuilderGenerator.kt:271 */
 1138   1672   
        pub fn build(self) -> Result<crate::model::InnermostShape, ConstraintViolation> {
 1139   1673   
            self.build_enforcing_all_constraints()
 1140   1674   
        }
        1675  +
        /* ServerBuilderGenerator.kt:283 */
 1141   1676   
        fn build_enforcing_all_constraints(
 1142   1677   
            self,
 1143   1678   
        ) -> Result<crate::model::InnermostShape, ConstraintViolation> {
 1144         -
            Ok(crate::model::InnermostShape {
 1145         -
                a_string: self.a_string.ok_or(ConstraintViolation::MissingAString)?,
 1146         -
                a_boolean: self.a_boolean.ok_or(ConstraintViolation::MissingABoolean)?,
 1147         -
                a_byte: self.a_byte.ok_or(ConstraintViolation::MissingAByte)?,
 1148         -
                a_short: self.a_short.ok_or(ConstraintViolation::MissingAShort)?,
 1149         -
                an_int: self.an_int.ok_or(ConstraintViolation::MissingAnInt)?,
 1150         -
                a_long: self.a_long.ok_or(ConstraintViolation::MissingALong)?,
 1151         -
                a_float: self.a_float.ok_or(ConstraintViolation::MissingAFloat)?,
 1152         -
                a_double: self.a_double.ok_or(ConstraintViolation::MissingADouble)?,
 1153         -
                a_timestamp: self
 1154         -
                    .a_timestamp
 1155         -
                    .ok_or(ConstraintViolation::MissingATimestamp)?,
 1156         -
                a_document: self
 1157         -
                    .a_document
 1158         -
                    .ok_or(ConstraintViolation::MissingADocument)?,
 1159         -
                a_string_list: self
 1160         -
                    .a_string_list
 1161         -
                    .ok_or(ConstraintViolation::MissingAStringList)?,
 1162         -
                a_string_map: self
 1163         -
                    .a_string_map
 1164         -
                    .ok_or(ConstraintViolation::MissingAStringMap)?,
 1165         -
                a_string_set: self
 1166         -
                    .a_string_set
 1167         -
                    .ok_or(ConstraintViolation::MissingAStringSet)?,
 1168         -
                a_blob: self.a_blob.ok_or(ConstraintViolation::MissingABlob)?,
 1169         -
                a_union: self.a_union.ok_or(ConstraintViolation::MissingAUnion)?,
 1170         -
            })
        1679  +
            /* ServerBuilderGenerator.kt:287 */
        1680  +
            Ok(
        1681  +
                /* ServerBuilderGenerator.kt:542 */
        1682  +
                crate::model::InnermostShape {
        1683  +
                    /* ServerBuilderGenerator.kt:546 */
        1684  +
                    a_string: self
        1685  +
                        .a_string
        1686  +
                        /* ServerBuilderGenerator.kt:569 */
        1687  +
                        .ok_or(ConstraintViolation::MissingAString)?,
        1688  +
                    /* ServerBuilderGenerator.kt:546 */
        1689  +
                    a_boolean: self
        1690  +
                        .a_boolean
        1691  +
                        /* ServerBuilderGenerator.kt:569 */
        1692  +
                        .ok_or(ConstraintViolation::MissingABoolean)?,
        1693  +
                    /* ServerBuilderGenerator.kt:546 */
        1694  +
                    a_byte: self
        1695  +
                        .a_byte
        1696  +
                        /* ServerBuilderGenerator.kt:569 */
        1697  +
                        .ok_or(ConstraintViolation::MissingAByte)?,
        1698  +
                    /* ServerBuilderGenerator.kt:546 */
        1699  +
                    a_short: self
        1700  +
                        .a_short
        1701  +
                        /* ServerBuilderGenerator.kt:569 */
        1702  +
                        .ok_or(ConstraintViolation::MissingAShort)?,
        1703  +
                    /* ServerBuilderGenerator.kt:546 */
        1704  +
                    an_int: self
        1705  +
                        .an_int
        1706  +
                        /* ServerBuilderGenerator.kt:569 */
        1707  +
                        .ok_or(ConstraintViolation::MissingAnInt)?,
        1708  +
                    /* ServerBuilderGenerator.kt:546 */
        1709  +
                    a_long: self
        1710  +
                        .a_long
        1711  +
                        /* ServerBuilderGenerator.kt:569 */
        1712  +
                        .ok_or(ConstraintViolation::MissingALong)?,
        1713  +
                    /* ServerBuilderGenerator.kt:546 */
        1714  +
                    a_float: self
        1715  +
                        .a_float
        1716  +
                        /* ServerBuilderGenerator.kt:569 */
        1717  +
                        .ok_or(ConstraintViolation::MissingAFloat)?,
        1718  +
                    /* ServerBuilderGenerator.kt:546 */
        1719  +
                    a_double: self
        1720  +
                        .a_double
        1721  +
                        /* ServerBuilderGenerator.kt:569 */
        1722  +
                        .ok_or(ConstraintViolation::MissingADouble)?,
        1723  +
                    /* ServerBuilderGenerator.kt:546 */
        1724  +
                    a_timestamp: self
        1725  +
                        .a_timestamp
        1726  +
                        /* ServerBuilderGenerator.kt:569 */
        1727  +
                        .ok_or(ConstraintViolation::MissingATimestamp)?,
        1728  +
                    /* ServerBuilderGenerator.kt:546 */
        1729  +
                    a_document: self
        1730  +
                        .a_document
        1731  +
                        /* ServerBuilderGenerator.kt:569 */
        1732  +
                        .ok_or(ConstraintViolation::MissingADocument)?,
        1733  +
                    /* ServerBuilderGenerator.kt:546 */
        1734  +
                    a_string_list: self
        1735  +
                        .a_string_list
        1736  +
                        /* ServerBuilderGenerator.kt:569 */
        1737  +
                        .ok_or(ConstraintViolation::MissingAStringList)?,
        1738  +
                    /* ServerBuilderGenerator.kt:546 */
        1739  +
                    a_string_map: self
        1740  +
                        .a_string_map
        1741  +
                        /* ServerBuilderGenerator.kt:569 */
        1742  +
                        .ok_or(ConstraintViolation::MissingAStringMap)?,
        1743  +
                    /* ServerBuilderGenerator.kt:546 */
        1744  +
                    a_string_set: self
        1745  +
                        .a_string_set
        1746  +
                        /* ServerBuilderGenerator.kt:569 */
        1747  +
                        .ok_or(ConstraintViolation::MissingAStringSet)?,
        1748  +
                    /* ServerBuilderGenerator.kt:546 */
        1749  +
                    a_blob: self
        1750  +
                        .a_blob
        1751  +
                        /* ServerBuilderGenerator.kt:569 */
        1752  +
                        .ok_or(ConstraintViolation::MissingABlob)?,
        1753  +
                    /* ServerBuilderGenerator.kt:546 */
        1754  +
                    a_union: self
        1755  +
                        .a_union
        1756  +
                        /* ServerBuilderGenerator.kt:569 */
        1757  +
                        .ok_or(ConstraintViolation::MissingAUnion)?,
        1758  +
                    /* ServerBuilderGenerator.kt:542 */
        1759  +
                }, /* ServerBuilderGenerator.kt:287 */
        1760  +
            )
        1761  +
            /* ServerBuilderGenerator.kt:283 */
 1171   1762   
        }
        1763  +
        /* ServerBuilderGenerator.kt:215 */
 1172   1764   
    }
        1765  +
        1766  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1173   1767   
}
 1174         -
/// See [`InnermostShape`](crate::model::InnermostShape).
        1768  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`InnermostShape`](crate::model::InnermostShape).
 1175   1769   
pub mod innermost_shape {
 1176   1770   
        1771  +
    /* RustType.kt:516 */
 1177   1772   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1178         -
    /// Holds one variant for each of the ways the builder can fail.
 1179         -
        1773  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        1774  +
    /* ServerBuilderConstraintViolations.kt:75 */
 1180   1775   
    #[allow(clippy::enum_variant_names)]
 1181   1776   
    pub enum ConstraintViolation {
 1182         -
        /// `a_string` was not provided but it is required when building `InnermostShape`.
        1777  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_string` was not provided but it is required when building `InnermostShape`.
        1778  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1183   1779   
        MissingAString,
 1184         -
        /// `a_boolean` was not provided but it is required when building `InnermostShape`.
        1780  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_boolean` was not provided but it is required when building `InnermostShape`.
        1781  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1185   1782   
        MissingABoolean,
 1186         -
        /// `a_byte` was not provided but it is required when building `InnermostShape`.
        1783  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_byte` was not provided but it is required when building `InnermostShape`.
        1784  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1187   1785   
        MissingAByte,
 1188         -
        /// `a_short` was not provided but it is required when building `InnermostShape`.
        1786  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_short` was not provided but it is required when building `InnermostShape`.
        1787  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1189   1788   
        MissingAShort,
 1190         -
        /// `an_int` was not provided but it is required when building `InnermostShape`.
        1789  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`an_int` was not provided but it is required when building `InnermostShape`.
        1790  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1191   1791   
        MissingAnInt,
 1192         -
        /// `a_long` was not provided but it is required when building `InnermostShape`.
        1792  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_long` was not provided but it is required when building `InnermostShape`.
        1793  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1193   1794   
        MissingALong,
 1194         -
        /// `a_float` was not provided but it is required when building `InnermostShape`.
        1795  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_float` was not provided but it is required when building `InnermostShape`.
        1796  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1195   1797   
        MissingAFloat,
 1196         -
        /// `a_double` was not provided but it is required when building `InnermostShape`.
        1798  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_double` was not provided but it is required when building `InnermostShape`.
        1799  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1197   1800   
        MissingADouble,
 1198         -
        /// `a_timestamp` was not provided but it is required when building `InnermostShape`.
        1801  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_timestamp` was not provided but it is required when building `InnermostShape`.
        1802  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1199   1803   
        MissingATimestamp,
 1200         -
        /// `a_document` was not provided but it is required when building `InnermostShape`.
        1804  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_document` was not provided but it is required when building `InnermostShape`.
        1805  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1201   1806   
        MissingADocument,
 1202         -
        /// `a_string_list` was not provided but it is required when building `InnermostShape`.
        1807  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_string_list` was not provided but it is required when building `InnermostShape`.
        1808  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1203   1809   
        MissingAStringList,
 1204         -
        /// `a_string_map` was not provided but it is required when building `InnermostShape`.
        1810  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_string_map` was not provided but it is required when building `InnermostShape`.
        1811  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1205   1812   
        MissingAStringMap,
 1206         -
        /// `a_string_set` was not provided but it is required when building `InnermostShape`.
        1813  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_string_set` was not provided but it is required when building `InnermostShape`.
        1814  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1207   1815   
        MissingAStringSet,
 1208         -
        /// `a_blob` was not provided but it is required when building `InnermostShape`.
        1816  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_blob` was not provided but it is required when building `InnermostShape`.
        1817  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1209   1818   
        MissingABlob,
 1210         -
        /// `a_union` was not provided but it is required when building `InnermostShape`.
        1819  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`a_union` was not provided but it is required when building `InnermostShape`.
        1820  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1211   1821   
        MissingAUnion,
        1822  +
        /* ServerBuilderConstraintViolations.kt:75 */
 1212   1823   
    }
        1824  +
    /* ServerBuilderConstraintViolations.kt:117 */
 1213   1825   
    impl ::std::fmt::Display for ConstraintViolation {
        1826  +
        /* ServerBuilderConstraintViolations.kt:118 */
 1214   1827   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1828  +
            /* ServerBuilderConstraintViolations.kt:119 */
 1215   1829   
            match self {
 1216         -
                ConstraintViolation::MissingAString => write!(f, "`a_string` was not provided but it is required when building `InnermostShape`"),
 1217         -
                ConstraintViolation::MissingABoolean => write!(f, "`a_boolean` was not provided but it is required when building `InnermostShape`"),
 1218         -
                ConstraintViolation::MissingAByte => write!(f, "`a_byte` was not provided but it is required when building `InnermostShape`"),
 1219         -
                ConstraintViolation::MissingAShort => write!(f, "`a_short` was not provided but it is required when building `InnermostShape`"),
 1220         -
                ConstraintViolation::MissingAnInt => write!(f, "`an_int` was not provided but it is required when building `InnermostShape`"),
 1221         -
                ConstraintViolation::MissingALong => write!(f, "`a_long` was not provided but it is required when building `InnermostShape`"),
 1222         -
                ConstraintViolation::MissingAFloat => write!(f, "`a_float` was not provided but it is required when building `InnermostShape`"),
 1223         -
                ConstraintViolation::MissingADouble => write!(f, "`a_double` was not provided but it is required when building `InnermostShape`"),
 1224         -
                ConstraintViolation::MissingATimestamp => write!(f, "`a_timestamp` was not provided but it is required when building `InnermostShape`"),
 1225         -
                ConstraintViolation::MissingADocument => write!(f, "`a_document` was not provided but it is required when building `InnermostShape`"),
 1226         -
                ConstraintViolation::MissingAStringList => write!(f, "`a_string_list` was not provided but it is required when building `InnermostShape`"),
 1227         -
                ConstraintViolation::MissingAStringMap => write!(f, "`a_string_map` was not provided but it is required when building `InnermostShape`"),
 1228         -
                ConstraintViolation::MissingAStringSet => write!(f, "`a_string_set` was not provided but it is required when building `InnermostShape`"),
 1229         -
                ConstraintViolation::MissingABlob => write!(f, "`a_blob` was not provided but it is required when building `InnermostShape`"),
 1230         -
                ConstraintViolation::MissingAUnion => write!(f, "`a_union` was not provided but it is required when building `InnermostShape`"),
 1231         -
            }
 1232         -
        }
 1233         -
    }
        1830  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAString => write!(f, "`a_string` was not provided but it is required when building `InnermostShape`"),
        1831  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingABoolean => write!(f, "`a_boolean` was not provided but it is required when building `InnermostShape`"),
        1832  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAByte => write!(f, "`a_byte` was not provided but it is required when building `InnermostShape`"),
        1833  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAShort => write!(f, "`a_short` was not provided but it is required when building `InnermostShape`"),
        1834  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAnInt => write!(f, "`an_int` was not provided but it is required when building `InnermostShape`"),
        1835  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingALong => write!(f, "`a_long` was not provided but it is required when building `InnermostShape`"),
        1836  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAFloat => write!(f, "`a_float` was not provided but it is required when building `InnermostShape`"),
        1837  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingADouble => write!(f, "`a_double` was not provided but it is required when building `InnermostShape`"),
        1838  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingATimestamp => write!(f, "`a_timestamp` was not provided but it is required when building `InnermostShape`"),
        1839  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingADocument => write!(f, "`a_document` was not provided but it is required when building `InnermostShape`"),
        1840  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAStringList => write!(f, "`a_string_list` was not provided but it is required when building `InnermostShape`"),
        1841  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAStringMap => write!(f, "`a_string_map` was not provided but it is required when building `InnermostShape`"),
        1842  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAStringSet => write!(f, "`a_string_set` was not provided but it is required when building `InnermostShape`"),
        1843  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingABlob => write!(f, "`a_blob` was not provided but it is required when building `InnermostShape`"),
        1844  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingAUnion => write!(f, "`a_union` was not provided but it is required when building `InnermostShape`"),
        1845  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        1846  +
            /* ServerBuilderConstraintViolations.kt:118 */
        1847  +
        }
        1848  +
        /* ServerBuilderConstraintViolations.kt:117 */
        1849  +
    }
        1850  +
    /* ServerBuilderConstraintViolations.kt:84 */
 1234   1851   
    impl ::std::error::Error for ConstraintViolation {}
        1852  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
 1235   1853   
    impl ::std::convert::TryFrom<Builder> for crate::model::InnermostShape {
 1236   1854   
        type Error = ConstraintViolation;
 1237   1855   
 1238   1856   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1239   1857   
            builder.build()
 1240   1858   
        }
 1241   1859   
    }
 1242         -
    /// A builder for [`InnermostShape`](crate::model::InnermostShape).
        1860  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`InnermostShape`](crate::model::InnermostShape).
        1861  +
    /* RustType.kt:516 */
 1243   1862   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1863  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1244   1864   
    pub struct Builder {
        1865  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1245   1866   
        pub(crate) a_string: ::std::option::Option<::std::string::String>,
        1867  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1246   1868   
        pub(crate) a_boolean: ::std::option::Option<bool>,
        1869  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1247   1870   
        pub(crate) a_byte: ::std::option::Option<i8>,
        1871  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1248   1872   
        pub(crate) a_short: ::std::option::Option<i16>,
        1873  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1249   1874   
        pub(crate) an_int: ::std::option::Option<i32>,
        1875  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1250   1876   
        pub(crate) a_long: ::std::option::Option<i64>,
        1877  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1251   1878   
        pub(crate) a_float: ::std::option::Option<f32>,
        1879  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1252   1880   
        pub(crate) a_double: ::std::option::Option<f64>,
        1881  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1253   1882   
        pub(crate) a_timestamp:
 1254   1883   
            ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
        1884  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1255   1885   
        pub(crate) a_document:
 1256   1886   
            ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
        1887  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1257   1888   
        pub(crate) a_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
        1889  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1258   1890   
        pub(crate) a_string_map: ::std::option::Option<
 1259   1891   
            ::std::collections::HashMap<
 1260   1892   
                ::std::string::String,
 1261   1893   
                ::aws_smithy_http_server_python::types::DateTime,
 1262   1894   
            >,
 1263   1895   
        >,
        1896  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1264   1897   
        pub(crate) a_string_set: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
        1898  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1265   1899   
        pub(crate) a_blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
        1900  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1266   1901   
        pub(crate) a_union: ::std::option::Option<crate::model::AUnion>,
        1902  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1267   1903   
    }
        1904  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1268   1905   
    impl Builder {
        1906  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1269   1907   
        #[allow(missing_docs)] // documentation missing in model
        1908  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1270   1909   
        pub fn a_string(mut self, input: ::std::string::String) -> Self {
 1271         -
            self.a_string = Some(input);
        1910  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1911  +
            self.a_string =
        1912  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        1913  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1914  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        1915  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1272   1916   
            self
        1917  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1273   1918   
        }
        1919  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1274   1920   
        #[allow(missing_docs)] // documentation missing in model
        1921  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1275   1922   
        pub fn a_boolean(mut self, input: bool) -> Self {
 1276         -
            self.a_boolean = Some(input);
        1923  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1924  +
            self.a_boolean =
        1925  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        1926  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1927  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        1928  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1277   1929   
            self
        1930  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1278   1931   
        }
        1932  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1279   1933   
        #[allow(missing_docs)] // documentation missing in model
        1934  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1280   1935   
        pub fn a_byte(mut self, input: i8) -> Self {
 1281         -
            self.a_byte = Some(input);
        1936  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1937  +
            self.a_byte =
        1938  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        1939  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1940  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        1941  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1282   1942   
            self
        1943  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1283   1944   
        }
        1945  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1284   1946   
        #[allow(missing_docs)] // documentation missing in model
        1947  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1285   1948   
        pub fn a_short(mut self, input: i16) -> Self {
 1286         -
            self.a_short = Some(input);
        1949  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1950  +
            self.a_short =
        1951  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        1952  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1953  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        1954  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1287   1955   
            self
        1956  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1288   1957   
        }
        1958  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1289   1959   
        #[allow(missing_docs)] // documentation missing in model
        1960  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1290   1961   
        pub fn an_int(mut self, input: i32) -> Self {
 1291         -
            self.an_int = Some(input);
        1962  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1963  +
            self.an_int =
        1964  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        1965  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1966  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        1967  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1292   1968   
            self
        1969  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1293   1970   
        }
        1971  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1294   1972   
        #[allow(missing_docs)] // documentation missing in model
        1973  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1295   1974   
        pub fn a_long(mut self, input: i64) -> Self {
 1296         -
            self.a_long = Some(input);
        1975  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1976  +
            self.a_long =
        1977  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        1978  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1979  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        1980  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1297   1981   
            self
        1982  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1298   1983   
        }
        1984  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1299   1985   
        #[allow(missing_docs)] // documentation missing in model
        1986  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1300   1987   
        pub fn a_float(mut self, input: f32) -> Self {
 1301         -
            self.a_float = Some(input);
        1988  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1989  +
            self.a_float =
        1990  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        1991  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1992  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        1993  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1302   1994   
            self
        1995  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1303   1996   
        }
        1997  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1304   1998   
        #[allow(missing_docs)] // documentation missing in model
        1999  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1305   2000   
        pub fn a_double(mut self, input: f64) -> Self {
 1306         -
            self.a_double = Some(input);
        2001  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2002  +
            self.a_double =
        2003  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        2004  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2005  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        2006  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1307   2007   
            self
        2008  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1308   2009   
        }
        2010  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1309   2011   
        #[allow(missing_docs)] // documentation missing in model
        2012  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1310   2013   
        pub fn a_timestamp(
 1311   2014   
            mut self,
 1312   2015   
            input: ::aws_smithy_http_server_python::types::DateTime,
 1313   2016   
        ) -> Self {
 1314         -
            self.a_timestamp = Some(input);
        2017  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2018  +
            self.a_timestamp =
        2019  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        2020  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2021  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        2022  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1315   2023   
            self
        2024  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1316   2025   
        }
        2026  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1317   2027   
        #[allow(missing_docs)] // documentation missing in model
        2028  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1318   2029   
        pub fn a_document(
 1319   2030   
            mut self,
 1320   2031   
            input: ::aws_smithy_http_server_python::types::DateTime,
 1321   2032   
        ) -> Self {
 1322         -
            self.a_document = Some(input);
        2033  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2034  +
            self.a_document =
        2035  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        2036  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2037  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        2038  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1323   2039   
            self
        2040  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1324   2041   
        }
        2042  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1325   2043   
        #[allow(missing_docs)] // documentation missing in model
        2044  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1326   2045   
        pub fn a_string_list(mut self, input: ::std::vec::Vec<::std::string::String>) -> Self {
 1327         -
            self.a_string_list = Some(input);
        2046  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2047  +
            self.a_string_list =
        2048  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        2049  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2050  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        2051  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1328   2052   
            self
        2053  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1329   2054   
        }
        2055  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1330   2056   
        #[allow(missing_docs)] // documentation missing in model
        2057  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1331   2058   
        pub fn a_string_map(
 1332   2059   
            mut self,
 1333   2060   
            input: ::std::collections::HashMap<
 1334   2061   
                ::std::string::String,
 1335   2062   
                ::aws_smithy_http_server_python::types::DateTime,
 1336   2063   
            >,
 1337   2064   
        ) -> Self {
 1338         -
            self.a_string_map = Some(input);
        2065  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2066  +
            self.a_string_map =
        2067  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        2068  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2069  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        2070  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1339   2071   
            self
        2072  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1340   2073   
        }
        2074  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1341   2075   
        #[allow(missing_docs)] // documentation missing in model
        2076  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1342   2077   
        pub fn a_string_set(mut self, input: ::std::vec::Vec<::std::string::String>) -> Self {
 1343         -
            self.a_string_set = Some(input);
        2078  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2079  +
            self.a_string_set =
        2080  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        2081  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2082  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        2083  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1344   2084   
            self
        2085  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1345   2086   
        }
        2087  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1346   2088   
        #[allow(missing_docs)] // documentation missing in model
        2089  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1347   2090   
        pub fn a_blob(mut self, input: ::aws_smithy_http_server_python::types::Blob) -> Self {
 1348         -
            self.a_blob = Some(input);
        2091  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2092  +
            self.a_blob =
        2093  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        2094  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2095  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        2096  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1349   2097   
            self
        2098  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1350   2099   
        }
        2100  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1351   2101   
        #[allow(missing_docs)] // documentation missing in model
        2102  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1352   2103   
        pub fn a_union(mut self, input: crate::model::AUnion) -> Self {
 1353         -
            self.a_union = Some(input);
        2104  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2105  +
            self.a_union =
        2106  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        2107  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2108  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        2109  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1354   2110   
            self
        2111  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1355   2112   
        }
 1356         -
        /// Consumes the builder and constructs a [`InnermostShape`](crate::model::InnermostShape).
 1357         -
        ///
        2113  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`InnermostShape`](crate::model::InnermostShape).
        2114  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
 1358   2115   
        /// The builder fails to construct a [`InnermostShape`](crate::model::InnermostShape) if you do not provide a value for all non-`Option`al members.
 1359   2116   
        ///
        2117  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
 1360   2118   
        pub fn build(self) -> Result<crate::model::InnermostShape, ConstraintViolation> {
 1361   2119   
            self.build_enforcing_required_and_enum_traits()
 1362   2120   
        }
        2121  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1363   2122   
        fn build_enforcing_required_and_enum_traits(
 1364   2123   
            self,
 1365   2124   
        ) -> Result<crate::model::InnermostShape, ConstraintViolation> {
 1366         -
            Ok(crate::model::InnermostShape {
 1367         -
                a_string: self.a_string.ok_or(ConstraintViolation::MissingAString)?,
 1368         -
                a_boolean: self.a_boolean.ok_or(ConstraintViolation::MissingABoolean)?,
 1369         -
                a_byte: self.a_byte.ok_or(ConstraintViolation::MissingAByte)?,
 1370         -
                a_short: self.a_short.ok_or(ConstraintViolation::MissingAShort)?,
 1371         -
                an_int: self.an_int.ok_or(ConstraintViolation::MissingAnInt)?,
 1372         -
                a_long: self.a_long.ok_or(ConstraintViolation::MissingALong)?,
 1373         -
                a_float: self.a_float.ok_or(ConstraintViolation::MissingAFloat)?,
 1374         -
                a_double: self.a_double.ok_or(ConstraintViolation::MissingADouble)?,
 1375         -
                a_timestamp: self
 1376         -
                    .a_timestamp
 1377         -
                    .ok_or(ConstraintViolation::MissingATimestamp)?,
 1378         -
                a_document: self
 1379         -
                    .a_document
 1380         -
                    .ok_or(ConstraintViolation::MissingADocument)?,
 1381         -
                a_string_list: self
 1382         -
                    .a_string_list
 1383         -
                    .ok_or(ConstraintViolation::MissingAStringList)?,
 1384         -
                a_string_map: self
 1385         -
                    .a_string_map
 1386         -
                    .ok_or(ConstraintViolation::MissingAStringMap)?,
 1387         -
                a_string_set: self
 1388         -
                    .a_string_set
 1389         -
                    .ok_or(ConstraintViolation::MissingAStringSet)?,
 1390         -
                a_blob: self.a_blob.ok_or(ConstraintViolation::MissingABlob)?,
 1391         -
                a_union: self.a_union.ok_or(ConstraintViolation::MissingAUnion)?,
 1392         -
            })
        2125  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        2126  +
            Ok(
        2127  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        2128  +
                crate::model::InnermostShape {
        2129  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        2130  +
                    a_string: self
        2131  +
                        .a_string
        2132  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        2133  +
                        .ok_or(ConstraintViolation::MissingAString)?,
        2134  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        2135  +
                    a_boolean: self
        2136  +
                        .a_boolean
        2137  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        2138  +
                        .ok_or(ConstraintViolation::MissingABoolean)?,
        2139  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        2140  +
                    a_byte: self
        2141  +
                        .a_byte
        2142  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        2143  +
                        .ok_or(ConstraintViolation::MissingAByte)?,
        2144  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        2145  +
                    a_short: self
        2146  +
                        .a_short
        2147  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        2148  +
                        .ok_or(ConstraintViolation::MissingAShort)?,
        2149  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        2150  +
                    an_int: self
        2151  +
                        .an_int
        2152  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        2153  +
                        .ok_or(ConstraintViolation::MissingAnInt)?,
        2154  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        2155  +
                    a_long: self
        2156  +
                        .a_long
        2157  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        2158  +
                        .ok_or(ConstraintViolation::MissingALong)?,
        2159  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        2160  +
                    a_float: self
        2161  +
                        .a_float
        2162  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        2163  +
                        .ok_or(ConstraintViolation::MissingAFloat)?,
        2164  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        2165  +
                    a_double: self
        2166  +
                        .a_double
        2167  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        2168  +
                        .ok_or(ConstraintViolation::MissingADouble)?,
        2169  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        2170  +
                    a_timestamp: self
        2171  +
                        .a_timestamp
        2172  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        2173  +
                        .ok_or(ConstraintViolation::MissingATimestamp)?,
        2174  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        2175  +
                    a_document: self
        2176  +
                        .a_document
        2177  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        2178  +
                        .ok_or(ConstraintViolation::MissingADocument)?,
        2179  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        2180  +
                    a_string_list: self
        2181  +
                        .a_string_list
        2182  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        2183  +
                        .ok_or(ConstraintViolation::MissingAStringList)?,
        2184  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        2185  +
                    a_string_map: self
        2186  +
                        .a_string_map
        2187  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        2188  +
                        .ok_or(ConstraintViolation::MissingAStringMap)?,
        2189  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        2190  +
                    a_string_set: self
        2191  +
                        .a_string_set
        2192  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        2193  +
                        .ok_or(ConstraintViolation::MissingAStringSet)?,
        2194  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        2195  +
                    a_blob: self
        2196  +
                        .a_blob
        2197  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        2198  +
                        .ok_or(ConstraintViolation::MissingABlob)?,
        2199  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        2200  +
                    a_union: self
        2201  +
                        .a_union
        2202  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        2203  +
                        .ok_or(ConstraintViolation::MissingAUnion)?,
        2204  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        2205  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        2206  +
            )
        2207  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1393   2208   
        }
        2209  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1394   2210   
    }
        2211  +
        2212  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1395   2213   
}
 1396         -
/// See [`EmptyStructure`](crate::model::EmptyStructure).
        2214  +
/// /* ServerBuilderGenerator.kt:171 */See [`EmptyStructure`](crate::model::EmptyStructure).
 1397   2215   
pub(crate) mod empty_structure_internal {
 1398   2216   
        2217  +
    /* ServerBuilderGenerator.kt:461 */
 1399   2218   
    impl ::std::convert::From<Builder> for crate::model::EmptyStructure {
 1400   2219   
        fn from(builder: Builder) -> Self {
 1401   2220   
            builder.build()
 1402   2221   
        }
 1403   2222   
    }
 1404         -
    /// A builder for [`EmptyStructure`](crate::model::EmptyStructure).
        2223  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`EmptyStructure`](crate::model::EmptyStructure).
        2224  +
    /* RustType.kt:516 */
 1405   2225   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1406         -
    pub(crate) struct Builder {}
        2226  +
    /* ServerBuilderGenerator.kt:211 */
        2227  +
    pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
        2228  +
    /* ServerBuilderGenerator.kt:215 */
 1407   2229   
    impl Builder {
 1408         -
        /// Consumes the builder and constructs a [`EmptyStructure`](crate::model::EmptyStructure).
        2230  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EmptyStructure`](crate::model::EmptyStructure).
        2231  +
        /* ServerBuilderGenerator.kt:271 */
 1409   2232   
        pub fn build(self) -> crate::model::EmptyStructure {
 1410   2233   
            self.build_enforcing_all_constraints()
 1411   2234   
        }
        2235  +
        /* ServerBuilderGenerator.kt:283 */
 1412   2236   
        fn build_enforcing_all_constraints(self) -> crate::model::EmptyStructure {
 1413         -
            crate::model::EmptyStructure {}
        2237  +
            /* ServerBuilderGenerator.kt:542 */
        2238  +
            crate::model::EmptyStructure {
        2239  +
            /* ServerBuilderGenerator.kt:542 */}
        2240  +
            /* ServerBuilderGenerator.kt:283 */
 1414   2241   
        }
        2242  +
        /* ServerBuilderGenerator.kt:215 */
 1415   2243   
    }
        2244  +
        2245  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1416   2246   
}
 1417         -
/// See [`EmptyStructure`](crate::model::EmptyStructure).
        2247  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`EmptyStructure`](crate::model::EmptyStructure).
 1418   2248   
pub mod empty_structure {
 1419   2249   
        2250  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
 1420   2251   
    impl ::std::convert::From<Builder> for crate::model::EmptyStructure {
 1421   2252   
        fn from(builder: Builder) -> Self {
 1422   2253   
            builder.build()
 1423   2254   
        }
 1424   2255   
    }
 1425         -
    /// A builder for [`EmptyStructure`](crate::model::EmptyStructure).
        2256  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`EmptyStructure`](crate::model::EmptyStructure).
        2257  +
    /* RustType.kt:516 */
 1426   2258   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1427         -
    pub struct Builder {}
        2259  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
        2260  +
    pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
        2261  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1428   2262   
    impl Builder {
 1429         -
        /// Consumes the builder and constructs a [`EmptyStructure`](crate::model::EmptyStructure).
        2263  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`EmptyStructure`](crate::model::EmptyStructure).
        2264  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
 1430   2265   
        pub fn build(self) -> crate::model::EmptyStructure {
 1431   2266   
            self.build_enforcing_required_and_enum_traits()
 1432   2267   
        }
        2268  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1433   2269   
        fn build_enforcing_required_and_enum_traits(self) -> crate::model::EmptyStructure {
 1434         -
            crate::model::EmptyStructure {}
        2270  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        2271  +
            crate::model::EmptyStructure {
        2272  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
        2273  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1435   2274   
        }
        2275  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1436   2276   
    }
        2277  +
        2278  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1437   2279   
}