Server Test Python

Server Test Python

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-server-test-python/pokemon-service-server-sdk/rust-server-codegen-python/src/lib.rs

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

tmp-codegen-diff/codegen-server-test-python/pokemon-service-server-sdk/rust-server-codegen-python/src/model.rs

@@ -1,1 +923,1438 @@
    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  +
/* RustType.kt:516 */
   65     92   
#[::pyo3::pyclass]
          93  +
/* PythonServerStructureGenerator.kt:63 */
   66     94   
/// :param flavor_text str:
   67     95   
/// :param language pokemon_service_server_sdk.model.Language:
   68     96   
/// :rtype None:
          97  +
/* StructureGenerator.kt:197 */
   69     98   
#[allow(missing_docs)] // documentation missing in model
          99  +
/* RustType.kt:516 */
   70    100   
#[derive(
   71    101   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   72    102   
)]
   73         -
pub struct FlavorText {
         103  +
pub /* StructureGenerator.kt:201 */ struct FlavorText {
         104  +
    /* RustType.kt:516 */
   74    105   
    #[pyo3(get, set)]
         106  +
    /* PythonServerStructureGenerator.kt:80 */
   75    107   
    /// :type str:
   76         -
    /// The localized flavor text for an API resource in a specific language.
         108  +
    /// /* StructureGenerator.kt:231 */The localized flavor text for an API resource in a specific language.
   77    109   
    pub flavor_text: ::std::string::String,
         110  +
    /* RustType.kt:516 */
   78    111   
    #[pyo3(get, set)]
         112  +
    /* PythonServerStructureGenerator.kt:80 */
   79    113   
    /// :type pokemon_service_server_sdk.model.Language:
   80         -
    /// The language this name is in.
         114  +
    /// /* StructureGenerator.kt:231 */The language this name is in.
   81    115   
    pub language: crate::model::Language,
         116  +
    /* StructureGenerator.kt:201 */
   82    117   
}
         118  +
/* StructureGenerator.kt:135 */
   83    119   
impl FlavorText {
   84         -
    /// The localized flavor text for an API resource in a specific language.
         120  +
    /// /* StructureGenerator.kt:231 */The localized flavor text for an API resource in a specific language.
         121  +
    /* StructureGenerator.kt:166 */
   85    122   
    pub fn flavor_text(&self) -> &str {
         123  +
        /* StructureGenerator.kt:171 */
   86    124   
        use std::ops::Deref;
   87    125   
        self.flavor_text.deref()
         126  +
        /* StructureGenerator.kt:166 */
   88    127   
    }
   89         -
    /// The language this name is in.
         128  +
    /// /* StructureGenerator.kt:231 */The language this name is in.
         129  +
    /* StructureGenerator.kt:166 */
   90    130   
    pub fn language(&self) -> &crate::model::Language {
         131  +
        /* StructureGenerator.kt:172 */
   91    132   
        &self.language
         133  +
        /* StructureGenerator.kt:166 */
   92    134   
    }
         135  +
    /* StructureGenerator.kt:135 */
   93    136   
}
         137  +
/* RustType.kt:516 */
   94    138   
#[allow(clippy::new_without_default)]
         139  +
/* RustType.kt:516 */
   95    140   
#[allow(clippy::too_many_arguments)]
         141  +
/* RustType.kt:516 */
   96    142   
#[::pyo3::pymethods]
         143  +
/* PythonServerStructureGenerator.kt:88 */
   97    144   
impl FlavorText {
   98    145   
    #[new]
   99    146   
    pub fn new(flavor_text: ::std::string::String, language: crate::model::Language) -> Self {
  100    147   
        Self {
  101    148   
            flavor_text,
  102    149   
            language,
  103    150   
        }
  104    151   
    }
  105    152   
    fn __repr__(&self) -> String {
  106    153   
        format!("{self:?}")
  107    154   
    }
  108    155   
    fn __str__(&self) -> String {
  109    156   
        format!("{self:?}")
  110    157   
    }
  111    158   
}
         159  +
/* PythonServerStructureGenerator.kt:111 */
  112    160   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<FlavorText> {
  113    161   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  114    162   
        ob.extract::<FlavorText>().map(Box::new)
  115    163   
    }
  116    164   
}
  117    165   
  118    166   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<FlavorText> {
  119    167   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  120    168   
        (*self).into_py(py)
  121    169   
    }
  122    170   
}
         171  +
/* ServerCodegenVisitor.kt:370 */
  123    172   
impl FlavorText {
  124         -
    /// Creates a new builder-style object to manufacture [`FlavorText`](crate::model::FlavorText).
         173  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`FlavorText`](crate::model::FlavorText).
         174  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  125    175   
    pub fn builder() -> crate::model::flavor_text::Builder {
         176  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  126    177   
        crate::model::flavor_text::Builder::default()
         178  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  127    179   
    }
         180  +
    /* ServerCodegenVisitor.kt:370 */
  128    181   
}
  129    182   
         183  +
/* RustType.kt:516 */
  130    184   
#[::pyo3::pyclass]
  131         -
/// Supported languages for FlavorText entries.
         185  +
/// /* EnumGenerator.kt:156 */Supported languages for FlavorText entries.
         186  +
/* RustType.kt:516 */
  132    187   
#[derive(
  133    188   
    ::std::clone::Clone,
  134    189   
    ::std::cmp::Eq,
  135    190   
    ::std::cmp::Ord,
  136    191   
    ::std::cmp::PartialEq,
  137    192   
    ::std::cmp::PartialOrd,
  138    193   
    ::std::fmt::Debug,
  139    194   
    ::std::hash::Hash,
  140    195   
)]
  141         -
pub enum Language {
  142         -
    /// American English.
         196  +
pub /* EnumGenerator.kt:267 */ enum Language {
         197  +
    /// /* EnumGenerator.kt:156 */American English.
         198  +
    /* EnumGenerator.kt:143 */
  143    199   
    English,
  144         -
    /// Español.
         200  +
    /// /* EnumGenerator.kt:156 */Español.
         201  +
    /* EnumGenerator.kt:143 */
  145    202   
    Spanish,
  146         -
    /// Italiano.
         203  +
    /// /* EnumGenerator.kt:156 */Italiano.
         204  +
    /* EnumGenerator.kt:143 */
  147    205   
    Italian,
  148         -
    /// 日本語。
         206  +
    /// /* EnumGenerator.kt:156 */日本語。
         207  +
    /* EnumGenerator.kt:143 */
  149    208   
    Japanese,
         209  +
    /* EnumGenerator.kt:267 */
  150    210   
}
  151    211   
pub(crate) mod language_internal {
  152    212   
    #[derive(Debug, PartialEq)]
  153    213   
    pub struct ConstraintViolation(pub(crate) ::std::string::String);
  154    214   
  155    215   
    impl ::std::fmt::Display for ConstraintViolation {
  156    216   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  157    217   
            write!(
  158    218   
                f,
  159    219   
                r#"Value provided for 'com.aws.example#Language' failed to satisfy constraint: Member must satisfy enum value set: [en, es, it, jp]"#
  160    220   
            )
  161    221   
        }
  162    222   
    }
  163    223   
  164    224   
    impl ::std::error::Error for ConstraintViolation {}
         225  +
         226  +
    /* ServerEnumGenerator.kt:46 */
  165    227   
}
         228  +
/* ServerEnumGenerator.kt:85 */
  166    229   
impl ::std::convert::TryFrom<&str> for Language {
  167    230   
    type Error = crate::model::language_internal::ConstraintViolation;
  168    231   
    fn try_from(
  169    232   
        s: &str,
  170    233   
    ) -> ::std::result::Result<Self, <Self as ::std::convert::TryFrom<&str>>::Error> {
  171    234   
        match s {
  172    235   
            "en" => Ok(Language::English),
  173    236   
            "es" => Ok(Language::Spanish),
  174    237   
            "it" => Ok(Language::Italian),
  175    238   
            "jp" => Ok(Language::Japanese),
  176    239   
            _ => Err(crate::model::language_internal::ConstraintViolation(
  177    240   
                s.to_owned(),
  178    241   
            )),
  179    242   
        }
  180    243   
    }
  181    244   
}
  182    245   
impl ::std::convert::TryFrom<::std::string::String> for Language {
  183    246   
    type Error = crate::model::language_internal::ConstraintViolation;
  184    247   
    fn try_from(
  185    248   
        s: ::std::string::String,
  186    249   
    ) -> ::std::result::Result<Self, <Self as ::std::convert::TryFrom<::std::string::String>>::Error>
  187    250   
    {
  188    251   
        s.as_str().try_into()
  189    252   
    }
  190    253   
}
         254  +
/* ServerEnumGenerator.kt:145 */
  191    255   
impl std::str::FromStr for Language {
  192    256   
    type Err = crate::model::language_internal::ConstraintViolation;
  193    257   
    fn from_str(s: &str) -> std::result::Result<Self, <Self as std::str::FromStr>::Err> {
  194    258   
        Self::try_from(s)
  195    259   
    }
  196    260   
}
         261  +
/* EnumGenerator.kt:274 */
  197    262   
impl Language {
  198    263   
    /// Returns the `&str` value of the enum member.
  199    264   
    pub fn as_str(&self) -> &str {
  200    265   
        match self {
  201    266   
            Language::English => "en",
  202    267   
            Language::Spanish => "es",
  203    268   
            Language::Italian => "it",
  204    269   
            Language::Japanese => "jp",
  205    270   
        }
  206    271   
    }
  207    272   
    /// Returns all the `&str` representations of the enum members.
  208    273   
    pub const fn values() -> &'static [&'static str] {
  209    274   
        &["en", "es", "it", "jp"]
  210    275   
    }
  211    276   
}
         277  +
/* EnumGenerator.kt:223 */
  212    278   
impl ::std::convert::AsRef<str> for Language {
  213    279   
    fn as_ref(&self) -> &str {
  214    280   
        self.as_str()
  215    281   
    }
  216    282   
}
         283  +
/* RustType.kt:516 */
  217    284   
#[::pyo3::pymethods]
         285  +
/* PythonServerEnumGenerator.kt:41 */
  218    286   
impl Language {
  219    287   
    #[getter]
  220    288   
    pub fn name(&self) -> &str {
  221    289   
        match self {
  222    290   
            Language::English => "English",
  223    291   
            Language::Spanish => "Spanish",
  224    292   
            Language::Italian => "Italian",
  225    293   
            Language::Japanese => "Japanese",
  226    294   
        }
  227    295   
    }
  228    296   
    #[getter]
  229    297   
    pub fn value(&self) -> &str {
  230    298   
        self.as_str()
  231    299   
    }
  232    300   
    fn __repr__(&self) -> String {
  233    301   
        self.as_str().to_owned()
  234    302   
    }
  235    303   
    fn __str__(&self) -> String {
  236    304   
        self.as_str().to_owned()
  237    305   
    }
  238    306   
}
         307  +
/* ConstrainedTraitForEnumGenerator.kt:36 */
  239    308   
impl crate::constrained::Constrained for Language {
  240    309   
    type Unconstrained = ::std::string::String;
  241    310   
}
  242    311   
  243    312   
impl ::std::convert::From<::std::string::String>
  244    313   
    for crate::constrained::MaybeConstrained<crate::model::Language>
  245    314   
{
  246    315   
    fn from(value: ::std::string::String) -> Self {
  247    316   
        Self::Unconstrained(value)
  248    317   
    }
  249    318   
}
  250    319   
         320  +
/* UnionGenerator.kt:67 */
  251    321   
#[allow(missing_docs)] // documentation missing in model
         322  +
/* RustType.kt:516 */
  252    323   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
  253         -
pub enum CapturePokemonEvents {
         324  +
pub /* UnionGenerator.kt:85 */ enum CapturePokemonEvents {
         325  +
    /* UnionGenerator.kt:90 */
  254    326   
    #[allow(missing_docs)] // documentation missing in model
         327  +
    /* UnionGenerator.kt:190 */
  255    328   
    Event(crate::model::CaptureEvent),
         329  +
    /* UnionGenerator.kt:85 */
  256    330   
}
         331  +
/* UnionGenerator.kt:111 */
  257    332   
impl CapturePokemonEvents {
         333  +
    /* RustType.kt:516 */
  258    334   
    #[allow(irrefutable_let_patterns)]
         335  +
    /* UnionGenerator.kt:217 */
  259    336   
    /// Tries to convert the enum instance into [`Event`](crate::model::CapturePokemonEvents::Event), extracting the inner [`CaptureEvent`](crate::model::CaptureEvent).
         337  +
    /* UnionGenerator.kt:222 */
  260    338   
    /// Returns `Err(&Self)` if it can't be converted.
         339  +
    /* UnionGenerator.kt:223 */
  261    340   
    pub fn as_event(&self) -> ::std::result::Result<&crate::model::CaptureEvent, &Self> {
         341  +
        /* UnionGenerator.kt:227 */
  262    342   
        if let CapturePokemonEvents::Event(val) = &self {
  263    343   
            ::std::result::Result::Ok(val)
  264    344   
        } else {
  265    345   
            ::std::result::Result::Err(self)
  266    346   
        }
         347  +
        /* UnionGenerator.kt:223 */
  267    348   
    }
         349  +
    /* UnionGenerator.kt:121 */
  268    350   
    /// Returns true if this is a [`Event`](crate::model::CapturePokemonEvents::Event).
         351  +
    /* UnionGenerator.kt:122 */
  269    352   
    pub fn is_event(&self) -> bool {
         353  +
        /* UnionGenerator.kt:123 */
  270    354   
        self.as_event().is_ok()
         355  +
        /* UnionGenerator.kt:122 */
  271    356   
    }
         357  +
    /* UnionGenerator.kt:111 */
  272    358   
}
         359  +
/* PythonServerUnionGenerator.kt:58 */
  273    360   
#[pyo3::pyclass(name = "CapturePokemonEvents")]
         361  +
/* RustType.kt:516 */
  274    362   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
  275         -
pub struct PyUnionMarkerCapturePokemonEvents(pub CapturePokemonEvents);
         363  +
pub /* PythonServerUnionGenerator.kt:61 */ struct PyUnionMarkerCapturePokemonEvents(
         364  +
    pub CapturePokemonEvents,
         365  +
);
         366  +
/* RustType.kt:516 */
  276    367   
#[::pyo3::pymethods]
         368  +
/* PythonServerUnionGenerator.kt:66 */
  277    369   
impl PyUnionMarkerCapturePokemonEvents {
         370  +
    /* RustType.kt:516 */
  278    371   
    #[allow(irrefutable_let_patterns)]
         372  +
    /* RustType.kt:516 */
  279    373   
    #[staticmethod]
         374  +
    /* PythonServerUnionGenerator.kt:134 */
  280    375   
    /// Creates a new union instance of [`Event`](crate::model::CapturePokemonEvents::Event)
         376  +
    /* PythonServerUnionGenerator.kt:138 */
  281    377   
    /// :param data pokemon_service_server_sdk.model.CaptureEvent:
         378  +
    /* PythonServerUnionGenerator.kt:139 */
  282    379   
    /// :rtype CapturePokemonEvents:
         380  +
    /* PythonServerUnionGenerator.kt:140 */
  283    381   
    pub fn event(data: crate::model::CaptureEvent) -> Self {
         382  +
        /* PythonServerUnionGenerator.kt:141 */
  284    383   
        Self(CapturePokemonEvents::Event(data))
         384  +
        /* PythonServerUnionGenerator.kt:140 */
  285    385   
    }
         386  +
    /* PythonServerUnionGenerator.kt:176 */
  286    387   
    /// Tries to convert the enum instance into [`Event`](crate::model::CapturePokemonEvents::Event), extracting the inner [`CaptureEvent`](crate::model::CaptureEvent).
         388  +
    /* PythonServerUnionGenerator.kt:181 */
  287    389   
    /// :rtype pokemon_service_server_sdk.model.CaptureEvent:
         390  +
    /* PythonServerUnionGenerator.kt:182 */
  288    391   
    pub fn as_event(&self) -> ::pyo3::PyResult<crate::model::CaptureEvent> {
         392  +
        /* PythonServerUnionGenerator.kt:190 */
  289    393   
        match self.0.as_event() {
  290    394   
            Ok(variant) => Ok(variant.clone()),
  291    395   
            Err(_) => Err(::pyo3::exceptions::PyValueError::new_err(
  292    396   
                r"CapturePokemonEvents variant is not of type pokemon_service_server_sdk.model.CaptureEvent",
  293    397   
            )),
  294    398   
        }
         399  +
        /* PythonServerUnionGenerator.kt:182 */
  295    400   
    }
         401  +
    /* PythonServerUnionGenerator.kt:76 */
  296    402   
    /// Returns true if this is a [`Event`](crate::model::CapturePokemonEvents::Event).
         403  +
    /* PythonServerUnionGenerator.kt:77 */
  297    404   
    /// :rtype bool:
         405  +
    /* PythonServerUnionGenerator.kt:78 */
  298    406   
    pub fn is_event(&self) -> bool {
         407  +
        /* PythonServerUnionGenerator.kt:79 */
  299    408   
        self.0.is_event()
         409  +
        /* PythonServerUnionGenerator.kt:78 */
  300    410   
    }
         411  +
    /* PythonServerUnionGenerator.kt:66 */
  301    412   
}
         413  +
/* PythonServerUnionGenerator.kt:93 */
  302    414   
impl ::pyo3::IntoPy<::pyo3::PyObject> for CapturePokemonEvents {
         415  +
    /* PythonServerUnionGenerator.kt:94 */
  303    416   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
         417  +
        /* PythonServerUnionGenerator.kt:95 */
  304    418   
        PyUnionMarkerCapturePokemonEvents(self).into_py(py)
         419  +
        /* PythonServerUnionGenerator.kt:94 */
  305    420   
    }
         421  +
    /* PythonServerUnionGenerator.kt:93 */
  306    422   
}
         423  +
/* PythonServerUnionGenerator.kt:98 */
  307    424   
impl<'source> ::pyo3::FromPyObject<'source> for CapturePokemonEvents {
         425  +
    /* PythonServerUnionGenerator.kt:99 */
  308    426   
    fn extract(obj: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
         427  +
        /* PythonServerUnionGenerator.kt:100 */
  309    428   
        let data: PyUnionMarkerCapturePokemonEvents = obj.extract()?;
  310    429   
        Ok(data.0)
         430  +
        /* PythonServerUnionGenerator.kt:99 */
  311    431   
    }
         432  +
    /* PythonServerUnionGenerator.kt:98 */
  312    433   
}
  313    434   
         435  +
/* RustType.kt:516 */
  314    436   
#[::pyo3::pyclass]
         437  +
/* PythonServerStructureGenerator.kt:63 */
  315    438   
/// :param name typing.Optional\[str\]:
  316    439   
/// :param captured typing.Optional\[bool\]:
  317    440   
/// :param shiny typing.Optional\[bool\]:
  318    441   
/// :param pokedex_update typing.Optional\[pokemon_service_server_sdk.types.Blob\]:
  319    442   
/// :rtype None:
         443  +
/* StructureGenerator.kt:197 */
  320    444   
#[allow(missing_docs)] // documentation missing in model
         445  +
/* RustType.kt:516 */
  321    446   
#[derive(
  322    447   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  323    448   
)]
  324         -
pub struct CaptureEvent {
         449  +
pub /* StructureGenerator.kt:201 */ struct CaptureEvent {
         450  +
    /* RustType.kt:516 */
  325    451   
    #[pyo3(get, set)]
         452  +
    /* PythonServerStructureGenerator.kt:80 */
  326    453   
    /// :type typing.Optional\[str\]:
         454  +
    /* StructureGenerator.kt:231 */
  327    455   
    #[allow(missing_docs)] // documentation missing in model
  328    456   
    pub name: ::std::option::Option<::std::string::String>,
         457  +
    /* RustType.kt:516 */
  329    458   
    #[pyo3(get, set)]
         459  +
    /* PythonServerStructureGenerator.kt:80 */
  330    460   
    /// :type typing.Optional\[bool\]:
         461  +
    /* StructureGenerator.kt:231 */
  331    462   
    #[allow(missing_docs)] // documentation missing in model
  332    463   
    pub captured: ::std::option::Option<bool>,
         464  +
    /* RustType.kt:516 */
  333    465   
    #[pyo3(get, set)]
         466  +
    /* PythonServerStructureGenerator.kt:80 */
  334    467   
    /// :type typing.Optional\[bool\]:
         468  +
    /* StructureGenerator.kt:231 */
  335    469   
    #[allow(missing_docs)] // documentation missing in model
  336    470   
    pub shiny: ::std::option::Option<bool>,
         471  +
    /* RustType.kt:516 */
  337    472   
    #[pyo3(get, set)]
         473  +
    /* PythonServerStructureGenerator.kt:80 */
  338    474   
    /// :type typing.Optional\[pokemon_service_server_sdk.types.Blob\]:
         475  +
    /* StructureGenerator.kt:231 */
  339    476   
    #[allow(missing_docs)] // documentation missing in model
  340    477   
    pub pokedex_update: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
         478  +
    /* StructureGenerator.kt:201 */
  341    479   
}
         480  +
/* StructureGenerator.kt:135 */
  342    481   
impl CaptureEvent {
         482  +
    /* StructureGenerator.kt:231 */
  343    483   
    #[allow(missing_docs)] // documentation missing in model
         484  +
                           /* StructureGenerator.kt:166 */
  344    485   
    pub fn name(&self) -> ::std::option::Option<&str> {
         486  +
        /* StructureGenerator.kt:169 */
  345    487   
        self.name.as_deref()
         488  +
        /* StructureGenerator.kt:166 */
  346    489   
    }
         490  +
    /* StructureGenerator.kt:231 */
  347    491   
    #[allow(missing_docs)] // documentation missing in model
         492  +
                           /* StructureGenerator.kt:166 */
  348    493   
    pub fn captured(&self) -> ::std::option::Option<bool> {
         494  +
        /* StructureGenerator.kt:168 */
  349    495   
        self.captured
         496  +
        /* StructureGenerator.kt:166 */
  350    497   
    }
         498  +
    /* StructureGenerator.kt:231 */
  351    499   
    #[allow(missing_docs)] // documentation missing in model
         500  +
                           /* StructureGenerator.kt:166 */
  352    501   
    pub fn shiny(&self) -> ::std::option::Option<bool> {
         502  +
        /* StructureGenerator.kt:168 */
  353    503   
        self.shiny
         504  +
        /* StructureGenerator.kt:166 */
  354    505   
    }
         506  +
    /* StructureGenerator.kt:231 */
  355    507   
    #[allow(missing_docs)] // documentation missing in model
         508  +
                           /* StructureGenerator.kt:166 */
  356    509   
    pub fn pokedex_update(
  357    510   
        &self,
  358    511   
    ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::Blob> {
         512  +
        /* StructureGenerator.kt:170 */
  359    513   
        self.pokedex_update.as_ref()
         514  +
        /* StructureGenerator.kt:166 */
  360    515   
    }
         516  +
    /* StructureGenerator.kt:135 */
  361    517   
}
         518  +
/* RustType.kt:516 */
  362    519   
#[allow(clippy::new_without_default)]
         520  +
/* RustType.kt:516 */
  363    521   
#[allow(clippy::too_many_arguments)]
         522  +
/* RustType.kt:516 */
  364    523   
#[::pyo3::pymethods]
         524  +
/* PythonServerStructureGenerator.kt:88 */
  365    525   
impl CaptureEvent {
  366    526   
    #[new]
  367    527   
    pub fn new(
  368    528   
        name: ::std::option::Option<::std::string::String>,
  369    529   
        captured: ::std::option::Option<bool>,
  370    530   
        shiny: ::std::option::Option<bool>,
  371    531   
        pokedex_update: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
  372    532   
    ) -> Self {
  373    533   
        Self {
  374    534   
            name,
  375    535   
            captured,
  376    536   
            shiny,
  377    537   
            pokedex_update,
  378    538   
        }
  379    539   
    }
  380    540   
    fn __repr__(&self) -> String {
  381    541   
        format!("{self:?}")
  382    542   
    }
  383    543   
    fn __str__(&self) -> String {
  384    544   
        format!("{self:?}")
  385    545   
    }
  386    546   
}
         547  +
/* PythonServerStructureGenerator.kt:111 */
  387    548   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<CaptureEvent> {
  388    549   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  389    550   
        ob.extract::<CaptureEvent>().map(Box::new)
  390    551   
    }
  391    552   
}
  392    553   
  393    554   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<CaptureEvent> {
  394    555   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  395    556   
        (*self).into_py(py)
  396    557   
    }
  397    558   
}
         559  +
/* ServerCodegenVisitor.kt:370 */
  398    560   
impl CaptureEvent {
  399         -
    /// Creates a new builder-style object to manufacture [`CaptureEvent`](crate::model::CaptureEvent).
         561  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`CaptureEvent`](crate::model::CaptureEvent).
         562  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  400    563   
    pub fn builder() -> crate::model::capture_event::Builder {
         564  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  401    565   
        crate::model::capture_event::Builder::default()
         566  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  402    567   
    }
         568  +
    /* ServerCodegenVisitor.kt:370 */
  403    569   
}
  404    570   
         571  +
/* UnionGenerator.kt:67 */
  405    572   
#[allow(missing_docs)] // documentation missing in model
         573  +
/* RustType.kt:516 */
  406    574   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
  407         -
pub enum AttemptCapturingPokemonEvent {
         575  +
pub /* UnionGenerator.kt:85 */ enum AttemptCapturingPokemonEvent {
         576  +
    /* UnionGenerator.kt:90 */
  408    577   
    #[allow(missing_docs)] // documentation missing in model
         578  +
    /* UnionGenerator.kt:190 */
  409    579   
    Event(crate::model::CapturingEvent),
         580  +
    /* UnionGenerator.kt:85 */
  410    581   
}
         582  +
/* UnionGenerator.kt:111 */
  411    583   
impl AttemptCapturingPokemonEvent {
         584  +
    /* RustType.kt:516 */
  412    585   
    #[allow(irrefutable_let_patterns)]
         586  +
    /* UnionGenerator.kt:217 */
  413    587   
    /// Tries to convert the enum instance into [`Event`](crate::model::AttemptCapturingPokemonEvent::Event), extracting the inner [`CapturingEvent`](crate::model::CapturingEvent).
         588  +
    /* UnionGenerator.kt:222 */
  414    589   
    /// Returns `Err(&Self)` if it can't be converted.
         590  +
    /* UnionGenerator.kt:223 */
  415    591   
    pub fn as_event(&self) -> ::std::result::Result<&crate::model::CapturingEvent, &Self> {
         592  +
        /* UnionGenerator.kt:227 */
  416    593   
        if let AttemptCapturingPokemonEvent::Event(val) = &self {
  417    594   
            ::std::result::Result::Ok(val)
  418    595   
        } else {
  419    596   
            ::std::result::Result::Err(self)
  420    597   
        }
         598  +
        /* UnionGenerator.kt:223 */
  421    599   
    }
         600  +
    /* UnionGenerator.kt:121 */
  422    601   
    /// Returns true if this is a [`Event`](crate::model::AttemptCapturingPokemonEvent::Event).
         602  +
    /* UnionGenerator.kt:122 */
  423    603   
    pub fn is_event(&self) -> bool {
         604  +
        /* UnionGenerator.kt:123 */
  424    605   
        self.as_event().is_ok()
         606  +
        /* UnionGenerator.kt:122 */
  425    607   
    }
         608  +
    /* UnionGenerator.kt:111 */
  426    609   
}
         610  +
/* PythonServerUnionGenerator.kt:58 */
  427    611   
#[pyo3::pyclass(name = "AttemptCapturingPokemonEvent")]
         612  +
/* RustType.kt:516 */
  428    613   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
  429         -
pub struct PyUnionMarkerAttemptCapturingPokemonEvent(pub AttemptCapturingPokemonEvent);
         614  +
pub /* PythonServerUnionGenerator.kt:61 */ struct PyUnionMarkerAttemptCapturingPokemonEvent(
         615  +
    pub AttemptCapturingPokemonEvent,
         616  +
);
         617  +
/* RustType.kt:516 */
  430    618   
#[::pyo3::pymethods]
         619  +
/* PythonServerUnionGenerator.kt:66 */
  431    620   
impl PyUnionMarkerAttemptCapturingPokemonEvent {
         621  +
    /* RustType.kt:516 */
  432    622   
    #[allow(irrefutable_let_patterns)]
         623  +
    /* RustType.kt:516 */
  433    624   
    #[staticmethod]
         625  +
    /* PythonServerUnionGenerator.kt:134 */
  434    626   
    /// Creates a new union instance of [`Event`](crate::model::AttemptCapturingPokemonEvent::Event)
         627  +
    /* PythonServerUnionGenerator.kt:138 */
  435    628   
    /// :param data pokemon_service_server_sdk.model.CapturingEvent:
         629  +
    /* PythonServerUnionGenerator.kt:139 */
  436    630   
    /// :rtype AttemptCapturingPokemonEvent:
         631  +
    /* PythonServerUnionGenerator.kt:140 */
  437    632   
    pub fn event(data: crate::model::CapturingEvent) -> Self {
         633  +
        /* PythonServerUnionGenerator.kt:141 */
  438    634   
        Self(AttemptCapturingPokemonEvent::Event(data))
         635  +
        /* PythonServerUnionGenerator.kt:140 */
  439    636   
    }
         637  +
    /* PythonServerUnionGenerator.kt:176 */
  440    638   
    /// Tries to convert the enum instance into [`Event`](crate::model::AttemptCapturingPokemonEvent::Event), extracting the inner [`CapturingEvent`](crate::model::CapturingEvent).
         639  +
    /* PythonServerUnionGenerator.kt:181 */
  441    640   
    /// :rtype pokemon_service_server_sdk.model.CapturingEvent:
         641  +
    /* PythonServerUnionGenerator.kt:182 */
  442    642   
    pub fn as_event(&self) -> ::pyo3::PyResult<crate::model::CapturingEvent> {
         643  +
        /* PythonServerUnionGenerator.kt:190 */
  443    644   
        match self.0.as_event() {
  444    645   
            Ok(variant) => Ok(variant.clone()),
  445    646   
            Err(_) => Err(::pyo3::exceptions::PyValueError::new_err(
  446    647   
                r"AttemptCapturingPokemonEvent variant is not of type pokemon_service_server_sdk.model.CapturingEvent",
  447    648   
            )),
  448    649   
        }
         650  +
        /* PythonServerUnionGenerator.kt:182 */
  449    651   
    }
         652  +
    /* PythonServerUnionGenerator.kt:76 */
  450    653   
    /// Returns true if this is a [`Event`](crate::model::AttemptCapturingPokemonEvent::Event).
         654  +
    /* PythonServerUnionGenerator.kt:77 */
  451    655   
    /// :rtype bool:
         656  +
    /* PythonServerUnionGenerator.kt:78 */
  452    657   
    pub fn is_event(&self) -> bool {
         658  +
        /* PythonServerUnionGenerator.kt:79 */
  453    659   
        self.0.is_event()
         660  +
        /* PythonServerUnionGenerator.kt:78 */
  454    661   
    }
         662  +
    /* PythonServerUnionGenerator.kt:66 */
  455    663   
}
         664  +
/* PythonServerUnionGenerator.kt:93 */
  456    665   
impl ::pyo3::IntoPy<::pyo3::PyObject> for AttemptCapturingPokemonEvent {
         666  +
    /* PythonServerUnionGenerator.kt:94 */
  457    667   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
         668  +
        /* PythonServerUnionGenerator.kt:95 */
  458    669   
        PyUnionMarkerAttemptCapturingPokemonEvent(self).into_py(py)
         670  +
        /* PythonServerUnionGenerator.kt:94 */
  459    671   
    }
         672  +
    /* PythonServerUnionGenerator.kt:93 */
  460    673   
}
         674  +
/* PythonServerUnionGenerator.kt:98 */
  461    675   
impl<'source> ::pyo3::FromPyObject<'source> for AttemptCapturingPokemonEvent {
         676  +
    /* PythonServerUnionGenerator.kt:99 */
  462    677   
    fn extract(obj: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
         678  +
        /* PythonServerUnionGenerator.kt:100 */
  463    679   
        let data: PyUnionMarkerAttemptCapturingPokemonEvent = obj.extract()?;
  464    680   
        Ok(data.0)
         681  +
        /* PythonServerUnionGenerator.kt:99 */
  465    682   
    }
         683  +
    /* PythonServerUnionGenerator.kt:98 */
  466    684   
}
  467    685   
         686  +
/* RustType.kt:516 */
  468    687   
#[::pyo3::pyclass]
         688  +
/* PythonServerStructureGenerator.kt:63 */
  469    689   
/// :param payload typing.Optional\[pokemon_service_server_sdk.model.CapturingPayload\]:
  470    690   
/// :rtype None:
         691  +
/* StructureGenerator.kt:197 */
  471    692   
#[allow(missing_docs)] // documentation missing in model
         693  +
/* RustType.kt:516 */
  472    694   
#[derive(
  473    695   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  474    696   
)]
  475         -
pub struct CapturingEvent {
         697  +
pub /* StructureGenerator.kt:201 */ struct CapturingEvent {
         698  +
    /* RustType.kt:516 */
  476    699   
    #[pyo3(get, set)]
         700  +
    /* PythonServerStructureGenerator.kt:80 */
  477    701   
    /// :type typing.Optional\[pokemon_service_server_sdk.model.CapturingPayload\]:
         702  +
    /* StructureGenerator.kt:231 */
  478    703   
    #[allow(missing_docs)] // documentation missing in model
  479    704   
    pub payload: ::std::option::Option<crate::model::CapturingPayload>,
         705  +
    /* StructureGenerator.kt:201 */
  480    706   
}
         707  +
/* StructureGenerator.kt:135 */
  481    708   
impl CapturingEvent {
         709  +
    /* StructureGenerator.kt:231 */
  482    710   
    #[allow(missing_docs)] // documentation missing in model
         711  +
                           /* StructureGenerator.kt:166 */
  483    712   
    pub fn payload(&self) -> ::std::option::Option<&crate::model::CapturingPayload> {
         713  +
        /* StructureGenerator.kt:170 */
  484    714   
        self.payload.as_ref()
         715  +
        /* StructureGenerator.kt:166 */
  485    716   
    }
         717  +
    /* StructureGenerator.kt:135 */
  486    718   
}
         719  +
/* RustType.kt:516 */
  487    720   
#[allow(clippy::new_without_default)]
         721  +
/* RustType.kt:516 */
  488    722   
#[allow(clippy::too_many_arguments)]
         723  +
/* RustType.kt:516 */
  489    724   
#[::pyo3::pymethods]
         725  +
/* PythonServerStructureGenerator.kt:88 */
  490    726   
impl CapturingEvent {
  491    727   
    #[new]
  492    728   
    pub fn new(payload: ::std::option::Option<crate::model::CapturingPayload>) -> Self {
  493    729   
        Self { payload }
  494    730   
    }
  495    731   
    fn __repr__(&self) -> String {
  496    732   
        format!("{self:?}")
  497    733   
    }
  498    734   
    fn __str__(&self) -> String {
  499    735   
        format!("{self:?}")
  500    736   
    }
  501    737   
}
         738  +
/* PythonServerStructureGenerator.kt:111 */
  502    739   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<CapturingEvent> {
  503    740   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  504    741   
        ob.extract::<CapturingEvent>().map(Box::new)
  505    742   
    }
  506    743   
}
  507    744   
  508    745   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<CapturingEvent> {
  509    746   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  510    747   
        (*self).into_py(py)
  511    748   
    }
  512    749   
}
         750  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  513    751   
impl crate::constrained::Constrained for crate::model::CapturingEvent {
  514    752   
    type Unconstrained = crate::model::capturing_event_internal::Builder;
  515    753   
}
         754  +
/* ServerCodegenVisitor.kt:370 */
  516    755   
impl CapturingEvent {
  517         -
    /// Creates a new builder-style object to manufacture [`CapturingEvent`](crate::model::CapturingEvent).
         756  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`CapturingEvent`](crate::model::CapturingEvent).
         757  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  518    758   
    pub fn builder() -> crate::model::capturing_event::Builder {
         759  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  519    760   
        crate::model::capturing_event::Builder::default()
         761  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  520    762   
    }
         763  +
    /* ServerCodegenVisitor.kt:370 */
  521    764   
}
  522    765   
         766  +
/* RustType.kt:516 */
  523    767   
#[::pyo3::pyclass]
         768  +
/* PythonServerStructureGenerator.kt:63 */
  524    769   
/// :param name typing.Optional\[str\]:
  525    770   
/// :param pokeball typing.Optional\[str\]:
  526    771   
/// :rtype None:
         772  +
/* StructureGenerator.kt:197 */
  527    773   
#[allow(missing_docs)] // documentation missing in model
         774  +
/* RustType.kt:516 */
  528    775   
#[derive(
  529    776   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  530    777   
)]
  531         -
pub struct CapturingPayload {
         778  +
pub /* StructureGenerator.kt:201 */ struct CapturingPayload {
         779  +
    /* RustType.kt:516 */
  532    780   
    #[pyo3(get, set)]
         781  +
    /* PythonServerStructureGenerator.kt:80 */
  533    782   
    /// :type typing.Optional\[str\]:
         783  +
    /* StructureGenerator.kt:231 */
  534    784   
    #[allow(missing_docs)] // documentation missing in model
  535    785   
    pub name: ::std::option::Option<::std::string::String>,
         786  +
    /* RustType.kt:516 */
  536    787   
    #[pyo3(get, set)]
         788  +
    /* PythonServerStructureGenerator.kt:80 */
  537    789   
    /// :type typing.Optional\[str\]:
         790  +
    /* StructureGenerator.kt:231 */
  538    791   
    #[allow(missing_docs)] // documentation missing in model
  539    792   
    pub pokeball: ::std::option::Option<::std::string::String>,
         793  +
    /* StructureGenerator.kt:201 */
  540    794   
}
         795  +
/* StructureGenerator.kt:135 */
  541    796   
impl CapturingPayload {
         797  +
    /* StructureGenerator.kt:231 */
  542    798   
    #[allow(missing_docs)] // documentation missing in model
         799  +
                           /* StructureGenerator.kt:166 */
  543    800   
    pub fn name(&self) -> ::std::option::Option<&str> {
         801  +
        /* StructureGenerator.kt:169 */
  544    802   
        self.name.as_deref()
         803  +
        /* StructureGenerator.kt:166 */
  545    804   
    }
         805  +
    /* StructureGenerator.kt:231 */
  546    806   
    #[allow(missing_docs)] // documentation missing in model
         807  +
                           /* StructureGenerator.kt:166 */
  547    808   
    pub fn pokeball(&self) -> ::std::option::Option<&str> {
         809  +
        /* StructureGenerator.kt:169 */
  548    810   
        self.pokeball.as_deref()
         811  +
        /* StructureGenerator.kt:166 */
  549    812   
    }
         813  +
    /* StructureGenerator.kt:135 */
  550    814   
}
         815  +
/* RustType.kt:516 */
  551    816   
#[allow(clippy::new_without_default)]
         817  +
/* RustType.kt:516 */
  552    818   
#[allow(clippy::too_many_arguments)]
         819  +
/* RustType.kt:516 */
  553    820   
#[::pyo3::pymethods]
         821  +
/* PythonServerStructureGenerator.kt:88 */
  554    822   
impl CapturingPayload {
  555    823   
    #[new]
  556    824   
    pub fn new(
  557    825   
        name: ::std::option::Option<::std::string::String>,
  558    826   
        pokeball: ::std::option::Option<::std::string::String>,
  559    827   
    ) -> Self {
  560    828   
        Self { name, pokeball }
  561    829   
    }
  562    830   
    fn __repr__(&self) -> String {
  563    831   
        format!("{self:?}")
  564    832   
    }
  565    833   
    fn __str__(&self) -> String {
  566    834   
        format!("{self:?}")
  567    835   
    }
  568    836   
}
         837  +
/* PythonServerStructureGenerator.kt:111 */
  569    838   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<CapturingPayload> {
  570    839   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  571    840   
        ob.extract::<CapturingPayload>().map(Box::new)
  572    841   
    }
  573    842   
}
  574    843   
  575    844   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<CapturingPayload> {
  576    845   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  577    846   
        (*self).into_py(py)
  578    847   
    }
  579    848   
}
         849  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  580    850   
impl crate::constrained::Constrained for crate::model::CapturingPayload {
  581    851   
    type Unconstrained = crate::model::capturing_payload_internal::Builder;
  582    852   
}
         853  +
/* ServerCodegenVisitor.kt:370 */
  583    854   
impl CapturingPayload {
  584         -
    /// Creates a new builder-style object to manufacture [`CapturingPayload`](crate::model::CapturingPayload).
         855  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`CapturingPayload`](crate::model::CapturingPayload).
         856  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  585    857   
    pub fn builder() -> crate::model::capturing_payload::Builder {
         858  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  586    859   
        crate::model::capturing_payload::Builder::default()
         860  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  587    861   
    }
         862  +
    /* ServerCodegenVisitor.kt:370 */
  588    863   
}
  589         -
/// See [`ValidationExceptionField`](crate::model::ValidationExceptionField).
         864  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ValidationExceptionField`](crate::model::ValidationExceptionField).
  590    865   
pub mod validation_exception_field {
  591    866   
         867  +
    /* RustType.kt:516 */
  592    868   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  593         -
    /// Holds one variant for each of the ways the builder can fail.
  594         -
         869  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
         870  +
    /* ServerBuilderConstraintViolations.kt:75 */
  595    871   
    #[allow(clippy::enum_variant_names)]
  596    872   
    pub enum ConstraintViolation {
  597         -
        /// `path` was not provided but it is required when building `ValidationExceptionField`.
         873  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`path` was not provided but it is required when building `ValidationExceptionField`.
         874  +
        /* ServerBuilderConstraintViolations.kt:143 */
  598    875   
        MissingPath,
  599         -
        /// `message` was not provided but it is required when building `ValidationExceptionField`.
         876  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`message` was not provided but it is required when building `ValidationExceptionField`.
         877  +
        /* ServerBuilderConstraintViolations.kt:143 */
  600    878   
        MissingMessage,
         879  +
        /* ServerBuilderConstraintViolations.kt:75 */
  601    880   
    }
         881  +
    /* ServerBuilderConstraintViolations.kt:117 */
  602    882   
    impl ::std::fmt::Display for ConstraintViolation {
         883  +
        /* ServerBuilderConstraintViolations.kt:118 */
  603    884   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         885  +
            /* ServerBuilderConstraintViolations.kt:119 */
  604    886   
            match self {
  605         -
                ConstraintViolation::MissingPath => write!(f, "`path` was not provided but it is required when building `ValidationExceptionField`"),
  606         -
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationExceptionField`"),
  607         -
            }
         887  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingPath => write!(f, "`path` was not provided but it is required when building `ValidationExceptionField`"),
         888  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationExceptionField`"),
         889  +
            /* ServerBuilderConstraintViolations.kt:119 */}
         890  +
            /* ServerBuilderConstraintViolations.kt:118 */
  608    891   
        }
         892  +
        /* ServerBuilderConstraintViolations.kt:117 */
  609    893   
    }
         894  +
    /* ServerBuilderConstraintViolations.kt:84 */
  610    895   
    impl ::std::error::Error for ConstraintViolation {}
         896  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
  611    897   
    impl ::std::convert::TryFrom<Builder> for crate::model::ValidationExceptionField {
  612    898   
        type Error = ConstraintViolation;
  613    899   
  614    900   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  615    901   
            builder.build()
  616    902   
        }
  617    903   
    }
  618         -
    /// A builder for [`ValidationExceptionField`](crate::model::ValidationExceptionField).
         904  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ValidationExceptionField`](crate::model::ValidationExceptionField).
         905  +
    /* RustType.kt:516 */
  619    906   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         907  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  620    908   
    pub struct Builder {
         909  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  621    910   
        pub(crate) path: ::std::option::Option<::std::string::String>,
         911  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  622    912   
        pub(crate) message: ::std::option::Option<::std::string::String>,
         913  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  623    914   
    }
         915  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  624    916   
    impl Builder {
  625         -
        /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
         917  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
         918  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  626    919   
        pub fn path(mut self, input: ::std::string::String) -> Self {
  627         -
            self.path = Some(input);
         920  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         921  +
            self.path =
         922  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
         923  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         924  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
         925  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  628    926   
            self
         927  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  629    928   
        }
  630         -
        /// A detailed description of the validation failure.
         929  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A detailed description of the validation failure.
         930  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  631    931   
        pub fn message(mut self, input: ::std::string::String) -> Self {
  632         -
            self.message = Some(input);
         932  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         933  +
            self.message =
         934  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
         935  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         936  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
         937  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  633    938   
            self
         939  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  634    940   
        }
  635         -
        /// Consumes the builder and constructs a [`ValidationExceptionField`](crate::model::ValidationExceptionField).
  636         -
        ///
         941  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ValidationExceptionField`](crate::model::ValidationExceptionField).
         942  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
  637    943   
        /// The builder fails to construct a [`ValidationExceptionField`](crate::model::ValidationExceptionField) if you do not provide a value for all non-`Option`al members.
  638    944   
        ///
         945  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  639    946   
        pub fn build(self) -> Result<crate::model::ValidationExceptionField, ConstraintViolation> {
  640    947   
            self.build_enforcing_required_and_enum_traits()
  641    948   
        }
         949  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  642    950   
        fn build_enforcing_required_and_enum_traits(
  643    951   
            self,
  644    952   
        ) -> Result<crate::model::ValidationExceptionField, ConstraintViolation> {
  645         -
            Ok(crate::model::ValidationExceptionField {
  646         -
                path: self.path.ok_or(ConstraintViolation::MissingPath)?,
  647         -
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
  648         -
            })
         953  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         954  +
            Ok(
         955  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         956  +
                crate::model::ValidationExceptionField {
         957  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
         958  +
                    path: self
         959  +
                        .path
         960  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
         961  +
                        .ok_or(ConstraintViolation::MissingPath)?,
         962  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
         963  +
                    message: self
         964  +
                        .message
         965  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
         966  +
                        .ok_or(ConstraintViolation::MissingMessage)?,
         967  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         968  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         969  +
            )
         970  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  649    971   
        }
         972  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  650    973   
    }
         974  +
         975  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  651    976   
}
  652         -
/// See [`FlavorText`](crate::model::FlavorText).
         977  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`FlavorText`](crate::model::FlavorText).
  653    978   
pub mod flavor_text {
  654    979   
         980  +
    /* RustType.kt:516 */
  655    981   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  656         -
    /// Holds one variant for each of the ways the builder can fail.
  657         -
         982  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
         983  +
    /* ServerBuilderConstraintViolations.kt:75 */
  658    984   
    #[allow(clippy::enum_variant_names)]
  659    985   
    pub enum ConstraintViolation {
  660         -
        /// `flavor_text` was not provided but it is required when building `FlavorText`.
         986  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`flavor_text` was not provided but it is required when building `FlavorText`.
         987  +
        /* ServerBuilderConstraintViolations.kt:143 */
  661    988   
        MissingFlavorText,
  662         -
        /// `language` was not provided but it is required when building `FlavorText`.
         989  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`language` was not provided but it is required when building `FlavorText`.
         990  +
        /* ServerBuilderConstraintViolations.kt:143 */
  663    991   
        MissingLanguage,
         992  +
        /* ServerBuilderConstraintViolations.kt:75 */
  664    993   
    }
         994  +
    /* ServerBuilderConstraintViolations.kt:117 */
  665    995   
    impl ::std::fmt::Display for ConstraintViolation {
         996  +
        /* ServerBuilderConstraintViolations.kt:118 */
  666    997   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         998  +
            /* ServerBuilderConstraintViolations.kt:119 */
  667    999   
            match self {
        1000  +
                /* ServerBuilderConstraintViolations.kt:127 */
  668   1001   
                ConstraintViolation::MissingFlavorText => write!(
  669   1002   
                    f,
  670   1003   
                    "`flavor_text` was not provided but it is required when building `FlavorText`"
  671   1004   
                ),
        1005  +
                /* ServerBuilderConstraintViolations.kt:127 */
  672   1006   
                ConstraintViolation::MissingLanguage => write!(
  673   1007   
                    f,
  674   1008   
                    "`language` was not provided but it is required when building `FlavorText`"
  675   1009   
                ),
        1010  +
                /* ServerBuilderConstraintViolations.kt:119 */
  676   1011   
            }
        1012  +
            /* ServerBuilderConstraintViolations.kt:118 */
  677   1013   
        }
        1014  +
        /* ServerBuilderConstraintViolations.kt:117 */
  678   1015   
    }
        1016  +
    /* ServerBuilderConstraintViolations.kt:84 */
  679   1017   
    impl ::std::error::Error for ConstraintViolation {}
        1018  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
  680   1019   
    impl ::std::convert::TryFrom<Builder> for crate::model::FlavorText {
  681   1020   
        type Error = ConstraintViolation;
  682   1021   
  683   1022   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  684   1023   
            builder.build()
  685   1024   
        }
  686   1025   
    }
  687         -
    /// A builder for [`FlavorText`](crate::model::FlavorText).
        1026  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`FlavorText`](crate::model::FlavorText).
        1027  +
    /* RustType.kt:516 */
  688   1028   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1029  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  689   1030   
    pub struct Builder {
        1031  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  690   1032   
        pub(crate) flavor_text: ::std::option::Option<::std::string::String>,
        1033  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  691   1034   
        pub(crate) language: ::std::option::Option<crate::model::Language>,
        1035  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  692   1036   
    }
        1037  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  693   1038   
    impl Builder {
  694         -
        /// The localized flavor text for an API resource in a specific language.
        1039  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */The localized flavor text for an API resource in a specific language.
        1040  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  695   1041   
        pub fn flavor_text(mut self, input: ::std::string::String) -> Self {
  696         -
            self.flavor_text = Some(input);
        1042  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1043  +
            self.flavor_text =
        1044  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        1045  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1046  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        1047  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  697   1048   
            self
        1049  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  698   1050   
        }
  699         -
        /// The language this name is in.
        1051  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */The language this name is in.
        1052  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  700   1053   
        pub fn language(mut self, input: crate::model::Language) -> Self {
  701         -
            self.language = Some(input);
        1054  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1055  +
            self.language =
        1056  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        1057  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1058  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        1059  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  702   1060   
            self
        1061  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  703   1062   
        }
  704         -
        /// Consumes the builder and constructs a [`FlavorText`](crate::model::FlavorText).
  705         -
        ///
        1063  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`FlavorText`](crate::model::FlavorText).
        1064  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
  706   1065   
        /// The builder fails to construct a [`FlavorText`](crate::model::FlavorText) if you do not provide a value for all non-`Option`al members.
  707   1066   
        ///
        1067  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  708   1068   
        pub fn build(self) -> Result<crate::model::FlavorText, ConstraintViolation> {
  709   1069   
            self.build_enforcing_required_and_enum_traits()
  710   1070   
        }
        1071  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  711   1072   
        fn build_enforcing_required_and_enum_traits(
  712   1073   
            self,
  713   1074   
        ) -> Result<crate::model::FlavorText, ConstraintViolation> {
  714         -
            Ok(crate::model::FlavorText {
        1075  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        1076  +
            Ok(
        1077  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        1078  +
                crate::model::FlavorText {
        1079  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
  715   1080   
                    flavor_text: self
  716   1081   
                        .flavor_text
        1082  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
  717   1083   
                        .ok_or(ConstraintViolation::MissingFlavorText)?,
  718         -
                language: self.language.ok_or(ConstraintViolation::MissingLanguage)?,
  719         -
            })
        1084  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        1085  +
                    language: self
        1086  +
                        .language
        1087  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        1088  +
                        .ok_or(ConstraintViolation::MissingLanguage)?,
        1089  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        1090  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        1091  +
            )
        1092  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  720   1093   
        }
        1094  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  721   1095   
    }
        1096  +
        1097  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  722   1098   
}
  723         -
/// See [`CaptureEvent`](crate::model::CaptureEvent).
        1099  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`CaptureEvent`](crate::model::CaptureEvent).
  724   1100   
pub mod capture_event {
  725   1101   
        1102  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
  726   1103   
    impl ::std::convert::From<Builder> for crate::model::CaptureEvent {
  727   1104   
        fn from(builder: Builder) -> Self {
  728   1105   
            builder.build()
  729   1106   
        }
  730   1107   
    }
  731         -
    /// A builder for [`CaptureEvent`](crate::model::CaptureEvent).
        1108  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`CaptureEvent`](crate::model::CaptureEvent).
        1109  +
    /* RustType.kt:516 */
  732   1110   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1111  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  733   1112   
    pub struct Builder {
        1113  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  734   1114   
        pub(crate) name: ::std::option::Option<::std::string::String>,
        1115  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  735   1116   
        pub(crate) captured: ::std::option::Option<bool>,
        1117  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  736   1118   
        pub(crate) shiny: ::std::option::Option<bool>,
        1119  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  737   1120   
        pub(crate) pokedex_update:
  738   1121   
            ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
        1122  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  739   1123   
    }
        1124  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  740   1125   
    impl Builder {
        1126  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
  741   1127   
        #[allow(missing_docs)] // documentation missing in model
        1128  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  742   1129   
        pub fn name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  743         -
            self.name = input;
        1130  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1131  +
            self.name =
        1132  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1133  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  744   1134   
            self
        1135  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  745   1136   
        }
        1137  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
  746   1138   
        #[allow(missing_docs)] // documentation missing in model
        1139  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  747   1140   
        pub fn captured(mut self, input: ::std::option::Option<bool>) -> Self {
  748         -
            self.captured = input;
        1141  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1142  +
            self.captured =
        1143  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1144  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  749   1145   
            self
        1146  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  750   1147   
        }
        1148  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
  751   1149   
        #[allow(missing_docs)] // documentation missing in model
        1150  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  752   1151   
        pub fn shiny(mut self, input: ::std::option::Option<bool>) -> Self {
  753         -
            self.shiny = input;
        1152  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1153  +
            self.shiny =
        1154  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1155  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  754   1156   
            self
        1157  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  755   1158   
        }
        1159  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
  756   1160   
        #[allow(missing_docs)] // documentation missing in model
        1161  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  757   1162   
        pub fn pokedex_update(
  758   1163   
            mut self,
  759   1164   
            input: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
  760   1165   
        ) -> Self {
  761         -
            self.pokedex_update = input;
        1166  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1167  +
            self.pokedex_update =
        1168  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1169  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  762   1170   
            self
        1171  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  763   1172   
        }
  764         -
        /// Consumes the builder and constructs a [`CaptureEvent`](crate::model::CaptureEvent).
        1173  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`CaptureEvent`](crate::model::CaptureEvent).
        1174  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  765   1175   
        pub fn build(self) -> crate::model::CaptureEvent {
  766   1176   
            self.build_enforcing_required_and_enum_traits()
  767   1177   
        }
        1178  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  768   1179   
        fn build_enforcing_required_and_enum_traits(self) -> crate::model::CaptureEvent {
        1180  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
  769   1181   
            crate::model::CaptureEvent {
        1182  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
  770   1183   
                name: self.name,
        1184  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
  771   1185   
                captured: self.captured,
        1186  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
  772   1187   
                shiny: self.shiny,
        1188  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
  773   1189   
                pokedex_update: self.pokedex_update,
        1190  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
  774   1191   
            }
        1192  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  775   1193   
        }
        1194  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  776   1195   
    }
        1196  +
        1197  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  777   1198   
}
  778         -
/// See [`CapturingEvent`](crate::model::CapturingEvent).
        1199  +
/// /* ServerBuilderGenerator.kt:171 */See [`CapturingEvent`](crate::model::CapturingEvent).
  779   1200   
pub(crate) mod capturing_event_internal {
  780   1201   
        1202  +
    /* ServerBuilderGenerator.kt:461 */
  781   1203   
    impl ::std::convert::From<Builder> for crate::model::CapturingEvent {
  782   1204   
        fn from(builder: Builder) -> Self {
  783   1205   
            builder.build()
  784   1206   
        }
  785   1207   
    }
  786         -
    /// A builder for [`CapturingEvent`](crate::model::CapturingEvent).
        1208  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`CapturingEvent`](crate::model::CapturingEvent).
        1209  +
    /* RustType.kt:516 */
  787   1210   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1211  +
    /* ServerBuilderGenerator.kt:211 */
  788   1212   
    pub(crate) struct Builder {
        1213  +
        /* ServerBuilderGenerator.kt:308 */
  789   1214   
        pub(crate) payload: ::std::option::Option<crate::model::CapturingPayload>,
        1215  +
        /* ServerBuilderGenerator.kt:211 */
  790   1216   
    }
        1217  +
    /* ServerBuilderGenerator.kt:215 */
  791   1218   
    impl Builder {
        1219  +
        /* ServerBuilderGenerator.kt:426 */
  792   1220   
        #[allow(missing_docs)] // documentation missing in model
        1221  +
                               /* ServerBuilderGenerator.kt:428 */
  793   1222   
        pub(crate) fn set_payload(
  794   1223   
            mut self,
  795   1224   
            input: Option<impl ::std::convert::Into<crate::model::CapturingPayload>>,
  796   1225   
        ) -> Self {
        1226  +
            /* ServerBuilderGenerator.kt:429 */
  797   1227   
            self.payload = input.map(|v| v.into());
  798   1228   
            self
        1229  +
            /* ServerBuilderGenerator.kt:428 */
  799   1230   
        }
  800         -
        /// Consumes the builder and constructs a [`CapturingEvent`](crate::model::CapturingEvent).
        1231  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`CapturingEvent`](crate::model::CapturingEvent).
        1232  +
        /* ServerBuilderGenerator.kt:271 */
  801   1233   
        pub fn build(self) -> crate::model::CapturingEvent {
  802   1234   
            self.build_enforcing_all_constraints()
  803   1235   
        }
        1236  +
        /* ServerBuilderGenerator.kt:283 */
  804   1237   
        fn build_enforcing_all_constraints(self) -> crate::model::CapturingEvent {
        1238  +
            /* ServerBuilderGenerator.kt:542 */
  805   1239   
            crate::model::CapturingEvent {
        1240  +
                /* ServerBuilderGenerator.kt:546 */
  806   1241   
                payload: self.payload,
        1242  +
                /* ServerBuilderGenerator.kt:542 */
  807   1243   
            }
        1244  +
            /* ServerBuilderGenerator.kt:283 */
  808   1245   
        }
        1246  +
        /* ServerBuilderGenerator.kt:215 */
  809   1247   
    }
        1248  +
        1249  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  810   1250   
}
  811         -
/// See [`CapturingEvent`](crate::model::CapturingEvent).
        1251  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`CapturingEvent`](crate::model::CapturingEvent).
  812   1252   
pub mod capturing_event {
  813   1253   
        1254  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
  814   1255   
    impl ::std::convert::From<Builder> for crate::model::CapturingEvent {
  815   1256   
        fn from(builder: Builder) -> Self {
  816   1257   
            builder.build()
  817   1258   
        }
  818   1259   
    }
  819         -
    /// A builder for [`CapturingEvent`](crate::model::CapturingEvent).
        1260  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`CapturingEvent`](crate::model::CapturingEvent).
        1261  +
    /* RustType.kt:516 */
  820   1262   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1263  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  821   1264   
    pub struct Builder {
        1265  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  822   1266   
        pub(crate) payload: ::std::option::Option<crate::model::CapturingPayload>,
        1267  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  823   1268   
    }
        1269  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  824   1270   
    impl Builder {
        1271  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
  825   1272   
        #[allow(missing_docs)] // documentation missing in model
        1273  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  826   1274   
        pub fn payload(
  827   1275   
            mut self,
  828   1276   
            input: ::std::option::Option<crate::model::CapturingPayload>,
  829   1277   
        ) -> Self {
  830         -
            self.payload = input;
        1278  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1279  +
            self.payload =
        1280  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1281  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  831   1282   
            self
        1283  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  832   1284   
        }
  833         -
        /// Consumes the builder and constructs a [`CapturingEvent`](crate::model::CapturingEvent).
        1285  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`CapturingEvent`](crate::model::CapturingEvent).
        1286  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  834   1287   
        pub fn build(self) -> crate::model::CapturingEvent {
  835   1288   
            self.build_enforcing_required_and_enum_traits()
  836   1289   
        }
        1290  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  837   1291   
        fn build_enforcing_required_and_enum_traits(self) -> crate::model::CapturingEvent {
        1292  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
  838   1293   
            crate::model::CapturingEvent {
        1294  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
  839   1295   
                payload: self.payload,
        1296  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
  840   1297   
            }
        1298  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  841   1299   
        }
        1300  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  842   1301   
    }
        1302  +
        1303  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  843   1304   
}
  844         -
/// See [`CapturingPayload`](crate::model::CapturingPayload).
        1305  +
/// /* ServerBuilderGenerator.kt:171 */See [`CapturingPayload`](crate::model::CapturingPayload).
  845   1306   
pub(crate) mod capturing_payload_internal {
  846   1307   
        1308  +
    /* ServerBuilderGenerator.kt:461 */
  847   1309   
    impl ::std::convert::From<Builder> for crate::model::CapturingPayload {
  848   1310   
        fn from(builder: Builder) -> Self {
  849   1311   
            builder.build()
  850   1312   
        }
  851   1313   
    }
  852         -
    /// A builder for [`CapturingPayload`](crate::model::CapturingPayload).
        1314  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`CapturingPayload`](crate::model::CapturingPayload).
        1315  +
    /* RustType.kt:516 */
  853   1316   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1317  +
    /* ServerBuilderGenerator.kt:211 */
  854   1318   
    pub(crate) struct Builder {
        1319  +
        /* ServerBuilderGenerator.kt:308 */
  855   1320   
        pub(crate) name: ::std::option::Option<::std::string::String>,
        1321  +
        /* ServerBuilderGenerator.kt:308 */
  856   1322   
        pub(crate) pokeball: ::std::option::Option<::std::string::String>,
        1323  +
        /* ServerBuilderGenerator.kt:211 */
  857   1324   
    }
        1325  +
    /* ServerBuilderGenerator.kt:215 */
  858   1326   
    impl Builder {
        1327  +
        /* ServerBuilderGenerator.kt:426 */
  859   1328   
        #[allow(missing_docs)] // documentation missing in model
        1329  +
                               /* ServerBuilderGenerator.kt:428 */
  860   1330   
        pub(crate) fn set_name(
  861   1331   
            mut self,
  862   1332   
            input: Option<impl ::std::convert::Into<::std::string::String>>,
  863   1333   
        ) -> Self {
        1334  +
            /* ServerBuilderGenerator.kt:429 */
  864   1335   
            self.name = input.map(|v| v.into());
  865   1336   
            self
        1337  +
            /* ServerBuilderGenerator.kt:428 */
  866   1338   
        }
        1339  +
        /* ServerBuilderGenerator.kt:426 */
  867   1340   
        #[allow(missing_docs)] // documentation missing in model
        1341  +
                               /* ServerBuilderGenerator.kt:428 */
  868   1342   
        pub(crate) fn set_pokeball(
  869   1343   
            mut self,
  870   1344   
            input: Option<impl ::std::convert::Into<::std::string::String>>,
  871   1345   
        ) -> Self {
        1346  +
            /* ServerBuilderGenerator.kt:429 */
  872   1347   
            self.pokeball = input.map(|v| v.into());
  873   1348   
            self
        1349  +
            /* ServerBuilderGenerator.kt:428 */
  874   1350   
        }
  875         -
        /// Consumes the builder and constructs a [`CapturingPayload`](crate::model::CapturingPayload).
        1351  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`CapturingPayload`](crate::model::CapturingPayload).
        1352  +
        /* ServerBuilderGenerator.kt:271 */
  876   1353   
        pub fn build(self) -> crate::model::CapturingPayload {
  877   1354   
            self.build_enforcing_all_constraints()
  878   1355   
        }
        1356  +
        /* ServerBuilderGenerator.kt:283 */
  879   1357   
        fn build_enforcing_all_constraints(self) -> crate::model::CapturingPayload {
        1358  +
            /* ServerBuilderGenerator.kt:542 */
  880   1359   
            crate::model::CapturingPayload {
        1360  +
                /* ServerBuilderGenerator.kt:546 */
  881   1361   
                name: self.name,
        1362  +
                /* ServerBuilderGenerator.kt:546 */
  882   1363   
                pokeball: self.pokeball,
        1364  +
                /* ServerBuilderGenerator.kt:542 */
  883   1365   
            }
        1366  +
            /* ServerBuilderGenerator.kt:283 */
  884   1367   
        }
        1368  +
        /* ServerBuilderGenerator.kt:215 */
  885   1369   
    }
        1370  +
        1371  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  886   1372   
}
  887         -
/// See [`CapturingPayload`](crate::model::CapturingPayload).
        1373  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`CapturingPayload`](crate::model::CapturingPayload).
  888   1374   
pub mod capturing_payload {
  889   1375   
        1376  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
  890   1377   
    impl ::std::convert::From<Builder> for crate::model::CapturingPayload {
  891   1378   
        fn from(builder: Builder) -> Self {
  892   1379   
            builder.build()
  893   1380   
        }
  894   1381   
    }
  895         -
    /// A builder for [`CapturingPayload`](crate::model::CapturingPayload).
        1382  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`CapturingPayload`](crate::model::CapturingPayload).
        1383  +
    /* RustType.kt:516 */
  896   1384   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1385  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  897   1386   
    pub struct Builder {
        1387  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  898   1388   
        pub(crate) name: ::std::option::Option<::std::string::String>,
        1389  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  899   1390   
        pub(crate) pokeball: ::std::option::Option<::std::string::String>,
        1391  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  900   1392   
    }
        1393  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  901   1394   
    impl Builder {
        1395  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
  902   1396   
        #[allow(missing_docs)] // documentation missing in model
        1397  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  903   1398   
        pub fn name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  904         -
            self.name = input;
        1399  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1400  +
            self.name =
        1401  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1402  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  905   1403   
            self
        1404  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  906   1405   
        }
        1406  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
  907   1407   
        #[allow(missing_docs)] // documentation missing in model
        1408  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  908   1409   
        pub fn pokeball(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  909         -
            self.pokeball = input;
        1410  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1411  +
            self.pokeball =
        1412  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1413  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  910   1414   
            self
        1415  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  911   1416   
        }
  912         -
        /// Consumes the builder and constructs a [`CapturingPayload`](crate::model::CapturingPayload).
        1417  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`CapturingPayload`](crate::model::CapturingPayload).
        1418  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  913   1419   
        pub fn build(self) -> crate::model::CapturingPayload {
  914   1420   
            self.build_enforcing_required_and_enum_traits()
  915   1421   
        }
        1422  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  916   1423   
        fn build_enforcing_required_and_enum_traits(self) -> crate::model::CapturingPayload {
        1424  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
  917   1425   
            crate::model::CapturingPayload {
        1426  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
  918   1427   
                name: self.name,
        1428  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
  919   1429   
                pokeball: self.pokeball,
        1430  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
  920   1431   
            }
        1432  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  921   1433   
        }
        1434  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  922   1435   
    }
        1436  +
        1437  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  923   1438   
}

tmp-codegen-diff/codegen-server-test-python/pokemon-service-server-sdk/rust-server-codegen-python/src/operation.rs

@@ -1,1 +31,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ServerHttpBoundProtocolGenerator.kt:266 */
    2      3   
const CONTENT_TYPE_GETSTORAGE: ::mime::Mime = ::mime::APPLICATION_JSON;
    3      4   
::pin_project_lite::pin_project! {
    4      5   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
    5      6   
    /// [`GetStorageInput`](crate::input::GetStorageInput) using modelled bindings.
    6      7   
    pub struct GetStorageInputFuture {
    7      8   
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::GetStorageInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
    8      9   
    }
    9     10   
}
   10     11   
   11     12   
impl std::future::Future for GetStorageInputFuture {
@@ -38,39 +133,137 @@
   58     59   
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
   59     60   
                    e,
   60     61   
                )
   61     62   
            },
   62     63   
        );
   63     64   
        GetStorageInputFuture {
   64     65   
            inner: Box::pin(fut),
   65     66   
        }
   66     67   
    }
   67     68   
}
          69  +
/* ServerHttpBoundProtocolGenerator.kt:329 */
   68     70   
impl
   69     71   
    ::aws_smithy_http_server::response::IntoResponse<
   70     72   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
   71     73   
    > for crate::output::GetStorageOutput
   72     74   
{
   73     75   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
   74     76   
        match crate::protocol_serde::shape_get_storage::ser_get_storage_http_response(self) {
   75     77   
            Ok(response) => response,
   76     78   
            Err(e) => {
   77     79   
                ::tracing::error!(error = %e, "failed to serialize response");
   78     80   
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
   79     81   
            }
   80     82   
        }
   81     83   
    }
   82     84   
}
          85  +
/* ServerHttpBoundProtocolGenerator.kt:350 */
   83     86   
impl
   84     87   
    ::aws_smithy_http_server::response::IntoResponse<
   85     88   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
   86     89   
    > for crate::error::GetStorageError
   87     90   
{
   88     91   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
   89     92   
        match crate::protocol_serde::shape_get_storage::ser_get_storage_http_error(&self) {
   90     93   
            Ok(mut response) => {
   91     94   
                response.extensions_mut().insert(
   92     95   
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
   93     96   
                );
   94     97   
                response
   95     98   
            }
   96     99   
            Err(e) => {
   97    100   
                ::tracing::error!(error = %e, "failed to serialize response");
   98    101   
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
   99    102   
            }
  100    103   
        }
  101    104   
    }
  102    105   
}
  103    106   
         107  +
/* ServerHttpBoundProtocolGenerator.kt:266 */
  104    108   
const CONTENT_TYPE_GETPOKEMONSPECIES: ::mime::Mime = ::mime::APPLICATION_JSON;
  105    109   
::pin_project_lite::pin_project! {
  106    110   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  107    111   
    /// [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput) using modelled bindings.
  108    112   
    pub struct GetPokemonSpeciesInputFuture {
  109    113   
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::GetPokemonSpeciesInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  110    114   
    }
  111    115   
}
  112    116   
  113    117   
impl std::future::Future for GetPokemonSpeciesInputFuture {
@@ -142,146 +239,246 @@
  162    166   
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  163    167   
                    e,
  164    168   
                )
  165    169   
            },
  166    170   
        );
  167    171   
        GetPokemonSpeciesInputFuture {
  168    172   
            inner: Box::pin(fut),
  169    173   
        }
  170    174   
    }
  171    175   
}
         176  +
/* ServerHttpBoundProtocolGenerator.kt:329 */
  172    177   
impl
  173    178   
    ::aws_smithy_http_server::response::IntoResponse<
  174    179   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  175    180   
    > for crate::output::GetPokemonSpeciesOutput
  176    181   
{
  177    182   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  178    183   
        match crate::protocol_serde::shape_get_pokemon_species::ser_get_pokemon_species_http_response(self) {
  179    184   
                        Ok(response) => response,
  180    185   
                        Err(e) => {
  181    186   
                            ::tracing::error!(error = %e, "failed to serialize response");
  182    187   
                            ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  183    188   
                        }
  184    189   
                    }
  185    190   
    }
  186    191   
}
         192  +
/* ServerHttpBoundProtocolGenerator.kt:350 */
  187    193   
impl
  188    194   
    ::aws_smithy_http_server::response::IntoResponse<
  189    195   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  190    196   
    > for crate::error::GetPokemonSpeciesError
  191    197   
{
  192    198   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  193    199   
        match crate::protocol_serde::shape_get_pokemon_species::ser_get_pokemon_species_http_error(
  194    200   
            &self,
  195    201   
        ) {
  196    202   
            Ok(mut response) => {
  197    203   
                response.extensions_mut().insert(
  198    204   
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
  199    205   
                );
  200    206   
                response
  201    207   
            }
  202    208   
            Err(e) => {
  203    209   
                ::tracing::error!(error = %e, "failed to serialize response");
  204    210   
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  205    211   
            }
  206    212   
        }
  207    213   
    }
  208    214   
}
  209    215   
         216  +
/* ServerHttpBoundProtocolGenerator.kt:266 */
  210    217   
const CONTENT_TYPE_STREAMPOKEMONRADIO: ::mime::Mime = ::mime::APPLICATION_OCTET_STREAM;
  211    218   
::pin_project_lite::pin_project! {
  212    219   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  213    220   
    /// [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput) using modelled bindings.
  214    221   
    pub struct StreamPokemonRadioInputFuture {
  215    222   
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::StreamPokemonRadioInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  216    223   
    }
  217    224   
}
  218    225   
  219    226   
impl std::future::Future for StreamPokemonRadioInputFuture {
@@ -248,255 +345,355 @@
  268    275   
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  269    276   
                    e,
  270    277   
                )
  271    278   
            },
  272    279   
        );
  273    280   
        StreamPokemonRadioInputFuture {
  274    281   
            inner: Box::pin(fut),
  275    282   
        }
  276    283   
    }
  277    284   
}
         285  +
/* ServerHttpBoundProtocolGenerator.kt:329 */
  278    286   
impl
  279    287   
    ::aws_smithy_http_server::response::IntoResponse<
  280    288   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  281    289   
    > for crate::output::StreamPokemonRadioOutput
  282    290   
{
  283    291   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  284    292   
        match crate::protocol_serde::shape_stream_pokemon_radio::ser_stream_pokemon_radio_http_response(self) {
  285    293   
                        Ok(response) => response,
  286    294   
                        Err(e) => {
  287    295   
                            ::tracing::error!(error = %e, "failed to serialize response");
  288    296   
                            ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  289    297   
                        }
  290    298   
                    }
  291    299   
    }
  292    300   
}
         301  +
/* ServerHttpBoundProtocolGenerator.kt:350 */
  293    302   
impl
  294    303   
    ::aws_smithy_http_server::response::IntoResponse<
  295    304   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  296    305   
    > for crate::error::StreamPokemonRadioError
  297    306   
{
  298    307   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  299    308   
        match crate::protocol_serde::shape_stream_pokemon_radio::ser_stream_pokemon_radio_http_error(
  300    309   
            &self,
  301    310   
        ) {
  302    311   
            Ok(mut response) => {
  303    312   
                response.extensions_mut().insert(
  304    313   
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
  305    314   
                );
  306    315   
                response
  307    316   
            }
  308    317   
            Err(e) => {
  309    318   
                ::tracing::error!(error = %e, "failed to serialize response");
  310    319   
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  311    320   
            }
  312    321   
        }
  313    322   
    }
  314    323   
}
  315    324   
         325  +
/* ServerHttpBoundProtocolGenerator.kt:266 */
  316    326   
const CONTENT_TYPE_CHECKHEALTH: ::mime::Mime = ::mime::APPLICATION_JSON;
  317    327   
::pin_project_lite::pin_project! {
  318    328   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  319    329   
    /// [`CheckHealthInput`](crate::input::CheckHealthInput) using modelled bindings.
  320    330   
    pub struct CheckHealthInputFuture {
  321    331   
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::CheckHealthInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  322    332   
    }
  323    333   
}
  324    334   
  325    335   
impl std::future::Future for CheckHealthInputFuture {
@@ -352,362 +447,460 @@
  372    382   
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  373    383   
                    e,
  374    384   
                )
  375    385   
            },
  376    386   
        );
  377    387   
        CheckHealthInputFuture {
  378    388   
            inner: Box::pin(fut),
  379    389   
        }
  380    390   
    }
  381    391   
}
         392  +
/* ServerHttpBoundProtocolGenerator.kt:329 */
  382    393   
impl
  383    394   
    ::aws_smithy_http_server::response::IntoResponse<
  384    395   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  385    396   
    > for crate::output::CheckHealthOutput
  386    397   
{
  387    398   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  388    399   
        match crate::protocol_serde::shape_check_health::ser_check_health_http_response(self) {
  389    400   
            Ok(response) => response,
  390    401   
            Err(e) => {
  391    402   
                ::tracing::error!(error = %e, "failed to serialize response");
  392    403   
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  393    404   
            }
  394    405   
        }
  395    406   
    }
  396    407   
}
         408  +
/* ServerHttpBoundProtocolGenerator.kt:350 */
  397    409   
impl
  398    410   
    ::aws_smithy_http_server::response::IntoResponse<
  399    411   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  400    412   
    > for crate::error::CheckHealthError
  401    413   
{
  402    414   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  403    415   
        match crate::protocol_serde::shape_check_health::ser_check_health_http_error(&self) {
  404    416   
            Ok(mut response) => {
  405    417   
                response.extensions_mut().insert(
  406    418   
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
  407    419   
                );
  408    420   
                response
  409    421   
            }
  410    422   
            Err(e) => {
  411    423   
                ::tracing::error!(error = %e, "failed to serialize response");
  412    424   
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  413    425   
            }
  414    426   
        }
  415    427   
    }
  416    428   
}
  417    429   
         430  +
/* ServerHttpBoundProtocolGenerator.kt:266 */
  418    431   
static CONTENT_TYPE_CAPTUREPOKEMON: std::sync::LazyLock<::mime::Mime> =
  419    432   
    std::sync::LazyLock::new(|| {
  420    433   
        "application/vnd.amazon.eventstream"
  421    434   
            .parse::<::mime::Mime>()
  422    435   
            .expect("BUG: MIME parsing failed, content_type is not valid")
  423    436   
    });
  424    437   
::pin_project_lite::pin_project! {
  425    438   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  426    439   
    /// [`CapturePokemonInput`](crate::input::CapturePokemonInput) using modelled bindings.
  427    440   
    pub struct CapturePokemonInputFuture {
@@ -460,473 +556,572 @@
  480    493   
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  481    494   
                    e,
  482    495   
                )
  483    496   
            },
  484    497   
        );
  485    498   
        CapturePokemonInputFuture {
  486    499   
            inner: Box::pin(fut),
  487    500   
        }
  488    501   
    }
  489    502   
}
         503  +
/* ServerHttpBoundProtocolGenerator.kt:329 */
  490    504   
impl
  491    505   
    ::aws_smithy_http_server::response::IntoResponse<
  492    506   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  493    507   
    > for crate::output::CapturePokemonOutput
  494    508   
{
  495    509   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  496    510   
        match crate::protocol_serde::shape_capture_pokemon::ser_capture_pokemon_http_response(self)
  497    511   
        {
  498    512   
            Ok(response) => response,
  499    513   
            Err(e) => {
  500    514   
                ::tracing::error!(error = %e, "failed to serialize response");
  501    515   
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  502    516   
            }
  503    517   
        }
  504    518   
    }
  505    519   
}
         520  +
/* ServerHttpBoundProtocolGenerator.kt:350 */
  506    521   
impl
  507    522   
    ::aws_smithy_http_server::response::IntoResponse<
  508    523   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  509    524   
    > for crate::error::CapturePokemonError
  510    525   
{
  511    526   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  512    527   
        match crate::protocol_serde::shape_capture_pokemon::ser_capture_pokemon_http_error(&self) {
  513    528   
            Ok(mut response) => {
  514    529   
                response.extensions_mut().insert(
  515    530   
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
  516    531   
                );
  517    532   
                response
  518    533   
            }
  519    534   
            Err(e) => {
  520    535   
                ::tracing::error!(error = %e, "failed to serialize response");
  521    536   
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  522    537   
            }
  523    538   
        }
  524    539   
    }
  525    540   
}
  526    541   
         542  +
/* ServerHttpBoundProtocolGenerator.kt:266 */
  527    543   
const CONTENT_TYPE_DONOTHING: ::mime::Mime = ::mime::APPLICATION_JSON;
  528    544   
::pin_project_lite::pin_project! {
  529    545   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  530    546   
    /// [`DoNothingInput`](crate::input::DoNothingInput) using modelled bindings.
  531    547   
    pub struct DoNothingInputFuture {
  532    548   
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::DoNothingInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  533    549   
    }
  534    550   
}
  535    551   
  536    552   
impl std::future::Future for DoNothingInputFuture {
@@ -563,579 +658,677 @@
  583    599   
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  584    600   
                    e,
  585    601   
                )
  586    602   
            },
  587    603   
        );
  588    604   
        DoNothingInputFuture {
  589    605   
            inner: Box::pin(fut),
  590    606   
        }
  591    607   
    }
  592    608   
}
         609  +
/* ServerHttpBoundProtocolGenerator.kt:329 */
  593    610   
impl
  594    611   
    ::aws_smithy_http_server::response::IntoResponse<
  595    612   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  596    613   
    > for crate::output::DoNothingOutput
  597    614   
{
  598    615   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  599    616   
        match crate::protocol_serde::shape_do_nothing::ser_do_nothing_http_response(self) {
  600    617   
            Ok(response) => response,
  601    618   
            Err(e) => {
  602    619   
                ::tracing::error!(error = %e, "failed to serialize response");
  603    620   
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  604    621   
            }
  605    622   
        }
  606    623   
    }
  607    624   
}
         625  +
/* ServerHttpBoundProtocolGenerator.kt:350 */
  608    626   
impl
  609    627   
    ::aws_smithy_http_server::response::IntoResponse<
  610    628   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  611    629   
    > for crate::error::DoNothingError
  612    630   
{
  613    631   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  614    632   
        match crate::protocol_serde::shape_do_nothing::ser_do_nothing_http_error(&self) {
  615    633   
            Ok(mut response) => {
  616    634   
                response.extensions_mut().insert(
  617    635   
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
  618    636   
                );
  619    637   
                response
  620    638   
            }
  621    639   
            Err(e) => {
  622    640   
                ::tracing::error!(error = %e, "failed to serialize response");
  623    641   
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  624    642   
            }
  625    643   
        }
  626    644   
    }
  627    645   
}
  628    646   
         647  +
/* ServerHttpBoundProtocolGenerator.kt:266 */
  629    648   
const CONTENT_TYPE_GETSERVERSTATISTICS: ::mime::Mime = ::mime::APPLICATION_JSON;
  630    649   
::pin_project_lite::pin_project! {
  631    650   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  632    651   
    /// [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput) using modelled bindings.
  633    652   
    pub struct GetServerStatisticsInputFuture {
  634    653   
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::GetServerStatisticsInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  635    654   
    }
  636    655   
}
  637    656   
  638    657   
impl std::future::Future for GetServerStatisticsInputFuture {
@@ -665,684 +727,748 @@
  685    704   
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  686    705   
                    e,
  687    706   
                )
  688    707   
            },
  689    708   
        );
  690    709   
        GetServerStatisticsInputFuture {
  691    710   
            inner: Box::pin(fut),
  692    711   
        }
  693    712   
    }
  694    713   
}
         714  +
/* ServerHttpBoundProtocolGenerator.kt:329 */
  695    715   
impl
  696    716   
    ::aws_smithy_http_server::response::IntoResponse<
  697    717   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  698    718   
    > for crate::output::GetServerStatisticsOutput
  699    719   
{
  700    720   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  701    721   
        match crate::protocol_serde::shape_get_server_statistics::ser_get_server_statistics_http_response(self) {
  702    722   
                        Ok(response) => response,
  703    723   
                        Err(e) => {
  704    724   
                            ::tracing::error!(error = %e, "failed to serialize response");
  705    725   
                            ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  706    726   
                        }
  707    727   
                    }
  708    728   
    }
  709    729   
}
         730  +
/* ServerHttpBoundProtocolGenerator.kt:350 */
  710    731   
impl
  711    732   
    ::aws_smithy_http_server::response::IntoResponse<
  712    733   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  713    734   
    > for crate::error::GetServerStatisticsError
  714    735   
{
  715    736   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  716    737   
        match crate::protocol_serde::shape_get_server_statistics::ser_get_server_statistics_http_error(&self) {
  717    738   
            Ok(mut response) => {
  718    739   
                response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
  719    740   
                response

tmp-codegen-diff/codegen-server-test-python/pokemon-service-server-sdk/rust-server-codegen-python/src/operation_shape.rs

@@ -1,1 +0,303 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// Retrieve information about your Pokédex.
           2  +
/* ServerOperationGenerator.kt:48 */
           3  +
/// /* ServerOperationGenerator.kt:48 */Retrieve information about your Pokédex.
           4  +
/* ServerOperationGenerator.kt:55 */
    4      5   
pub struct GetStorage;
    5      6   
    6      7   
impl ::aws_smithy_http_server::operation::OperationShape for GetStorage {
    7      8   
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
    8      9   
        ::aws_smithy_http_server::shape_id::ShapeId::new(
    9     10   
            "com.aws.example#GetStorage",
   10     11   
            "com.aws.example",
   11     12   
            "GetStorage",
   12     13   
        );
   13     14   
   14     15   
    type Input = crate::input::GetStorageInput;
   15     16   
    type Output = crate::output::GetStorageOutput;
   16     17   
    type Error = crate::error::GetStorageError;
   17     18   
}
   18     19   
   19     20   
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for GetStorage {
   20     21   
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
   21     22   
        ::aws_smithy_http_server::instrumentation::sensitivity::headers::MakeHeaders<
   22     23   
            fn(
   23     24   
                &::http::header::HeaderName,
   24     25   
            )
   25     26   
                -> ::aws_smithy_http_server::instrumentation::sensitivity::headers::HeaderMarker,
   26     27   
        >,
   27     28   
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
   28     29   
            ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeLabel<
   29     30   
                fn(usize) -> bool,
   30     31   
            >,
   31     32   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
   32     33   
        >,
   33     34   
    >;
   34     35   
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
   35     36   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
   36     37   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
   37     38   
    >;
   38     39   
   39     40   
    fn request_fmt() -> Self::RequestFmt {
   40     41   
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
   41     42   
            .header({
   42     43   
                |name: &::http::header::HeaderName| {
   43     44   
                    let name_match = matches!(name.as_str(), "passcode");
   44     45   
                    let key_suffix = None;
   45     46   
                    let value = name_match;
   46     47   
                    ::aws_smithy_http_server::instrumentation::sensitivity::headers::HeaderMarker {
   47     48   
                        key_suffix,
   48     49   
                        value,
   49     50   
                    }
   50     51   
                }
   51     52   
            } as fn(&_) -> _)
   52     53   
            .label(
   53     54   
                { |index: usize| matches!(index, 1) } as fn(usize) -> bool,
   54     55   
                None,
   55     56   
            )
   56     57   
    }
   57     58   
   58     59   
    fn response_fmt() -> Self::ResponseFmt {
   59     60   
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
   60     61   
    }
   61     62   
}
          63  +
/* ServerOperationGenerator.kt:88 */
   62     64   
   63         -
/// Retrieve information about a Pokémon species.
          65  +
/// /* ServerOperationGenerator.kt:48 */Retrieve information about a Pokémon species.
          66  +
/* ServerOperationGenerator.kt:55 */
   64     67   
pub struct GetPokemonSpecies;
   65     68   
   66     69   
impl ::aws_smithy_http_server::operation::OperationShape for GetPokemonSpecies {
   67     70   
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
   68     71   
        ::aws_smithy_http_server::shape_id::ShapeId::new(
   69     72   
            "com.aws.example#GetPokemonSpecies",
   70     73   
            "com.aws.example",
   71     74   
            "GetPokemonSpecies",
   72     75   
        );
   73     76   
   74     77   
    type Input = crate::input::GetPokemonSpeciesInput;
   75     78   
    type Output = crate::output::GetPokemonSpeciesOutput;
   76     79   
    type Error = crate::error::GetPokemonSpeciesError;
   77     80   
}
   78     81   
   79     82   
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for GetPokemonSpecies {
   80     83   
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
   81     84   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
   82     85   
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
   83     86   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
   84     87   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
   85     88   
        >,
   86     89   
    >;
   87     90   
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
   88     91   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
   89     92   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
   90     93   
    >;
   91     94   
   92     95   
    fn request_fmt() -> Self::RequestFmt {
   93     96   
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
   94     97   
    }
   95     98   
   96     99   
    fn response_fmt() -> Self::ResponseFmt {
   97    100   
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
   98    101   
    }
   99    102   
}
         103  +
/* ServerOperationGenerator.kt:88 */
  100    104   
  101         -
/// Fetch a radio song from the database and stream it back as a playable audio.
         105  +
/// /* ServerOperationGenerator.kt:48 */Fetch a radio song from the database and stream it back as a playable audio.
         106  +
/* ServerOperationGenerator.kt:55 */
  102    107   
pub struct StreamPokemonRadio;
  103    108   
  104    109   
impl ::aws_smithy_http_server::operation::OperationShape for StreamPokemonRadio {
  105    110   
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  106    111   
        ::aws_smithy_http_server::shape_id::ShapeId::new(
  107    112   
            "com.aws.example#StreamPokemonRadio",
  108    113   
            "com.aws.example",
  109    114   
            "StreamPokemonRadio",
  110    115   
        );
  111    116   
  112    117   
    type Input = crate::input::StreamPokemonRadioInput;
  113    118   
    type Output = crate::output::StreamPokemonRadioOutput;
  114    119   
    type Error = crate::error::StreamPokemonRadioError;
  115    120   
}
  116    121   
  117    122   
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for StreamPokemonRadio {
  118    123   
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  119    124   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  120    125   
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  121    126   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  122    127   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  123    128   
        >,
  124    129   
    >;
  125    130   
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  126    131   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  127    132   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  128    133   
    >;
  129    134   
  130    135   
    fn request_fmt() -> Self::RequestFmt {
  131    136   
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
  132    137   
    }
  133    138   
  134    139   
    fn response_fmt() -> Self::ResponseFmt {
  135    140   
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  136    141   
    }
  137    142   
}
         143  +
/* ServerOperationGenerator.kt:88 */
  138    144   
  139         -
/// Health check operation, to check the service is up Not yet a deep check
         145  +
/// /* ServerOperationGenerator.kt:48 */Health check operation, to check the service is up Not yet a deep check
         146  +
/* ServerOperationGenerator.kt:55 */
  140    147   
pub struct CheckHealth;
  141    148   
  142    149   
impl ::aws_smithy_http_server::operation::OperationShape for CheckHealth {
  143    150   
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  144    151   
        ::aws_smithy_http_server::shape_id::ShapeId::new(
  145    152   
            "com.aws.example#CheckHealth",
  146    153   
            "com.aws.example",
  147    154   
            "CheckHealth",
  148    155   
        );
  149    156   
  150    157   
    type Input = crate::input::CheckHealthInput;
  151    158   
    type Output = crate::output::CheckHealthOutput;
  152    159   
    type Error = crate::error::CheckHealthError;
  153    160   
}
  154    161   
  155    162   
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for CheckHealth {
  156    163   
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  157    164   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  158    165   
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  159    166   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  160    167   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  161    168   
        >,
  162    169   
    >;
  163    170   
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  164    171   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  165    172   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  166    173   
    >;
  167    174   
  168    175   
    fn request_fmt() -> Self::RequestFmt {
  169    176   
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
  170    177   
    }
  171    178   
  172    179   
    fn response_fmt() -> Self::ResponseFmt {
  173    180   
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  174    181   
    }
  175    182   
}
         183  +
/* ServerOperationGenerator.kt:88 */
  176    184   
  177         -
/// Capture Pokémons via event streams.
         185  +
/// /* ServerOperationGenerator.kt:48 */Capture Pokémons via event streams.
         186  +
/* ServerOperationGenerator.kt:55 */
  178    187   
pub struct CapturePokemon;
  179    188   
  180    189   
impl ::aws_smithy_http_server::operation::OperationShape for CapturePokemon {
  181    190   
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  182    191   
        ::aws_smithy_http_server::shape_id::ShapeId::new(
  183    192   
            "com.aws.example#CapturePokemon",
  184    193   
            "com.aws.example",
  185    194   
            "CapturePokemon",
  186    195   
        );
  187    196   
  188    197   
    type Input = crate::input::CapturePokemonInput;
  189    198   
    type Output = crate::output::CapturePokemonOutput;
  190    199   
    type Error = crate::error::CapturePokemonError;
  191    200   
}
  192    201   
  193    202   
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for CapturePokemon {
  194    203   
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  195    204   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  196    205   
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  197    206   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  198    207   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  199    208   
        >,
  200    209   
    >;
  201    210   
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  202    211   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  203    212   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  204    213   
    >;
  205    214   
  206    215   
    fn request_fmt() -> Self::RequestFmt {
  207    216   
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
  208    217   
    }
  209    218   
  210    219   
    fn response_fmt() -> Self::ResponseFmt {
  211    220   
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  212    221   
    }
  213    222   
}
         223  +
/* ServerOperationGenerator.kt:88 */
  214    224   
  215         -
/// DoNothing operation, used to stress test the framework.
         225  +
/// /* ServerOperationGenerator.kt:48 */DoNothing operation, used to stress test the framework.
         226  +
/* ServerOperationGenerator.kt:55 */
  216    227   
pub struct DoNothing;
  217    228   
  218    229   
impl ::aws_smithy_http_server::operation::OperationShape for DoNothing {
  219    230   
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  220    231   
        ::aws_smithy_http_server::shape_id::ShapeId::new(
  221    232   
            "com.aws.example#DoNothing",
  222    233   
            "com.aws.example",
  223    234   
            "DoNothing",
  224    235   
        );
  225    236   
  226    237   
    type Input = crate::input::DoNothingInput;
  227    238   
    type Output = crate::output::DoNothingOutput;
  228    239   
    type Error = crate::error::DoNothingError;
  229    240   
}
  230    241   
  231    242   
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for DoNothing {
  232    243   
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  233    244   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  234    245   
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  235    246   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  236    247   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  237    248   
        >,
  238    249   
    >;
  239    250   
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  240    251   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  241    252   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  242    253   
    >;
  243    254   
  244    255   
    fn request_fmt() -> Self::RequestFmt {
  245    256   
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
  246    257   
    }
  247    258   
  248    259   
    fn response_fmt() -> Self::ResponseFmt {
  249    260   
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  250    261   
    }
  251    262   
}
         263  +
/* ServerOperationGenerator.kt:88 */
  252    264   
  253         -
/// Retrieve HTTP server statistiscs, such as calls count.
         265  +
/// /* ServerOperationGenerator.kt:48 */Retrieve HTTP server statistiscs, such as calls count.
         266  +
/* ServerOperationGenerator.kt:55 */
  254    267   
pub struct GetServerStatistics;
  255    268   
  256    269   
impl ::aws_smithy_http_server::operation::OperationShape for GetServerStatistics {
  257    270   
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  258    271   
        ::aws_smithy_http_server::shape_id::ShapeId::new(
  259    272   
            "com.aws.example#GetServerStatistics",
  260    273   
            "com.aws.example",
  261    274   
            "GetServerStatistics",
  262    275   
        );
  263    276   
  264    277   
    type Input = crate::input::GetServerStatisticsInput;
  265    278   
    type Output = crate::output::GetServerStatisticsOutput;
  266    279   
    type Error = crate::error::GetServerStatisticsError;
  267    280   
}
  268    281   
  269    282   
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for GetServerStatistics {
  270    283   
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  271    284   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  272    285   
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  273    286   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  274    287   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  275    288   
        >,
  276    289   
    >;
  277    290   
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  278    291   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  279    292   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  280    293   
    >;
  281    294   
  282    295   
    fn request_fmt() -> Self::RequestFmt {
  283    296   
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
  284    297   
    }
  285    298   
  286    299   
    fn response_fmt() -> Self::ResponseFmt {
  287    300   
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  288    301   
    }
  289    302   
}
         303  +
/* ServerOperationGenerator.kt:88 */

tmp-codegen-diff/codegen-server-test-python/pokemon-service-server-sdk/rust-server-codegen-python/src/output.rs

@@ -1,1 +671,1023 @@
    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 collection typing.List\[str\]:
    4      6   
/// :rtype None:
    5         -
/// Contents of the Pokémon storage.
           7  +
/// /* StructureGenerator.kt:197 */Contents of the Pokémon storage.
           8  +
/* RustType.kt:516 */
    6      9   
#[derive(
    7     10   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
    8     11   
)]
    9         -
pub struct GetStorageOutput {
          12  +
pub /* StructureGenerator.kt:201 */ struct GetStorageOutput {
          13  +
    /* RustType.kt:516 */
   10     14   
    #[pyo3(get, set)]
          15  +
    /* PythonServerStructureGenerator.kt:80 */
   11     16   
    /// :type typing.List\[str\]:
   12         -
    /// A list of Pokémon species.
          17  +
    /// /* StructureGenerator.kt:231 */A list of Pokémon species.
   13     18   
    pub collection: ::std::vec::Vec<::std::string::String>,
          19  +
    /* StructureGenerator.kt:201 */
   14     20   
}
          21  +
/* StructureGenerator.kt:135 */
   15     22   
impl GetStorageOutput {
   16         -
    /// A list of Pokémon species.
          23  +
    /// /* StructureGenerator.kt:231 */A list of Pokémon species.
          24  +
    /* StructureGenerator.kt:166 */
   17     25   
    pub fn collection(&self) -> &[::std::string::String] {
          26  +
        /* StructureGenerator.kt:171 */
   18     27   
        use std::ops::Deref;
   19     28   
        self.collection.deref()
          29  +
        /* StructureGenerator.kt:166 */
   20     30   
    }
          31  +
    /* StructureGenerator.kt:135 */
   21     32   
}
          33  +
/* RustType.kt:516 */
   22     34   
#[allow(clippy::new_without_default)]
          35  +
/* RustType.kt:516 */
   23     36   
#[allow(clippy::too_many_arguments)]
          37  +
/* RustType.kt:516 */
   24     38   
#[::pyo3::pymethods]
          39  +
/* PythonServerStructureGenerator.kt:88 */
   25     40   
impl GetStorageOutput {
   26     41   
    #[new]
   27     42   
    pub fn new(collection: ::std::vec::Vec<::std::string::String>) -> Self {
   28     43   
        Self { collection }
   29     44   
    }
   30     45   
    fn __repr__(&self) -> String {
   31     46   
        format!("{self:?}")
   32     47   
    }
   33     48   
    fn __str__(&self) -> String {
   34     49   
        format!("{self:?}")
   35     50   
    }
   36     51   
}
          52  +
/* PythonServerStructureGenerator.kt:111 */
   37     53   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<GetStorageOutput> {
   38     54   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
   39     55   
        ob.extract::<GetStorageOutput>().map(Box::new)
   40     56   
    }
   41     57   
}
   42     58   
   43     59   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<GetStorageOutput> {
   44     60   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
   45     61   
        (*self).into_py(py)
   46     62   
    }
   47     63   
}
          64  +
/* ServerCodegenVisitor.kt:370 */
   48     65   
impl GetStorageOutput {
   49         -
    /// Creates a new builder-style object to manufacture [`GetStorageOutput`](crate::output::GetStorageOutput).
          66  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`GetStorageOutput`](crate::output::GetStorageOutput).
          67  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
   50     68   
    pub fn builder() -> crate::output::get_storage_output::Builder {
          69  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
   51     70   
        crate::output::get_storage_output::Builder::default()
          71  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
   52     72   
    }
          73  +
    /* ServerCodegenVisitor.kt:370 */
   53     74   
}
   54     75   
          76  +
/* RustType.kt:516 */
   55     77   
#[::pyo3::pyclass]
          78  +
/* PythonServerStructureGenerator.kt:63 */
   56     79   
/// :param name str:
   57     80   
/// :param flavor_text_entries typing.List\[pokemon_service_server_sdk.model.FlavorText\]:
   58     81   
/// :rtype None:
          82  +
/* StructureGenerator.kt:197 */
   59     83   
#[allow(missing_docs)] // documentation missing in model
          84  +
/* RustType.kt:516 */
   60     85   
#[derive(
   61     86   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   62     87   
)]
   63         -
pub struct GetPokemonSpeciesOutput {
          88  +
pub /* StructureGenerator.kt:201 */ struct GetPokemonSpeciesOutput {
          89  +
    /* RustType.kt:516 */
   64     90   
    #[pyo3(get, set)]
          91  +
    /* PythonServerStructureGenerator.kt:80 */
   65     92   
    /// :type str:
   66         -
    /// The name for this resource.
          93  +
    /// /* StructureGenerator.kt:231 */The name for this resource.
   67     94   
    pub name: ::std::string::String,
          95  +
    /* RustType.kt:516 */
   68     96   
    #[pyo3(get, set)]
          97  +
    /* PythonServerStructureGenerator.kt:80 */
   69     98   
    /// :type typing.List\[pokemon_service_server_sdk.model.FlavorText\]:
   70         -
    /// A list of flavor text entries for this Pokémon species.
          99  +
    /// /* StructureGenerator.kt:231 */A list of flavor text entries for this Pokémon species.
   71    100   
    pub flavor_text_entries: ::std::vec::Vec<crate::model::FlavorText>,
         101  +
    /* StructureGenerator.kt:201 */
   72    102   
}
         103  +
/* StructureGenerator.kt:135 */
   73    104   
impl GetPokemonSpeciesOutput {
   74         -
    /// The name for this resource.
         105  +
    /// /* StructureGenerator.kt:231 */The name for this resource.
         106  +
    /* StructureGenerator.kt:166 */
   75    107   
    pub fn name(&self) -> &str {
         108  +
        /* StructureGenerator.kt:171 */
   76    109   
        use std::ops::Deref;
   77    110   
        self.name.deref()
         111  +
        /* StructureGenerator.kt:166 */
   78    112   
    }
   79         -
    /// A list of flavor text entries for this Pokémon species.
         113  +
    /// /* StructureGenerator.kt:231 */A list of flavor text entries for this Pokémon species.
         114  +
    /* StructureGenerator.kt:166 */
   80    115   
    pub fn flavor_text_entries(&self) -> &[crate::model::FlavorText] {
         116  +
        /* StructureGenerator.kt:171 */
   81    117   
        use std::ops::Deref;
   82    118   
        self.flavor_text_entries.deref()
         119  +
        /* StructureGenerator.kt:166 */
   83    120   
    }
         121  +
    /* StructureGenerator.kt:135 */
   84    122   
}
         123  +
/* RustType.kt:516 */
   85    124   
#[allow(clippy::new_without_default)]
         125  +
/* RustType.kt:516 */
   86    126   
#[allow(clippy::too_many_arguments)]
         127  +
/* RustType.kt:516 */
   87    128   
#[::pyo3::pymethods]
         129  +
/* PythonServerStructureGenerator.kt:88 */
   88    130   
impl GetPokemonSpeciesOutput {
   89    131   
    #[new]
   90    132   
    pub fn new(
   91    133   
        name: ::std::string::String,
   92    134   
        flavor_text_entries: ::std::vec::Vec<crate::model::FlavorText>,
   93    135   
    ) -> Self {
   94    136   
        Self {
   95    137   
            name,
   96    138   
            flavor_text_entries,
   97    139   
        }
   98    140   
    }
   99    141   
    fn __repr__(&self) -> String {
  100    142   
        format!("{self:?}")
  101    143   
    }
  102    144   
    fn __str__(&self) -> String {
  103    145   
        format!("{self:?}")
  104    146   
    }
  105    147   
}
         148  +
/* PythonServerStructureGenerator.kt:111 */
  106    149   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<GetPokemonSpeciesOutput> {
  107    150   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  108    151   
        ob.extract::<GetPokemonSpeciesOutput>().map(Box::new)
  109    152   
    }
  110    153   
}
  111    154   
  112    155   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<GetPokemonSpeciesOutput> {
  113    156   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  114    157   
        (*self).into_py(py)
  115    158   
    }
  116    159   
}
         160  +
/* ServerCodegenVisitor.kt:370 */
  117    161   
impl GetPokemonSpeciesOutput {
  118         -
    /// Creates a new builder-style object to manufacture [`GetPokemonSpeciesOutput`](crate::output::GetPokemonSpeciesOutput).
         162  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`GetPokemonSpeciesOutput`](crate::output::GetPokemonSpeciesOutput).
         163  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  119    164   
    pub fn builder() -> crate::output::get_pokemon_species_output::Builder {
         165  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  120    166   
        crate::output::get_pokemon_species_output::Builder::default()
         167  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  121    168   
    }
         169  +
    /* ServerCodegenVisitor.kt:370 */
  122    170   
}
  123    171   
         172  +
/* RustType.kt:516 */
  124    173   
#[::pyo3::pyclass]
         174  +
/* PythonServerStructureGenerator.kt:63 */
  125    175   
/// :param data pokemon_service_server_sdk.types.ByteStream:
  126    176   
/// :rtype None:
         177  +
/* StructureGenerator.kt:197 */
  127    178   
#[allow(missing_docs)] // documentation missing in model
         179  +
/* RustType.kt:516 */
  128    180   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
  129         -
pub struct StreamPokemonRadioOutput {
         181  +
pub /* StructureGenerator.kt:201 */ struct StreamPokemonRadioOutput {
         182  +
    /* RustType.kt:516 */
  130    183   
    #[pyo3(get, set)]
         184  +
    /* PythonServerStructureGenerator.kt:80 */
  131    185   
    /// :type pokemon_service_server_sdk.types.ByteStream:
         186  +
    /* StructureGenerator.kt:231 */
  132    187   
    #[allow(missing_docs)] // documentation missing in model
  133    188   
    pub data: ::aws_smithy_http_server_python::types::ByteStream,
         189  +
    /* StructureGenerator.kt:201 */
  134    190   
}
         191  +
/* StructureGenerator.kt:135 */
  135    192   
impl StreamPokemonRadioOutput {
         193  +
    /* StructureGenerator.kt:231 */
  136    194   
    #[allow(missing_docs)] // documentation missing in model
         195  +
                           /* StructureGenerator.kt:166 */
  137    196   
    pub fn data(&self) -> &::aws_smithy_http_server_python::types::ByteStream {
         197  +
        /* StructureGenerator.kt:172 */
  138    198   
        &self.data
         199  +
        /* StructureGenerator.kt:166 */
  139    200   
    }
         201  +
    /* StructureGenerator.kt:135 */
  140    202   
}
         203  +
/* RustType.kt:516 */
  141    204   
#[allow(clippy::new_without_default)]
         205  +
/* RustType.kt:516 */
  142    206   
#[allow(clippy::too_many_arguments)]
         207  +
/* RustType.kt:516 */
  143    208   
#[::pyo3::pymethods]
         209  +
/* PythonServerStructureGenerator.kt:88 */
  144    210   
impl StreamPokemonRadioOutput {
  145    211   
    #[new]
  146    212   
    pub fn new(data: ::aws_smithy_http_server_python::types::ByteStream) -> Self {
  147    213   
        Self { data }
  148    214   
    }
  149    215   
    fn __repr__(&self) -> String {
  150    216   
        format!("{self:?}")
  151    217   
    }
  152    218   
    fn __str__(&self) -> String {
  153    219   
        format!("{self:?}")
  154    220   
    }
  155    221   
}
         222  +
/* PythonServerStructureGenerator.kt:111 */
  156    223   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<StreamPokemonRadioOutput> {
  157    224   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  158    225   
        ob.extract::<StreamPokemonRadioOutput>().map(Box::new)
  159    226   
    }
  160    227   
}
  161    228   
  162    229   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<StreamPokemonRadioOutput> {
  163    230   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  164    231   
        (*self).into_py(py)
  165    232   
    }
  166    233   
}
         234  +
/* ServerCodegenVisitor.kt:370 */
  167    235   
impl StreamPokemonRadioOutput {
  168         -
    /// Creates a new builder-style object to manufacture [`StreamPokemonRadioOutput`](crate::output::StreamPokemonRadioOutput).
         236  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`StreamPokemonRadioOutput`](crate::output::StreamPokemonRadioOutput).
         237  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  169    238   
    pub fn builder() -> crate::output::stream_pokemon_radio_output::Builder {
         239  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  170    240   
        crate::output::stream_pokemon_radio_output::Builder::default()
         241  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  171    242   
    }
         243  +
    /* ServerCodegenVisitor.kt:370 */
  172    244   
}
  173    245   
         246  +
/* RustType.kt:516 */
  174    247   
#[::pyo3::pyclass]
         248  +
/* PythonServerStructureGenerator.kt:63 */
  175    249   
/// :rtype None:
         250  +
/* StructureGenerator.kt:197 */
  176    251   
#[allow(missing_docs)] // documentation missing in model
         252  +
/* RustType.kt:516 */
  177    253   
#[derive(
  178    254   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  179    255   
)]
  180         -
pub struct CheckHealthOutput {}
         256  +
pub /* StructureGenerator.kt:201 */ struct CheckHealthOutput {/* StructureGenerator.kt:201 */}
         257  +
/* RustType.kt:516 */
  181    258   
#[allow(clippy::new_without_default)]
         259  +
/* RustType.kt:516 */
  182    260   
#[allow(clippy::too_many_arguments)]
         261  +
/* RustType.kt:516 */
  183    262   
#[::pyo3::pymethods]
         263  +
/* PythonServerStructureGenerator.kt:88 */
  184    264   
impl CheckHealthOutput {
  185    265   
    #[new]
  186    266   
    pub fn new() -> Self {
  187    267   
        Self {}
  188    268   
    }
  189    269   
    fn __repr__(&self) -> String {
  190    270   
        format!("{self:?}")
  191    271   
    }
  192    272   
    fn __str__(&self) -> String {
  193    273   
        format!("{self:?}")
  194    274   
    }
  195    275   
}
         276  +
/* PythonServerStructureGenerator.kt:111 */
  196    277   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<CheckHealthOutput> {
  197    278   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  198    279   
        ob.extract::<CheckHealthOutput>().map(Box::new)
  199    280   
    }
  200    281   
}
  201    282   
  202    283   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<CheckHealthOutput> {
  203    284   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  204    285   
        (*self).into_py(py)
  205    286   
    }
  206    287   
}
         288  +
/* ServerCodegenVisitor.kt:370 */
  207    289   
impl CheckHealthOutput {
  208         -
    /// Creates a new builder-style object to manufacture [`CheckHealthOutput`](crate::output::CheckHealthOutput).
         290  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`CheckHealthOutput`](crate::output::CheckHealthOutput).
         291  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  209    292   
    pub fn builder() -> crate::output::check_health_output::Builder {
         293  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  210    294   
        crate::output::check_health_output::Builder::default()
         295  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  211    296   
    }
         297  +
    /* ServerCodegenVisitor.kt:370 */
  212    298   
}
  213    299   
         300  +
/* RustType.kt:516 */
  214    301   
#[::pyo3::pyclass]
         302  +
/* PythonServerStructureGenerator.kt:63 */
  215    303   
/// :param events typing.AsyncIterator\[pokemon_service_server_sdk.model.CapturePokemonEvents\]:
  216    304   
/// :rtype None:
         305  +
/* StructureGenerator.kt:197 */
  217    306   
#[allow(missing_docs)] // documentation missing in model
         307  +
/* RustType.kt:516 */
  218    308   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
  219         -
pub struct CapturePokemonOutput {
         309  +
pub /* StructureGenerator.kt:201 */ struct CapturePokemonOutput {
         310  +
    /* RustType.kt:516 */
  220    311   
    #[pyo3(get, set)]
         312  +
    /* PythonServerStructureGenerator.kt:80 */
  221    313   
    /// :type typing.AsyncIterator\[pokemon_service_server_sdk.model.CapturePokemonEvents\]:
         314  +
    /* StructureGenerator.kt:231 */
  222    315   
    #[allow(missing_docs)] // documentation missing in model
  223    316   
    pub events: crate::python_event_stream::CapturePokemonOutputEventsEventStreamSender,
         317  +
    /* StructureGenerator.kt:201 */
  224    318   
}
         319  +
/* StructureGenerator.kt:135 */
  225    320   
impl CapturePokemonOutput {
         321  +
    /* StructureGenerator.kt:231 */
  226    322   
    #[allow(missing_docs)] // documentation missing in model
         323  +
                           /* StructureGenerator.kt:166 */
  227    324   
    pub fn events(
  228    325   
        &self,
  229    326   
    ) -> &crate::python_event_stream::CapturePokemonOutputEventsEventStreamSender {
         327  +
        /* StructureGenerator.kt:172 */
  230    328   
        &self.events
         329  +
        /* StructureGenerator.kt:166 */
  231    330   
    }
         331  +
    /* StructureGenerator.kt:135 */
  232    332   
}
         333  +
/* RustType.kt:516 */
  233    334   
#[allow(clippy::new_without_default)]
         335  +
/* RustType.kt:516 */
  234    336   
#[allow(clippy::too_many_arguments)]
         337  +
/* RustType.kt:516 */
  235    338   
#[::pyo3::pymethods]
         339  +
/* PythonServerStructureGenerator.kt:88 */
  236    340   
impl CapturePokemonOutput {
  237    341   
    #[new]
  238    342   
    pub fn new(
  239    343   
        events: crate::python_event_stream::CapturePokemonOutputEventsEventStreamSender,
  240    344   
    ) -> Self {
  241    345   
        Self { events }
  242    346   
    }
  243    347   
    fn __repr__(&self) -> String {
  244    348   
        format!("{self:?}")
  245    349   
    }
  246    350   
    fn __str__(&self) -> String {
  247    351   
        format!("{self:?}")
  248    352   
    }
  249    353   
}
         354  +
/* PythonServerStructureGenerator.kt:111 */
  250    355   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<CapturePokemonOutput> {
  251    356   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  252    357   
        ob.extract::<CapturePokemonOutput>().map(Box::new)
  253    358   
    }
  254    359   
}
  255    360   
  256    361   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<CapturePokemonOutput> {
  257    362   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  258    363   
        (*self).into_py(py)
  259    364   
    }
  260    365   
}
         366  +
/* ServerCodegenVisitor.kt:370 */
  261    367   
impl CapturePokemonOutput {
  262         -
    /// Creates a new builder-style object to manufacture [`CapturePokemonOutput`](crate::output::CapturePokemonOutput).
         368  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`CapturePokemonOutput`](crate::output::CapturePokemonOutput).
         369  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  263    370   
    pub fn builder() -> crate::output::capture_pokemon_output::Builder {
         371  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  264    372   
        crate::output::capture_pokemon_output::Builder::default()
         373  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  265    374   
    }
         375  +
    /* ServerCodegenVisitor.kt:370 */
  266    376   
}
  267    377   
         378  +
/* RustType.kt:516 */
  268    379   
#[::pyo3::pyclass]
         380  +
/* PythonServerStructureGenerator.kt:63 */
  269    381   
/// :rtype None:
         382  +
/* StructureGenerator.kt:197 */
  270    383   
#[allow(missing_docs)] // documentation missing in model
         384  +
/* RustType.kt:516 */
  271    385   
#[derive(
  272    386   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  273    387   
)]
  274         -
pub struct DoNothingOutput {}
         388  +
pub /* StructureGenerator.kt:201 */ struct DoNothingOutput {/* StructureGenerator.kt:201 */}
         389  +
/* RustType.kt:516 */
  275    390   
#[allow(clippy::new_without_default)]
         391  +
/* RustType.kt:516 */
  276    392   
#[allow(clippy::too_many_arguments)]
         393  +
/* RustType.kt:516 */
  277    394   
#[::pyo3::pymethods]
         395  +
/* PythonServerStructureGenerator.kt:88 */
  278    396   
impl DoNothingOutput {
  279    397   
    #[new]
  280    398   
    pub fn new() -> Self {
  281    399   
        Self {}
  282    400   
    }
  283    401   
    fn __repr__(&self) -> String {
  284    402   
        format!("{self:?}")
  285    403   
    }
  286    404   
    fn __str__(&self) -> String {
  287    405   
        format!("{self:?}")
  288    406   
    }
  289    407   
}
         408  +
/* PythonServerStructureGenerator.kt:111 */
  290    409   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<DoNothingOutput> {
  291    410   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  292    411   
        ob.extract::<DoNothingOutput>().map(Box::new)
  293    412   
    }
  294    413   
}
  295    414   
  296    415   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<DoNothingOutput> {
  297    416   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  298    417   
        (*self).into_py(py)
  299    418   
    }
  300    419   
}
         420  +
/* ServerCodegenVisitor.kt:370 */
  301    421   
impl DoNothingOutput {
  302         -
    /// Creates a new builder-style object to manufacture [`DoNothingOutput`](crate::output::DoNothingOutput).
         422  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`DoNothingOutput`](crate::output::DoNothingOutput).
         423  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  303    424   
    pub fn builder() -> crate::output::do_nothing_output::Builder {
         425  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  304    426   
        crate::output::do_nothing_output::Builder::default()
         427  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  305    428   
    }
         429  +
    /* ServerCodegenVisitor.kt:370 */
  306    430   
}
  307    431   
         432  +
/* RustType.kt:516 */
  308    433   
#[::pyo3::pyclass]
         434  +
/* PythonServerStructureGenerator.kt:63 */
  309    435   
/// :param calls_count int:
  310    436   
/// :rtype None:
         437  +
/* StructureGenerator.kt:197 */
  311    438   
#[allow(missing_docs)] // documentation missing in model
         439  +
/* RustType.kt:516 */
  312    440   
#[derive(
  313    441   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  314    442   
)]
  315         -
pub struct GetServerStatisticsOutput {
         443  +
pub /* StructureGenerator.kt:201 */ struct GetServerStatisticsOutput {
         444  +
    /* RustType.kt:516 */
  316    445   
    #[pyo3(get, set)]
         446  +
    /* PythonServerStructureGenerator.kt:80 */
  317    447   
    /// :type int:
  318         -
    /// The number of calls executed by the server.
         448  +
    /// /* StructureGenerator.kt:231 */The number of calls executed by the server.
  319    449   
    pub calls_count: i64,
         450  +
    /* StructureGenerator.kt:201 */
  320    451   
}
         452  +
/* StructureGenerator.kt:135 */
  321    453   
impl GetServerStatisticsOutput {
  322         -
    /// The number of calls executed by the server.
         454  +
    /// /* StructureGenerator.kt:231 */The number of calls executed by the server.
         455  +
    /* StructureGenerator.kt:166 */
  323    456   
    pub fn calls_count(&self) -> i64 {
         457  +
        /* StructureGenerator.kt:168 */
  324    458   
        self.calls_count
         459  +
        /* StructureGenerator.kt:166 */
  325    460   
    }
         461  +
    /* StructureGenerator.kt:135 */
  326    462   
}
         463  +
/* RustType.kt:516 */
  327    464   
#[allow(clippy::new_without_default)]
         465  +
/* RustType.kt:516 */
  328    466   
#[allow(clippy::too_many_arguments)]
         467  +
/* RustType.kt:516 */
  329    468   
#[::pyo3::pymethods]
         469  +
/* PythonServerStructureGenerator.kt:88 */
  330    470   
impl GetServerStatisticsOutput {
  331    471   
    #[new]
  332    472   
    pub fn new(calls_count: i64) -> Self {
  333    473   
        Self { calls_count }
  334    474   
    }
  335    475   
    fn __repr__(&self) -> String {
  336    476   
        format!("{self:?}")
  337    477   
    }
  338    478   
    fn __str__(&self) -> String {
  339    479   
        format!("{self:?}")
  340    480   
    }
  341    481   
}
         482  +
/* PythonServerStructureGenerator.kt:111 */
  342    483   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<GetServerStatisticsOutput> {
  343    484   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  344    485   
        ob.extract::<GetServerStatisticsOutput>().map(Box::new)
  345    486   
    }
  346    487   
}
  347    488   
  348    489   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<GetServerStatisticsOutput> {
  349    490   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  350    491   
        (*self).into_py(py)
  351    492   
    }
  352    493   
}
         494  +
/* ServerCodegenVisitor.kt:370 */
  353    495   
impl GetServerStatisticsOutput {
  354         -
    /// Creates a new builder-style object to manufacture [`GetServerStatisticsOutput`](crate::output::GetServerStatisticsOutput).
         496  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`GetServerStatisticsOutput`](crate::output::GetServerStatisticsOutput).
         497  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  355    498   
    pub fn builder() -> crate::output::get_server_statistics_output::Builder {
         499  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  356    500   
        crate::output::get_server_statistics_output::Builder::default()
         501  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  357    502   
    }
         503  +
    /* ServerCodegenVisitor.kt:370 */
  358    504   
}
  359         -
/// See [`GetStorageOutput`](crate::output::GetStorageOutput).
         505  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`GetStorageOutput`](crate::output::GetStorageOutput).
  360    506   
pub mod get_storage_output {
  361    507   
         508  +
    /* RustType.kt:516 */
  362    509   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  363         -
    /// Holds one variant for each of the ways the builder can fail.
  364         -
         510  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
         511  +
    /* ServerBuilderConstraintViolations.kt:75 */
  365    512   
    #[allow(clippy::enum_variant_names)]
  366    513   
    pub enum ConstraintViolation {
  367         -
        /// `collection` was not provided but it is required when building `GetStorageOutput`.
         514  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`collection` was not provided but it is required when building `GetStorageOutput`.
         515  +
        /* ServerBuilderConstraintViolations.kt:143 */
  368    516   
        MissingCollection,
         517  +
        /* ServerBuilderConstraintViolations.kt:75 */
  369    518   
    }
         519  +
    /* ServerBuilderConstraintViolations.kt:117 */
  370    520   
    impl ::std::fmt::Display for ConstraintViolation {
         521  +
        /* ServerBuilderConstraintViolations.kt:118 */
  371    522   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         523  +
            /* ServerBuilderConstraintViolations.kt:119 */
  372    524   
            match self {
  373         -
                ConstraintViolation::MissingCollection => write!(f, "`collection` was not provided but it is required when building `GetStorageOutput`"),
  374         -
            }
         525  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingCollection => write!(f, "`collection` was not provided but it is required when building `GetStorageOutput`"),
         526  +
            /* ServerBuilderConstraintViolations.kt:119 */}
         527  +
            /* ServerBuilderConstraintViolations.kt:118 */
  375    528   
        }
         529  +
        /* ServerBuilderConstraintViolations.kt:117 */
  376    530   
    }
         531  +
    /* ServerBuilderConstraintViolations.kt:84 */
  377    532   
    impl ::std::error::Error for ConstraintViolation {}
         533  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
  378    534   
    impl ::std::convert::TryFrom<Builder> for crate::output::GetStorageOutput {
  379    535   
        type Error = ConstraintViolation;
  380    536   
  381    537   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  382    538   
            builder.build()
  383    539   
        }
  384    540   
    }
  385         -
    /// A builder for [`GetStorageOutput`](crate::output::GetStorageOutput).
         541  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`GetStorageOutput`](crate::output::GetStorageOutput).
         542  +
    /* RustType.kt:516 */
  386    543   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         544  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  387    545   
    pub struct Builder {
         546  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  388    547   
        pub(crate) collection: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
         548  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  389    549   
    }
         550  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  390    551   
    impl Builder {
  391         -
        /// A list of Pokémon species.
         552  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A list of Pokémon species.
         553  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  392    554   
        pub fn collection(mut self, input: ::std::vec::Vec<::std::string::String>) -> Self {
  393         -
            self.collection = Some(input);
         555  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         556  +
            self.collection =
         557  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
         558  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         559  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
         560  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  394    561   
            self
         562  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  395    563   
        }
  396         -
        /// Consumes the builder and constructs a [`GetStorageOutput`](crate::output::GetStorageOutput).
  397         -
        ///
         564  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`GetStorageOutput`](crate::output::GetStorageOutput).
         565  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
  398    566   
        /// The builder fails to construct a [`GetStorageOutput`](crate::output::GetStorageOutput) if you do not provide a value for all non-`Option`al members.
  399    567   
        ///
         568  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  400    569   
        pub fn build(self) -> Result<crate::output::GetStorageOutput, ConstraintViolation> {
  401    570   
            self.build_enforcing_required_and_enum_traits()
  402    571   
        }
         572  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  403    573   
        fn build_enforcing_required_and_enum_traits(
  404    574   
            self,
  405    575   
        ) -> Result<crate::output::GetStorageOutput, ConstraintViolation> {
  406         -
            Ok(crate::output::GetStorageOutput {
         576  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         577  +
            Ok(
         578  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         579  +
                crate::output::GetStorageOutput {
         580  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
  407    581   
                    collection: self
  408    582   
                        .collection
         583  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
  409    584   
                        .ok_or(ConstraintViolation::MissingCollection)?,
  410         -
            })
         585  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         586  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         587  +
            )
         588  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  411    589   
        }
         590  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  412    591   
    }
         592  +
         593  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  413    594   
}
  414         -
/// See [`GetPokemonSpeciesOutput`](crate::output::GetPokemonSpeciesOutput).
         595  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`GetPokemonSpeciesOutput`](crate::output::GetPokemonSpeciesOutput).
  415    596   
pub mod get_pokemon_species_output {
  416    597   
         598  +
    /* RustType.kt:516 */
  417    599   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  418         -
    /// Holds one variant for each of the ways the builder can fail.
  419         -
         600  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
         601  +
    /* ServerBuilderConstraintViolations.kt:75 */
  420    602   
    #[allow(clippy::enum_variant_names)]
  421    603   
    pub enum ConstraintViolation {
  422         -
        /// `name` was not provided but it is required when building `GetPokemonSpeciesOutput`.
         604  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`name` was not provided but it is required when building `GetPokemonSpeciesOutput`.
         605  +
        /* ServerBuilderConstraintViolations.kt:143 */
  423    606   
        MissingName,
  424         -
        /// `flavor_text_entries` was not provided but it is required when building `GetPokemonSpeciesOutput`.
         607  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`flavor_text_entries` was not provided but it is required when building `GetPokemonSpeciesOutput`.
         608  +
        /* ServerBuilderConstraintViolations.kt:143 */
  425    609   
        MissingFlavorTextEntries,
         610  +
        /* ServerBuilderConstraintViolations.kt:75 */
  426    611   
    }
         612  +
    /* ServerBuilderConstraintViolations.kt:117 */
  427    613   
    impl ::std::fmt::Display for ConstraintViolation {
         614  +
        /* ServerBuilderConstraintViolations.kt:118 */
  428    615   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         616  +
            /* ServerBuilderConstraintViolations.kt:119 */
  429    617   
            match self {
  430         -
                ConstraintViolation::MissingName => write!(f, "`name` was not provided but it is required when building `GetPokemonSpeciesOutput`"),
  431         -
                ConstraintViolation::MissingFlavorTextEntries => write!(f, "`flavor_text_entries` was not provided but it is required when building `GetPokemonSpeciesOutput`"),
  432         -
            }
         618  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingName => write!(f, "`name` was not provided but it is required when building `GetPokemonSpeciesOutput`"),
         619  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingFlavorTextEntries => write!(f, "`flavor_text_entries` was not provided but it is required when building `GetPokemonSpeciesOutput`"),
         620  +
            /* ServerBuilderConstraintViolations.kt:119 */}
         621  +
            /* ServerBuilderConstraintViolations.kt:118 */
  433    622   
        }
         623  +
        /* ServerBuilderConstraintViolations.kt:117 */
  434    624   
    }
         625  +
    /* ServerBuilderConstraintViolations.kt:84 */
  435    626   
    impl ::std::error::Error for ConstraintViolation {}
         627  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
  436    628   
    impl ::std::convert::TryFrom<Builder> for crate::output::GetPokemonSpeciesOutput {
  437    629   
        type Error = ConstraintViolation;
  438    630   
  439    631   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  440    632   
            builder.build()
  441    633   
        }
  442    634   
    }
  443         -
    /// A builder for [`GetPokemonSpeciesOutput`](crate::output::GetPokemonSpeciesOutput).
         635  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`GetPokemonSpeciesOutput`](crate::output::GetPokemonSpeciesOutput).
         636  +
    /* RustType.kt:516 */
  444    637   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         638  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  445    639   
    pub struct Builder {
         640  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  446    641   
        pub(crate) name: ::std::option::Option<::std::string::String>,
         642  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  447    643   
        pub(crate) flavor_text_entries:
  448    644   
            ::std::option::Option<::std::vec::Vec<crate::model::FlavorText>>,
         645  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  449    646   
    }
         647  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  450    648   
    impl Builder {
  451         -
        /// The name for this resource.
         649  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */The name for this resource.
         650  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  452    651   
        pub fn name(mut self, input: ::std::string::String) -> Self {
  453         -
            self.name = Some(input);
         652  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         653  +
            self.name =
         654  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
         655  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         656  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
         657  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  454    658   
            self
         659  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  455    660   
        }
  456         -
        /// A list of flavor text entries for this Pokémon species.
         661  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A list of flavor text entries for this Pokémon species.
         662  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  457    663   
        pub fn flavor_text_entries(
  458    664   
            mut self,
  459    665   
            input: ::std::vec::Vec<crate::model::FlavorText>,
  460    666   
        ) -> Self {
  461         -
            self.flavor_text_entries = Some(input);
         667  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         668  +
            self.flavor_text_entries =
         669  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
         670  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         671  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
         672  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  462    673   
            self
         674  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  463    675   
        }
  464         -
        /// Consumes the builder and constructs a [`GetPokemonSpeciesOutput`](crate::output::GetPokemonSpeciesOutput).
  465         -
        ///
         676  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`GetPokemonSpeciesOutput`](crate::output::GetPokemonSpeciesOutput).
         677  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
  466    678   
        /// The builder fails to construct a [`GetPokemonSpeciesOutput`](crate::output::GetPokemonSpeciesOutput) if you do not provide a value for all non-`Option`al members.
  467    679   
        ///
         680  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  468    681   
        pub fn build(self) -> Result<crate::output::GetPokemonSpeciesOutput, ConstraintViolation> {
  469    682   
            self.build_enforcing_required_and_enum_traits()
  470    683   
        }
         684  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  471    685   
        fn build_enforcing_required_and_enum_traits(
  472    686   
            self,
  473    687   
        ) -> Result<crate::output::GetPokemonSpeciesOutput, ConstraintViolation> {
  474         -
            Ok(crate::output::GetPokemonSpeciesOutput {
  475         -
                name: self.name.ok_or(ConstraintViolation::MissingName)?,
         688  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         689  +
            Ok(
         690  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         691  +
                crate::output::GetPokemonSpeciesOutput {
         692  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
         693  +
                    name: self
         694  +
                        .name
         695  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
         696  +
                        .ok_or(ConstraintViolation::MissingName)?,
         697  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
  476    698   
                    flavor_text_entries: self
  477    699   
                        .flavor_text_entries
         700  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
  478    701   
                        .ok_or(ConstraintViolation::MissingFlavorTextEntries)?,
  479         -
            })
         702  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         703  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         704  +
            )
         705  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  480    706   
        }
         707  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  481    708   
    }
         709  +
         710  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  482    711   
}
  483         -
/// See [`StreamPokemonRadioOutput`](crate::output::StreamPokemonRadioOutput).
         712  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`StreamPokemonRadioOutput`](crate::output::StreamPokemonRadioOutput).
  484    713   
pub mod stream_pokemon_radio_output {
  485    714   
         715  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
  486    716   
    impl ::std::convert::From<Builder> for crate::output::StreamPokemonRadioOutput {
  487    717   
        fn from(builder: Builder) -> Self {
  488    718   
            builder.build()
  489    719   
        }
  490    720   
    }
  491         -
    /// A builder for [`StreamPokemonRadioOutput`](crate::output::StreamPokemonRadioOutput).
         721  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`StreamPokemonRadioOutput`](crate::output::StreamPokemonRadioOutput).
         722  +
    /* RustType.kt:516 */
  492    723   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         724  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  493    725   
    pub struct Builder {
         726  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  494    727   
        pub(crate) data: ::std::option::Option<::aws_smithy_http_server_python::types::ByteStream>,
         728  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  495    729   
    }
         730  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  496    731   
    impl Builder {
         732  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
  497    733   
        #[allow(missing_docs)] // documentation missing in model
         734  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  498    735   
        pub fn data(mut self, input: ::aws_smithy_http_server_python::types::ByteStream) -> Self {
  499         -
            self.data = Some(input);
         736  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         737  +
            self.data =
         738  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
         739  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         740  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
         741  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  500    742   
            self
         743  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  501    744   
        }
  502         -
        /// Consumes the builder and constructs a [`StreamPokemonRadioOutput`](crate::output::StreamPokemonRadioOutput).
         745  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`StreamPokemonRadioOutput`](crate::output::StreamPokemonRadioOutput).
         746  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  503    747   
        pub fn build(self) -> crate::output::StreamPokemonRadioOutput {
  504    748   
            self.build_enforcing_required_and_enum_traits()
  505    749   
        }
         750  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  506    751   
        fn build_enforcing_required_and_enum_traits(
  507    752   
            self,
  508    753   
        ) -> crate::output::StreamPokemonRadioOutput {
         754  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
  509    755   
            crate::output::StreamPokemonRadioOutput {
  510         -
                data: self.data.unwrap_or_default(),
         756  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
         757  +
                data: self
         758  +
                    .data
         759  +
                    /* ServerBuilderGeneratorCommon.kt:113 */
         760  +
                    .unwrap_or_default(),
         761  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
  511    762   
            }
         763  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  512    764   
        }
         765  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  513    766   
    }
         767  +
         768  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  514    769   
}
  515         -
/// See [`CheckHealthOutput`](crate::output::CheckHealthOutput).
         770  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`CheckHealthOutput`](crate::output::CheckHealthOutput).
  516    771   
pub mod check_health_output {
  517    772   
         773  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
  518    774   
    impl ::std::convert::From<Builder> for crate::output::CheckHealthOutput {
  519    775   
        fn from(builder: Builder) -> Self {
  520    776   
            builder.build()
  521    777   
        }
  522    778   
    }
  523         -
    /// A builder for [`CheckHealthOutput`](crate::output::CheckHealthOutput).
         779  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`CheckHealthOutput`](crate::output::CheckHealthOutput).
         780  +
    /* RustType.kt:516 */
  524    781   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  525         -
    pub struct Builder {}
         782  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
         783  +
    pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
         784  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  526    785   
    impl Builder {
  527         -
        /// Consumes the builder and constructs a [`CheckHealthOutput`](crate::output::CheckHealthOutput).
         786  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`CheckHealthOutput`](crate::output::CheckHealthOutput).
         787  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  528    788   
        pub fn build(self) -> crate::output::CheckHealthOutput {
  529    789   
            self.build_enforcing_required_and_enum_traits()
  530    790   
        }
         791  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  531    792   
        fn build_enforcing_required_and_enum_traits(self) -> crate::output::CheckHealthOutput {
  532         -
            crate::output::CheckHealthOutput {}
         793  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         794  +
            crate::output::CheckHealthOutput {
         795  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
         796  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  533    797   
        }
         798  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  534    799   
    }
         800  +
         801  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  535    802   
}
  536         -
/// See [`CapturePokemonOutput`](crate::output::CapturePokemonOutput).
         803  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`CapturePokemonOutput`](crate::output::CapturePokemonOutput).
  537    804   
pub mod capture_pokemon_output {
  538    805   
         806  +
    /* RustType.kt:516 */
  539    807   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  540         -
    /// Holds one variant for each of the ways the builder can fail.
  541         -
         808  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
         809  +
    /* ServerBuilderConstraintViolations.kt:75 */
  542    810   
    #[allow(clippy::enum_variant_names)]
  543    811   
    pub enum ConstraintViolation {
  544         -
        /// `events` was not provided but it is required when building `CapturePokemonOutput`.
         812  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`events` was not provided but it is required when building `CapturePokemonOutput`.
         813  +
        /* ServerBuilderConstraintViolations.kt:143 */
  545    814   
        MissingEvents,
         815  +
        /* ServerBuilderConstraintViolations.kt:75 */
  546    816   
    }
         817  +
    /* ServerBuilderConstraintViolations.kt:117 */
  547    818   
    impl ::std::fmt::Display for ConstraintViolation {
         819  +
        /* ServerBuilderConstraintViolations.kt:118 */
  548    820   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         821  +
            /* ServerBuilderConstraintViolations.kt:119 */
  549    822   
            match self {
  550         -
                ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `CapturePokemonOutput`"),
  551         -
            }
         823  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `CapturePokemonOutput`"),
         824  +
            /* ServerBuilderConstraintViolations.kt:119 */}
         825  +
            /* ServerBuilderConstraintViolations.kt:118 */
  552    826   
        }
         827  +
        /* ServerBuilderConstraintViolations.kt:117 */
  553    828   
    }
         829  +
    /* ServerBuilderConstraintViolations.kt:84 */
  554    830   
    impl ::std::error::Error for ConstraintViolation {}
         831  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
  555    832   
    impl ::std::convert::TryFrom<Builder> for crate::output::CapturePokemonOutput {
  556    833   
        type Error = ConstraintViolation;
  557    834   
  558    835   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  559    836   
            builder.build()
  560    837   
        }
  561    838   
    }
  562         -
    /// A builder for [`CapturePokemonOutput`](crate::output::CapturePokemonOutput).
         839  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`CapturePokemonOutput`](crate::output::CapturePokemonOutput).
         840  +
    /* RustType.kt:516 */
  563    841   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         842  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  564    843   
    pub struct Builder {
         844  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  565    845   
        pub(crate) events: ::std::option::Option<
  566    846   
            crate::python_event_stream::CapturePokemonOutputEventsEventStreamSender,
  567    847   
        >,
         848  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  568    849   
    }
         850  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  569    851   
    impl Builder {
         852  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
  570    853   
        #[allow(missing_docs)] // documentation missing in model
         854  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  571    855   
        pub fn events(
  572    856   
            mut self,
  573    857   
            input: crate::python_event_stream::CapturePokemonOutputEventsEventStreamSender,
  574    858   
        ) -> Self {
  575         -
            self.events = Some(input);
         859  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         860  +
            self.events =
         861  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
         862  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         863  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
         864  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  576    865   
            self
         866  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  577    867   
        }
  578         -
        /// Consumes the builder and constructs a [`CapturePokemonOutput`](crate::output::CapturePokemonOutput).
  579         -
        ///
         868  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`CapturePokemonOutput`](crate::output::CapturePokemonOutput).
         869  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
  580    870   
        /// The builder fails to construct a [`CapturePokemonOutput`](crate::output::CapturePokemonOutput) if you do not provide a value for all non-`Option`al members.
  581    871   
        ///
         872  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  582    873   
        pub fn build(self) -> Result<crate::output::CapturePokemonOutput, ConstraintViolation> {
  583    874   
            self.build_enforcing_required_and_enum_traits()
  584    875   
        }
         876  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  585    877   
        fn build_enforcing_required_and_enum_traits(
  586    878   
            self,
  587    879   
        ) -> Result<crate::output::CapturePokemonOutput, ConstraintViolation> {
  588         -
            Ok(crate::output::CapturePokemonOutput {
  589         -
                events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
  590         -
            })
  591         -
        }
         880  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         881  +
            Ok(
         882  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         883  +
                crate::output::CapturePokemonOutput {
         884  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
         885  +
                    events: self
         886  +
                        .events
         887  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
         888  +
                        .ok_or(ConstraintViolation::MissingEvents)?,
         889  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         890  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         891  +
            )
         892  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
         893  +
        }
         894  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  592    895   
    }
         896  +
         897  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  593    898   
}
  594         -
/// See [`DoNothingOutput`](crate::output::DoNothingOutput).
         899  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`DoNothingOutput`](crate::output::DoNothingOutput).
  595    900   
pub mod do_nothing_output {
  596    901   
         902  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
  597    903   
    impl ::std::convert::From<Builder> for crate::output::DoNothingOutput {
  598    904   
        fn from(builder: Builder) -> Self {
  599    905   
            builder.build()
  600    906   
        }
  601    907   
    }
  602         -
    /// A builder for [`DoNothingOutput`](crate::output::DoNothingOutput).
         908  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`DoNothingOutput`](crate::output::DoNothingOutput).
         909  +
    /* RustType.kt:516 */
  603    910   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  604         -
    pub struct Builder {}
         911  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
         912  +
    pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
         913  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  605    914   
    impl Builder {
  606         -
        /// Consumes the builder and constructs a [`DoNothingOutput`](crate::output::DoNothingOutput).
         915  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`DoNothingOutput`](crate::output::DoNothingOutput).
         916  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  607    917   
        pub fn build(self) -> crate::output::DoNothingOutput {
  608    918   
            self.build_enforcing_required_and_enum_traits()
  609    919   
        }
         920  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  610    921   
        fn build_enforcing_required_and_enum_traits(self) -> crate::output::DoNothingOutput {
  611         -
            crate::output::DoNothingOutput {}
         922  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         923  +
            crate::output::DoNothingOutput {
         924  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
         925  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  612    926   
        }
         927  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  613    928   
    }
         929  +
         930  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  614    931   
}
  615         -
/// See [`GetServerStatisticsOutput`](crate::output::GetServerStatisticsOutput).
         932  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`GetServerStatisticsOutput`](crate::output::GetServerStatisticsOutput).
  616    933   
pub mod get_server_statistics_output {
  617    934   
         935  +
    /* RustType.kt:516 */
  618    936   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  619         -
    /// Holds one variant for each of the ways the builder can fail.
  620         -
         937  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
         938  +
    /* ServerBuilderConstraintViolations.kt:75 */
  621    939   
    #[allow(clippy::enum_variant_names)]
  622    940   
    pub enum ConstraintViolation {
  623         -
        /// `calls_count` was not provided but it is required when building `GetServerStatisticsOutput`.
         941  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`calls_count` was not provided but it is required when building `GetServerStatisticsOutput`.
         942  +
        /* ServerBuilderConstraintViolations.kt:143 */
  624    943   
        MissingCallsCount,
         944  +
        /* ServerBuilderConstraintViolations.kt:75 */
  625    945   
    }
         946  +
    /* ServerBuilderConstraintViolations.kt:117 */
  626    947   
    impl ::std::fmt::Display for ConstraintViolation {
         948  +
        /* ServerBuilderConstraintViolations.kt:118 */
  627    949   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         950  +
            /* ServerBuilderConstraintViolations.kt:119 */
  628    951   
            match self {
  629         -
                ConstraintViolation::MissingCallsCount => write!(f, "`calls_count` was not provided but it is required when building `GetServerStatisticsOutput`"),
  630         -
            }
         952  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingCallsCount => write!(f, "`calls_count` was not provided but it is required when building `GetServerStatisticsOutput`"),
         953  +
            /* ServerBuilderConstraintViolations.kt:119 */}
         954  +
            /* ServerBuilderConstraintViolations.kt:118 */
  631    955   
        }
         956  +
        /* ServerBuilderConstraintViolations.kt:117 */
  632    957   
    }
         958  +
    /* ServerBuilderConstraintViolations.kt:84 */
  633    959   
    impl ::std::error::Error for ConstraintViolation {}
         960  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
  634    961   
    impl ::std::convert::TryFrom<Builder> for crate::output::GetServerStatisticsOutput {
  635    962   
        type Error = ConstraintViolation;
  636    963   
  637    964   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  638    965   
            builder.build()
  639    966   
        }
  640    967   
    }
  641         -
    /// A builder for [`GetServerStatisticsOutput`](crate::output::GetServerStatisticsOutput).
         968  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`GetServerStatisticsOutput`](crate::output::GetServerStatisticsOutput).
         969  +
    /* RustType.kt:516 */
  642    970   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         971  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  643    972   
    pub struct Builder {
         973  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  644    974   
        pub(crate) calls_count: ::std::option::Option<i64>,
         975  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  645    976   
    }
         977  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  646    978   
    impl Builder {
  647         -
        /// The number of calls executed by the server.
         979  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */The number of calls executed by the server.
         980  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  648    981   
        pub fn calls_count(mut self, input: i64) -> Self {
  649         -
            self.calls_count = Some(input);
         982  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         983  +
            self.calls_count =
         984  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
         985  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         986  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
         987  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  650    988   
            self
         989  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  651    990   
        }
  652         -
        /// Consumes the builder and constructs a [`GetServerStatisticsOutput`](crate::output::GetServerStatisticsOutput).
  653         -
        ///
         991  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`GetServerStatisticsOutput`](crate::output::GetServerStatisticsOutput).
         992  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
  654    993   
        /// The builder fails to construct a [`GetServerStatisticsOutput`](crate::output::GetServerStatisticsOutput) if you do not provide a value for all non-`Option`al members.
  655    994   
        ///
         995  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  656    996   
        pub fn build(
  657    997   
            self,
  658    998   
        ) -> Result<crate::output::GetServerStatisticsOutput, ConstraintViolation> {
  659    999   
            self.build_enforcing_required_and_enum_traits()
  660   1000   
        }
        1001  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  661   1002   
        fn build_enforcing_required_and_enum_traits(
  662   1003   
            self,
  663   1004   
        ) -> Result<crate::output::GetServerStatisticsOutput, ConstraintViolation> {
  664         -
            Ok(crate::output::GetServerStatisticsOutput {
        1005  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        1006  +
            Ok(
        1007  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        1008  +
                crate::output::GetServerStatisticsOutput {
        1009  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
  665   1010   
                    calls_count: self
  666   1011   
                        .calls_count
        1012  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
  667   1013   
                        .ok_or(ConstraintViolation::MissingCallsCount)?,
  668         -
            })
        1014  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        1015  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        1016  +
            )
        1017  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  669   1018   
        }
        1019  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  670   1020   
    }
        1021  +
        1022  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  671   1023   
}