Server Test Python

Server Test Python

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943

Files changed:

tmp-codegen-diff/codegen-server-test-python/rest_json_extras/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   
//! A REST JSON service that sends JSON requests and responses.
   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 RestJsonExtras Smithy service.
   24     25   
//!
   25     26   
//! # Using RestJsonExtras
   26     27   
//!
   27     28   
//! The primary entrypoint is [`RestJsonExtras`]: 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 [`RestJsonExtras::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)."
@@ -217,218 +312,326 @@
  237    238   
//! }
  238    239   
//!
  239    240   
//! ```
  240    241   
//!
  241    242   
//! [`serve`]: https://docs.rs/hyper/0.14.16/hyper/server/struct.Builder.html#method.serve
  242    243   
//! [`tower::make::MakeService`]: https://docs.rs/tower/latest/tower/make/trait.MakeService.html
  243    244   
//! [HTTP binding traits]: https://smithy.io/2.0/spec/http-bindings.html
  244    245   
//! [operations]: https://smithy.io/2.0/spec/service-types.html#operation
  245    246   
//! [hyper server]: https://docs.rs/hyper/latest/hyper/server/index.html
  246    247   
//! [Service]: https://docs.rs/tower-service/latest/tower_service/trait.Service.html
         248  +
/* ServerRootGenerator.kt:261 */
  247    249   
pub use crate::service::{
  248    250   
    MissingOperationsError, RestJsonExtras, RestJsonExtrasBuilder, RestJsonExtrasConfig,
  249    251   
    RestJsonExtrasConfigBuilder,
  250    252   
};
  251    253   
  252         -
/// Contains the types that are re-exported from the `aws-smithy-http-server` crate.
         254  +
/// /* ServerRustModule.kt:55 */Contains the types that are re-exported from the `aws-smithy-http-server` crate.
  253    255   
pub mod server {
  254    256   
    // Re-export all types from the `aws-smithy-http-server` crate.
  255    257   
    pub use ::aws_smithy_http_server::*;
         258  +
         259  +
    /* CodegenDelegator.kt:200 */
  256    260   
}
  257    261   
         262  +
/* CrateVersionCustomization.kt:23 */
  258    263   
/// Crate version number.
  259    264   
pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION");
  260    265   
  261         -
/// Constrained types for constrained shapes.
         266  +
/// /* ServerRustModule.kt:55 */Constrained types for constrained shapes.
         267  +
/* RustModule.kt:172 */
  262    268   
mod constrained;
  263    269   
  264         -
/// All error types that operations can return. Documentation on these types is copied from the model.
         270  +
/// /* ServerRustModule.kt:55 */All error types that operations can return. Documentation on these types is copied from the model.
  265    271   
pub mod error;
  266    272   
  267         -
/// Input structures for operations. Documentation on these types is copied from the model.
         273  +
/// /* ServerRustModule.kt:55 */Input structures for operations. Documentation on these types is copied from the model.
  268    274   
pub mod input;
  269    275   
  270         -
/// Data structures used by operation inputs/outputs. Documentation on these types is copied from the model.
         276  +
/// /* ServerRustModule.kt:55 */Data structures used by operation inputs/outputs. Documentation on these types is copied from the model.
  271    277   
pub mod model;
  272    278   
  273         -
/// All operations that this crate can perform.
         279  +
/// /* ServerRustModule.kt:55 */All operations that this crate can perform.
  274    280   
pub mod operation;
  275    281   
         282  +
/* ServerRustModule.kt:79 */
  276    283   
/// A collection of types representing each operation defined in the service closure.
  277    284   
///
  278    285   
/// The [plugin system](::aws_smithy_http_server::plugin) makes use of these
  279    286   
/// [zero-sized types](https://doc.rust-lang.org/nomicon/exotic-sizes.html#zero-sized-types-zsts) (ZSTs) to
  280    287   
/// parameterize [`Plugin`](::aws_smithy_http_server::plugin::Plugin) implementations. Their traits, such as
  281    288   
/// [`OperationShape`](::aws_smithy_http_server::operation::OperationShape), can be used to provide
  282    289   
/// operation specific information to the [`Layer`](::tower::Layer) being applied.
  283    290   
pub mod operation_shape;
  284    291   
  285         -
/// Output structures for operations. Documentation on these types is copied from the model.
         292  +
/// /* ServerRustModule.kt:55 */Output structures for operations. Documentation on these types is copied from the model.
  286    293   
pub mod output;
  287    294   
  288         -
/// Export PyO3 symbols in the shared library
         295  +
/// /* PythonServerRustModule.kt:23 */Export PyO3 symbols in the shared library
  289    296   
pub mod python_module_export;
  290    297   
  291         -
/// Operation adapters that delegate to Python handlers.
         298  +
/// /* PythonServerRustModule.kt:23 */Operation adapters that delegate to Python handlers.
  292    299   
pub mod python_operation_adaptor;
  293    300   
  294         -
/// Python server and application implementation.
         301  +
/// /* PythonServerRustModule.kt:23 */Python server and application implementation.
  295    302   
pub mod python_server_application;
  296    303   
         304  +
/* RustModule.kt:172 */
  297    305   
mod service;
  298    306   
  299         -
/// Data primitives referenced by other data types.
         307  +
/// /* ServerRustModule.kt:55 */Data primitives referenced by other data types.
  300    308   
pub mod types;
  301    309   
  302         -
/// Unconstrained types for constrained shapes.
         310  +
/// /* ServerRustModule.kt:55 */Unconstrained types for constrained shapes.
         311  +
/* RustModule.kt:172 */
  303    312   
mod unconstrained;
  304    313   
  305    314   
pub(crate) mod protocol_serde;
  306    315   
  307         -
/// Re-exported Python types from supporting crates.
         316  +
/// /* PythonServerCodegenDecorator.kt:57 */Re-exported Python types from supporting crates.
         317  +
/* PythonServerCodegenDecorator.kt:58 */
  308    318   
pub mod python_types {
         319  +
    /* PythonServerCodegenDecorator.kt:59 */
  309    320   
    pub use ::aws_smithy_http_server_python::types::Blob;
         321  +
    /* PythonServerCodegenDecorator.kt:60 */
  310    322   
    pub use ::aws_smithy_http_server_python::types::DateTime;
         323  +
    /* PythonServerCodegenDecorator.kt:61 */
  311    324   
    pub use ::aws_smithy_http_server_python::types::Document;
         325  +
    /* PythonServerCodegenDecorator.kt:58 */
  312    326   
}

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

@@ -1,1 +530,719 @@
    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   
/// :rtype None:
           6  +
/* StructureGenerator.kt:197 */
    4      7   
#[allow(missing_docs)] // documentation missing in model
           8  +
/* RustType.kt:516 */
    5      9   
#[derive(
    6     10   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
    7     11   
)]
    8         -
pub struct EmptyStruct {}
          12  +
pub /* StructureGenerator.kt:201 */ struct EmptyStruct {/* StructureGenerator.kt:201 */}
          13  +
/* RustType.kt:516 */
    9     14   
#[allow(clippy::new_without_default)]
          15  +
/* RustType.kt:516 */
   10     16   
#[allow(clippy::too_many_arguments)]
          17  +
/* RustType.kt:516 */
   11     18   
#[::pyo3::pymethods]
          19  +
/* PythonServerStructureGenerator.kt:88 */
   12     20   
impl EmptyStruct {
   13     21   
    #[new]
   14     22   
    pub fn new() -> Self {
   15     23   
        Self {}
   16     24   
    }
   17     25   
    fn __repr__(&self) -> String {
   18     26   
        format!("{self:?}")
   19     27   
    }
   20     28   
    fn __str__(&self) -> String {
   21     29   
        format!("{self:?}")
   22     30   
    }
   23     31   
}
          32  +
/* PythonServerStructureGenerator.kt:111 */
   24     33   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<EmptyStruct> {
   25     34   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
   26     35   
        ob.extract::<EmptyStruct>().map(Box::new)
   27     36   
    }
   28     37   
}
   29     38   
   30     39   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<EmptyStruct> {
   31     40   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
   32     41   
        (*self).into_py(py)
   33     42   
    }
   34     43   
}
          44  +
/* ServerCodegenVisitor.kt:370 */
   35     45   
impl EmptyStruct {
   36         -
    /// Creates a new builder-style object to manufacture [`EmptyStruct`](crate::model::EmptyStruct).
          46  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`EmptyStruct`](crate::model::EmptyStruct).
          47  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
   37     48   
    pub fn builder() -> crate::model::empty_struct::Builder {
          49  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
   38     50   
        crate::model::empty_struct::Builder::default()
          51  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
   39     52   
    }
          53  +
    /* ServerCodegenVisitor.kt:370 */
   40     54   
}
   41     55   
          56  +
/* UnionGenerator.kt:67 */
   42     57   
#[allow(missing_docs)] // documentation missing in model
          58  +
/* RustType.kt:516 */
   43     59   
#[derive(
   44     60   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   45     61   
)]
   46         -
pub enum SingleElementUnion {
          62  +
pub /* UnionGenerator.kt:85 */ enum SingleElementUnion {
          63  +
    /* UnionGenerator.kt:90 */
   47     64   
    #[allow(missing_docs)] // documentation missing in model
          65  +
    /* UnionGenerator.kt:190 */
   48     66   
    A(::std::string::String),
          67  +
    /* UnionGenerator.kt:85 */
   49     68   
}
          69  +
/* UnionGenerator.kt:111 */
   50     70   
impl SingleElementUnion {
          71  +
    /* RustType.kt:516 */
   51     72   
    #[allow(irrefutable_let_patterns)]
          73  +
    /* UnionGenerator.kt:217 */
   52     74   
    /// Tries to convert the enum instance into [`A`](crate::model::SingleElementUnion::A), extracting the inner [`String`](::std::string::String).
          75  +
    /* UnionGenerator.kt:222 */
   53     76   
    /// Returns `Err(&Self)` if it can't be converted.
          77  +
    /* UnionGenerator.kt:223 */
   54     78   
    pub fn as_a(&self) -> ::std::result::Result<&::std::string::String, &Self> {
          79  +
        /* UnionGenerator.kt:227 */
   55     80   
        if let SingleElementUnion::A(val) = &self {
   56     81   
            ::std::result::Result::Ok(val)
   57     82   
        } else {
   58     83   
            ::std::result::Result::Err(self)
   59     84   
        }
          85  +
        /* UnionGenerator.kt:223 */
   60     86   
    }
          87  +
    /* UnionGenerator.kt:121 */
   61     88   
    /// Returns true if this is a [`A`](crate::model::SingleElementUnion::A).
          89  +
    /* UnionGenerator.kt:122 */
   62     90   
    pub fn is_a(&self) -> bool {
          91  +
        /* UnionGenerator.kt:123 */
   63     92   
        self.as_a().is_ok()
          93  +
        /* UnionGenerator.kt:122 */
   64     94   
    }
          95  +
    /* UnionGenerator.kt:111 */
   65     96   
}
          97  +
/* PythonServerUnionGenerator.kt:58 */
   66     98   
#[pyo3::pyclass(name = "SingleElementUnion")]
          99  +
/* RustType.kt:516 */
   67    100   
#[derive(
   68    101   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   69    102   
)]
   70         -
pub struct PyUnionMarkerSingleElementUnion(pub SingleElementUnion);
         103  +
pub /* PythonServerUnionGenerator.kt:61 */ struct PyUnionMarkerSingleElementUnion(
         104  +
    pub SingleElementUnion,
         105  +
);
         106  +
/* RustType.kt:516 */
   71    107   
#[::pyo3::pymethods]
         108  +
/* PythonServerUnionGenerator.kt:66 */
   72    109   
impl PyUnionMarkerSingleElementUnion {
         110  +
    /* RustType.kt:516 */
   73    111   
    #[allow(irrefutable_let_patterns)]
         112  +
    /* RustType.kt:516 */
   74    113   
    #[staticmethod]
         114  +
    /* PythonServerUnionGenerator.kt:134 */
   75    115   
    /// Creates a new union instance of [`A`](crate::model::SingleElementUnion::A)
         116  +
    /* PythonServerUnionGenerator.kt:138 */
   76    117   
    /// :param data str:
         118  +
    /* PythonServerUnionGenerator.kt:139 */
   77    119   
    /// :rtype SingleElementUnion:
         120  +
    /* PythonServerUnionGenerator.kt:140 */
   78    121   
    pub fn a(data: ::std::string::String) -> Self {
         122  +
        /* PythonServerUnionGenerator.kt:141 */
   79    123   
        Self(SingleElementUnion::A(data))
         124  +
        /* PythonServerUnionGenerator.kt:140 */
   80    125   
    }
         126  +
    /* PythonServerUnionGenerator.kt:176 */
   81    127   
    /// Tries to convert the enum instance into [`A`](crate::model::SingleElementUnion::A), extracting the inner [`String`](::std::string::String).
         128  +
    /* PythonServerUnionGenerator.kt:181 */
   82    129   
    /// :rtype str:
         130  +
    /* PythonServerUnionGenerator.kt:182 */
   83    131   
    pub fn as_a(&self) -> ::pyo3::PyResult<::std::string::String> {
         132  +
        /* PythonServerUnionGenerator.kt:190 */
   84    133   
        match self.0.as_a() {
   85    134   
            Ok(variant) => Ok(variant.clone()),
   86    135   
            Err(_) => Err(::pyo3::exceptions::PyValueError::new_err(
   87    136   
                r"SingleElementUnion variant is not of type str",
   88    137   
            )),
   89    138   
        }
         139  +
        /* PythonServerUnionGenerator.kt:182 */
   90    140   
    }
         141  +
    /* PythonServerUnionGenerator.kt:76 */
   91    142   
    /// Returns true if this is a [`A`](crate::model::SingleElementUnion::A).
         143  +
    /* PythonServerUnionGenerator.kt:77 */
   92    144   
    /// :rtype bool:
         145  +
    /* PythonServerUnionGenerator.kt:78 */
   93    146   
    pub fn is_a(&self) -> bool {
         147  +
        /* PythonServerUnionGenerator.kt:79 */
   94    148   
        self.0.is_a()
         149  +
        /* PythonServerUnionGenerator.kt:78 */
   95    150   
    }
         151  +
    /* PythonServerUnionGenerator.kt:66 */
   96    152   
}
         153  +
/* PythonServerUnionGenerator.kt:93 */
   97    154   
impl ::pyo3::IntoPy<::pyo3::PyObject> for SingleElementUnion {
         155  +
    /* PythonServerUnionGenerator.kt:94 */
   98    156   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
         157  +
        /* PythonServerUnionGenerator.kt:95 */
   99    158   
        PyUnionMarkerSingleElementUnion(self).into_py(py)
         159  +
        /* PythonServerUnionGenerator.kt:94 */
  100    160   
    }
         161  +
    /* PythonServerUnionGenerator.kt:93 */
  101    162   
}
         163  +
/* PythonServerUnionGenerator.kt:98 */
  102    164   
impl<'source> ::pyo3::FromPyObject<'source> for SingleElementUnion {
         165  +
    /* PythonServerUnionGenerator.kt:99 */
  103    166   
    fn extract(obj: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
         167  +
        /* PythonServerUnionGenerator.kt:100 */
  104    168   
        let data: PyUnionMarkerSingleElementUnion = obj.extract()?;
  105    169   
        Ok(data.0)
         170  +
        /* PythonServerUnionGenerator.kt:99 */
  106    171   
    }
         172  +
    /* PythonServerUnionGenerator.kt:98 */
  107    173   
}
  108    174   
         175  +
/* RustType.kt:516 */
  109    176   
#[::pyo3::pyclass]
         177  +
/* PythonServerStructureGenerator.kt:63 */
  110    178   
/// :param path str:
  111    179   
/// :param message str:
  112    180   
/// :rtype None:
  113         -
/// Describes one specific validation failure for an input member.
         181  +
/// /* StructureGenerator.kt:197 */Describes one specific validation failure for an input member.
         182  +
/* RustType.kt:516 */
  114    183   
#[derive(
  115    184   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  116    185   
)]
  117         -
pub struct ValidationExceptionField {
         186  +
pub /* StructureGenerator.kt:201 */ struct ValidationExceptionField {
         187  +
    /* RustType.kt:516 */
  118    188   
    #[pyo3(get, set)]
         189  +
    /* PythonServerStructureGenerator.kt:80 */
  119    190   
    /// :type str:
  120         -
    /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
         191  +
    /// /* StructureGenerator.kt:231 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
  121    192   
    pub path: ::std::string::String,
         193  +
    /* RustType.kt:516 */
  122    194   
    #[pyo3(get, set)]
         195  +
    /* PythonServerStructureGenerator.kt:80 */
  123    196   
    /// :type str:
  124         -
    /// A detailed description of the validation failure.
         197  +
    /// /* StructureGenerator.kt:231 */A detailed description of the validation failure.
  125    198   
    pub message: ::std::string::String,
         199  +
    /* StructureGenerator.kt:201 */
  126    200   
}
         201  +
/* StructureGenerator.kt:135 */
  127    202   
impl ValidationExceptionField {
  128         -
    /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
         203  +
    /// /* StructureGenerator.kt:231 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
         204  +
    /* StructureGenerator.kt:166 */
  129    205   
    pub fn path(&self) -> &str {
         206  +
        /* StructureGenerator.kt:171 */
  130    207   
        use std::ops::Deref;
  131    208   
        self.path.deref()
         209  +
        /* StructureGenerator.kt:166 */
  132    210   
    }
  133         -
    /// A detailed description of the validation failure.
         211  +
    /// /* StructureGenerator.kt:231 */A detailed description of the validation failure.
         212  +
    /* StructureGenerator.kt:166 */
  134    213   
    pub fn message(&self) -> &str {
         214  +
        /* StructureGenerator.kt:171 */
  135    215   
        use std::ops::Deref;
  136    216   
        self.message.deref()
         217  +
        /* StructureGenerator.kt:166 */
  137    218   
    }
         219  +
    /* StructureGenerator.kt:135 */
  138    220   
}
         221  +
/* RustType.kt:516 */
  139    222   
#[allow(clippy::new_without_default)]
         223  +
/* RustType.kt:516 */
  140    224   
#[allow(clippy::too_many_arguments)]
         225  +
/* RustType.kt:516 */
  141    226   
#[::pyo3::pymethods]
         227  +
/* PythonServerStructureGenerator.kt:88 */
  142    228   
impl ValidationExceptionField {
  143    229   
    #[new]
  144    230   
    pub fn new(path: ::std::string::String, message: ::std::string::String) -> Self {
  145    231   
        Self { path, message }
  146    232   
    }
  147    233   
    fn __repr__(&self) -> String {
  148    234   
        format!("{self:?}")
  149    235   
    }
  150    236   
    fn __str__(&self) -> String {
  151    237   
        format!("{self:?}")
  152    238   
    }
  153    239   
}
         240  +
/* PythonServerStructureGenerator.kt:111 */
  154    241   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<ValidationExceptionField> {
  155    242   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  156    243   
        ob.extract::<ValidationExceptionField>().map(Box::new)
  157    244   
    }
  158    245   
}
  159    246   
  160    247   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ValidationExceptionField> {
  161    248   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  162    249   
        (*self).into_py(py)
  163    250   
    }
  164    251   
}
         252  +
/* ServerCodegenVisitor.kt:370 */
  165    253   
impl ValidationExceptionField {
  166         -
    /// Creates a new builder-style object to manufacture [`ValidationExceptionField`](crate::model::ValidationExceptionField).
         254  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ValidationExceptionField`](crate::model::ValidationExceptionField).
         255  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  167    256   
    pub fn builder() -> crate::model::validation_exception_field::Builder {
         257  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  168    258   
        crate::model::validation_exception_field::Builder::default()
         259  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  169    260   
    }
         261  +
    /* ServerCodegenVisitor.kt:370 */
  170    262   
}
  171    263   
         264  +
/* RustType.kt:516 */
  172    265   
#[::pyo3::pyclass]
         266  +
/* EnumGenerator.kt:154 */
  173    267   
#[allow(missing_docs)] // documentation missing in model
         268  +
/* RustType.kt:516 */
  174    269   
#[derive(
  175    270   
    ::std::clone::Clone,
  176    271   
    ::std::cmp::Eq,
  177    272   
    ::std::cmp::Ord,
  178    273   
    ::std::cmp::PartialEq,
  179    274   
    ::std::cmp::PartialOrd,
  180    275   
    ::std::fmt::Debug,
  181    276   
    ::std::hash::Hash,
  182    277   
)]
  183         -
pub enum EnumWithEscapedChars {
  184         -
    /// this needs#tobe escaped
         278  +
pub /* EnumGenerator.kt:267 */ enum EnumWithEscapedChars {
         279  +
    /// /* EnumGenerator.kt:156 */this needs#tobe escaped
         280  +
    /* EnumGenerator.kt:143 */
  185    281   
    HasQuotes,
         282  +
    /* EnumGenerator.kt:154 */
  186    283   
    #[allow(missing_docs)] // documentation missing in model
         284  +
    /* EnumGenerator.kt:143 */
  187    285   
    Normal,
         286  +
    /* EnumGenerator.kt:267 */
  188    287   
}
  189    288   
pub(crate) mod enum_with_escaped_chars_internal {
  190    289   
    #[derive(Debug, PartialEq)]
  191    290   
    pub struct ConstraintViolation(pub(crate) ::std::string::String);
  192    291   
  193    292   
    impl ::std::fmt::Display for ConstraintViolation {
  194    293   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  195    294   
            write!(
  196    295   
                f,
  197    296   
                r#"Value provided for 'aws.protocoltests.restjson#EnumWithEscapedChars' failed to satisfy constraint: Member must satisfy enum value set: [has"quotes, normal]"#
  198    297   
            )
  199    298   
        }
  200    299   
    }
  201    300   
  202    301   
    impl ::std::error::Error for ConstraintViolation {}
  203    302   
    impl ConstraintViolation {
  204    303   
        pub(crate) fn as_validation_exception_field(
  205    304   
            self,
  206    305   
            path: ::std::string::String,
  207    306   
        ) -> crate::model::ValidationExceptionField {
  208    307   
            crate::model::ValidationExceptionField {
  209    308   
                message: format!(
  210    309   
                    r#"Value at '{}' failed to satisfy constraint: Member must satisfy enum value set: [has"quotes, normal]"#,
  211    310   
                    &path
  212    311   
                ),
  213    312   
                path,
  214    313   
            }
  215    314   
        }
  216    315   
    }
         316  +
         317  +
    /* ServerEnumGenerator.kt:46 */
  217    318   
}
         319  +
/* ServerEnumGenerator.kt:85 */
  218    320   
impl ::std::convert::TryFrom<&str> for EnumWithEscapedChars {
  219    321   
    type Error = crate::model::enum_with_escaped_chars_internal::ConstraintViolation;
  220    322   
    fn try_from(
  221    323   
        s: &str,
  222    324   
    ) -> ::std::result::Result<Self, <Self as ::std::convert::TryFrom<&str>>::Error> {
  223    325   
        match s {
  224    326   
            "has\"quotes" => Ok(EnumWithEscapedChars::HasQuotes),
  225    327   
            "normal" => Ok(EnumWithEscapedChars::Normal),
  226    328   
            _ => Err(
  227    329   
                crate::model::enum_with_escaped_chars_internal::ConstraintViolation(s.to_owned()),
  228    330   
            ),
  229    331   
        }
  230    332   
    }
  231    333   
}
  232    334   
impl ::std::convert::TryFrom<::std::string::String> for EnumWithEscapedChars {
  233    335   
    type Error = crate::model::enum_with_escaped_chars_internal::ConstraintViolation;
  234    336   
    fn try_from(
  235    337   
        s: ::std::string::String,
  236    338   
    ) -> ::std::result::Result<Self, <Self as ::std::convert::TryFrom<::std::string::String>>::Error>
  237    339   
    {
  238    340   
        s.as_str().try_into()
  239    341   
    }
  240    342   
}
         343  +
/* ServerEnumGenerator.kt:145 */
  241    344   
impl std::str::FromStr for EnumWithEscapedChars {
  242    345   
    type Err = crate::model::enum_with_escaped_chars_internal::ConstraintViolation;
  243    346   
    fn from_str(s: &str) -> std::result::Result<Self, <Self as std::str::FromStr>::Err> {
  244    347   
        Self::try_from(s)
  245    348   
    }
  246    349   
}
         350  +
/* EnumGenerator.kt:274 */
  247    351   
impl EnumWithEscapedChars {
  248    352   
    /// Returns the `&str` value of the enum member.
  249    353   
    pub fn as_str(&self) -> &str {
  250    354   
        match self {
  251    355   
            EnumWithEscapedChars::HasQuotes => "has\"quotes",
  252    356   
            EnumWithEscapedChars::Normal => "normal",
  253    357   
        }
  254    358   
    }
  255    359   
    /// Returns all the `&str` representations of the enum members.
  256    360   
    pub const fn values() -> &'static [&'static str] {
  257    361   
        &["has\"quotes", "normal"]
  258    362   
    }
  259    363   
}
         364  +
/* EnumGenerator.kt:223 */
  260    365   
impl ::std::convert::AsRef<str> for EnumWithEscapedChars {
  261    366   
    fn as_ref(&self) -> &str {
  262    367   
        self.as_str()
  263    368   
    }
  264    369   
}
         370  +
/* RustType.kt:516 */
  265    371   
#[::pyo3::pymethods]
         372  +
/* PythonServerEnumGenerator.kt:41 */
  266    373   
impl EnumWithEscapedChars {
  267    374   
    #[getter]
  268    375   
    pub fn name(&self) -> &str {
  269    376   
        match self {
  270    377   
            EnumWithEscapedChars::HasQuotes => "HasQuotes",
  271    378   
            EnumWithEscapedChars::Normal => "Normal",
  272    379   
        }
  273    380   
    }
  274    381   
    #[getter]
  275    382   
    pub fn value(&self) -> &str {
  276    383   
        self.as_str()
  277    384   
    }
  278    385   
    fn __repr__(&self) -> String {
  279    386   
        self.as_str().to_owned()
  280    387   
    }
  281    388   
    fn __str__(&self) -> String {
  282    389   
        self.as_str().to_owned()
  283    390   
    }
  284    391   
}
         392  +
/* ConstrainedTraitForEnumGenerator.kt:36 */
  285    393   
impl crate::constrained::Constrained for EnumWithEscapedChars {
  286    394   
    type Unconstrained = ::std::string::String;
  287    395   
}
  288    396   
  289    397   
impl ::std::convert::From<::std::string::String>
  290    398   
    for crate::constrained::MaybeConstrained<crate::model::EnumWithEscapedChars>
  291    399   
{
  292    400   
    fn from(value: ::std::string::String) -> Self {
  293    401   
        Self::Unconstrained(value)
  294    402   
    }
  295    403   
}
  296    404   
         405  +
/* RustType.kt:516 */
  297    406   
#[::pyo3::pyclass]
         407  +
/* EnumGenerator.kt:154 */
  298    408   
#[allow(missing_docs)] // documentation missing in model
         409  +
/* RustType.kt:516 */
  299    410   
#[derive(
  300    411   
    ::std::clone::Clone,
  301    412   
    ::std::cmp::Eq,
  302    413   
    ::std::cmp::Ord,
  303    414   
    ::std::cmp::PartialEq,
  304    415   
    ::std::cmp::PartialOrd,
  305    416   
    ::std::fmt::Debug,
  306    417   
    ::std::hash::Hash,
  307    418   
)]
  308         -
pub enum StringEnum {
         419  +
pub /* EnumGenerator.kt:267 */ enum StringEnum {
         420  +
    /* EnumGenerator.kt:154 */
  309    421   
    #[allow(missing_docs)] // documentation missing in model
         422  +
    /* EnumGenerator.kt:143 */
  310    423   
    V,
         424  +
    /* EnumGenerator.kt:267 */
  311    425   
}
  312    426   
pub(crate) mod string_enum_internal {
  313    427   
    #[derive(Debug, PartialEq)]
  314    428   
    pub struct ConstraintViolation(pub(crate) ::std::string::String);
  315    429   
  316    430   
    impl ::std::fmt::Display for ConstraintViolation {
  317    431   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  318    432   
            write!(
  319    433   
                f,
  320    434   
                r#"Value provided for 'aws.protocoltests.restjson#StringEnum' failed to satisfy constraint: Member must satisfy enum value set: [enumvalue]"#
  321    435   
            )
  322    436   
        }
  323    437   
    }
  324    438   
  325    439   
    impl ::std::error::Error for ConstraintViolation {}
  326    440   
    impl ConstraintViolation {
  327    441   
        pub(crate) fn as_validation_exception_field(
  328    442   
            self,
  329    443   
            path: ::std::string::String,
  330    444   
        ) -> crate::model::ValidationExceptionField {
  331    445   
            crate::model::ValidationExceptionField {
  332    446   
                message: format!(
  333    447   
                    r#"Value at '{}' failed to satisfy constraint: Member must satisfy enum value set: [enumvalue]"#,
  334    448   
                    &path
  335    449   
                ),
  336    450   
                path,
  337    451   
            }
  338    452   
        }
  339    453   
    }
         454  +
         455  +
    /* ServerEnumGenerator.kt:46 */
  340    456   
}
         457  +
/* ServerEnumGenerator.kt:85 */
  341    458   
impl ::std::convert::TryFrom<&str> for StringEnum {
  342    459   
    type Error = crate::model::string_enum_internal::ConstraintViolation;
  343    460   
    fn try_from(
  344    461   
        s: &str,
  345    462   
    ) -> ::std::result::Result<Self, <Self as ::std::convert::TryFrom<&str>>::Error> {
  346    463   
        match s {
  347    464   
            "enumvalue" => Ok(StringEnum::V),
  348    465   
            _ => Err(crate::model::string_enum_internal::ConstraintViolation(
  349    466   
                s.to_owned(),
  350    467   
            )),
  351    468   
        }
  352    469   
    }
  353    470   
}
  354    471   
impl ::std::convert::TryFrom<::std::string::String> for StringEnum {
  355    472   
    type Error = crate::model::string_enum_internal::ConstraintViolation;
  356    473   
    fn try_from(
  357    474   
        s: ::std::string::String,
  358    475   
    ) -> ::std::result::Result<Self, <Self as ::std::convert::TryFrom<::std::string::String>>::Error>
  359    476   
    {
  360    477   
        s.as_str().try_into()
  361    478   
    }
  362    479   
}
         480  +
/* ServerEnumGenerator.kt:145 */
  363    481   
impl std::str::FromStr for StringEnum {
  364    482   
    type Err = crate::model::string_enum_internal::ConstraintViolation;
  365    483   
    fn from_str(s: &str) -> std::result::Result<Self, <Self as std::str::FromStr>::Err> {
  366    484   
        Self::try_from(s)
  367    485   
    }
  368    486   
}
         487  +
/* EnumGenerator.kt:274 */
  369    488   
impl StringEnum {
  370    489   
    /// Returns the `&str` value of the enum member.
  371    490   
    pub fn as_str(&self) -> &str {
  372    491   
        match self {
  373    492   
            StringEnum::V => "enumvalue",
  374    493   
        }
  375    494   
    }
  376    495   
    /// Returns all the `&str` representations of the enum members.
  377    496   
    pub const fn values() -> &'static [&'static str] {
  378    497   
        &["enumvalue"]
  379    498   
    }
  380    499   
}
         500  +
/* EnumGenerator.kt:223 */
  381    501   
impl ::std::convert::AsRef<str> for StringEnum {
  382    502   
    fn as_ref(&self) -> &str {
  383    503   
        self.as_str()
  384    504   
    }
  385    505   
}
         506  +
/* RustType.kt:516 */
  386    507   
#[::pyo3::pymethods]
         508  +
/* PythonServerEnumGenerator.kt:41 */
  387    509   
impl StringEnum {
  388    510   
    #[getter]
  389    511   
    pub fn name(&self) -> &str {
  390    512   
        match self {
  391    513   
            StringEnum::V => "V",
  392    514   
        }
  393    515   
    }
  394    516   
    #[getter]
  395    517   
    pub fn value(&self) -> &str {
  396    518   
        self.as_str()
  397    519   
    }
  398    520   
    fn __repr__(&self) -> String {
  399    521   
        self.as_str().to_owned()
  400    522   
    }
  401    523   
    fn __str__(&self) -> String {
  402    524   
        self.as_str().to_owned()
  403    525   
    }
  404    526   
}
         527  +
/* ConstrainedTraitForEnumGenerator.kt:36 */
  405    528   
impl crate::constrained::Constrained for StringEnum {
  406    529   
    type Unconstrained = ::std::string::String;
  407    530   
}
  408    531   
  409    532   
impl ::std::convert::From<::std::string::String>
  410    533   
    for crate::constrained::MaybeConstrained<crate::model::StringEnum>
  411    534   
{
  412    535   
    fn from(value: ::std::string::String) -> Self {
  413    536   
        Self::Unconstrained(value)
  414    537   
    }
  415    538   
}
  416         -
/// See [`EmptyStruct`](crate::model::EmptyStruct).
         539  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`EmptyStruct`](crate::model::EmptyStruct).
  417    540   
pub mod empty_struct {
  418    541   
         542  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
  419    543   
    impl ::std::convert::From<Builder> for crate::model::EmptyStruct {
  420    544   
        fn from(builder: Builder) -> Self {
  421    545   
            builder.build()
  422    546   
        }
  423    547   
    }
  424         -
    /// A builder for [`EmptyStruct`](crate::model::EmptyStruct).
         548  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`EmptyStruct`](crate::model::EmptyStruct).
         549  +
    /* RustType.kt:516 */
  425    550   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  426         -
    pub struct Builder {}
         551  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
         552  +
    pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
         553  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  427    554   
    impl Builder {
  428         -
        /// Consumes the builder and constructs a [`EmptyStruct`](crate::model::EmptyStruct).
         555  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`EmptyStruct`](crate::model::EmptyStruct).
         556  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  429    557   
        pub fn build(self) -> crate::model::EmptyStruct {
  430    558   
            self.build_enforcing_required_and_enum_traits()
  431    559   
        }
         560  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  432    561   
        fn build_enforcing_required_and_enum_traits(self) -> crate::model::EmptyStruct {
  433         -
            crate::model::EmptyStruct {}
         562  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         563  +
            crate::model::EmptyStruct {
         564  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
         565  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  434    566   
        }
         567  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  435    568   
    }
         569  +
         570  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  436    571   
}
  437         -
/// See [`ValidationExceptionField`](crate::model::ValidationExceptionField).
         572  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ValidationExceptionField`](crate::model::ValidationExceptionField).
  438    573   
pub mod validation_exception_field {
  439    574   
         575  +
    /* RustType.kt:516 */
  440    576   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  441         -
    /// Holds one variant for each of the ways the builder can fail.
  442         -
         577  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
         578  +
    /* ServerBuilderConstraintViolations.kt:75 */
  443    579   
    #[allow(clippy::enum_variant_names)]
  444    580   
    pub enum ConstraintViolation {
  445         -
        /// `path` was not provided but it is required when building `ValidationExceptionField`.
         581  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`path` was not provided but it is required when building `ValidationExceptionField`.
         582  +
        /* ServerBuilderConstraintViolations.kt:143 */
  446    583   
        MissingPath,
  447         -
        /// `message` was not provided but it is required when building `ValidationExceptionField`.
         584  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`message` was not provided but it is required when building `ValidationExceptionField`.
         585  +
        /* ServerBuilderConstraintViolations.kt:143 */
  448    586   
        MissingMessage,
         587  +
        /* ServerBuilderConstraintViolations.kt:75 */
  449    588   
    }
         589  +
    /* ServerBuilderConstraintViolations.kt:117 */
  450    590   
    impl ::std::fmt::Display for ConstraintViolation {
         591  +
        /* ServerBuilderConstraintViolations.kt:118 */
  451    592   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         593  +
            /* ServerBuilderConstraintViolations.kt:119 */
  452    594   
            match self {
  453         -
                ConstraintViolation::MissingPath => write!(f, "`path` was not provided but it is required when building `ValidationExceptionField`"),
  454         -
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationExceptionField`"),
  455         -
            }
         595  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingPath => write!(f, "`path` was not provided but it is required when building `ValidationExceptionField`"),
         596  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationExceptionField`"),
         597  +
            /* ServerBuilderConstraintViolations.kt:119 */}
         598  +
            /* ServerBuilderConstraintViolations.kt:118 */
  456    599   
        }
         600  +
        /* ServerBuilderConstraintViolations.kt:117 */
  457    601   
    }
         602  +
    /* ServerBuilderConstraintViolations.kt:84 */
  458    603   
    impl ::std::error::Error for ConstraintViolation {}
         604  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
  459    605   
    impl ::std::convert::TryFrom<Builder> for crate::model::ValidationExceptionField {
  460    606   
        type Error = ConstraintViolation;
  461    607   
  462    608   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  463    609   
            builder.build()
  464    610   
        }
  465    611   
    }
  466         -
    /// A builder for [`ValidationExceptionField`](crate::model::ValidationExceptionField).
         612  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ValidationExceptionField`](crate::model::ValidationExceptionField).
         613  +
    /* RustType.kt:516 */
  467    614   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         615  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  468    616   
    pub struct Builder {
         617  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  469    618   
        pub(crate) path: ::std::option::Option<::std::string::String>,
         619  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  470    620   
        pub(crate) message: ::std::option::Option<::std::string::String>,
         621  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  471    622   
    }
         623  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  472    624   
    impl Builder {
  473         -
        /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
         625  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
         626  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  474    627   
        pub fn path(mut self, input: ::std::string::String) -> Self {
  475         -
            self.path = Some(input);
         628  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         629  +
            self.path =
         630  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
         631  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         632  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
         633  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  476    634   
            self
         635  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  477    636   
        }
  478         -
        /// A detailed description of the validation failure.
         637  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A detailed description of the validation failure.
         638  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  479    639   
        pub fn message(mut self, input: ::std::string::String) -> Self {
  480         -
            self.message = Some(input);
         640  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         641  +
            self.message =
         642  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
         643  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         644  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
         645  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  481    646   
            self
         647  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  482    648   
        }
  483         -
        /// Consumes the builder and constructs a [`ValidationExceptionField`](crate::model::ValidationExceptionField).
  484         -
        ///
         649  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ValidationExceptionField`](crate::model::ValidationExceptionField).
         650  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
  485    651   
        /// The builder fails to construct a [`ValidationExceptionField`](crate::model::ValidationExceptionField) if you do not provide a value for all non-`Option`al members.
  486    652   
        ///
         653  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  487    654   
        pub fn build(self) -> Result<crate::model::ValidationExceptionField, ConstraintViolation> {
  488    655   
            self.build_enforcing_required_and_enum_traits()
  489    656   
        }
         657  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  490    658   
        fn build_enforcing_required_and_enum_traits(
  491    659   
            self,
  492    660   
        ) -> Result<crate::model::ValidationExceptionField, ConstraintViolation> {
  493         -
            Ok(crate::model::ValidationExceptionField {
  494         -
                path: self.path.ok_or(ConstraintViolation::MissingPath)?,
  495         -
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
  496         -
            })
         661  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         662  +
            Ok(
         663  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         664  +
                crate::model::ValidationExceptionField {
         665  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
         666  +
                    path: self
         667  +
                        .path
         668  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
         669  +
                        .ok_or(ConstraintViolation::MissingPath)?,
         670  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
         671  +
                    message: self
         672  +
                        .message
         673  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
         674  +
                        .ok_or(ConstraintViolation::MissingMessage)?,
         675  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         676  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         677  +
            )
         678  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  497    679   
        }
         680  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  498    681   
    }
         682  +
         683  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  499    684   
}
  500    685   
pub(crate) mod map_with_enum_key_internal {
  501    686   
         687  +
    /* MapConstraintViolationGenerator.kt:82 */
  502    688   
    #[allow(clippy::enum_variant_names)]
  503    689   
    #[derive(Debug, PartialEq)]
  504    690   
    pub(crate) enum ConstraintViolation {
  505    691   
        #[doc(hidden)]
  506    692   
        Key(crate::model::string_enum_internal::ConstraintViolation),
  507    693   
    }
  508    694   
  509    695   
    impl ::std::fmt::Display for ConstraintViolation {
  510    696   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  511    697   
            match self {
  512    698   
                Self::Key(key_constraint_violation) => write!(f, "{}", key_constraint_violation),
  513    699   
            }
  514    700   
        }
  515    701   
    }
  516    702   
  517    703   
    impl ::std::error::Error for ConstraintViolation {}
         704  +
    /* MapConstraintViolationGenerator.kt:111 */
  518    705   
    impl ConstraintViolation {
  519    706   
        pub(crate) fn as_validation_exception_field(
  520    707   
            self,
  521    708   
            path: ::std::string::String,
  522    709   
        ) -> crate::model::ValidationExceptionField {
  523    710   
            match self {
  524    711   
                Self::Key(key_constraint_violation) => {
  525    712   
                    key_constraint_violation.as_validation_exception_field(path)
  526    713   
                }
  527    714   
            }
  528    715   
        }
  529    716   
    }
         717  +
         718  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  530    719   
}

tmp-codegen-diff/codegen-server-test-python/rest_json_extras/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_QUERYPRECEDENCE: ::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   
    /// [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput) using modelled bindings.
    6      7   
    pub struct QueryPrecedenceInputFuture {
    7      8   
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryPrecedenceInput, ::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 QueryPrecedenceInputFuture {
@@ -38,39 +136,140 @@
   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   
        QueryPrecedenceInputFuture {
   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::QueryPrecedenceOutput
   72     74   
{
   73     75   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
   74     76   
        match crate::protocol_serde::shape_query_precedence::ser_query_precedence_http_response(
   75     77   
            self,
   76     78   
        ) {
   77     79   
            Ok(response) => response,
   78     80   
            Err(e) => {
   79     81   
                ::tracing::error!(error = %e, "failed to serialize response");
   80     82   
                ::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))
   81     83   
            }
   82     84   
        }
   83     85   
    }
   84     86   
}
          87  +
/* ServerHttpBoundProtocolGenerator.kt:350 */
   85     88   
impl
   86     89   
    ::aws_smithy_http_server::response::IntoResponse<
   87     90   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
   88     91   
    > for crate::error::QueryPrecedenceError
   89     92   
{
   90     93   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
   91     94   
        match crate::protocol_serde::shape_query_precedence::ser_query_precedence_http_error(&self)
   92     95   
        {
   93     96   
            Ok(mut response) => {
   94     97   
                response.extensions_mut().insert(
   95     98   
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
   96     99   
                );
   97    100   
                response
   98    101   
            }
   99    102   
            Err(e) => {
  100    103   
                ::tracing::error!(error = %e, "failed to serialize response");
  101    104   
                ::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))
  102    105   
            }
  103    106   
        }
  104    107   
    }
  105    108   
}
  106    109   
         110  +
/* ServerHttpBoundProtocolGenerator.kt:266 */
  107    111   
const CONTENT_TYPE_EMPTYSTRUCTWITHCONTENTONWIREOP: ::mime::Mime = ::mime::APPLICATION_JSON;
  108    112   
::pin_project_lite::pin_project! {
  109    113   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  110    114   
    /// [`EmptyStructWithContentOnWireOpInput`](crate::input::EmptyStructWithContentOnWireOpInput) using modelled bindings.
  111    115   
    pub struct EmptyStructWithContentOnWireOpInputFuture {
  112    116   
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::EmptyStructWithContentOnWireOpInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  113    117   
    }
  114    118   
}
  115    119   
  116    120   
impl std::future::Future for EmptyStructWithContentOnWireOpInputFuture {
@@ -143,147 +236,243 @@
  163    167   
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  164    168   
                    e,
  165    169   
                )
  166    170   
            },
  167    171   
        );
  168    172   
        EmptyStructWithContentOnWireOpInputFuture {
  169    173   
            inner: Box::pin(fut),
  170    174   
        }
  171    175   
    }
  172    176   
}
         177  +
/* ServerHttpBoundProtocolGenerator.kt:329 */
  173    178   
impl
  174    179   
    ::aws_smithy_http_server::response::IntoResponse<
  175    180   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  176    181   
    > for crate::output::EmptyStructWithContentOnWireOpOutput
  177    182   
{
  178    183   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  179    184   
        match crate::protocol_serde::shape_empty_struct_with_content_on_wire_op::ser_empty_struct_with_content_on_wire_op_http_response(self) {
  180    185   
                        Ok(response) => response,
  181    186   
                        Err(e) => {
  182    187   
                            ::tracing::error!(error = %e, "failed to serialize response");
  183    188   
                            ::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))
  184    189   
                        }
  185    190   
                    }
  186    191   
    }
  187    192   
}
         193  +
/* ServerHttpBoundProtocolGenerator.kt:350 */
  188    194   
impl
  189    195   
    ::aws_smithy_http_server::response::IntoResponse<
  190    196   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  191    197   
    > for crate::error::EmptyStructWithContentOnWireOpError
  192    198   
{
  193    199   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  194    200   
        match crate::protocol_serde::shape_empty_struct_with_content_on_wire_op::ser_empty_struct_with_content_on_wire_op_http_error(&self) {
  195    201   
            Ok(mut response) => {
  196    202   
                response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
  197    203   
                response
  198    204   
            },
  199    205   
            Err(e) => {
  200    206   
                ::tracing::error!(error = %e, "failed to serialize response");
  201    207   
                ::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))
  202    208   
            }
  203    209   
        }
  204    210   
    }
  205    211   
}
  206    212   
         213  +
/* ServerHttpBoundProtocolGenerator.kt:266 */
  207    214   
const CONTENT_TYPE_CASEINSENSITIVEERROROPERATION: ::mime::Mime = ::mime::APPLICATION_JSON;
  208    215   
::pin_project_lite::pin_project! {
  209    216   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  210    217   
    /// [`CaseInsensitiveErrorOperationInput`](crate::input::CaseInsensitiveErrorOperationInput) using modelled bindings.
  211    218   
    pub struct CaseInsensitiveErrorOperationInputFuture {
  212    219   
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::CaseInsensitiveErrorOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  213    220   
    }
  214    221   
}
  215    222   
  216    223   
impl std::future::Future for CaseInsensitiveErrorOperationInputFuture {
@@ -243,250 +336,346 @@
  263    270   
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  264    271   
                    e,
  265    272   
                )
  266    273   
            },
  267    274   
        );
  268    275   
        CaseInsensitiveErrorOperationInputFuture {
  269    276   
            inner: Box::pin(fut),
  270    277   
        }
  271    278   
    }
  272    279   
}
         280  +
/* ServerHttpBoundProtocolGenerator.kt:329 */
  273    281   
impl
  274    282   
    ::aws_smithy_http_server::response::IntoResponse<
  275    283   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  276    284   
    > for crate::output::CaseInsensitiveErrorOperationOutput
  277    285   
{
  278    286   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  279    287   
        match crate::protocol_serde::shape_case_insensitive_error_operation::ser_case_insensitive_error_operation_http_response(self) {
  280    288   
                        Ok(response) => response,
  281    289   
                        Err(e) => {
  282    290   
                            ::tracing::error!(error = %e, "failed to serialize response");
  283    291   
                            ::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))
  284    292   
                        }
  285    293   
                    }
  286    294   
    }
  287    295   
}
         296  +
/* ServerHttpBoundProtocolGenerator.kt:350 */
  288    297   
impl
  289    298   
    ::aws_smithy_http_server::response::IntoResponse<
  290    299   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  291    300   
    > for crate::error::CaseInsensitiveErrorOperationError
  292    301   
{
  293    302   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  294    303   
        match crate::protocol_serde::shape_case_insensitive_error_operation::ser_case_insensitive_error_operation_http_error(&self) {
  295    304   
            Ok(mut response) => {
  296    305   
                response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
  297    306   
                response
  298    307   
            },
  299    308   
            Err(e) => {
  300    309   
                ::tracing::error!(error = %e, "failed to serialize response");
  301    310   
                ::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))
  302    311   
            }
  303    312   
        }
  304    313   
    }
  305    314   
}
  306    315   
         316  +
/* ServerHttpBoundProtocolGenerator.kt:266 */
  307    317   
const CONTENT_TYPE_NULLINNONSPARSE: ::mime::Mime = ::mime::APPLICATION_JSON;
  308    318   
::pin_project_lite::pin_project! {
  309    319   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  310    320   
    /// [`NullInNonSparseInput`](crate::input::NullInNonSparseInput) using modelled bindings.
  311    321   
    pub struct NullInNonSparseInputFuture {
  312    322   
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::NullInNonSparseInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  313    323   
    }
  314    324   
}
  315    325   
  316    326   
impl std::future::Future for NullInNonSparseInputFuture {
@@ -345,355 +444,457 @@
  365    375   
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  366    376   
                    e,
  367    377   
                )
  368    378   
            },
  369    379   
        );
  370    380   
        NullInNonSparseInputFuture {
  371    381   
            inner: Box::pin(fut),
  372    382   
        }
  373    383   
    }
  374    384   
}
         385  +
/* ServerHttpBoundProtocolGenerator.kt:329 */
  375    386   
impl
  376    387   
    ::aws_smithy_http_server::response::IntoResponse<
  377    388   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  378    389   
    > for crate::output::NullInNonSparseOutput
  379    390   
{
  380    391   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  381    392   
        match crate::protocol_serde::shape_null_in_non_sparse::ser_null_in_non_sparse_http_response(
  382    393   
            self,
  383    394   
        ) {
  384    395   
            Ok(response) => response,
  385    396   
            Err(e) => {
  386    397   
                ::tracing::error!(error = %e, "failed to serialize response");
  387    398   
                ::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))
  388    399   
            }
  389    400   
        }
  390    401   
    }
  391    402   
}
         403  +
/* ServerHttpBoundProtocolGenerator.kt:350 */
  392    404   
impl
  393    405   
    ::aws_smithy_http_server::response::IntoResponse<
  394    406   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  395    407   
    > for crate::error::NullInNonSparseError
  396    408   
{
  397    409   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  398    410   
        match crate::protocol_serde::shape_null_in_non_sparse::ser_null_in_non_sparse_http_error(
  399    411   
            &self,
  400    412   
        ) {
  401    413   
            Ok(mut response) => {
  402    414   
                response.extensions_mut().insert(
  403    415   
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
  404    416   
                );
  405    417   
                response
  406    418   
            }
  407    419   
            Err(e) => {
  408    420   
                ::tracing::error!(error = %e, "failed to serialize response");
  409    421   
                ::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))
  410    422   
            }
  411    423   
        }
  412    424   
    }
  413    425   
}
  414    426   
         427  +
/* ServerHttpBoundProtocolGenerator.kt:266 */
  415    428   
const CONTENT_TYPE_ESCAPEDSTRINGVALUES: ::mime::Mime = ::mime::APPLICATION_JSON;
  416    429   
::pin_project_lite::pin_project! {
  417    430   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  418    431   
    /// [`EscapedStringValuesInput`](crate::input::EscapedStringValuesInput) using modelled bindings.
  419    432   
    pub struct EscapedStringValuesInputFuture {
  420    433   
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::EscapedStringValuesInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  421    434   
    }
  422    435   
}
  423    436   
  424    437   
impl std::future::Future for EscapedStringValuesInputFuture {
@@ -451,464 +544,560 @@
  471    484   
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  472    485   
                    e,
  473    486   
                )
  474    487   
            },
  475    488   
        );
  476    489   
        EscapedStringValuesInputFuture {
  477    490   
            inner: Box::pin(fut),
  478    491   
        }
  479    492   
    }
  480    493   
}
         494  +
/* ServerHttpBoundProtocolGenerator.kt:329 */
  481    495   
impl
  482    496   
    ::aws_smithy_http_server::response::IntoResponse<
  483    497   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  484    498   
    > for crate::output::EscapedStringValuesOutput
  485    499   
{
  486    500   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  487    501   
        match crate::protocol_serde::shape_escaped_string_values::ser_escaped_string_values_http_response(self) {
  488    502   
                        Ok(response) => response,
  489    503   
                        Err(e) => {
  490    504   
                            ::tracing::error!(error = %e, "failed to serialize response");
  491    505   
                            ::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))
  492    506   
                        }
  493    507   
                    }
  494    508   
    }
  495    509   
}
         510  +
/* ServerHttpBoundProtocolGenerator.kt:350 */
  496    511   
impl
  497    512   
    ::aws_smithy_http_server::response::IntoResponse<
  498    513   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  499    514   
    > for crate::error::EscapedStringValuesError
  500    515   
{
  501    516   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  502    517   
        match crate::protocol_serde::shape_escaped_string_values::ser_escaped_string_values_http_error(&self) {
  503    518   
            Ok(mut response) => {
  504    519   
                response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
  505    520   
                response
  506    521   
            },
  507    522   
            Err(e) => {
  508    523   
                ::tracing::error!(error = %e, "failed to serialize response");
  509    524   
                ::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))
  510    525   
            }
  511    526   
        }
  512    527   
    }
  513    528   
}
  514    529   
         530  +
/* ServerHttpBoundProtocolGenerator.kt:266 */
  515    531   
const CONTENT_TYPE_PRIMITIVEINTOP: ::mime::Mime = ::mime::APPLICATION_JSON;
  516    532   
::pin_project_lite::pin_project! {
  517    533   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  518    534   
    /// [`PrimitiveIntOpInput`](crate::input::PrimitiveIntOpInput) using modelled bindings.
  519    535   
    pub struct PrimitiveIntOpInputFuture {
  520    536   
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::PrimitiveIntOpInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  521    537   
    }
  522    538   
}
  523    539   
  524    540   
impl std::future::Future for PrimitiveIntOpInputFuture {
@@ -551,567 +649,668 @@
  571    587   
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  572    588   
                    e,
  573    589   
                )
  574    590   
            },
  575    591   
        );
  576    592   
        PrimitiveIntOpInputFuture {
  577    593   
            inner: Box::pin(fut),
  578    594   
        }
  579    595   
    }
  580    596   
}
         597  +
/* ServerHttpBoundProtocolGenerator.kt:329 */
  581    598   
impl
  582    599   
    ::aws_smithy_http_server::response::IntoResponse<
  583    600   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  584    601   
    > for crate::output::PrimitiveIntOpOutput
  585    602   
{
  586    603   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  587    604   
        match crate::protocol_serde::shape_primitive_int_op::ser_primitive_int_op_http_response(
  588    605   
            self,
  589    606   
        ) {
  590    607   
            Ok(response) => response,
  591    608   
            Err(e) => {
  592    609   
                ::tracing::error!(error = %e, "failed to serialize response");
  593    610   
                ::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))
  594    611   
            }
  595    612   
        }
  596    613   
    }
  597    614   
}
         615  +
/* ServerHttpBoundProtocolGenerator.kt:350 */
  598    616   
impl
  599    617   
    ::aws_smithy_http_server::response::IntoResponse<
  600    618   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  601    619   
    > for crate::error::PrimitiveIntOpError
  602    620   
{
  603    621   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  604    622   
        match crate::protocol_serde::shape_primitive_int_op::ser_primitive_int_op_http_error(&self)
  605    623   
        {
  606    624   
            Ok(mut response) => {
  607    625   
                response.extensions_mut().insert(
  608    626   
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
  609    627   
                );
  610    628   
                response
  611    629   
            }
  612    630   
            Err(e) => {
  613    631   
                ::tracing::error!(error = %e, "failed to serialize response");
  614    632   
                ::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))
  615    633   
            }
  616    634   
        }
  617    635   
    }
  618    636   
}
  619    637   
         638  +
/* ServerHttpBoundProtocolGenerator.kt:266 */
  620    639   
const CONTENT_TYPE_MAPWITHENUMKEYOP: ::mime::Mime = ::mime::APPLICATION_JSON;
  621    640   
::pin_project_lite::pin_project! {
  622    641   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  623    642   
    /// [`MapWithEnumKeyOpInput`](crate::input::MapWithEnumKeyOpInput) using modelled bindings.
  624    643   
    pub struct MapWithEnumKeyOpInputFuture {
  625    644   
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MapWithEnumKeyOpInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  626    645   
    }
  627    646   
}
  628    647   
  629    648   
impl std::future::Future for MapWithEnumKeyOpInputFuture {
@@ -658,677 +755,777 @@
  678    697   
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  679    698   
                    e,
  680    699   
                )
  681    700   
            },
  682    701   
        );
  683    702   
        MapWithEnumKeyOpInputFuture {
  684    703   
            inner: Box::pin(fut),
  685    704   
        }
  686    705   
    }
  687    706   
}
         707  +
/* ServerHttpBoundProtocolGenerator.kt:329 */
  688    708   
impl
  689    709   
    ::aws_smithy_http_server::response::IntoResponse<
  690    710   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  691    711   
    > for crate::output::MapWithEnumKeyOpOutput
  692    712   
{
  693    713   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  694    714   
        match crate::protocol_serde::shape_map_with_enum_key_op::ser_map_with_enum_key_op_http_response(self) {
  695    715   
                        Ok(response) => response,
  696    716   
                        Err(e) => {
  697    717   
                            ::tracing::error!(error = %e, "failed to serialize response");
  698    718   
                            ::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))
  699    719   
                        }
  700    720   
                    }
  701    721   
    }
  702    722   
}
         723  +
/* ServerHttpBoundProtocolGenerator.kt:350 */
  703    724   
impl
  704    725   
    ::aws_smithy_http_server::response::IntoResponse<
  705    726   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  706    727   
    > for crate::error::MapWithEnumKeyOpError
  707    728   
{
  708    729   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  709    730   
        match crate::protocol_serde::shape_map_with_enum_key_op::ser_map_with_enum_key_op_http_error(
  710    731   
            &self,
  711    732   
        ) {
  712    733   
            Ok(mut response) => {
  713    734   
                response.extensions_mut().insert(
  714    735   
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
  715    736   
                );
  716    737   
                response
  717    738   
            }
  718    739   
            Err(e) => {
  719    740   
                ::tracing::error!(error = %e, "failed to serialize response");
  720    741   
                ::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))
  721    742   
            }
  722    743   
        }
  723    744   
    }
  724    745   
}
  725    746   
         747  +
/* ServerHttpBoundProtocolGenerator.kt:266 */
  726    748   
const CONTENT_TYPE_STATUSRESPONSE: ::mime::Mime = ::mime::APPLICATION_JSON;
  727    749   
::pin_project_lite::pin_project! {
  728    750   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  729    751   
    /// [`StatusResponseInput`](crate::input::StatusResponseInput) using modelled bindings.
  730    752   
    pub struct StatusResponseInputFuture {
  731    753   
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::StatusResponseInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  732    754   
    }
  733    755   
}
  734    756   
  735    757   
impl std::future::Future for StatusResponseInputFuture {
@@ -762,784 +858,883 @@
  782    804   
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  783    805   
                    e,
  784    806   
                )
  785    807   
            },
  786    808   
        );
  787    809   
        StatusResponseInputFuture {
  788    810   
            inner: Box::pin(fut),
  789    811   
        }
  790    812   
    }
  791    813   
}
         814  +
/* ServerHttpBoundProtocolGenerator.kt:329 */
  792    815   
impl
  793    816   
    ::aws_smithy_http_server::response::IntoResponse<
  794    817   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  795    818   
    > for crate::output::StatusResponseOutput
  796    819   
{
  797    820   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  798    821   
        match crate::protocol_serde::shape_status_response::ser_status_response_http_response(self)
  799    822   
        {
  800    823   
            Ok(response) => response,
  801    824   
            Err(e) => {
  802    825   
                ::tracing::error!(error = %e, "failed to serialize response");
  803    826   
                ::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))
  804    827   
            }
  805    828   
        }
  806    829   
    }
  807    830   
}
         831  +
/* ServerHttpBoundProtocolGenerator.kt:350 */
  808    832   
impl
  809    833   
    ::aws_smithy_http_server::response::IntoResponse<
  810    834   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  811    835   
    > for crate::error::StatusResponseError
  812    836   
{
  813    837   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  814    838   
        match crate::protocol_serde::shape_status_response::ser_status_response_http_error(&self) {
  815    839   
            Ok(mut response) => {
  816    840   
                response.extensions_mut().insert(
  817    841   
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
  818    842   
                );
  819    843   
                response
  820    844   
            }
  821    845   
            Err(e) => {
  822    846   
                ::tracing::error!(error = %e, "failed to serialize response");
  823    847   
                ::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))
  824    848   
            }
  825    849   
        }
  826    850   
    }
  827    851   
}
  828    852   
         853  +
/* ServerHttpBoundProtocolGenerator.kt:266 */
  829    854   
const CONTENT_TYPE_ENUMQUERY: ::mime::Mime = ::mime::APPLICATION_JSON;
  830    855   
::pin_project_lite::pin_project! {
  831    856   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  832    857   
    /// [`EnumQueryInput`](crate::input::EnumQueryInput) using modelled bindings.
  833    858   
    pub struct EnumQueryInputFuture {
  834    859   
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::EnumQueryInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  835    860   
    }
  836    861   
}
  837    862   
  838    863   
impl std::future::Future for EnumQueryInputFuture {
@@ -865,890 +960,988 @@
  885    910   
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  886    911   
                    e,
  887    912   
                )
  888    913   
            },
  889    914   
        );
  890    915   
        EnumQueryInputFuture {
  891    916   
            inner: Box::pin(fut),
  892    917   
        }
  893    918   
    }
  894    919   
}
         920  +
/* ServerHttpBoundProtocolGenerator.kt:329 */
  895    921   
impl
  896    922   
    ::aws_smithy_http_server::response::IntoResponse<
  897    923   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  898    924   
    > for crate::output::EnumQueryOutput
  899    925   
{
  900    926   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  901    927   
        match crate::protocol_serde::shape_enum_query::ser_enum_query_http_response(self) {
  902    928   
            Ok(response) => response,
  903    929   
            Err(e) => {
  904    930   
                ::tracing::error!(error = %e, "failed to serialize response");
  905    931   
                ::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))
  906    932   
            }
  907    933   
        }
  908    934   
    }
  909    935   
}
         936  +
/* ServerHttpBoundProtocolGenerator.kt:350 */
  910    937   
impl
  911    938   
    ::aws_smithy_http_server::response::IntoResponse<
  912    939   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
  913    940   
    > for crate::error::EnumQueryError
  914    941   
{
  915    942   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
  916    943   
        match crate::protocol_serde::shape_enum_query::ser_enum_query_http_error(&self) {
  917    944   
            Ok(mut response) => {
  918    945   
                response.extensions_mut().insert(
  919    946   
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
  920    947   
                );
  921    948   
                response
  922    949   
            }
  923    950   
            Err(e) => {
  924    951   
                ::tracing::error!(error = %e, "failed to serialize response");
  925    952   
                ::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))
  926    953   
            }
  927    954   
        }
  928    955   
    }
  929    956   
}
  930    957   
         958  +
/* ServerHttpBoundProtocolGenerator.kt:266 */
  931    959   
const CONTENT_TYPE_PRIMITIVEINTHEADER: ::mime::Mime = ::mime::APPLICATION_JSON;
  932    960   
::pin_project_lite::pin_project! {
  933    961   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  934    962   
    /// [`PrimitiveIntHeaderInput`](crate::input::PrimitiveIntHeaderInput) using modelled bindings.
  935    963   
    pub struct PrimitiveIntHeaderInputFuture {
  936    964   
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::PrimitiveIntHeaderInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  937    965   
    }
  938    966   
}
  939    967   
  940    968   
impl std::future::Future for PrimitiveIntHeaderInputFuture {
@@ -969,997 +1066,1097 @@
  989   1017   
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  990   1018   
                    e,
  991   1019   
                )
  992   1020   
            },
  993   1021   
        );
  994   1022   
        PrimitiveIntHeaderInputFuture {
  995   1023   
            inner: Box::pin(fut),
  996   1024   
        }
  997   1025   
    }
  998   1026   
}
        1027  +
/* ServerHttpBoundProtocolGenerator.kt:329 */
  999   1028   
impl
 1000   1029   
    ::aws_smithy_http_server::response::IntoResponse<
 1001   1030   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
 1002   1031   
    > for crate::output::PrimitiveIntHeaderOutput
 1003   1032   
{
 1004   1033   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
 1005   1034   
        match crate::protocol_serde::shape_primitive_int_header::ser_primitive_int_header_http_response(self) {
 1006   1035   
                        Ok(response) => response,
 1007   1036   
                        Err(e) => {
 1008   1037   
                            ::tracing::error!(error = %e, "failed to serialize response");
 1009   1038   
                            ::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))
 1010   1039   
                        }
 1011   1040   
                    }
 1012   1041   
    }
 1013   1042   
}
        1043  +
/* ServerHttpBoundProtocolGenerator.kt:350 */
 1014   1044   
impl
 1015   1045   
    ::aws_smithy_http_server::response::IntoResponse<
 1016   1046   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
 1017   1047   
    > for crate::error::PrimitiveIntHeaderError
 1018   1048   
{
 1019   1049   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
 1020   1050   
        match crate::protocol_serde::shape_primitive_int_header::ser_primitive_int_header_http_error(
 1021   1051   
            &self,
 1022   1052   
        ) {
 1023   1053   
            Ok(mut response) => {
 1024   1054   
                response.extensions_mut().insert(
 1025   1055   
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
 1026   1056   
                );
 1027   1057   
                response
 1028   1058   
            }
 1029   1059   
            Err(e) => {
 1030   1060   
                ::tracing::error!(error = %e, "failed to serialize response");
 1031   1061   
                ::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))
 1032   1062   
            }
 1033   1063   
        }
 1034   1064   
    }
 1035   1065   
}
 1036   1066   
        1067  +
/* ServerHttpBoundProtocolGenerator.kt:266 */
 1037   1068   
static CONTENT_TYPE_STRINGPAYLOAD: std::sync::LazyLock<::mime::Mime> =
 1038   1069   
    std::sync::LazyLock::new(|| {
 1039   1070   
        "text/plain"
 1040   1071   
            .parse::<::mime::Mime>()
 1041   1072   
            .expect("BUG: MIME parsing failed, content_type is not valid")
 1042   1073   
    });
 1043   1074   
::pin_project_lite::pin_project! {
 1044   1075   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
 1045   1076   
    /// [`StringPayloadInput`](crate::input::StringPayloadInput) using modelled bindings.
 1046   1077   
    pub struct StringPayloadInputFuture {
@@ -1078,1109 +1142,1175 @@
 1098   1129   
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
 1099   1130   
                    e,
 1100   1131   
                )
 1101   1132   
            },
 1102   1133   
        );
 1103   1134   
        StringPayloadInputFuture {
 1104   1135   
            inner: Box::pin(fut),
 1105   1136   
        }
 1106   1137   
    }
 1107   1138   
}
        1139  +
/* ServerHttpBoundProtocolGenerator.kt:329 */
 1108   1140   
impl
 1109   1141   
    ::aws_smithy_http_server::response::IntoResponse<
 1110   1142   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
 1111   1143   
    > for crate::output::StringPayloadOutput
 1112   1144   
{
 1113   1145   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
 1114   1146   
        match crate::protocol_serde::shape_string_payload::ser_string_payload_http_response(self) {
 1115   1147   
            Ok(response) => response,
 1116   1148   
            Err(e) => {
 1117   1149   
                ::tracing::error!(error = %e, "failed to serialize response");
 1118   1150   
                ::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))
 1119   1151   
            }
 1120   1152   
        }
 1121   1153   
    }
 1122   1154   
}
        1155  +
/* ServerHttpBoundProtocolGenerator.kt:350 */
 1123   1156   
impl
 1124   1157   
    ::aws_smithy_http_server::response::IntoResponse<
 1125   1158   
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
 1126   1159   
    > for crate::error::StringPayloadError
 1127   1160   
{
 1128   1161   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
 1129   1162   
        match crate::protocol_serde::shape_string_payload::ser_string_payload_http_error(&self) {
 1130   1163   
            Ok(mut response) => {
 1131   1164   
                response.extensions_mut().insert(
 1132   1165   
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),

tmp-codegen-diff/codegen-server-test-python/rest_json_extras/rust-server-codegen-python/src/operation_shape.rs

@@ -1,1 +0,455 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ServerOperationGenerator.kt:48 */
    2      3   
#[allow(missing_docs)] // documentation missing in model
           4  +
                       /* ServerOperationGenerator.kt:55 */
    3      5   
pub struct QueryPrecedence;
    4      6   
    5      7   
impl ::aws_smithy_http_server::operation::OperationShape for QueryPrecedence {
    6      8   
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
    7      9   
        ::aws_smithy_http_server::shape_id::ShapeId::new(
    8     10   
            "aws.protocoltests.restjson#QueryPrecedence",
    9     11   
            "aws.protocoltests.restjson",
   10     12   
            "QueryPrecedence",
   11     13   
        );
   12     14   
   13     15   
    type Input = crate::input::QueryPrecedenceInput;
   14     16   
    type Output = crate::output::QueryPrecedenceOutput;
   15     17   
    type Error = crate::error::QueryPrecedenceError;
   16     18   
}
   17     19   
   18     20   
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for QueryPrecedence {
   19     21   
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
   20     22   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
   21     23   
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
   22     24   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
   23     25   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
   24     26   
        >,
   25     27   
    >;
   26     28   
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
   27     29   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
   28     30   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
   29     31   
    >;
   30     32   
   31     33   
    fn request_fmt() -> Self::RequestFmt {
   32     34   
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
   33     35   
    }
   34     36   
   35     37   
    fn response_fmt() -> Self::ResponseFmt {
   36     38   
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
   37     39   
    }
   38     40   
}
          41  +
/* ServerOperationGenerator.kt:88 */
   39     42   
          43  +
/* ServerOperationGenerator.kt:48 */
   40     44   
#[allow(missing_docs)] // documentation missing in model
          45  +
                       /* ServerOperationGenerator.kt:55 */
   41     46   
pub struct EmptyStructWithContentOnWireOp;
   42     47   
   43     48   
impl ::aws_smithy_http_server::operation::OperationShape for EmptyStructWithContentOnWireOp {
   44     49   
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
   45     50   
        ::aws_smithy_http_server::shape_id::ShapeId::new(
   46     51   
            "aws.protocoltests.restjson#EmptyStructWithContentOnWireOp",
   47     52   
            "aws.protocoltests.restjson",
   48     53   
            "EmptyStructWithContentOnWireOp",
   49     54   
        );
   50     55   
   51     56   
    type Input = crate::input::EmptyStructWithContentOnWireOpInput;
   52     57   
    type Output = crate::output::EmptyStructWithContentOnWireOpOutput;
   53     58   
    type Error = crate::error::EmptyStructWithContentOnWireOpError;
   54     59   
}
   55     60   
   56     61   
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
   57     62   
    for EmptyStructWithContentOnWireOp
   58     63   
{
   59     64   
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
   60     65   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
   61     66   
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
   62     67   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
   63     68   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
   64     69   
        >,
   65     70   
    >;
   66     71   
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
   67     72   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
   68     73   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
   69     74   
    >;
   70     75   
   71     76   
    fn request_fmt() -> Self::RequestFmt {
   72     77   
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
   73     78   
    }
   74     79   
   75     80   
    fn response_fmt() -> Self::ResponseFmt {
   76     81   
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
   77     82   
    }
   78     83   
}
          84  +
/* ServerOperationGenerator.kt:88 */
   79     85   
          86  +
/* ServerOperationGenerator.kt:48 */
   80     87   
#[allow(missing_docs)] // documentation missing in model
          88  +
                       /* ServerOperationGenerator.kt:55 */
   81     89   
pub struct CaseInsensitiveErrorOperation;
   82     90   
   83     91   
impl ::aws_smithy_http_server::operation::OperationShape for CaseInsensitiveErrorOperation {
   84     92   
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
   85     93   
        ::aws_smithy_http_server::shape_id::ShapeId::new(
   86     94   
            "aws.protocoltests.restjson#CaseInsensitiveErrorOperation",
   87     95   
            "aws.protocoltests.restjson",
   88     96   
            "CaseInsensitiveErrorOperation",
   89     97   
        );
   90     98   
   91     99   
    type Input = crate::input::CaseInsensitiveErrorOperationInput;
   92    100   
    type Output = crate::output::CaseInsensitiveErrorOperationOutput;
   93    101   
    type Error = crate::error::CaseInsensitiveErrorOperationError;
   94    102   
}
   95    103   
   96    104   
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
   97    105   
    for CaseInsensitiveErrorOperation
   98    106   
{
   99    107   
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  100    108   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  101    109   
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  102    110   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  103    111   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  104    112   
        >,
  105    113   
    >;
  106    114   
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  107    115   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  108    116   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  109    117   
    >;
  110    118   
  111    119   
    fn request_fmt() -> Self::RequestFmt {
  112    120   
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
  113    121   
    }
  114    122   
  115    123   
    fn response_fmt() -> Self::ResponseFmt {
  116    124   
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  117    125   
    }
  118    126   
}
         127  +
/* ServerOperationGenerator.kt:88 */
  119    128   
         129  +
/* ServerOperationGenerator.kt:48 */
  120    130   
#[allow(missing_docs)] // documentation missing in model
         131  +
                       /* ServerOperationGenerator.kt:55 */
  121    132   
pub struct NullInNonSparse;
  122    133   
  123    134   
impl ::aws_smithy_http_server::operation::OperationShape for NullInNonSparse {
  124    135   
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  125    136   
        ::aws_smithy_http_server::shape_id::ShapeId::new(
  126    137   
            "aws.protocoltests.restjson#NullInNonSparse",
  127    138   
            "aws.protocoltests.restjson",
  128    139   
            "NullInNonSparse",
  129    140   
        );
  130    141   
  131    142   
    type Input = crate::input::NullInNonSparseInput;
  132    143   
    type Output = crate::output::NullInNonSparseOutput;
  133    144   
    type Error = crate::error::NullInNonSparseError;
  134    145   
}
  135    146   
  136    147   
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for NullInNonSparse {
  137    148   
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  138    149   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  139    150   
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  140    151   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  141    152   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  142    153   
        >,
  143    154   
    >;
  144    155   
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  145    156   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  146    157   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  147    158   
    >;
  148    159   
  149    160   
    fn request_fmt() -> Self::RequestFmt {
  150    161   
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
  151    162   
    }
  152    163   
  153    164   
    fn response_fmt() -> Self::ResponseFmt {
  154    165   
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  155    166   
    }
  156    167   
}
         168  +
/* ServerOperationGenerator.kt:88 */
  157    169   
         170  +
/* ServerOperationGenerator.kt:48 */
  158    171   
#[allow(missing_docs)] // documentation missing in model
         172  +
                       /* ServerOperationGenerator.kt:55 */
  159    173   
pub struct EscapedStringValues;
  160    174   
  161    175   
impl ::aws_smithy_http_server::operation::OperationShape for EscapedStringValues {
  162    176   
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  163    177   
        ::aws_smithy_http_server::shape_id::ShapeId::new(
  164    178   
            "aws.protocoltests.restjson#EscapedStringValues",
  165    179   
            "aws.protocoltests.restjson",
  166    180   
            "EscapedStringValues",
  167    181   
        );
  168    182   
  169    183   
    type Input = crate::input::EscapedStringValuesInput;
  170    184   
    type Output = crate::output::EscapedStringValuesOutput;
  171    185   
    type Error = crate::error::EscapedStringValuesError;
  172    186   
}
  173    187   
  174    188   
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for EscapedStringValues {
  175    189   
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  176    190   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  177    191   
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  178    192   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  179    193   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  180    194   
        >,
  181    195   
    >;
  182    196   
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  183    197   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  184    198   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  185    199   
    >;
  186    200   
  187    201   
    fn request_fmt() -> Self::RequestFmt {
  188    202   
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
  189    203   
    }
  190    204   
  191    205   
    fn response_fmt() -> Self::ResponseFmt {
  192    206   
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  193    207   
    }
  194    208   
}
         209  +
/* ServerOperationGenerator.kt:88 */
  195    210   
         211  +
/* ServerOperationGenerator.kt:48 */
  196    212   
#[allow(missing_docs)] // documentation missing in model
         213  +
                       /* ServerOperationGenerator.kt:55 */
  197    214   
pub struct PrimitiveIntOp;
  198    215   
  199    216   
impl ::aws_smithy_http_server::operation::OperationShape for PrimitiveIntOp {
  200    217   
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  201    218   
        ::aws_smithy_http_server::shape_id::ShapeId::new(
  202    219   
            "aws.protocoltests.restjson#PrimitiveIntOp",
  203    220   
            "aws.protocoltests.restjson",
  204    221   
            "PrimitiveIntOp",
  205    222   
        );
  206    223   
  207    224   
    type Input = crate::input::PrimitiveIntOpInput;
  208    225   
    type Output = crate::output::PrimitiveIntOpOutput;
  209    226   
    type Error = crate::error::PrimitiveIntOpError;
  210    227   
}
  211    228   
  212    229   
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for PrimitiveIntOp {
  213    230   
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  214    231   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  215    232   
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  216    233   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  217    234   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  218    235   
        >,
  219    236   
    >;
  220    237   
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  221    238   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  222    239   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  223    240   
    >;
  224    241   
  225    242   
    fn request_fmt() -> Self::RequestFmt {
  226    243   
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
  227    244   
    }
  228    245   
  229    246   
    fn response_fmt() -> Self::ResponseFmt {
  230    247   
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  231    248   
    }
  232    249   
}
         250  +
/* ServerOperationGenerator.kt:88 */
  233    251   
         252  +
/* ServerOperationGenerator.kt:48 */
  234    253   
#[allow(missing_docs)] // documentation missing in model
         254  +
                       /* ServerOperationGenerator.kt:55 */
  235    255   
pub struct MapWithEnumKeyOp;
  236    256   
  237    257   
impl ::aws_smithy_http_server::operation::OperationShape for MapWithEnumKeyOp {
  238    258   
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  239    259   
        ::aws_smithy_http_server::shape_id::ShapeId::new(
  240    260   
            "aws.protocoltests.restjson#MapWithEnumKeyOp",
  241    261   
            "aws.protocoltests.restjson",
  242    262   
            "MapWithEnumKeyOp",
  243    263   
        );
  244    264   
  245    265   
    type Input = crate::input::MapWithEnumKeyOpInput;
  246    266   
    type Output = crate::output::MapWithEnumKeyOpOutput;
  247    267   
    type Error = crate::error::MapWithEnumKeyOpError;
  248    268   
}
  249    269   
  250    270   
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for MapWithEnumKeyOp {
  251    271   
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  252    272   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  253    273   
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  254    274   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  255    275   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  256    276   
        >,
  257    277   
    >;
  258    278   
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  259    279   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  260    280   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  261    281   
    >;
  262    282   
  263    283   
    fn request_fmt() -> Self::RequestFmt {
  264    284   
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
  265    285   
    }
  266    286   
  267    287   
    fn response_fmt() -> Self::ResponseFmt {
  268    288   
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  269    289   
    }
  270    290   
}
         291  +
/* ServerOperationGenerator.kt:88 */
  271    292   
         293  +
/* ServerOperationGenerator.kt:48 */
  272    294   
#[allow(missing_docs)] // documentation missing in model
         295  +
                       /* ServerOperationGenerator.kt:55 */
  273    296   
pub struct StatusResponse;
  274    297   
  275    298   
impl ::aws_smithy_http_server::operation::OperationShape for StatusResponse {
  276    299   
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  277    300   
        ::aws_smithy_http_server::shape_id::ShapeId::new(
  278    301   
            "aws.protocoltests.restjson#StatusResponse",
  279    302   
            "aws.protocoltests.restjson",
  280    303   
            "StatusResponse",
  281    304   
        );
  282    305   
  283    306   
    type Input = crate::input::StatusResponseInput;
  284    307   
    type Output = crate::output::StatusResponseOutput;
  285    308   
    type Error = crate::error::StatusResponseError;
  286    309   
}
  287    310   
  288    311   
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for StatusResponse {
  289    312   
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  290    313   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  291    314   
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  292    315   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  293    316   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  294    317   
        >,
  295    318   
    >;
  296    319   
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  297    320   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  298    321   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  299    322   
    >;
  300    323   
  301    324   
    fn request_fmt() -> Self::RequestFmt {
  302    325   
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
  303    326   
    }
  304    327   
  305    328   
    fn response_fmt() -> Self::ResponseFmt {
  306    329   
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  307    330   
    }
  308    331   
}
         332  +
/* ServerOperationGenerator.kt:88 */
  309    333   
         334  +
/* ServerOperationGenerator.kt:48 */
  310    335   
#[allow(missing_docs)] // documentation missing in model
         336  +
                       /* ServerOperationGenerator.kt:55 */
  311    337   
pub struct EnumQuery;
  312    338   
  313    339   
impl ::aws_smithy_http_server::operation::OperationShape for EnumQuery {
  314    340   
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  315    341   
        ::aws_smithy_http_server::shape_id::ShapeId::new(
  316    342   
            "aws.protocoltests.restjson#EnumQuery",
  317    343   
            "aws.protocoltests.restjson",
  318    344   
            "EnumQuery",
  319    345   
        );
  320    346   
  321    347   
    type Input = crate::input::EnumQueryInput;
  322    348   
    type Output = crate::output::EnumQueryOutput;
  323    349   
    type Error = crate::error::EnumQueryError;
  324    350   
}
  325    351   
  326    352   
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for EnumQuery {
  327    353   
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  328    354   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  329    355   
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  330    356   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  331    357   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  332    358   
        >,
  333    359   
    >;
  334    360   
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  335    361   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  336    362   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  337    363   
    >;
  338    364   
  339    365   
    fn request_fmt() -> Self::RequestFmt {
  340    366   
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
  341    367   
    }
  342    368   
  343    369   
    fn response_fmt() -> Self::ResponseFmt {
  344    370   
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  345    371   
    }
  346    372   
}
         373  +
/* ServerOperationGenerator.kt:88 */
  347    374   
         375  +
/* ServerOperationGenerator.kt:48 */
  348    376   
#[allow(missing_docs)] // documentation missing in model
         377  +
                       /* ServerOperationGenerator.kt:55 */
  349    378   
pub struct PrimitiveIntHeader;
  350    379   
  351    380   
impl ::aws_smithy_http_server::operation::OperationShape for PrimitiveIntHeader {
  352    381   
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  353    382   
        ::aws_smithy_http_server::shape_id::ShapeId::new(
  354    383   
            "aws.protocoltests.restjson#PrimitiveIntHeader",
  355    384   
            "aws.protocoltests.restjson",
  356    385   
            "PrimitiveIntHeader",
  357    386   
        );
  358    387   
  359    388   
    type Input = crate::input::PrimitiveIntHeaderInput;
  360    389   
    type Output = crate::output::PrimitiveIntHeaderOutput;
  361    390   
    type Error = crate::error::PrimitiveIntHeaderError;
  362    391   
}
  363    392   
  364    393   
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for PrimitiveIntHeader {
  365    394   
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  366    395   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  367    396   
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  368    397   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  369    398   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  370    399   
        >,
  371    400   
    >;
  372    401   
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  373    402   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  374    403   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  375    404   
    >;
  376    405   
  377    406   
    fn request_fmt() -> Self::RequestFmt {
  378    407   
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
  379    408   
    }
  380    409   
  381    410   
    fn response_fmt() -> Self::ResponseFmt {
  382    411   
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  383    412   
    }
  384    413   
}
         414  +
/* ServerOperationGenerator.kt:88 */
  385    415   
         416  +
/* ServerOperationGenerator.kt:48 */
  386    417   
#[allow(missing_docs)] // documentation missing in model
         418  +
                       /* ServerOperationGenerator.kt:55 */
  387    419   
pub struct StringPayload;
  388    420   
  389    421   
impl ::aws_smithy_http_server::operation::OperationShape for StringPayload {
  390    422   
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  391    423   
        ::aws_smithy_http_server::shape_id::ShapeId::new(
  392    424   
            "aws.protocoltests.restjson#StringPayload",
  393    425   
            "aws.protocoltests.restjson",
  394    426   
            "StringPayload",
  395    427   
        );
  396    428   
  397    429   
    type Input = crate::input::StringPayloadInput;
  398    430   
    type Output = crate::output::StringPayloadOutput;
  399    431   
    type Error = crate::error::StringPayloadError;
  400    432   
}
  401    433   
  402    434   
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for StringPayload {
  403    435   
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  404    436   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  405    437   
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  406    438   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  407    439   
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  408    440   
        >,
  409    441   
    >;
  410    442   
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  411    443   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  412    444   
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  413    445   
    >;
  414    446   
  415    447   
    fn request_fmt() -> Self::RequestFmt {
  416    448   
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
  417    449   
    }
  418    450   
  419    451   
    fn response_fmt() -> Self::ResponseFmt {
  420    452   
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  421    453   
    }
  422    454   
}
         455  +
/* ServerOperationGenerator.kt:88 */

tmp-codegen-diff/codegen-server-test-python/rest_json_extras/rust-server-codegen-python/src/output.rs

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