Server Test

Server Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-server-test/misc/rust-server-codegen/src/protocol_serde/shape_validation_exception.rs

@@ -1,1 +35,58 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* JsonSerializerGenerator.kt:213 */
    2      3   
pub fn ser_validation_exception_error(
    3      4   
    value: &crate::error::ValidationException,
    4      5   
) -> ::std::result::Result<String, ::aws_smithy_types::error::operation::SerializationError> {
           6  +
    /* JsonSerializerGenerator.kt:218 */
    5      7   
    let mut out = ::std::string::String::new();
    6      8   
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
           9  +
    /* JsonSerializerGenerator.kt:375 */
    7     10   
    crate::protocol_serde::shape_validation_exception::ser_validation_exception(
    8     11   
        &mut object,
    9     12   
        value,
   10     13   
    )?;
          14  +
    /* JsonSerializerGenerator.kt:227 */
   11     15   
    object.finish();
   12     16   
    Ok(out)
          17  +
    /* JsonSerializerGenerator.kt:213 */
   13     18   
}
   14     19   
          20  +
/* JsonSerializerGenerator.kt:358 */
   15     21   
pub fn ser_validation_exception(
   16     22   
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
   17     23   
    input: &crate::error::ValidationException,
   18     24   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
          25  +
    /* JsonSerializerGenerator.kt:382 */
   19     26   
    if let Some(var_1) = &input.field_list {
          27  +
        /* JsonSerializerGenerator.kt:484 */
   20     28   
        let mut array_2 = object.key("fieldList").start_array();
          29  +
        /* JsonSerializerGenerator.kt:524 */
   21     30   
        for item_3 in var_1 {
          31  +
            /* SerializerUtil.kt:42 */
   22     32   
            {
          33  +
                /* JsonSerializerGenerator.kt:495 */
   23     34   
                #[allow(unused_mut)]
          35  +
                /* JsonSerializerGenerator.kt:496 */
   24     36   
                let mut object_4 = array_2.value().start_object();
          37  +
                /* JsonSerializerGenerator.kt:375 */
   25     38   
                crate::protocol_serde::shape_validation_exception_field::ser_validation_exception_field(&mut object_4, item_3)?;
          39  +
                /* JsonSerializerGenerator.kt:515 */
   26     40   
                object_4.finish();
          41  +
                /* SerializerUtil.kt:42 */
   27     42   
            }
          43  +
            /* JsonSerializerGenerator.kt:524 */
   28     44   
        }
          45  +
        /* JsonSerializerGenerator.kt:486 */
   29     46   
        array_2.finish();
          47  +
        /* JsonSerializerGenerator.kt:382 */
   30     48   
    }
          49  +
    /* SerializerUtil.kt:42 */
   31     50   
    {
          51  +
        /* JsonSerializerGenerator.kt:423 */
   32     52   
        object.key("message").string(input.message.as_str());
          53  +
        /* SerializerUtil.kt:42 */
   33     54   
    }
          55  +
    /* JsonSerializerGenerator.kt:372 */
   34     56   
    Ok(())
          57  +
    /* JsonSerializerGenerator.kt:358 */
   35     58   
}

tmp-codegen-diff/codegen-server-test/misc/rust-server-codegen/src/protocol_serde/shape_validation_exception_field.rs

@@ -1,1 +13,22 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* JsonSerializerGenerator.kt:358 */
    2      3   
pub fn ser_validation_exception_field(
    3      4   
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4      5   
    input: &crate::model::ValidationExceptionField,
    5      6   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
           7  +
    /* SerializerUtil.kt:42 */
    6      8   
    {
           9  +
        /* JsonSerializerGenerator.kt:423 */
    7     10   
        object.key("path").string(input.path.as_str());
          11  +
        /* SerializerUtil.kt:42 */
    8     12   
    }
          13  +
    /* SerializerUtil.kt:42 */
    9     14   
    {
          15  +
        /* JsonSerializerGenerator.kt:423 */
   10     16   
        object.key("message").string(input.message.as_str());
          17  +
        /* SerializerUtil.kt:42 */
   11     18   
    }
          19  +
    /* JsonSerializerGenerator.kt:372 */
   12     20   
    Ok(())
          21  +
    /* JsonSerializerGenerator.kt:358 */
   13     22   
}

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

@@ -1,1 +31,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ServerServiceGenerator.kt:795 */
    2      3   
/// The service builder for [`MiscService`].
    3      4   
///
    4      5   
/// Constructed via [`MiscService::builder`].
    5      6   
pub struct MiscServiceBuilder<Body, L, HttpPl, ModelPl> {
    6      7   
    required_header_collection_operation: Option<::aws_smithy_http_server::routing::Route<Body>>,
    7      8   
    required_inner_shape_operation: Option<::aws_smithy_http_server::routing::Route<Body>>,
    8      9   
    response_code_default_operation: Option<::aws_smithy_http_server::routing::Route<Body>>,
    9     10   
    response_code_http_fallback_operation: Option<::aws_smithy_http_server::routing::Route<Body>>,
   10     11   
    response_code_required_operation: Option<::aws_smithy_http_server::routing::Route<Body>>,
   11     12   
    type_complexity_operation: Option<::aws_smithy_http_server::routing::Route<Body>>,
@@ -1509,1510 +1568,1570 @@
 1529   1530   
            "aws.protocoltests.misc",
 1530   1531   
            "MiscService",
 1531   1532   
        );
 1532   1533   
 1533   1534   
    const VERSION: Option<&'static str> = Some("");
 1534   1535   
 1535   1536   
    type Protocol = ::aws_smithy_http_server::protocol::rest_json_1::RestJson1;
 1536   1537   
 1537   1538   
    type Operations = Operation;
 1538   1539   
}
        1540  +
/* ServiceConfigGenerator.kt:178 */
 1539   1541   
/// Configuration for the [`MiscService`]. This is the central place where to register and
 1540   1542   
/// configure [`::tower::Layer`]s, HTTP plugins, and model plugins.
 1541   1543   
///
 1542   1544   
/// ```rust,no_run
 1543   1545   
/// # use misc::MiscServiceConfig;
 1544   1546   
/// # use ::aws_smithy_http_server::plugin::IdentityPlugin;
 1545   1547   
/// # use ::tower::layer::util::Identity;
 1546   1548   
/// # let authentication_plugin = IdentityPlugin;
 1547   1549   
/// # let authorization_plugin = IdentityPlugin;
 1548   1550   
/// # let server_request_id_provider_layer = Identity::new();
@@ -1624,1626 +1683,1686 @@
 1644   1646   
 1645   1647   
    /// Build the configuration.
 1646   1648   
    pub fn build(self) -> super::MiscServiceConfig<L, H, M> {
 1647   1649   
        super::MiscServiceConfig {
 1648   1650   
            layers: self.layers,
 1649   1651   
            http_plugins: self.http_plugins,
 1650   1652   
            model_plugins: self.model_plugins,
 1651   1653   
        }
 1652   1654   
    }
 1653   1655   
}
        1656  +
/* ScopeMacroGenerator.kt:81 */
 1654   1657   
/// A macro to help with scoping [plugins](crate::server::plugin) to a subset of all operations.
 1655   1658   
///
 1656   1659   
/// In contrast to [`crate::server::scope`](crate::server::scope), this macro has knowledge
 1657   1660   
/// of the service and any operations _not_ specified will be placed in the opposing group.
 1658   1661   
///
 1659   1662   
/// # Example
 1660   1663   
///
 1661   1664   
/// ```rust
 1662   1665   
/// scope! {
 1663   1666   
///     /// Includes [`RequiredHeaderCollectionOperation`], excluding all other operations.

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

@@ -1,1 +0,7 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* SmithyTypesPubUseExtra.kt:66 */
    2      3   
pub use ::aws_smithy_types::date_time::Format as DateTimeFormat;
           4  +
/* ServerRequiredCustomizations.kt:69 */
    3      5   
pub use ::aws_smithy_types::error::display::DisplayErrorContext;
    4      6   
pub use ::aws_smithy_types::Blob;
    5         -
pub use ::aws_smithy_types::DateTime;
           7  +
/* SmithyTypesPubUseExtra.kt:69 */ pub use ::aws_smithy_types::DateTime;

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

@@ -1,1 +22,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
    3      3   
pub(crate) mod header_set_unconstrained {
    4      4   
           5  +
    /* UnconstrainedCollectionGenerator.kt:77 */
    5      6   
    #[derive(Debug, Clone)]
    6      7   
    pub(crate) struct HeaderSetUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
    7      8   
    8      9   
    impl From<HeaderSetUnconstrained>
    9     10   
        for crate::constrained::MaybeConstrained<crate::model::HeaderSet>
   10     11   
    {
   11     12   
        fn from(value: HeaderSetUnconstrained) -> Self {
   12     13   
            Self::Unconstrained(value)
   13     14   
        }
   14     15   
    }
          16  +
    /* UnconstrainedCollectionGenerator.kt:97 */
   15     17   
    impl std::convert::TryFrom<HeaderSetUnconstrained> for crate::model::HeaderSet {
          18  +
        /* UnconstrainedCollectionGenerator.kt:98 */
   16     19   
        type Error = crate::model::header_set::ConstraintViolation;
          20  +
        /* UnconstrainedCollectionGenerator.kt:100 */
   17     21   
        fn try_from(value: HeaderSetUnconstrained) -> std::result::Result<Self, Self::Error> {
          22  +
            /* UnconstrainedCollectionGenerator.kt:185 */
   18     23   
            let inner = value.0;
          24  +
            /* UnconstrainedCollectionGenerator.kt:189 */
   19     25   
            Self::try_from(inner)
          26  +
            /* UnconstrainedCollectionGenerator.kt:100 */
   20     27   
        }
          28  +
        /* UnconstrainedCollectionGenerator.kt:97 */
   21     29   
    }
          30  +
          31  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
   22     32   
}

tmp-codegen-diff/codegen-server-test/naming_test_casing/rust-server-codegen/src/input.rs

@@ -1,1 +36,56 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* StructureGenerator.kt:197 */
    2      3   
#[allow(missing_docs)] // documentation missing in model
           4  +
/* RustType.kt:516 */
    3      5   
#[derive(
    4      6   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
    5      7   
)]
    6         -
pub struct DoNothingInput {}
           8  +
pub /* StructureGenerator.kt:201 */ struct DoNothingInput {/* StructureGenerator.kt:201 */}
           9  +
/* ServerCodegenVisitor.kt:345 */
    7     10   
impl DoNothingInput {
    8         -
    /// Creates a new builder-style object to manufacture [`DoNothingInput`](crate::input::DoNothingInput).
          11  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`DoNothingInput`](crate::input::DoNothingInput).
          12  +
    /* ServerBuilderGenerator.kt:295 */
    9     13   
    pub fn builder() -> crate::input::do_nothing_input::Builder {
          14  +
        /* ServerBuilderGenerator.kt:296 */
   10     15   
        crate::input::do_nothing_input::Builder::default()
          16  +
        /* ServerBuilderGenerator.kt:295 */
   11     17   
    }
          18  +
    /* ServerCodegenVisitor.kt:345 */
   12     19   
}
          20  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
   13     21   
impl crate::constrained::Constrained for crate::input::DoNothingInput {
   14     22   
    type Unconstrained = crate::input::do_nothing_input::Builder;
   15     23   
}
   16         -
/// See [`DoNothingInput`](crate::input::DoNothingInput).
          24  +
/// /* ServerBuilderGenerator.kt:171 */See [`DoNothingInput`](crate::input::DoNothingInput).
   17     25   
pub mod do_nothing_input {
   18     26   
          27  +
    /* ServerBuilderGenerator.kt:461 */
   19     28   
    impl ::std::convert::From<Builder> for crate::input::DoNothingInput {
   20     29   
        fn from(builder: Builder) -> Self {
   21     30   
            builder.build()
   22     31   
        }
   23     32   
    }
   24         -
    /// A builder for [`DoNothingInput`](crate::input::DoNothingInput).
          33  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`DoNothingInput`](crate::input::DoNothingInput).
          34  +
    /* RustType.kt:516 */
   25     35   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
   26         -
    pub struct Builder {}
          36  +
    /* ServerBuilderGenerator.kt:211 */
          37  +
    pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
          38  +
    /* ServerBuilderGenerator.kt:215 */
   27     39   
    impl Builder {
   28         -
        /// Consumes the builder and constructs a [`DoNothingInput`](crate::input::DoNothingInput).
          40  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`DoNothingInput`](crate::input::DoNothingInput).
          41  +
        /* ServerBuilderGenerator.kt:271 */
   29     42   
        pub fn build(self) -> crate::input::DoNothingInput {
   30     43   
            self.build_enforcing_all_constraints()
   31     44   
        }
          45  +
        /* ServerBuilderGenerator.kt:283 */
   32     46   
        fn build_enforcing_all_constraints(self) -> crate::input::DoNothingInput {
   33         -
            crate::input::DoNothingInput {}
          47  +
            /* ServerBuilderGenerator.kt:542 */
          48  +
            crate::input::DoNothingInput {
          49  +
            /* ServerBuilderGenerator.kt:542 */}
          50  +
            /* ServerBuilderGenerator.kt:283 */
   34     51   
        }
          52  +
        /* ServerBuilderGenerator.kt:215 */
   35     53   
    }
          54  +
          55  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
   36     56   
}

tmp-codegen-diff/codegen-server-test/naming_test_casing/rust-server-codegen/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   
//! Confounds model generation machinery with lots of problematic casing
   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 AcronymInsideService Smithy service.
   24     25   
//!
   25     26   
//! # Using AcronymInsideService
   26     27   
//!
   27     28   
//! The primary entrypoint is [`AcronymInsideService`]: 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 [`AcronymInsideService::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)."
@@ -167,168 +240,248 @@
  187    188   
//! }
  188    189   
//!
  189    190   
//! ```
  190    191   
//!
  191    192   
//! [`serve`]: https://docs.rs/hyper/0.14.16/hyper/server/struct.Builder.html#method.serve
  192    193   
//! [`tower::make::MakeService`]: https://docs.rs/tower/latest/tower/make/trait.MakeService.html
  193    194   
//! [HTTP binding traits]: https://smithy.io/2.0/spec/http-bindings.html
  194    195   
//! [operations]: https://smithy.io/2.0/spec/service-types.html#operation
  195    196   
//! [hyper server]: https://docs.rs/hyper/latest/hyper/server/index.html
  196    197   
//! [Service]: https://docs.rs/tower-service/latest/tower_service/trait.Service.html
         198  +
/* ServerRootGenerator.kt:261 */
  197    199   
pub use crate::service::{
  198    200   
    AcronymInsideService, AcronymInsideServiceBuilder, AcronymInsideServiceConfig,
  199    201   
    AcronymInsideServiceConfigBuilder, MissingOperationsError,
  200    202   
};
  201    203   
  202         -
/// Contains the types that are re-exported from the `aws-smithy-http-server` crate.
         204  +
/// /* ServerRustModule.kt:55 */Contains the types that are re-exported from the `aws-smithy-http-server` crate.
  203    205   
pub mod server {
  204    206   
    // Re-export all types from the `aws-smithy-http-server` crate.
  205    207   
    pub use ::aws_smithy_http_server::*;
         208  +
         209  +
    /* CodegenDelegator.kt:200 */
  206    210   
}
  207    211   
         212  +
/* CrateVersionCustomization.kt:23 */
  208    213   
/// Crate version number.
  209    214   
pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION");
  210    215   
  211         -
/// All error types that operations can return. Documentation on these types is copied from the model.
         216  +
/// /* ServerRustModule.kt:55 */All error types that operations can return. Documentation on these types is copied from the model.
  212    217   
pub mod error;
  213    218   
  214         -
/// Input structures for operations. Documentation on these types is copied from the model.
         219  +
/// /* ServerRustModule.kt:55 */Input structures for operations. Documentation on these types is copied from the model.
  215    220   
pub mod input;
  216    221   
  217         -
/// All operations that this crate can perform.
         222  +
/// /* ServerRustModule.kt:55 */All operations that this crate can perform.
  218    223   
pub mod operation;
  219    224   
         225  +
/* ServerRustModule.kt:79 */
  220    226   
/// A collection of types representing each operation defined in the service closure.
  221    227   
///
  222    228   
/// The [plugin system](::aws_smithy_http_server::plugin) makes use of these
  223    229   
/// [zero-sized types](https://doc.rust-lang.org/nomicon/exotic-sizes.html#zero-sized-types-zsts) (ZSTs) to
  224    230   
/// parameterize [`Plugin`](::aws_smithy_http_server::plugin::Plugin) implementations. Their traits, such as
  225    231   
/// [`OperationShape`](::aws_smithy_http_server::operation::OperationShape), can be used to provide
  226    232   
/// operation specific information to the [`Layer`](::tower::Layer) being applied.
  227    233   
pub mod operation_shape;
  228    234   
  229         -
/// Output structures for operations. Documentation on these types is copied from the model.
         235  +
/// /* ServerRustModule.kt:55 */Output structures for operations. Documentation on these types is copied from the model.
  230    236   
pub mod output;
  231    237   
         238  +
/* RustModule.kt:172 */
  232    239   
mod service;
  233    240   
  234         -
/// Data primitives referenced by other data types.
         241  +
/// /* ServerRustModule.kt:55 */Data primitives referenced by other data types.
  235    242   
pub mod types;
  236    243   
  237         -
/// Constrained types for constrained shapes.
         244  +
/// /* ServerRustModule.kt:55 */Constrained types for constrained shapes.
         245  +
/* RustModule.kt:172 */
  238    246   
mod constrained;
  239    247   
  240    248   
pub(crate) mod protocol_serde;

tmp-codegen-diff/codegen-server-test/naming_test_casing/rust-server-codegen/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   
static CONTENT_TYPE_DONOTHING: std::sync::LazyLock<::mime::Mime> = std::sync::LazyLock::new(|| {
    3      4   
    "application/x-amz-json-1.1"
    4      5   
        .parse::<::mime::Mime>()
    5      6   
        .expect("BUG: MIME parsing failed, content_type is not valid")
    6      7   
});
    7      8   
::pin_project_lite::pin_project! {
    8      9   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
    9     10   
    /// [`DoNothingInput`](crate::input::DoNothingInput) using modelled bindings.
   10     11   
    pub struct DoNothingInputFuture {
   11     12   
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::DoNothingInput, ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError>> + Send>>
@@ -40,41 +90,92 @@
   60     61   
            |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
   61     62   
                ::tracing::debug!(error = %e, "failed to deserialize request");
   62     63   
                ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
   63     64   
            },
   64     65   
        );
   65     66   
        DoNothingInputFuture {
   66     67   
            inner: Box::pin(fut),
   67     68   
        }
   68     69   
    }
   69     70   
}
          71  +
/* ServerHttpBoundProtocolGenerator.kt:329 */
   70     72   
impl
   71     73   
    ::aws_smithy_http_server::response::IntoResponse<
   72     74   
        ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
   73     75   
    > for crate::output::DoNothingOutput
   74     76   
{
   75     77   
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
   76     78   
        match crate::protocol_serde::shape_do_nothing::ser_do_nothing_http_response(self) {
   77     79   
            Ok(response) => response,
   78     80   
            Err(e) => {
   79     81   
                ::tracing::error!(error = %e, "failed to serialize response");

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

@@ -1,1 +0,28 @@
    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 DoNothing;
    4      6   
    5      7   
impl ::aws_smithy_http_server::operation::OperationShape for DoNothing {
    6      8   
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
    7      9   
        ::aws_smithy_http_server::shape_id::ShapeId::new("casing#DoNothing", "casing", "DoNothing");
    8     10   
    9     11   
    type Input = crate::input::DoNothingInput;
   10     12   
    type Output = crate::output::DoNothingOutput;
   11     13   
    type Error = std::convert::Infallible;
   12     14   
}
   13     15   
   14     16   
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for DoNothing {
   15     17   
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
   16     18   
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
   17     19   
   18     20   
    fn request_fmt() -> Self::RequestFmt {
   19     21   
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
   20     22   
    }
   21     23   
   22     24   
    fn response_fmt() -> Self::ResponseFmt {
   23     25   
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
   24     26   
    }
   25     27   
}
          28  +
/* ServerOperationGenerator.kt:88 */

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

@@ -1,1 +33,52 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* StructureGenerator.kt:197 */
    2      3   
#[allow(missing_docs)] // documentation missing in model
           4  +
/* RustType.kt:516 */
    3      5   
#[derive(
    4      6   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
    5      7   
)]
    6         -
pub struct DoNothingOutput {}
           8  +
pub /* StructureGenerator.kt:201 */ struct DoNothingOutput {/* StructureGenerator.kt:201 */}
           9  +
/* ServerCodegenVisitor.kt:345 */
    7     10   
impl DoNothingOutput {
    8         -
    /// Creates a new builder-style object to manufacture [`DoNothingOutput`](crate::output::DoNothingOutput).
          11  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`DoNothingOutput`](crate::output::DoNothingOutput).
          12  +
    /* ServerBuilderGenerator.kt:295 */
    9     13   
    pub fn builder() -> crate::output::do_nothing_output::Builder {
          14  +
        /* ServerBuilderGenerator.kt:296 */
   10     15   
        crate::output::do_nothing_output::Builder::default()
          16  +
        /* ServerBuilderGenerator.kt:295 */
   11     17   
    }
          18  +
    /* ServerCodegenVisitor.kt:345 */
   12     19   
}
   13         -
/// See [`DoNothingOutput`](crate::output::DoNothingOutput).
          20  +
/// /* ServerBuilderGenerator.kt:171 */See [`DoNothingOutput`](crate::output::DoNothingOutput).
   14     21   
pub mod do_nothing_output {
   15     22   
          23  +
    /* ServerBuilderGenerator.kt:461 */
   16     24   
    impl ::std::convert::From<Builder> for crate::output::DoNothingOutput {
   17     25   
        fn from(builder: Builder) -> Self {
   18     26   
            builder.build()
   19     27   
        }
   20     28   
    }
   21         -
    /// A builder for [`DoNothingOutput`](crate::output::DoNothingOutput).
          29  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`DoNothingOutput`](crate::output::DoNothingOutput).
          30  +
    /* RustType.kt:516 */
   22     31   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
   23         -
    pub struct Builder {}
          32  +
    /* ServerBuilderGenerator.kt:211 */
          33  +
    pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
          34  +
    /* ServerBuilderGenerator.kt:215 */
   24     35   
    impl Builder {
   25         -
        /// Consumes the builder and constructs a [`DoNothingOutput`](crate::output::DoNothingOutput).
          36  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`DoNothingOutput`](crate::output::DoNothingOutput).
          37  +
        /* ServerBuilderGenerator.kt:271 */
   26     38   
        pub fn build(self) -> crate::output::DoNothingOutput {
   27     39   
            self.build_enforcing_all_constraints()
   28     40   
        }
          41  +
        /* ServerBuilderGenerator.kt:283 */
   29     42   
        fn build_enforcing_all_constraints(self) -> crate::output::DoNothingOutput {
   30         -
            crate::output::DoNothingOutput {}
          43  +
            /* ServerBuilderGenerator.kt:542 */
          44  +
            crate::output::DoNothingOutput {
          45  +
            /* ServerBuilderGenerator.kt:542 */}
          46  +
            /* ServerBuilderGenerator.kt:283 */
   31     47   
        }
          48  +
        /* ServerBuilderGenerator.kt:215 */
   32     49   
    }
          50  +
          51  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
   33     52   
}

tmp-codegen-diff/codegen-server-test/naming_test_casing/rust-server-codegen/src/protocol_serde/shape_do_nothing.rs

@@ -1,1 +53,78 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* RustType.kt:516 */
    2      3   
#[allow(clippy::unnecessary_wraps)]
           4  +
/* ServerHttpBoundProtocolGenerator.kt:383 */
    3      5   
pub async fn de_do_nothing_http_request<B>(
    4      6   
    #[allow(unused_variables)] request: ::http::Request<B>,
    5      7   
) -> std::result::Result<
    6      8   
    crate::input::DoNothingInput,
    7      9   
    ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection,
    8     10   
>
    9     11   
where
   10     12   
    B: ::aws_smithy_http_server::body::HttpBody + Send,
   11     13   
    B::Data: Send,
   12     14   
    ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
   13     15   
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
   14     16   
{
          17  +
    /* ServerHttpBoundProtocolGenerator.kt:399 */
   15     18   
    Ok({
          19  +
        /* RustType.kt:516 */
   16     20   
        #[allow(unused_mut)]
          21  +
        /* ServerHttpBoundProtocolGenerator.kt:723 */
   17     22   
        let mut input = crate::input::do_nothing_input::Builder::default();
          23  +
        /* RustType.kt:516 */
   18     24   
        #[allow(unused_variables)]
          25  +
        /* ServerHttpBoundProtocolGenerator.kt:728 */
   19     26   
        let ::aws_smithy_runtime_api::http::RequestParts {
   20     27   
            uri, headers, body, ..
   21     28   
        } = ::aws_smithy_runtime_api::http::Request::try_from(request)?.into_parts();
          29  +
        /* ServerHttpBoundProtocolGenerator.kt:834 */
   22     30   
        input.build()
          31  +
        /* ServerHttpBoundProtocolGenerator.kt:399 */
   23     32   
    })
          33  +
    /* ServerHttpBoundProtocolGenerator.kt:383 */
   24     34   
}
   25     35   
          36  +
/* RustType.kt:516 */
   26     37   
#[allow(clippy::unnecessary_wraps)]
          38  +
/* ServerHttpBoundProtocolGenerator.kt:421 */
   27     39   
pub fn ser_do_nothing_http_response(
   28     40   
    #[allow(unused_variables)] output: crate::output::DoNothingOutput,
   29     41   
) -> std::result::Result<
   30     42   
    ::aws_smithy_http_server::response::Response,
   31     43   
    ::aws_smithy_http_server::protocol::aws_json::rejection::ResponseRejection,
   32     44   
> {
          45  +
    /* ServerHttpBoundProtocolGenerator.kt:433 */
   33     46   
    Ok({
          47  +
        /* RustType.kt:516 */
   34     48   
        #[allow(unused_mut)]
          49  +
        /* ServerHttpBoundProtocolGenerator.kt:523 */
   35     50   
        let mut builder = ::http::Response::builder();
          51  +
        /* ServerHttpBoundProtocolGenerator.kt:597 */
   36     52   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   37     53   
            builder,
   38     54   
            ::http::header::CONTENT_TYPE,
   39     55   
            "application/x-amz-json-1.1",
   40     56   
        );
          57  +
        /* ServerHttpBoundProtocolGenerator.kt:682 */
   41     58   
        let http_status: u16 = 200;
   42     59   
        builder = builder.status(http_status);
   43         -
        let payload = "";
          60  +
        /* ServerHttpBoundProtocolGenerator.kt:561 */
          61  +
        let payload =
          62  +
            /* HttpBoundProtocolPayloadGenerator.kt:235 */""
          63  +
        /* ServerHttpBoundProtocolGenerator.kt:561 */;
          64  +
        /* ServerHttpBoundProtocolGenerator.kt:663 */
   44     65   
        let content_length = payload.len();
   45     66   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   46     67   
            builder,
   47     68   
            ::http::header::CONTENT_LENGTH,
   48     69   
            content_length,
   49     70   
        );
          71  +
        /* ServerHttpBoundProtocolGenerator.kt:567 */
   50     72   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);
          73  +
        /* ServerHttpBoundProtocolGenerator.kt:575 */
   51     74   
        builder.body(body)?
          75  +
        /* ServerHttpBoundProtocolGenerator.kt:433 */
   52     76   
    })
          77  +
    /* ServerHttpBoundProtocolGenerator.kt:421 */
   53     78   
}

tmp-codegen-diff/codegen-server-test/naming_test_casing/rust-server-codegen/src/service.rs

@@ -1,1 +31,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ServerServiceGenerator.kt:795 */
    2      3   
/// The service builder for [`AcronymInsideService`].
    3      4   
///
    4      5   
/// Constructed via [`AcronymInsideService::builder`].
    5      6   
pub struct AcronymInsideServiceBuilder<Body, L, HttpPl, ModelPl> {
    6      7   
    do_nothing: Option<::aws_smithy_http_server::routing::Route<Body>>,
    7      8   
    layer: L,
    8      9   
    http_plugin: HttpPl,
    9     10   
    model_plugin: ModelPl,
   10     11   
}
   11     12   
@@ -465,466 +524,526 @@
  485    486   
            "casing",
  486    487   
            "ACRONYMInside_Service",
  487    488   
        );
  488    489   
  489    490   
    const VERSION: Option<&'static str> = Some("");
  490    491   
  491    492   
    type Protocol = ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1;
  492    493   
  493    494   
    type Operations = Operation;
  494    495   
}
         496  +
/* ServiceConfigGenerator.kt:178 */
  495    497   
/// Configuration for the [`AcronymInsideService`]. This is the central place where to register and
  496    498   
/// configure [`::tower::Layer`]s, HTTP plugins, and model plugins.
  497    499   
///
  498    500   
/// ```rust,no_run
  499    501   
/// # use naming_test_casing::AcronymInsideServiceConfig;
  500    502   
/// # use ::aws_smithy_http_server::plugin::IdentityPlugin;
  501    503   
/// # use ::tower::layer::util::Identity;
  502    504   
/// # let authentication_plugin = IdentityPlugin;
  503    505   
/// # let authorization_plugin = IdentityPlugin;
  504    506   
/// # let server_request_id_provider_layer = Identity::new();
@@ -586,588 +645,648 @@
  606    608   
  607    609   
    /// Build the configuration.
  608    610   
    pub fn build(self) -> super::AcronymInsideServiceConfig<L, H, M> {
  609    611   
        super::AcronymInsideServiceConfig {
  610    612   
            layers: self.layers,
  611    613   
            http_plugins: self.http_plugins,
  612    614   
            model_plugins: self.model_plugins,
  613    615   
        }
  614    616   
    }
  615    617   
}
         618  +
/* ScopeMacroGenerator.kt:81 */
  616    619   
/// A macro to help with scoping [plugins](crate::server::plugin) to a subset of all operations.
  617    620   
///
  618    621   
/// In contrast to [`crate::server::scope`](crate::server::scope), this macro has knowledge
  619    622   
/// of the service and any operations _not_ specified will be placed in the opposing group.
  620    623   
///
  621    624   
/// # Example
  622    625   
///
  623    626   
/// ```rust
  624    627   
/// scope! {
  625    628   
///     /// Includes [`DoNothing`], excluding all other operations.

tmp-codegen-diff/codegen-server-test/naming_test_casing/rust-server-codegen/src/types.rs

@@ -1,1 +0,7 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* SmithyTypesPubUseExtra.kt:66 */
    2      3   
pub use ::aws_smithy_types::date_time::Format as DateTimeFormat;
           4  +
/* ServerRequiredCustomizations.kt:69 */
    3      5   
pub use ::aws_smithy_types::error::display::DisplayErrorContext;
    4      6   
pub use ::aws_smithy_types::Blob;
    5         -
pub use ::aws_smithy_types::DateTime;
           7  +
/* SmithyTypesPubUseExtra.kt:69 */ pub use ::aws_smithy_types::DateTime;

tmp-codegen-diff/codegen-server-test/naming_test_ops/rust-server-codegen/src/error.rs

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

tmp-codegen-diff/codegen-server-test/naming_test_ops/rust-server-codegen/src/input.rs

@@ -1,1 +1145,1872 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* StructureGenerator.kt:197 */
    2      3   
#[allow(missing_docs)] // documentation missing in model
           4  +
/* RustType.kt:516 */
    3      5   
#[derive(
    4      6   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
    5      7   
)]
    6         -
pub struct RpcEchoInput {
           8  +
pub /* StructureGenerator.kt:201 */ struct RpcEchoInput {
           9  +
    /* StructureGenerator.kt:231 */
    7     10   
    #[allow(missing_docs)] // documentation missing in model
    8     11   
    pub r#as: ::std::option::Option<i32>,
          12  +
    /* StructureGenerator.kt:231 */
    9     13   
    #[allow(missing_docs)] // documentation missing in model
   10     14   
    pub r#async: ::std::option::Option<bool>,
          15  +
    /* StructureGenerator.kt:231 */
   11     16   
    #[allow(missing_docs)] // documentation missing in model
   12     17   
    pub r#enum: ::std::option::Option<crate::model::UnknownVariantCollidingEnum>,
          18  +
    /* StructureGenerator.kt:231 */
   13     19   
    #[allow(missing_docs)] // documentation missing in model
   14     20   
    pub self_: ::std::option::Option<bool>,
          21  +
    /* StructureGenerator.kt:231 */
   15     22   
    #[allow(missing_docs)] // documentation missing in model
   16     23   
    pub crate_: ::std::option::Option<bool>,
          24  +
    /* StructureGenerator.kt:231 */
   17     25   
    #[allow(missing_docs)] // documentation missing in model
   18     26   
    pub super_: ::std::option::Option<bool>,
          27  +
    /* StructureGenerator.kt:231 */
   19     28   
    #[allow(missing_docs)] // documentation missing in model
   20     29   
    pub build_value: ::std::option::Option<::std::string::String>,
          30  +
    /* StructureGenerator.kt:231 */
   21     31   
    #[allow(missing_docs)] // documentation missing in model
   22     32   
    pub default_value: ::std::option::Option<::std::string::String>,
          33  +
    /* StructureGenerator.kt:231 */
   23     34   
    #[allow(missing_docs)] // documentation missing in model
   24     35   
    pub send: ::std::option::Option<::std::string::String>,
          36  +
    /* StructureGenerator.kt:201 */
   25     37   
}
          38  +
/* StructureGenerator.kt:135 */
   26     39   
impl RpcEchoInput {
          40  +
    /* StructureGenerator.kt:231 */
   27     41   
    #[allow(missing_docs)] // documentation missing in model
          42  +
                           /* StructureGenerator.kt:166 */
   28     43   
    pub fn r#as(&self) -> ::std::option::Option<i32> {
          44  +
        /* StructureGenerator.kt:168 */
   29     45   
        self.r#as
          46  +
        /* StructureGenerator.kt:166 */
   30     47   
    }
          48  +
    /* StructureGenerator.kt:231 */
   31     49   
    #[allow(missing_docs)] // documentation missing in model
          50  +
                           /* StructureGenerator.kt:166 */
   32     51   
    pub fn r#async(&self) -> ::std::option::Option<bool> {
          52  +
        /* StructureGenerator.kt:168 */
   33     53   
        self.r#async
          54  +
        /* StructureGenerator.kt:166 */
   34     55   
    }
          56  +
    /* StructureGenerator.kt:231 */
   35     57   
    #[allow(missing_docs)] // documentation missing in model
          58  +
                           /* StructureGenerator.kt:166 */
   36     59   
    pub fn r#enum(&self) -> ::std::option::Option<&crate::model::UnknownVariantCollidingEnum> {
          60  +
        /* StructureGenerator.kt:170 */
   37     61   
        self.r#enum.as_ref()
          62  +
        /* StructureGenerator.kt:166 */
   38     63   
    }
          64  +
    /* StructureGenerator.kt:231 */
   39     65   
    #[allow(missing_docs)] // documentation missing in model
          66  +
                           /* StructureGenerator.kt:166 */
   40     67   
    pub fn self_(&self) -> ::std::option::Option<bool> {
          68  +
        /* StructureGenerator.kt:168 */
   41     69   
        self.self_
          70  +
        /* StructureGenerator.kt:166 */
   42     71   
    }
          72  +
    /* StructureGenerator.kt:231 */
   43     73   
    #[allow(missing_docs)] // documentation missing in model
          74  +
                           /* StructureGenerator.kt:166 */
   44     75   
    pub fn crate_(&self) -> ::std::option::Option<bool> {
          76  +
        /* StructureGenerator.kt:168 */
   45     77   
        self.crate_
          78  +
        /* StructureGenerator.kt:166 */
   46     79   
    }
          80  +
    /* StructureGenerator.kt:231 */
   47     81   
    #[allow(missing_docs)] // documentation missing in model
          82  +
                           /* StructureGenerator.kt:166 */
   48     83   
    pub fn super_(&self) -> ::std::option::Option<bool> {
          84  +
        /* StructureGenerator.kt:168 */
   49     85   
        self.super_
          86  +
        /* StructureGenerator.kt:166 */
   50     87   
    }
          88  +
    /* StructureGenerator.kt:231 */
   51     89   
    #[allow(missing_docs)] // documentation missing in model
          90  +
                           /* StructureGenerator.kt:166 */
   52     91   
    pub fn build_value(&self) -> ::std::option::Option<&str> {
          92  +
        /* StructureGenerator.kt:169 */
   53     93   
        self.build_value.as_deref()
          94  +
        /* StructureGenerator.kt:166 */
   54     95   
    }
          96  +
    /* StructureGenerator.kt:231 */
   55     97   
    #[allow(missing_docs)] // documentation missing in model
          98  +
                           /* StructureGenerator.kt:166 */
   56     99   
    pub fn default_value(&self) -> ::std::option::Option<&str> {
         100  +
        /* StructureGenerator.kt:169 */
   57    101   
        self.default_value.as_deref()
         102  +
        /* StructureGenerator.kt:166 */
   58    103   
    }
         104  +
    /* StructureGenerator.kt:231 */
   59    105   
    #[allow(missing_docs)] // documentation missing in model
         106  +
                           /* StructureGenerator.kt:166 */
   60    107   
    pub fn send(&self) -> ::std::option::Option<&str> {
         108  +
        /* StructureGenerator.kt:169 */
   61    109   
        self.send.as_deref()
         110  +
        /* StructureGenerator.kt:166 */
   62    111   
    }
         112  +
    /* StructureGenerator.kt:135 */
   63    113   
}
         114  +
/* ServerCodegenVisitor.kt:345 */
   64    115   
impl RpcEchoInput {
   65         -
    /// Creates a new builder-style object to manufacture [`RpcEchoInput`](crate::input::RpcEchoInput).
         116  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`RpcEchoInput`](crate::input::RpcEchoInput).
         117  +
    /* ServerBuilderGenerator.kt:295 */
   66    118   
    pub fn builder() -> crate::input::rpc_echo_input::Builder {
         119  +
        /* ServerBuilderGenerator.kt:296 */
   67    120   
        crate::input::rpc_echo_input::Builder::default()
         121  +
        /* ServerBuilderGenerator.kt:295 */
   68    122   
    }
         123  +
    /* ServerCodegenVisitor.kt:345 */
   69    124   
}
         125  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
   70    126   
impl crate::constrained::Constrained for crate::input::RpcEchoInput {
   71    127   
    type Unconstrained = crate::input::rpc_echo_input::Builder;
   72    128   
}
   73    129   
         130  +
/* StructureGenerator.kt:197 */
   74    131   
#[allow(missing_docs)] // documentation missing in model
         132  +
/* RustType.kt:516 */
   75    133   
#[derive(
   76    134   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   77    135   
)]
   78         -
pub struct MatchInput {
         136  +
pub /* StructureGenerator.kt:201 */ struct MatchInput {
         137  +
    /* StructureGenerator.kt:231 */
   79    138   
    #[allow(missing_docs)] // documentation missing in model
   80    139   
    pub r#as: ::std::option::Option<i32>,
         140  +
    /* StructureGenerator.kt:231 */
   81    141   
    #[allow(missing_docs)] // documentation missing in model
   82    142   
    pub r#async: ::std::option::Option<bool>,
         143  +
    /* StructureGenerator.kt:231 */
   83    144   
    #[allow(missing_docs)] // documentation missing in model
   84    145   
    pub r#enum: ::std::option::Option<crate::model::UnknownVariantCollidingEnum>,
         146  +
    /* StructureGenerator.kt:231 */
   85    147   
    #[allow(missing_docs)] // documentation missing in model
   86    148   
    pub self_: ::std::option::Option<bool>,
         149  +
    /* StructureGenerator.kt:231 */
   87    150   
    #[allow(missing_docs)] // documentation missing in model
   88    151   
    pub crate_: ::std::option::Option<bool>,
         152  +
    /* StructureGenerator.kt:231 */
   89    153   
    #[allow(missing_docs)] // documentation missing in model
   90    154   
    pub super_: ::std::option::Option<bool>,
         155  +
    /* StructureGenerator.kt:231 */
   91    156   
    #[allow(missing_docs)] // documentation missing in model
   92    157   
    pub build_value: ::std::option::Option<::std::string::String>,
         158  +
    /* StructureGenerator.kt:231 */
   93    159   
    #[allow(missing_docs)] // documentation missing in model
   94    160   
    pub default_value: ::std::option::Option<::std::string::String>,
         161  +
    /* StructureGenerator.kt:231 */
   95    162   
    #[allow(missing_docs)] // documentation missing in model
   96    163   
    pub send: ::std::option::Option<::std::string::String>,
         164  +
    /* StructureGenerator.kt:201 */
   97    165   
}
         166  +
/* StructureGenerator.kt:135 */
   98    167   
impl MatchInput {
         168  +
    /* StructureGenerator.kt:231 */
   99    169   
    #[allow(missing_docs)] // documentation missing in model
         170  +
                           /* StructureGenerator.kt:166 */
  100    171   
    pub fn r#as(&self) -> ::std::option::Option<i32> {
         172  +
        /* StructureGenerator.kt:168 */
  101    173   
        self.r#as
         174  +
        /* StructureGenerator.kt:166 */
  102    175   
    }
         176  +
    /* StructureGenerator.kt:231 */
  103    177   
    #[allow(missing_docs)] // documentation missing in model
         178  +
                           /* StructureGenerator.kt:166 */
  104    179   
    pub fn r#async(&self) -> ::std::option::Option<bool> {
         180  +
        /* StructureGenerator.kt:168 */
  105    181   
        self.r#async
         182  +
        /* StructureGenerator.kt:166 */
  106    183   
    }
         184  +
    /* StructureGenerator.kt:231 */
  107    185   
    #[allow(missing_docs)] // documentation missing in model
         186  +
                           /* StructureGenerator.kt:166 */
  108    187   
    pub fn r#enum(&self) -> ::std::option::Option<&crate::model::UnknownVariantCollidingEnum> {
         188  +
        /* StructureGenerator.kt:170 */
  109    189   
        self.r#enum.as_ref()
         190  +
        /* StructureGenerator.kt:166 */
  110    191   
    }
         192  +
    /* StructureGenerator.kt:231 */
  111    193   
    #[allow(missing_docs)] // documentation missing in model
         194  +
                           /* StructureGenerator.kt:166 */
  112    195   
    pub fn self_(&self) -> ::std::option::Option<bool> {
         196  +
        /* StructureGenerator.kt:168 */
  113    197   
        self.self_
         198  +
        /* StructureGenerator.kt:166 */
  114    199   
    }
         200  +
    /* StructureGenerator.kt:231 */
  115    201   
    #[allow(missing_docs)] // documentation missing in model
         202  +
                           /* StructureGenerator.kt:166 */
  116    203   
    pub fn crate_(&self) -> ::std::option::Option<bool> {
         204  +
        /* StructureGenerator.kt:168 */
  117    205   
        self.crate_
         206  +
        /* StructureGenerator.kt:166 */
  118    207   
    }
         208  +
    /* StructureGenerator.kt:231 */
  119    209   
    #[allow(missing_docs)] // documentation missing in model
         210  +
                           /* StructureGenerator.kt:166 */
  120    211   
    pub fn super_(&self) -> ::std::option::Option<bool> {
         212  +
        /* StructureGenerator.kt:168 */
  121    213   
        self.super_
         214  +
        /* StructureGenerator.kt:166 */
  122    215   
    }
         216  +
    /* StructureGenerator.kt:231 */
  123    217   
    #[allow(missing_docs)] // documentation missing in model
         218  +
                           /* StructureGenerator.kt:166 */
  124    219   
    pub fn build_value(&self) -> ::std::option::Option<&str> {
         220  +
        /* StructureGenerator.kt:169 */
  125    221   
        self.build_value.as_deref()
         222  +
        /* StructureGenerator.kt:166 */
  126    223   
    }
         224  +
    /* StructureGenerator.kt:231 */
  127    225   
    #[allow(missing_docs)] // documentation missing in model
         226  +
                           /* StructureGenerator.kt:166 */
  128    227   
    pub fn default_value(&self) -> ::std::option::Option<&str> {
         228  +
        /* StructureGenerator.kt:169 */
  129    229   
        self.default_value.as_deref()
         230  +
        /* StructureGenerator.kt:166 */
  130    231   
    }
         232  +
    /* StructureGenerator.kt:231 */
  131    233   
    #[allow(missing_docs)] // documentation missing in model
         234  +
                           /* StructureGenerator.kt:166 */
  132    235   
    pub fn send(&self) -> ::std::option::Option<&str> {
         236  +
        /* StructureGenerator.kt:169 */
  133    237   
        self.send.as_deref()
         238  +
        /* StructureGenerator.kt:166 */
  134    239   
    }
         240  +
    /* StructureGenerator.kt:135 */
  135    241   
}
         242  +
/* ServerCodegenVisitor.kt:345 */
  136    243   
impl MatchInput {
  137         -
    /// Creates a new builder-style object to manufacture [`MatchInput`](crate::input::MatchInput).
         244  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MatchInput`](crate::input::MatchInput).
         245  +
    /* ServerBuilderGenerator.kt:295 */
  138    246   
    pub fn builder() -> crate::input::match_input::Builder {
         247  +
        /* ServerBuilderGenerator.kt:296 */
  139    248   
        crate::input::match_input::Builder::default()
         249  +
        /* ServerBuilderGenerator.kt:295 */
  140    250   
    }
         251  +
    /* ServerCodegenVisitor.kt:345 */
  141    252   
}
         253  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  142    254   
impl crate::constrained::Constrained for crate::input::MatchInput {
  143    255   
    type Unconstrained = crate::input::match_input::Builder;
  144    256   
}
  145    257   
         258  +
/* StructureGenerator.kt:197 */
  146    259   
#[allow(missing_docs)] // documentation missing in model
         260  +
/* RustType.kt:516 */
  147    261   
#[derive(
  148    262   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  149    263   
)]
  150         -
pub struct OptionInput {
         264  +
pub /* StructureGenerator.kt:201 */ struct OptionInput {
         265  +
    /* StructureGenerator.kt:231 */
  151    266   
    #[allow(missing_docs)] // documentation missing in model
  152    267   
    pub pv_member: ::std::option::Option<bool>,
         268  +
    /* StructureGenerator.kt:201 */
  153    269   
}
         270  +
/* StructureGenerator.kt:135 */
  154    271   
impl OptionInput {
         272  +
    /* StructureGenerator.kt:231 */
  155    273   
    #[allow(missing_docs)] // documentation missing in model
         274  +
                           /* StructureGenerator.kt:166 */
  156    275   
    pub fn pv_member(&self) -> ::std::option::Option<bool> {
         276  +
        /* StructureGenerator.kt:168 */
  157    277   
        self.pv_member
         278  +
        /* StructureGenerator.kt:166 */
  158    279   
    }
         280  +
    /* StructureGenerator.kt:135 */
  159    281   
}
         282  +
/* ServerCodegenVisitor.kt:345 */
  160    283   
impl OptionInput {
  161         -
    /// Creates a new builder-style object to manufacture [`OptionInput`](crate::input::OptionInput).
         284  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`OptionInput`](crate::input::OptionInput).
         285  +
    /* ServerBuilderGenerator.kt:295 */
  162    286   
    pub fn builder() -> crate::input::option_input::Builder {
         287  +
        /* ServerBuilderGenerator.kt:296 */
  163    288   
        crate::input::option_input::Builder::default()
         289  +
        /* ServerBuilderGenerator.kt:295 */
  164    290   
    }
         291  +
    /* ServerCodegenVisitor.kt:345 */
  165    292   
}
         293  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  166    294   
impl crate::constrained::Constrained for crate::input::OptionInput {
  167    295   
    type Unconstrained = crate::input::option_input::Builder;
  168    296   
}
  169    297   
         298  +
/* StructureGenerator.kt:197 */
  170    299   
#[allow(missing_docs)] // documentation missing in model
         300  +
/* RustType.kt:516 */
  171    301   
#[derive(
  172    302   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  173    303   
)]
  174         -
pub struct ResultInput {
         304  +
pub /* StructureGenerator.kt:201 */ struct ResultInput {
         305  +
    /* StructureGenerator.kt:231 */
  175    306   
    #[allow(missing_docs)] // documentation missing in model
  176    307   
    pub pv_member: ::std::option::Option<bool>,
         308  +
    /* StructureGenerator.kt:201 */
  177    309   
}
         310  +
/* StructureGenerator.kt:135 */
  178    311   
impl ResultInput {
         312  +
    /* StructureGenerator.kt:231 */
  179    313   
    #[allow(missing_docs)] // documentation missing in model
         314  +
                           /* StructureGenerator.kt:166 */
  180    315   
    pub fn pv_member(&self) -> ::std::option::Option<bool> {
         316  +
        /* StructureGenerator.kt:168 */
  181    317   
        self.pv_member
         318  +
        /* StructureGenerator.kt:166 */
  182    319   
    }
         320  +
    /* StructureGenerator.kt:135 */
  183    321   
}
         322  +
/* ServerCodegenVisitor.kt:345 */
  184    323   
impl ResultInput {
  185         -
    /// Creates a new builder-style object to manufacture [`ResultInput`](crate::input::ResultInput).
         324  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ResultInput`](crate::input::ResultInput).
         325  +
    /* ServerBuilderGenerator.kt:295 */
  186    326   
    pub fn builder() -> crate::input::result_input::Builder {
         327  +
        /* ServerBuilderGenerator.kt:296 */
  187    328   
        crate::input::result_input::Builder::default()
         329  +
        /* ServerBuilderGenerator.kt:295 */
  188    330   
    }
         331  +
    /* ServerCodegenVisitor.kt:345 */
  189    332   
}
         333  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  190    334   
impl crate::constrained::Constrained for crate::input::ResultInput {
  191    335   
    type Unconstrained = crate::input::result_input::Builder;
  192    336   
}
  193    337   
         338  +
/* StructureGenerator.kt:197 */
  194    339   
#[allow(missing_docs)] // documentation missing in model
         340  +
/* RustType.kt:516 */
  195    341   
#[derive(
  196    342   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  197    343   
)]
  198         -
pub struct ErrCollisionsInput {}
         344  +
pub /* StructureGenerator.kt:201 */ struct ErrCollisionsInput {/* StructureGenerator.kt:201 */}
         345  +
/* ServerCodegenVisitor.kt:345 */
  199    346   
impl ErrCollisionsInput {
  200         -
    /// Creates a new builder-style object to manufacture [`ErrCollisionsInput`](crate::input::ErrCollisionsInput).
         347  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ErrCollisionsInput`](crate::input::ErrCollisionsInput).
         348  +
    /* ServerBuilderGenerator.kt:295 */
  201    349   
    pub fn builder() -> crate::input::err_collisions_input::Builder {
         350  +
        /* ServerBuilderGenerator.kt:296 */
  202    351   
        crate::input::err_collisions_input::Builder::default()
         352  +
        /* ServerBuilderGenerator.kt:295 */
  203    353   
    }
         354  +
    /* ServerCodegenVisitor.kt:345 */
  204    355   
}
         356  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  205    357   
impl crate::constrained::Constrained for crate::input::ErrCollisionsInput {
  206    358   
    type Unconstrained = crate::input::err_collisions_input::Builder;
  207    359   
}
  208    360   
         361  +
/* StructureGenerator.kt:197 */
  209    362   
#[allow(missing_docs)] // documentation missing in model
         363  +
/* RustType.kt:516 */
  210    364   
#[derive(
  211    365   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  212    366   
)]
  213         -
pub struct StructureNamePunningInput {
         367  +
pub /* StructureGenerator.kt:201 */ struct StructureNamePunningInput {
         368  +
    /* StructureGenerator.kt:231 */
  214    369   
    #[allow(missing_docs)] // documentation missing in model
  215    370   
    pub regular_string: ::std::option::Option<::std::string::String>,
         371  +
    /* StructureGenerator.kt:231 */
  216    372   
    #[allow(missing_docs)] // documentation missing in model
  217    373   
    pub punned_vec: ::std::option::Option<crate::model::Vec>,
         374  +
    /* StructureGenerator.kt:201 */
  218    375   
}
         376  +
/* StructureGenerator.kt:135 */
  219    377   
impl StructureNamePunningInput {
         378  +
    /* StructureGenerator.kt:231 */
  220    379   
    #[allow(missing_docs)] // documentation missing in model
         380  +
                           /* StructureGenerator.kt:166 */
  221    381   
    pub fn regular_string(&self) -> ::std::option::Option<&str> {
         382  +
        /* StructureGenerator.kt:169 */
  222    383   
        self.regular_string.as_deref()
         384  +
        /* StructureGenerator.kt:166 */
  223    385   
    }
         386  +
    /* StructureGenerator.kt:231 */
  224    387   
    #[allow(missing_docs)] // documentation missing in model
         388  +
                           /* StructureGenerator.kt:166 */
  225    389   
    pub fn punned_vec(&self) -> ::std::option::Option<&crate::model::Vec> {
         390  +
        /* StructureGenerator.kt:170 */
  226    391   
        self.punned_vec.as_ref()
         392  +
        /* StructureGenerator.kt:166 */
  227    393   
    }
         394  +
    /* StructureGenerator.kt:135 */
  228    395   
}
         396  +
/* ServerCodegenVisitor.kt:345 */
  229    397   
impl StructureNamePunningInput {
  230         -
    /// Creates a new builder-style object to manufacture [`StructureNamePunningInput`](crate::input::StructureNamePunningInput).
         398  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`StructureNamePunningInput`](crate::input::StructureNamePunningInput).
         399  +
    /* ServerBuilderGenerator.kt:295 */
  231    400   
    pub fn builder() -> crate::input::structure_name_punning_input::Builder {
         401  +
        /* ServerBuilderGenerator.kt:296 */
  232    402   
        crate::input::structure_name_punning_input::Builder::default()
         403  +
        /* ServerBuilderGenerator.kt:295 */
  233    404   
    }
         405  +
    /* ServerCodegenVisitor.kt:345 */
  234    406   
}
         407  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  235    408   
impl crate::constrained::Constrained for crate::input::StructureNamePunningInput {
  236    409   
    type Unconstrained = crate::input::structure_name_punning_input::Builder;
  237    410   
}
  238    411   
         412  +
/* StructureGenerator.kt:197 */
  239    413   
#[allow(missing_docs)] // documentation missing in model
         414  +
/* RustType.kt:516 */
  240    415   
#[derive(
  241    416   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  242    417   
)]
  243         -
pub struct ReservedWordsAsMembersInput {
         418  +
pub /* StructureGenerator.kt:201 */ struct ReservedWordsAsMembersInput {
         419  +
    /* StructureGenerator.kt:231 */
  244    420   
    #[allow(missing_docs)] // documentation missing in model
  245    421   
    pub r#as: ::std::option::Option<i32>,
         422  +
    /* StructureGenerator.kt:231 */
  246    423   
    #[allow(missing_docs)] // documentation missing in model
  247    424   
    pub r#async: ::std::option::Option<bool>,
         425  +
    /* StructureGenerator.kt:231 */
  248    426   
    #[allow(missing_docs)] // documentation missing in model
  249    427   
    pub r#enum: ::std::option::Option<crate::model::UnknownVariantCollidingEnum>,
         428  +
    /* StructureGenerator.kt:231 */
  250    429   
    #[allow(missing_docs)] // documentation missing in model
  251    430   
    pub self_: ::std::option::Option<bool>,
         431  +
    /* StructureGenerator.kt:231 */
  252    432   
    #[allow(missing_docs)] // documentation missing in model
  253    433   
    pub crate_: ::std::option::Option<bool>,
         434  +
    /* StructureGenerator.kt:231 */
  254    435   
    #[allow(missing_docs)] // documentation missing in model
  255    436   
    pub super_: ::std::option::Option<bool>,
         437  +
    /* StructureGenerator.kt:231 */
  256    438   
    #[allow(missing_docs)] // documentation missing in model
  257    439   
    pub build_value: ::std::option::Option<::std::string::String>,
         440  +
    /* StructureGenerator.kt:231 */
  258    441   
    #[allow(missing_docs)] // documentation missing in model
  259    442   
    pub default_value: ::std::option::Option<::std::string::String>,
         443  +
    /* StructureGenerator.kt:231 */
  260    444   
    #[allow(missing_docs)] // documentation missing in model
  261    445   
    pub send: ::std::option::Option<::std::string::String>,
         446  +
    /* StructureGenerator.kt:201 */
  262    447   
}
         448  +
/* StructureGenerator.kt:135 */
  263    449   
impl ReservedWordsAsMembersInput {
         450  +
    /* StructureGenerator.kt:231 */
  264    451   
    #[allow(missing_docs)] // documentation missing in model
         452  +
                           /* StructureGenerator.kt:166 */
  265    453   
    pub fn r#as(&self) -> ::std::option::Option<i32> {
         454  +
        /* StructureGenerator.kt:168 */
  266    455   
        self.r#as
         456  +
        /* StructureGenerator.kt:166 */
  267    457   
    }
         458  +
    /* StructureGenerator.kt:231 */
  268    459   
    #[allow(missing_docs)] // documentation missing in model
         460  +
                           /* StructureGenerator.kt:166 */
  269    461   
    pub fn r#async(&self) -> ::std::option::Option<bool> {
         462  +
        /* StructureGenerator.kt:168 */
  270    463   
        self.r#async
         464  +
        /* StructureGenerator.kt:166 */
  271    465   
    }
         466  +
    /* StructureGenerator.kt:231 */
  272    467   
    #[allow(missing_docs)] // documentation missing in model
         468  +
                           /* StructureGenerator.kt:166 */
  273    469   
    pub fn r#enum(&self) -> ::std::option::Option<&crate::model::UnknownVariantCollidingEnum> {
         470  +
        /* StructureGenerator.kt:170 */
  274    471   
        self.r#enum.as_ref()
         472  +
        /* StructureGenerator.kt:166 */
  275    473   
    }
         474  +
    /* StructureGenerator.kt:231 */
  276    475   
    #[allow(missing_docs)] // documentation missing in model
         476  +
                           /* StructureGenerator.kt:166 */
  277    477   
    pub fn self_(&self) -> ::std::option::Option<bool> {
         478  +
        /* StructureGenerator.kt:168 */
  278    479   
        self.self_
         480  +
        /* StructureGenerator.kt:166 */
  279    481   
    }
         482  +
    /* StructureGenerator.kt:231 */
  280    483   
    #[allow(missing_docs)] // documentation missing in model
         484  +
                           /* StructureGenerator.kt:166 */
  281    485   
    pub fn crate_(&self) -> ::std::option::Option<bool> {
         486  +
        /* StructureGenerator.kt:168 */
  282    487   
        self.crate_
         488  +
        /* StructureGenerator.kt:166 */
  283    489   
    }
         490  +
    /* StructureGenerator.kt:231 */
  284    491   
    #[allow(missing_docs)] // documentation missing in model
         492  +
                           /* StructureGenerator.kt:166 */
  285    493   
    pub fn super_(&self) -> ::std::option::Option<bool> {
         494  +
        /* StructureGenerator.kt:168 */
  286    495   
        self.super_
         496  +
        /* StructureGenerator.kt:166 */
  287    497   
    }
         498  +
    /* StructureGenerator.kt:231 */
  288    499   
    #[allow(missing_docs)] // documentation missing in model
         500  +
                           /* StructureGenerator.kt:166 */
  289    501   
    pub fn build_value(&self) -> ::std::option::Option<&str> {
         502  +
        /* StructureGenerator.kt:169 */
  290    503   
        self.build_value.as_deref()
         504  +
        /* StructureGenerator.kt:166 */
  291    505   
    }
         506  +
    /* StructureGenerator.kt:231 */
  292    507   
    #[allow(missing_docs)] // documentation missing in model
         508  +
                           /* StructureGenerator.kt:166 */
  293    509   
    pub fn default_value(&self) -> ::std::option::Option<&str> {
         510  +
        /* StructureGenerator.kt:169 */
  294    511   
        self.default_value.as_deref()
         512  +
        /* StructureGenerator.kt:166 */
  295    513   
    }
         514  +
    /* StructureGenerator.kt:231 */
  296    515   
    #[allow(missing_docs)] // documentation missing in model
         516  +
                           /* StructureGenerator.kt:166 */
  297    517   
    pub fn send(&self) -> ::std::option::Option<&str> {
         518  +
        /* StructureGenerator.kt:169 */
  298    519   
        self.send.as_deref()
         520  +
        /* StructureGenerator.kt:166 */
  299    521   
    }
         522  +
    /* StructureGenerator.kt:135 */
  300    523   
}
         524  +
/* ServerCodegenVisitor.kt:345 */
  301    525   
impl ReservedWordsAsMembersInput {
  302         -
    /// Creates a new builder-style object to manufacture [`ReservedWordsAsMembersInput`](crate::input::ReservedWordsAsMembersInput).
         526  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ReservedWordsAsMembersInput`](crate::input::ReservedWordsAsMembersInput).
         527  +
    /* ServerBuilderGenerator.kt:295 */
  303    528   
    pub fn builder() -> crate::input::reserved_words_as_members_input::Builder {
         529  +
        /* ServerBuilderGenerator.kt:296 */
  304    530   
        crate::input::reserved_words_as_members_input::Builder::default()
         531  +
        /* ServerBuilderGenerator.kt:295 */
  305    532   
    }
         533  +
    /* ServerCodegenVisitor.kt:345 */
  306    534   
}
         535  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  307    536   
impl crate::constrained::Constrained for crate::input::ReservedWordsAsMembersInput {
  308    537   
    type Unconstrained = crate::input::reserved_words_as_members_input::Builder;
  309    538   
}
  310         -
/// See [`RpcEchoInput`](crate::input::RpcEchoInput).
         539  +
/// /* ServerBuilderGenerator.kt:171 */See [`RpcEchoInput`](crate::input::RpcEchoInput).
  311    540   
pub mod rpc_echo_input {
  312    541   
         542  +
    /* RustType.kt:516 */
  313    543   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  314         -
    /// Holds one variant for each of the ways the builder can fail.
         544  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
         545  +
    /* RustType.kt:516 */
  315    546   
    #[non_exhaustive]
         547  +
    /* ServerBuilderConstraintViolations.kt:75 */
  316    548   
    #[allow(clippy::enum_variant_names)]
  317    549   
    pub enum ConstraintViolation {
  318         -
        /// Constraint violation occurred building member `r#enum` when building `RpcEchoInput`.
         550  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `r#enum` when building `RpcEchoInput`.
         551  +
        /* RustType.kt:516 */
  319    552   
        #[doc(hidden)]
         553  +
        /* ServerBuilderConstraintViolations.kt:164 */
  320    554   
        Enum(crate::model::unknown_variant_colliding_enum::ConstraintViolation),
         555  +
        /* ServerBuilderConstraintViolations.kt:75 */
  321    556   
    }
         557  +
    /* ServerBuilderConstraintViolations.kt:117 */
  322    558   
    impl ::std::fmt::Display for ConstraintViolation {
         559  +
        /* ServerBuilderConstraintViolations.kt:118 */
  323    560   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         561  +
            /* ServerBuilderConstraintViolations.kt:119 */
  324    562   
            match self {
  325         -
                ConstraintViolation::Enum(_) => write!(f, "constraint violation occurred building member `r#enum` when building `RpcEchoInput`"),
  326         -
            }
         563  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Enum(_) => write!(f, "constraint violation occurred building member `r#enum` when building `RpcEchoInput`"),
         564  +
            /* ServerBuilderConstraintViolations.kt:119 */}
         565  +
            /* ServerBuilderConstraintViolations.kt:118 */
  327    566   
        }
         567  +
        /* ServerBuilderConstraintViolations.kt:117 */
  328    568   
    }
         569  +
    /* ServerBuilderConstraintViolations.kt:84 */
  329    570   
    impl ::std::error::Error for ConstraintViolation {}
         571  +
    /* ServerBuilderConstraintViolations.kt:171 */
  330    572   
    impl ConstraintViolation {
  331    573   
        pub(crate) fn as_validation_exception_field(
  332    574   
            self,
  333    575   
            path: ::std::string::String,
  334    576   
        ) -> crate::model::ValidationExceptionField {
  335    577   
            match self {
  336    578   
                ConstraintViolation::Enum(inner) => {
  337    579   
                    inner.as_validation_exception_field(path + "/enum")
  338    580   
                }
  339    581   
            }
  340    582   
        }
  341    583   
    }
         584  +
    /* ServerBuilderGenerator.kt:234 */
  342    585   
    impl ::std::convert::From<ConstraintViolation>
  343    586   
        for ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection
  344    587   
    {
  345    588   
        fn from(constraint_violation: ConstraintViolation) -> Self {
  346    589   
            let first_validation_exception_field =
  347    590   
                constraint_violation.as_validation_exception_field("".to_owned());
  348    591   
            let validation_exception = crate::error::ValidationException {
  349    592   
                message: format!(
  350    593   
                    "1 validation error detected. {}",
  351    594   
                    &first_validation_exception_field.message
  352    595   
                ),
  353    596   
                field_list: Some(vec![first_validation_exception_field]),
  354    597   
            };
  355    598   
            Self::ConstraintViolation(
  356    599   
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
  357    600   
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
  358    601   
                            )
  359    602   
        }
  360    603   
    }
         604  +
    /* ServerBuilderGenerator.kt:244 */
  361    605   
    impl ::std::convert::From<Builder>
  362    606   
        for crate::constrained::MaybeConstrained<crate::input::RpcEchoInput>
  363    607   
    {
  364    608   
        fn from(builder: Builder) -> Self {
  365    609   
            Self::Unconstrained(builder)
  366    610   
        }
  367    611   
    }
         612  +
    /* ServerBuilderGenerator.kt:446 */
  368    613   
    impl ::std::convert::TryFrom<Builder> for crate::input::RpcEchoInput {
  369    614   
        type Error = ConstraintViolation;
  370    615   
  371    616   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  372    617   
            builder.build()
  373    618   
        }
  374    619   
    }
  375         -
    /// A builder for [`RpcEchoInput`](crate::input::RpcEchoInput).
         620  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`RpcEchoInput`](crate::input::RpcEchoInput).
         621  +
    /* RustType.kt:516 */
  376    622   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         623  +
    /* ServerBuilderGenerator.kt:211 */
  377    624   
    pub struct Builder {
  378         -
        pub(crate) r#as: ::std::option::Option<i32>,
  379         -
        pub(crate) r#async: ::std::option::Option<bool>,
         625  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) r#as: ::std::option::Option<i32>,
         626  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) r#async: ::std::option::Option<bool>,
         627  +
        /* ServerBuilderGenerator.kt:308 */
  380    628   
        pub(crate) r#enum: ::std::option::Option<
  381    629   
            crate::constrained::MaybeConstrained<crate::model::UnknownVariantCollidingEnum>,
  382    630   
        >,
  383         -
        pub(crate) self_: ::std::option::Option<bool>,
  384         -
        pub(crate) crate_: ::std::option::Option<bool>,
  385         -
        pub(crate) super_: ::std::option::Option<bool>,
         631  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) self_: ::std::option::Option<bool>,
         632  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) crate_: ::std::option::Option<bool>,
         633  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) super_: ::std::option::Option<bool>,
         634  +
        /* ServerBuilderGenerator.kt:308 */
  386    635   
        pub(crate) build_value: ::std::option::Option<::std::string::String>,
         636  +
        /* ServerBuilderGenerator.kt:308 */
  387    637   
        pub(crate) default_value: ::std::option::Option<::std::string::String>,
         638  +
        /* ServerBuilderGenerator.kt:308 */
  388    639   
        pub(crate) send: ::std::option::Option<::std::string::String>,
         640  +
        /* ServerBuilderGenerator.kt:211 */
  389    641   
    }
         642  +
    /* ServerBuilderGenerator.kt:215 */
  390    643   
    impl Builder {
         644  +
        /* ServerBuilderGenerator.kt:331 */
  391    645   
        #[allow(missing_docs)] // documentation missing in model
         646  +
                               /* ServerBuilderGenerator.kt:343 */
  392    647   
        pub fn r#as(mut self, input: ::std::option::Option<i32>) -> Self {
  393         -
            self.r#as = input;
         648  +
            /* ServerBuilderGenerator.kt:344 */
         649  +
            self.r#as =
         650  +
                /* ServerBuilderGenerator.kt:376 */input
         651  +
            /* ServerBuilderGenerator.kt:344 */;
  394    652   
            self
         653  +
            /* ServerBuilderGenerator.kt:343 */
  395    654   
        }
         655  +
        /* ServerBuilderGenerator.kt:426 */
  396    656   
        #[allow(missing_docs)] // documentation missing in model
         657  +
                               /* ServerBuilderGenerator.kt:428 */
  397    658   
        pub(crate) fn set_as(mut self, input: Option<impl ::std::convert::Into<i32>>) -> Self {
         659  +
            /* ServerBuilderGenerator.kt:429 */
  398    660   
            self.r#as = input.map(|v| v.into());
  399    661   
            self
         662  +
            /* ServerBuilderGenerator.kt:428 */
  400    663   
        }
         664  +
        /* ServerBuilderGenerator.kt:331 */
  401    665   
        #[allow(missing_docs)] // documentation missing in model
         666  +
                               /* ServerBuilderGenerator.kt:343 */
  402    667   
        pub fn r#async(mut self, input: ::std::option::Option<bool>) -> Self {
  403         -
            self.r#async = input;
         668  +
            /* ServerBuilderGenerator.kt:344 */
         669  +
            self.r#async =
         670  +
                /* ServerBuilderGenerator.kt:376 */input
         671  +
            /* ServerBuilderGenerator.kt:344 */;
  404    672   
            self
         673  +
            /* ServerBuilderGenerator.kt:343 */
  405    674   
        }
         675  +
        /* ServerBuilderGenerator.kt:426 */
  406    676   
        #[allow(missing_docs)] // documentation missing in model
         677  +
                               /* ServerBuilderGenerator.kt:428 */
  407    678   
        pub(crate) fn set_async(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
         679  +
            /* ServerBuilderGenerator.kt:429 */
  408    680   
            self.r#async = input.map(|v| v.into());
  409    681   
            self
         682  +
            /* ServerBuilderGenerator.kt:428 */
  410    683   
        }
         684  +
        /* ServerBuilderGenerator.kt:331 */
  411    685   
        #[allow(missing_docs)] // documentation missing in model
         686  +
                               /* ServerBuilderGenerator.kt:343 */
  412    687   
        pub fn r#enum(
  413    688   
            mut self,
  414    689   
            input: ::std::option::Option<crate::model::UnknownVariantCollidingEnum>,
  415    690   
        ) -> Self {
  416         -
            self.r#enum = input.map(
  417         -
                #[allow(clippy::redundant_closure)]
  418         -
                |v| crate::constrained::MaybeConstrained::Constrained(v),
  419         -
            );
         691  +
            /* ServerBuilderGenerator.kt:344 */
         692  +
            self.r#enum =
         693  +
                /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
         694  +
            /* ServerBuilderGenerator.kt:344 */;
  420    695   
            self
         696  +
            /* ServerBuilderGenerator.kt:343 */
  421    697   
        }
         698  +
        /* ServerBuilderGenerator.kt:426 */
  422    699   
        #[allow(missing_docs)] // documentation missing in model
         700  +
                               /* ServerBuilderGenerator.kt:428 */
  423    701   
        pub(crate) fn set_enum(
  424    702   
            mut self,
  425    703   
            input: Option<
  426    704   
                impl ::std::convert::Into<
  427    705   
                    crate::constrained::MaybeConstrained<crate::model::UnknownVariantCollidingEnum>,
  428    706   
                >,
  429    707   
            >,
  430    708   
        ) -> Self {
         709  +
            /* ServerBuilderGenerator.kt:429 */
  431    710   
            self.r#enum = input.map(|v| v.into());
  432    711   
            self
         712  +
            /* ServerBuilderGenerator.kt:428 */
  433    713   
        }
         714  +
        /* ServerBuilderGenerator.kt:331 */
  434    715   
        #[allow(missing_docs)] // documentation missing in model
         716  +
                               /* ServerBuilderGenerator.kt:343 */
  435    717   
        pub fn self_(mut self, input: ::std::option::Option<bool>) -> Self {
  436         -
            self.self_ = input;
         718  +
            /* ServerBuilderGenerator.kt:344 */
         719  +
            self.self_ =
         720  +
                /* ServerBuilderGenerator.kt:376 */input
         721  +
            /* ServerBuilderGenerator.kt:344 */;
  437    722   
            self
         723  +
            /* ServerBuilderGenerator.kt:343 */
  438    724   
        }
         725  +
        /* ServerBuilderGenerator.kt:426 */
  439    726   
        #[allow(missing_docs)] // documentation missing in model
         727  +
                               /* ServerBuilderGenerator.kt:428 */
  440    728   
        pub(crate) fn set_self(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
         729  +
            /* ServerBuilderGenerator.kt:429 */
  441    730   
            self.self_ = input.map(|v| v.into());
  442    731   
            self
         732  +
            /* ServerBuilderGenerator.kt:428 */
  443    733   
        }
         734  +
        /* ServerBuilderGenerator.kt:331 */
  444    735   
        #[allow(missing_docs)] // documentation missing in model
         736  +
                               /* ServerBuilderGenerator.kt:343 */
  445    737   
        pub fn crate_(mut self, input: ::std::option::Option<bool>) -> Self {
  446         -
            self.crate_ = input;
         738  +
            /* ServerBuilderGenerator.kt:344 */
         739  +
            self.crate_ =
         740  +
                /* ServerBuilderGenerator.kt:376 */input
         741  +
            /* ServerBuilderGenerator.kt:344 */;
  447    742   
            self
         743  +
            /* ServerBuilderGenerator.kt:343 */
  448    744   
        }
         745  +
        /* ServerBuilderGenerator.kt:426 */
  449    746   
        #[allow(missing_docs)] // documentation missing in model
         747  +
                               /* ServerBuilderGenerator.kt:428 */
  450    748   
        pub(crate) fn set_crate(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
         749  +
            /* ServerBuilderGenerator.kt:429 */
  451    750   
            self.crate_ = input.map(|v| v.into());
  452    751   
            self
         752  +
            /* ServerBuilderGenerator.kt:428 */
  453    753   
        }
         754  +
        /* ServerBuilderGenerator.kt:331 */
  454    755   
        #[allow(missing_docs)] // documentation missing in model
         756  +
                               /* ServerBuilderGenerator.kt:343 */
  455    757   
        pub fn super_(mut self, input: ::std::option::Option<bool>) -> Self {
  456         -
            self.super_ = input;
         758  +
            /* ServerBuilderGenerator.kt:344 */
         759  +
            self.super_ =
         760  +
                /* ServerBuilderGenerator.kt:376 */input
         761  +
            /* ServerBuilderGenerator.kt:344 */;
  457    762   
            self
         763  +
            /* ServerBuilderGenerator.kt:343 */
  458    764   
        }
         765  +
        /* ServerBuilderGenerator.kt:426 */
  459    766   
        #[allow(missing_docs)] // documentation missing in model
         767  +
                               /* ServerBuilderGenerator.kt:428 */
  460    768   
        pub(crate) fn set_super(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
         769  +
            /* ServerBuilderGenerator.kt:429 */
  461    770   
            self.super_ = input.map(|v| v.into());
  462    771   
            self
         772  +
            /* ServerBuilderGenerator.kt:428 */
  463    773   
        }
         774  +
        /* ServerBuilderGenerator.kt:331 */
  464    775   
        #[allow(missing_docs)] // documentation missing in model
         776  +
                               /* ServerBuilderGenerator.kt:343 */
  465    777   
        pub fn build_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  466         -
            self.build_value = input;
         778  +
            /* ServerBuilderGenerator.kt:344 */
         779  +
            self.build_value =
         780  +
                /* ServerBuilderGenerator.kt:376 */input
         781  +
            /* ServerBuilderGenerator.kt:344 */;
  467    782   
            self
         783  +
            /* ServerBuilderGenerator.kt:343 */
  468    784   
        }
         785  +
        /* ServerBuilderGenerator.kt:426 */
  469    786   
        #[allow(missing_docs)] // documentation missing in model
         787  +
                               /* ServerBuilderGenerator.kt:428 */
  470    788   
        pub(crate) fn set_build(
  471    789   
            mut self,
  472    790   
            input: Option<impl ::std::convert::Into<::std::string::String>>,
  473    791   
        ) -> Self {
         792  +
            /* ServerBuilderGenerator.kt:429 */
  474    793   
            self.build_value = input.map(|v| v.into());
  475    794   
            self
         795  +
            /* ServerBuilderGenerator.kt:428 */
  476    796   
        }
         797  +
        /* ServerBuilderGenerator.kt:331 */
  477    798   
        #[allow(missing_docs)] // documentation missing in model
         799  +
                               /* ServerBuilderGenerator.kt:343 */
  478    800   
        pub fn default_value(
  479    801   
            mut self,
  480    802   
            input: ::std::option::Option<::std::string::String>,
  481    803   
        ) -> Self {
  482         -
            self.default_value = input;
         804  +
            /* ServerBuilderGenerator.kt:344 */
         805  +
            self.default_value =
         806  +
                /* ServerBuilderGenerator.kt:376 */input
         807  +
            /* ServerBuilderGenerator.kt:344 */;
  483    808   
            self
         809  +
            /* ServerBuilderGenerator.kt:343 */
  484    810   
        }
         811  +
        /* ServerBuilderGenerator.kt:426 */
  485    812   
        #[allow(missing_docs)] // documentation missing in model
         813  +
                               /* ServerBuilderGenerator.kt:428 */
  486    814   
        pub(crate) fn set_default(
  487    815   
            mut self,
  488    816   
            input: Option<impl ::std::convert::Into<::std::string::String>>,
  489    817   
        ) -> Self {
         818  +
            /* ServerBuilderGenerator.kt:429 */
  490    819   
            self.default_value = input.map(|v| v.into());
  491    820   
            self
         821  +
            /* ServerBuilderGenerator.kt:428 */
  492    822   
        }
         823  +
        /* ServerBuilderGenerator.kt:331 */
  493    824   
        #[allow(missing_docs)] // documentation missing in model
         825  +
                               /* ServerBuilderGenerator.kt:343 */
  494    826   
        pub fn send(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  495         -
            self.send = input;
         827  +
            /* ServerBuilderGenerator.kt:344 */
         828  +
            self.send =
         829  +
                /* ServerBuilderGenerator.kt:376 */input
         830  +
            /* ServerBuilderGenerator.kt:344 */;
  496    831   
            self
         832  +
            /* ServerBuilderGenerator.kt:343 */
  497    833   
        }
         834  +
        /* ServerBuilderGenerator.kt:426 */
  498    835   
        #[allow(missing_docs)] // documentation missing in model
         836  +
                               /* ServerBuilderGenerator.kt:428 */
  499    837   
        pub(crate) fn set_send(
  500    838   
            mut self,
  501    839   
            input: Option<impl ::std::convert::Into<::std::string::String>>,
  502    840   
        ) -> Self {
         841  +
            /* ServerBuilderGenerator.kt:429 */
  503    842   
            self.send = input.map(|v| v.into());
  504    843   
            self
         844  +
            /* ServerBuilderGenerator.kt:428 */
  505    845   
        }
  506         -
        /// Consumes the builder and constructs a [`RpcEchoInput`](crate::input::RpcEchoInput).
  507         -
        ///
         846  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`RpcEchoInput`](crate::input::RpcEchoInput).
         847  +
        /// /* ServerBuilderGenerator.kt:260 */
  508    848   
        /// The builder fails to construct a [`RpcEchoInput`](crate::input::RpcEchoInput) if a [`ConstraintViolation`] occurs.
  509    849   
        ///
         850  +
        /* ServerBuilderGenerator.kt:271 */
  510    851   
        pub fn build(self) -> Result<crate::input::RpcEchoInput, ConstraintViolation> {
  511    852   
            self.build_enforcing_all_constraints()
  512    853   
        }
         854  +
        /* ServerBuilderGenerator.kt:283 */
  513    855   
        fn build_enforcing_all_constraints(
  514    856   
            self,
  515    857   
        ) -> Result<crate::input::RpcEchoInput, ConstraintViolation> {
  516         -
            Ok(crate::input::RpcEchoInput {
         858  +
            /* ServerBuilderGenerator.kt:287 */
         859  +
            Ok(
         860  +
                /* ServerBuilderGenerator.kt:542 */
         861  +
                crate::input::RpcEchoInput {
         862  +
                    /* ServerBuilderGenerator.kt:546 */
  517    863   
                    r#as: self.r#as,
         864  +
                    /* ServerBuilderGenerator.kt:546 */
  518    865   
                    r#async: self.r#async,
         866  +
                    /* ServerBuilderGenerator.kt:546 */
  519    867   
                    r#enum: self
  520    868   
                        .r#enum
         869  +
                        /* ServerBuilderGenerator.kt:602 */
  521    870   
                        .map(|v| match v {
  522    871   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
  523    872   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
  524    873   
                        })
         874  +
                        /* ServerBuilderGenerator.kt:614 */
  525    875   
                        .map(|res| res.map_err(ConstraintViolation::Enum))
  526    876   
                        .transpose()?,
         877  +
                    /* ServerBuilderGenerator.kt:546 */
  527    878   
                    self_: self.self_,
         879  +
                    /* ServerBuilderGenerator.kt:546 */
  528    880   
                    crate_: self.crate_,
         881  +
                    /* ServerBuilderGenerator.kt:546 */
  529    882   
                    super_: self.super_,
         883  +
                    /* ServerBuilderGenerator.kt:546 */
  530    884   
                    build_value: self.build_value,
         885  +
                    /* ServerBuilderGenerator.kt:546 */
  531    886   
                    default_value: self.default_value,
         887  +
                    /* ServerBuilderGenerator.kt:546 */
  532    888   
                    send: self.send,
  533         -
            })
         889  +
                    /* ServerBuilderGenerator.kt:542 */
         890  +
                }, /* ServerBuilderGenerator.kt:287 */
         891  +
            )
         892  +
            /* ServerBuilderGenerator.kt:283 */
  534    893   
        }
         894  +
        /* ServerBuilderGenerator.kt:215 */
  535    895   
    }
         896  +
         897  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  536    898   
}
  537         -
/// See [`MatchInput`](crate::input::MatchInput).
         899  +
/// /* ServerBuilderGenerator.kt:171 */See [`MatchInput`](crate::input::MatchInput).
  538    900   
pub mod match_input {
  539    901   
         902  +
    /* RustType.kt:516 */
  540    903   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  541         -
    /// Holds one variant for each of the ways the builder can fail.
         904  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
         905  +
    /* RustType.kt:516 */
  542    906   
    #[non_exhaustive]
         907  +
    /* ServerBuilderConstraintViolations.kt:75 */
  543    908   
    #[allow(clippy::enum_variant_names)]
  544    909   
    pub enum ConstraintViolation {
  545         -
        /// Constraint violation occurred building member `r#enum` when building `MatchInput`.
         910  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `r#enum` when building `MatchInput`.
         911  +
        /* RustType.kt:516 */
  546    912   
        #[doc(hidden)]
         913  +
        /* ServerBuilderConstraintViolations.kt:164 */
  547    914   
        Enum(crate::model::unknown_variant_colliding_enum::ConstraintViolation),
         915  +
        /* ServerBuilderConstraintViolations.kt:75 */
  548    916   
    }
         917  +
    /* ServerBuilderConstraintViolations.kt:117 */
  549    918   
    impl ::std::fmt::Display for ConstraintViolation {
         919  +
        /* ServerBuilderConstraintViolations.kt:118 */
  550    920   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         921  +
            /* ServerBuilderConstraintViolations.kt:119 */
  551    922   
            match self {
  552         -
                ConstraintViolation::Enum(_) => write!(f, "constraint violation occurred building member `r#enum` when building `MatchInput`"),
  553         -
            }
         923  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Enum(_) => write!(f, "constraint violation occurred building member `r#enum` when building `MatchInput`"),
         924  +
            /* ServerBuilderConstraintViolations.kt:119 */}
         925  +
            /* ServerBuilderConstraintViolations.kt:118 */
  554    926   
        }
         927  +
        /* ServerBuilderConstraintViolations.kt:117 */
  555    928   
    }
         929  +
    /* ServerBuilderConstraintViolations.kt:84 */
  556    930   
    impl ::std::error::Error for ConstraintViolation {}
         931  +
    /* ServerBuilderConstraintViolations.kt:171 */
  557    932   
    impl ConstraintViolation {
  558    933   
        pub(crate) fn as_validation_exception_field(
  559    934   
            self,
  560    935   
            path: ::std::string::String,
  561    936   
        ) -> crate::model::ValidationExceptionField {
  562    937   
            match self {
  563    938   
                ConstraintViolation::Enum(inner) => {
  564    939   
                    inner.as_validation_exception_field(path + "/enum")
  565    940   
                }
  566    941   
            }
  567    942   
        }
  568    943   
    }
         944  +
    /* ServerBuilderGenerator.kt:234 */
  569    945   
    impl ::std::convert::From<ConstraintViolation>
  570    946   
        for ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection
  571    947   
    {
  572    948   
        fn from(constraint_violation: ConstraintViolation) -> Self {
  573    949   
            let first_validation_exception_field =
  574    950   
                constraint_violation.as_validation_exception_field("".to_owned());
  575    951   
            let validation_exception = crate::error::ValidationException {
  576    952   
                message: format!(
  577    953   
                    "1 validation error detected. {}",
  578    954   
                    &first_validation_exception_field.message
  579    955   
                ),
  580    956   
                field_list: Some(vec![first_validation_exception_field]),
  581    957   
            };
  582    958   
            Self::ConstraintViolation(
  583    959   
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
  584    960   
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
  585    961   
                            )
  586    962   
        }
  587    963   
    }
         964  +
    /* ServerBuilderGenerator.kt:244 */
  588    965   
    impl ::std::convert::From<Builder>
  589    966   
        for crate::constrained::MaybeConstrained<crate::input::MatchInput>
  590    967   
    {
  591    968   
        fn from(builder: Builder) -> Self {
  592    969   
            Self::Unconstrained(builder)
  593    970   
        }
  594    971   
    }
         972  +
    /* ServerBuilderGenerator.kt:446 */
  595    973   
    impl ::std::convert::TryFrom<Builder> for crate::input::MatchInput {
  596    974   
        type Error = ConstraintViolation;
  597    975   
  598    976   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  599    977   
            builder.build()
  600    978   
        }
  601    979   
    }
  602         -
    /// A builder for [`MatchInput`](crate::input::MatchInput).
         980  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`MatchInput`](crate::input::MatchInput).
         981  +
    /* RustType.kt:516 */
  603    982   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         983  +
    /* ServerBuilderGenerator.kt:211 */
  604    984   
    pub struct Builder {
  605         -
        pub(crate) r#as: ::std::option::Option<i32>,
  606         -
        pub(crate) r#async: ::std::option::Option<bool>,
         985  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) r#as: ::std::option::Option<i32>,
         986  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) r#async: ::std::option::Option<bool>,
         987  +
        /* ServerBuilderGenerator.kt:308 */
  607    988   
        pub(crate) r#enum: ::std::option::Option<
  608    989   
            crate::constrained::MaybeConstrained<crate::model::UnknownVariantCollidingEnum>,
  609    990   
        >,
  610         -
        pub(crate) self_: ::std::option::Option<bool>,
  611         -
        pub(crate) crate_: ::std::option::Option<bool>,
  612         -
        pub(crate) super_: ::std::option::Option<bool>,
         991  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) self_: ::std::option::Option<bool>,
         992  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) crate_: ::std::option::Option<bool>,
         993  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) super_: ::std::option::Option<bool>,
         994  +
        /* ServerBuilderGenerator.kt:308 */
  613    995   
        pub(crate) build_value: ::std::option::Option<::std::string::String>,
         996  +
        /* ServerBuilderGenerator.kt:308 */
  614    997   
        pub(crate) default_value: ::std::option::Option<::std::string::String>,
         998  +
        /* ServerBuilderGenerator.kt:308 */
  615    999   
        pub(crate) send: ::std::option::Option<::std::string::String>,
        1000  +
        /* ServerBuilderGenerator.kt:211 */
  616   1001   
    }
        1002  +
    /* ServerBuilderGenerator.kt:215 */
  617   1003   
    impl Builder {
        1004  +
        /* ServerBuilderGenerator.kt:331 */
  618   1005   
        #[allow(missing_docs)] // documentation missing in model
        1006  +
                               /* ServerBuilderGenerator.kt:343 */
  619   1007   
        pub fn r#as(mut self, input: ::std::option::Option<i32>) -> Self {
  620         -
            self.r#as = input;
        1008  +
            /* ServerBuilderGenerator.kt:344 */
        1009  +
            self.r#as =
        1010  +
                /* ServerBuilderGenerator.kt:376 */input
        1011  +
            /* ServerBuilderGenerator.kt:344 */;
  621   1012   
            self
        1013  +
            /* ServerBuilderGenerator.kt:343 */
  622   1014   
        }
        1015  +
        /* ServerBuilderGenerator.kt:426 */
  623   1016   
        #[allow(missing_docs)] // documentation missing in model
        1017  +
                               /* ServerBuilderGenerator.kt:428 */
  624   1018   
        pub(crate) fn set_as(mut self, input: Option<impl ::std::convert::Into<i32>>) -> Self {
        1019  +
            /* ServerBuilderGenerator.kt:429 */
  625   1020   
            self.r#as = input.map(|v| v.into());
  626   1021   
            self
        1022  +
            /* ServerBuilderGenerator.kt:428 */
  627   1023   
        }
        1024  +
        /* ServerBuilderGenerator.kt:331 */
  628   1025   
        #[allow(missing_docs)] // documentation missing in model
        1026  +
                               /* ServerBuilderGenerator.kt:343 */
  629   1027   
        pub fn r#async(mut self, input: ::std::option::Option<bool>) -> Self {
  630         -
            self.r#async = input;
        1028  +
            /* ServerBuilderGenerator.kt:344 */
        1029  +
            self.r#async =
        1030  +
                /* ServerBuilderGenerator.kt:376 */input
        1031  +
            /* ServerBuilderGenerator.kt:344 */;
  631   1032   
            self
        1033  +
            /* ServerBuilderGenerator.kt:343 */
  632   1034   
        }
        1035  +
        /* ServerBuilderGenerator.kt:426 */
  633   1036   
        #[allow(missing_docs)] // documentation missing in model
        1037  +
                               /* ServerBuilderGenerator.kt:428 */
  634   1038   
        pub(crate) fn set_async(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
        1039  +
            /* ServerBuilderGenerator.kt:429 */
  635   1040   
            self.r#async = input.map(|v| v.into());
  636   1041   
            self
        1042  +
            /* ServerBuilderGenerator.kt:428 */
  637   1043   
        }
        1044  +
        /* ServerBuilderGenerator.kt:331 */
  638   1045   
        #[allow(missing_docs)] // documentation missing in model
        1046  +
                               /* ServerBuilderGenerator.kt:343 */
  639   1047   
        pub fn r#enum(
  640   1048   
            mut self,
  641   1049   
            input: ::std::option::Option<crate::model::UnknownVariantCollidingEnum>,
  642   1050   
        ) -> Self {
  643         -
            self.r#enum = input.map(
  644         -
                #[allow(clippy::redundant_closure)]
  645         -
                |v| crate::constrained::MaybeConstrained::Constrained(v),
  646         -
            );
        1051  +
            /* ServerBuilderGenerator.kt:344 */
        1052  +
            self.r#enum =
        1053  +
                /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
        1054  +
            /* ServerBuilderGenerator.kt:344 */;
  647   1055   
            self
        1056  +
            /* ServerBuilderGenerator.kt:343 */
  648   1057   
        }
        1058  +
        /* ServerBuilderGenerator.kt:426 */
  649   1059   
        #[allow(missing_docs)] // documentation missing in model
        1060  +
                               /* ServerBuilderGenerator.kt:428 */
  650   1061   
        pub(crate) fn set_enum(
  651   1062   
            mut self,
  652   1063   
            input: Option<
  653   1064   
                impl ::std::convert::Into<
  654   1065   
                    crate::constrained::MaybeConstrained<crate::model::UnknownVariantCollidingEnum>,
  655   1066   
                >,
  656   1067   
            >,
  657   1068   
        ) -> Self {
        1069  +
            /* ServerBuilderGenerator.kt:429 */
  658   1070   
            self.r#enum = input.map(|v| v.into());
  659   1071   
            self
        1072  +
            /* ServerBuilderGenerator.kt:428 */
  660   1073   
        }
        1074  +
        /* ServerBuilderGenerator.kt:331 */
  661   1075   
        #[allow(missing_docs)] // documentation missing in model
        1076  +
                               /* ServerBuilderGenerator.kt:343 */
  662   1077   
        pub fn self_(mut self, input: ::std::option::Option<bool>) -> Self {
  663         -
            self.self_ = input;
        1078  +
            /* ServerBuilderGenerator.kt:344 */
        1079  +
            self.self_ =
        1080  +
                /* ServerBuilderGenerator.kt:376 */input
        1081  +
            /* ServerBuilderGenerator.kt:344 */;
  664   1082   
            self
        1083  +
            /* ServerBuilderGenerator.kt:343 */
  665   1084   
        }
        1085  +
        /* ServerBuilderGenerator.kt:426 */
  666   1086   
        #[allow(missing_docs)] // documentation missing in model
        1087  +
                               /* ServerBuilderGenerator.kt:428 */
  667   1088   
        pub(crate) fn set_self(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
        1089  +
            /* ServerBuilderGenerator.kt:429 */
  668   1090   
            self.self_ = input.map(|v| v.into());
  669   1091   
            self
        1092  +
            /* ServerBuilderGenerator.kt:428 */
  670   1093   
        }
        1094  +
        /* ServerBuilderGenerator.kt:331 */
  671   1095   
        #[allow(missing_docs)] // documentation missing in model
        1096  +
                               /* ServerBuilderGenerator.kt:343 */
  672   1097   
        pub fn crate_(mut self, input: ::std::option::Option<bool>) -> Self {
  673         -
            self.crate_ = input;
        1098  +
            /* ServerBuilderGenerator.kt:344 */
        1099  +
            self.crate_ =
        1100  +
                /* ServerBuilderGenerator.kt:376 */input
        1101  +
            /* ServerBuilderGenerator.kt:344 */;
  674   1102   
            self
        1103  +
            /* ServerBuilderGenerator.kt:343 */
  675   1104   
        }
        1105  +
        /* ServerBuilderGenerator.kt:426 */
  676   1106   
        #[allow(missing_docs)] // documentation missing in model
        1107  +
                               /* ServerBuilderGenerator.kt:428 */
  677   1108   
        pub(crate) fn set_crate(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
        1109  +
            /* ServerBuilderGenerator.kt:429 */
  678   1110   
            self.crate_ = input.map(|v| v.into());
  679   1111   
            self
        1112  +
            /* ServerBuilderGenerator.kt:428 */
  680   1113   
        }
        1114  +
        /* ServerBuilderGenerator.kt:331 */
  681   1115   
        #[allow(missing_docs)] // documentation missing in model
        1116  +
                               /* ServerBuilderGenerator.kt:343 */
  682   1117   
        pub fn super_(mut self, input: ::std::option::Option<bool>) -> Self {
  683         -
            self.super_ = input;
        1118  +
            /* ServerBuilderGenerator.kt:344 */
        1119  +
            self.super_ =
        1120  +
                /* ServerBuilderGenerator.kt:376 */input
        1121  +
            /* ServerBuilderGenerator.kt:344 */;
  684   1122   
            self
        1123  +
            /* ServerBuilderGenerator.kt:343 */
  685   1124   
        }
        1125  +
        /* ServerBuilderGenerator.kt:426 */
  686   1126   
        #[allow(missing_docs)] // documentation missing in model
        1127  +
                               /* ServerBuilderGenerator.kt:428 */
  687   1128   
        pub(crate) fn set_super(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
        1129  +
            /* ServerBuilderGenerator.kt:429 */
  688   1130   
            self.super_ = input.map(|v| v.into());
  689   1131   
            self
        1132  +
            /* ServerBuilderGenerator.kt:428 */
  690   1133   
        }
        1134  +
        /* ServerBuilderGenerator.kt:331 */
  691   1135   
        #[allow(missing_docs)] // documentation missing in model
        1136  +
                               /* ServerBuilderGenerator.kt:343 */
  692   1137   
        pub fn build_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  693         -
            self.build_value = input;
        1138  +
            /* ServerBuilderGenerator.kt:344 */
        1139  +
            self.build_value =
        1140  +
                /* ServerBuilderGenerator.kt:376 */input
        1141  +
            /* ServerBuilderGenerator.kt:344 */;
  694   1142   
            self
        1143  +
            /* ServerBuilderGenerator.kt:343 */
  695   1144   
        }
        1145  +
        /* ServerBuilderGenerator.kt:426 */
  696   1146   
        #[allow(missing_docs)] // documentation missing in model
        1147  +
                               /* ServerBuilderGenerator.kt:428 */
  697   1148   
        pub(crate) fn set_build(
  698   1149   
            mut self,
  699   1150   
            input: Option<impl ::std::convert::Into<::std::string::String>>,
  700   1151   
        ) -> Self {
        1152  +
            /* ServerBuilderGenerator.kt:429 */
  701   1153   
            self.build_value = input.map(|v| v.into());
  702   1154   
            self
        1155  +
            /* ServerBuilderGenerator.kt:428 */
  703   1156   
        }
        1157  +
        /* ServerBuilderGenerator.kt:331 */
  704   1158   
        #[allow(missing_docs)] // documentation missing in model
        1159  +
                               /* ServerBuilderGenerator.kt:343 */
  705   1160   
        pub fn default_value(
  706   1161   
            mut self,
  707   1162   
            input: ::std::option::Option<::std::string::String>,
  708   1163   
        ) -> Self {
  709         -
            self.default_value = input;
        1164  +
            /* ServerBuilderGenerator.kt:344 */
        1165  +
            self.default_value =
        1166  +
                /* ServerBuilderGenerator.kt:376 */input
        1167  +
            /* ServerBuilderGenerator.kt:344 */;
  710   1168   
            self
        1169  +
            /* ServerBuilderGenerator.kt:343 */
  711   1170   
        }
        1171  +
        /* ServerBuilderGenerator.kt:426 */
  712   1172   
        #[allow(missing_docs)] // documentation missing in model
        1173  +
                               /* ServerBuilderGenerator.kt:428 */
  713   1174   
        pub(crate) fn set_default(
  714   1175   
            mut self,
  715   1176   
            input: Option<impl ::std::convert::Into<::std::string::String>>,
  716   1177   
        ) -> Self {
        1178  +
            /* ServerBuilderGenerator.kt:429 */
  717   1179   
            self.default_value = input.map(|v| v.into());
  718   1180   
            self
        1181  +
            /* ServerBuilderGenerator.kt:428 */
  719   1182   
        }
        1183  +
        /* ServerBuilderGenerator.kt:331 */
  720   1184   
        #[allow(missing_docs)] // documentation missing in model
        1185  +
                               /* ServerBuilderGenerator.kt:343 */
  721   1186   
        pub fn send(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  722         -
            self.send = input;
        1187  +
            /* ServerBuilderGenerator.kt:344 */
        1188  +
            self.send =
        1189  +
                /* ServerBuilderGenerator.kt:376 */input
        1190  +
            /* ServerBuilderGenerator.kt:344 */;
  723   1191   
            self
        1192  +
            /* ServerBuilderGenerator.kt:343 */
  724   1193   
        }
        1194  +
        /* ServerBuilderGenerator.kt:426 */
  725   1195   
        #[allow(missing_docs)] // documentation missing in model
        1196  +
                               /* ServerBuilderGenerator.kt:428 */
  726   1197   
        pub(crate) fn set_send(
  727   1198   
            mut self,
  728   1199   
            input: Option<impl ::std::convert::Into<::std::string::String>>,
  729   1200   
        ) -> Self {
        1201  +
            /* ServerBuilderGenerator.kt:429 */
  730   1202   
            self.send = input.map(|v| v.into());
  731   1203   
            self
        1204  +
            /* ServerBuilderGenerator.kt:428 */
  732   1205   
        }
  733         -
        /// Consumes the builder and constructs a [`MatchInput`](crate::input::MatchInput).
  734         -
        ///
        1206  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MatchInput`](crate::input::MatchInput).
        1207  +
        /// /* ServerBuilderGenerator.kt:260 */
  735   1208   
        /// The builder fails to construct a [`MatchInput`](crate::input::MatchInput) if a [`ConstraintViolation`] occurs.
  736   1209   
        ///
        1210  +
        /* ServerBuilderGenerator.kt:271 */
  737   1211   
        pub fn build(self) -> Result<crate::input::MatchInput, ConstraintViolation> {
  738   1212   
            self.build_enforcing_all_constraints()
  739   1213   
        }
        1214  +
        /* ServerBuilderGenerator.kt:283 */
  740   1215   
        fn build_enforcing_all_constraints(
  741   1216   
            self,
  742   1217   
        ) -> Result<crate::input::MatchInput, ConstraintViolation> {
  743         -
            Ok(crate::input::MatchInput {
        1218  +
            /* ServerBuilderGenerator.kt:287 */
        1219  +
            Ok(
        1220  +
                /* ServerBuilderGenerator.kt:542 */
        1221  +
                crate::input::MatchInput {
        1222  +
                    /* ServerBuilderGenerator.kt:546 */
  744   1223   
                    r#as: self.r#as,
        1224  +
                    /* ServerBuilderGenerator.kt:546 */
  745   1225   
                    r#async: self.r#async,
        1226  +
                    /* ServerBuilderGenerator.kt:546 */
  746   1227   
                    r#enum: self
  747   1228   
                        .r#enum
        1229  +
                        /* ServerBuilderGenerator.kt:602 */
  748   1230   
                        .map(|v| match v {
  749   1231   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
  750   1232   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
  751   1233   
                        })
        1234  +
                        /* ServerBuilderGenerator.kt:614 */
  752   1235   
                        .map(|res| res.map_err(ConstraintViolation::Enum))
  753   1236   
                        .transpose()?,
        1237  +
                    /* ServerBuilderGenerator.kt:546 */
  754   1238   
                    self_: self.self_,
        1239  +
                    /* ServerBuilderGenerator.kt:546 */
  755   1240   
                    crate_: self.crate_,
        1241  +
                    /* ServerBuilderGenerator.kt:546 */
  756   1242   
                    super_: self.super_,
        1243  +
                    /* ServerBuilderGenerator.kt:546 */
  757   1244   
                    build_value: self.build_value,
        1245  +
                    /* ServerBuilderGenerator.kt:546 */
  758   1246   
                    default_value: self.default_value,
        1247  +
                    /* ServerBuilderGenerator.kt:546 */
  759   1248   
                    send: self.send,
  760         -
            })
        1249  +
                    /* ServerBuilderGenerator.kt:542 */
        1250  +
                }, /* ServerBuilderGenerator.kt:287 */
        1251  +
            )
        1252  +
            /* ServerBuilderGenerator.kt:283 */
  761   1253   
        }
        1254  +
        /* ServerBuilderGenerator.kt:215 */
  762   1255   
    }
        1256  +
        1257  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  763   1258   
}
  764         -
/// See [`OptionInput`](crate::input::OptionInput).
        1259  +
/// /* ServerBuilderGenerator.kt:171 */See [`OptionInput`](crate::input::OptionInput).
  765   1260   
pub mod option_input {
  766   1261   
        1262  +
    /* ServerBuilderGenerator.kt:461 */
  767   1263   
    impl ::std::convert::From<Builder> for crate::input::OptionInput {
  768   1264   
        fn from(builder: Builder) -> Self {
  769   1265   
            builder.build()
  770   1266   
        }
  771   1267   
    }
  772         -
    /// A builder for [`OptionInput`](crate::input::OptionInput).
        1268  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`OptionInput`](crate::input::OptionInput).
        1269  +
    /* RustType.kt:516 */
  773   1270   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1271  +
    /* ServerBuilderGenerator.kt:211 */
  774   1272   
    pub struct Builder {
        1273  +
        /* ServerBuilderGenerator.kt:308 */
  775   1274   
        pub(crate) pv_member: ::std::option::Option<bool>,
        1275  +
        /* ServerBuilderGenerator.kt:211 */
  776   1276   
    }
        1277  +
    /* ServerBuilderGenerator.kt:215 */
  777   1278   
    impl Builder {
        1279  +
        /* ServerBuilderGenerator.kt:331 */
  778   1280   
        #[allow(missing_docs)] // documentation missing in model
        1281  +
                               /* ServerBuilderGenerator.kt:343 */
  779   1282   
        pub fn pv_member(mut self, input: ::std::option::Option<bool>) -> Self {
  780         -
            self.pv_member = input;
        1283  +
            /* ServerBuilderGenerator.kt:344 */
        1284  +
            self.pv_member =
        1285  +
                /* ServerBuilderGenerator.kt:376 */input
        1286  +
            /* ServerBuilderGenerator.kt:344 */;
  781   1287   
            self
        1288  +
            /* ServerBuilderGenerator.kt:343 */
  782   1289   
        }
        1290  +
        /* ServerBuilderGenerator.kt:426 */
  783   1291   
        #[allow(missing_docs)] // documentation missing in model
        1292  +
                               /* ServerBuilderGenerator.kt:428 */
  784   1293   
        pub(crate) fn set_pv_member(
  785   1294   
            mut self,
  786   1295   
            input: Option<impl ::std::convert::Into<bool>>,
  787   1296   
        ) -> Self {
        1297  +
            /* ServerBuilderGenerator.kt:429 */
  788   1298   
            self.pv_member = input.map(|v| v.into());
  789   1299   
            self
        1300  +
            /* ServerBuilderGenerator.kt:428 */
  790   1301   
        }
  791         -
        /// Consumes the builder and constructs a [`OptionInput`](crate::input::OptionInput).
        1302  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`OptionInput`](crate::input::OptionInput).
        1303  +
        /* ServerBuilderGenerator.kt:271 */
  792   1304   
        pub fn build(self) -> crate::input::OptionInput {
  793   1305   
            self.build_enforcing_all_constraints()
  794   1306   
        }
        1307  +
        /* ServerBuilderGenerator.kt:283 */
  795   1308   
        fn build_enforcing_all_constraints(self) -> crate::input::OptionInput {
        1309  +
            /* ServerBuilderGenerator.kt:542 */
  796   1310   
            crate::input::OptionInput {
        1311  +
                /* ServerBuilderGenerator.kt:546 */
  797   1312   
                pv_member: self.pv_member,
        1313  +
                /* ServerBuilderGenerator.kt:542 */
  798   1314   
            }
        1315  +
            /* ServerBuilderGenerator.kt:283 */
  799   1316   
        }
        1317  +
        /* ServerBuilderGenerator.kt:215 */
  800   1318   
    }
        1319  +
        1320  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  801   1321   
}
  802         -
/// See [`ResultInput`](crate::input::ResultInput).
        1322  +
/// /* ServerBuilderGenerator.kt:171 */See [`ResultInput`](crate::input::ResultInput).
  803   1323   
pub mod result_input {
  804   1324   
        1325  +
    /* ServerBuilderGenerator.kt:461 */
  805   1326   
    impl ::std::convert::From<Builder> for crate::input::ResultInput {
  806   1327   
        fn from(builder: Builder) -> Self {
  807   1328   
            builder.build()
  808   1329   
        }
  809   1330   
    }
  810         -
    /// A builder for [`ResultInput`](crate::input::ResultInput).
        1331  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`ResultInput`](crate::input::ResultInput).
        1332  +
    /* RustType.kt:516 */
  811   1333   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1334  +
    /* ServerBuilderGenerator.kt:211 */
  812   1335   
    pub struct Builder {
        1336  +
        /* ServerBuilderGenerator.kt:308 */
  813   1337   
        pub(crate) pv_member: ::std::option::Option<bool>,
        1338  +
        /* ServerBuilderGenerator.kt:211 */
  814   1339   
    }
        1340  +
    /* ServerBuilderGenerator.kt:215 */
  815   1341   
    impl Builder {
        1342  +
        /* ServerBuilderGenerator.kt:331 */
  816   1343   
        #[allow(missing_docs)] // documentation missing in model
        1344  +
                               /* ServerBuilderGenerator.kt:343 */
  817   1345   
        pub fn pv_member(mut self, input: ::std::option::Option<bool>) -> Self {
  818         -
            self.pv_member = input;
        1346  +
            /* ServerBuilderGenerator.kt:344 */
        1347  +
            self.pv_member =
        1348  +
                /* ServerBuilderGenerator.kt:376 */input
        1349  +
            /* ServerBuilderGenerator.kt:344 */;
  819   1350   
            self
        1351  +
            /* ServerBuilderGenerator.kt:343 */
  820   1352   
        }
        1353  +
        /* ServerBuilderGenerator.kt:426 */
  821   1354   
        #[allow(missing_docs)] // documentation missing in model
        1355  +
                               /* ServerBuilderGenerator.kt:428 */
  822   1356   
        pub(crate) fn set_pv_member(
  823   1357   
            mut self,
  824   1358   
            input: Option<impl ::std::convert::Into<bool>>,
  825   1359   
        ) -> Self {
        1360  +
            /* ServerBuilderGenerator.kt:429 */
  826   1361   
            self.pv_member = input.map(|v| v.into());
  827   1362   
            self
        1363  +
            /* ServerBuilderGenerator.kt:428 */
  828   1364   
        }
  829         -
        /// Consumes the builder and constructs a [`ResultInput`](crate::input::ResultInput).
        1365  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ResultInput`](crate::input::ResultInput).
        1366  +
        /* ServerBuilderGenerator.kt:271 */
  830   1367   
        pub fn build(self) -> crate::input::ResultInput {
  831   1368   
            self.build_enforcing_all_constraints()
  832   1369   
        }
        1370  +
        /* ServerBuilderGenerator.kt:283 */
  833   1371   
        fn build_enforcing_all_constraints(self) -> crate::input::ResultInput {
        1372  +
            /* ServerBuilderGenerator.kt:542 */
  834   1373   
            crate::input::ResultInput {
        1374  +
                /* ServerBuilderGenerator.kt:546 */
  835   1375   
                pv_member: self.pv_member,
        1376  +
                /* ServerBuilderGenerator.kt:542 */
  836   1377   
            }
        1378  +
            /* ServerBuilderGenerator.kt:283 */
  837   1379   
        }
        1380  +
        /* ServerBuilderGenerator.kt:215 */
  838   1381   
    }
        1382  +
        1383  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  839   1384   
}
  840         -
/// See [`ErrCollisionsInput`](crate::input::ErrCollisionsInput).
        1385  +
/// /* ServerBuilderGenerator.kt:171 */See [`ErrCollisionsInput`](crate::input::ErrCollisionsInput).
  841   1386   
pub mod err_collisions_input {
  842   1387   
        1388  +
    /* ServerBuilderGenerator.kt:461 */
  843   1389   
    impl ::std::convert::From<Builder> for crate::input::ErrCollisionsInput {
  844   1390   
        fn from(builder: Builder) -> Self {
  845   1391   
            builder.build()
  846   1392   
        }
  847   1393   
    }
  848         -
    /// A builder for [`ErrCollisionsInput`](crate::input::ErrCollisionsInput).
        1394  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`ErrCollisionsInput`](crate::input::ErrCollisionsInput).
        1395  +
    /* RustType.kt:516 */
  849   1396   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  850         -
    pub struct Builder {}
        1397  +
    /* ServerBuilderGenerator.kt:211 */
        1398  +
    pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
        1399  +
    /* ServerBuilderGenerator.kt:215 */
  851   1400   
    impl Builder {
  852         -
        /// Consumes the builder and constructs a [`ErrCollisionsInput`](crate::input::ErrCollisionsInput).
        1401  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ErrCollisionsInput`](crate::input::ErrCollisionsInput).
        1402  +
        /* ServerBuilderGenerator.kt:271 */
  853   1403   
        pub fn build(self) -> crate::input::ErrCollisionsInput {
  854   1404   
            self.build_enforcing_all_constraints()
  855   1405   
        }
        1406  +
        /* ServerBuilderGenerator.kt:283 */
  856   1407   
        fn build_enforcing_all_constraints(self) -> crate::input::ErrCollisionsInput {
  857         -
            crate::input::ErrCollisionsInput {}
        1408  +
            /* ServerBuilderGenerator.kt:542 */
        1409  +
            crate::input::ErrCollisionsInput {
        1410  +
            /* ServerBuilderGenerator.kt:542 */}
        1411  +
            /* ServerBuilderGenerator.kt:283 */
  858   1412   
        }
        1413  +
        /* ServerBuilderGenerator.kt:215 */
  859   1414   
    }
        1415  +
        1416  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  860   1417   
}
  861         -
/// See [`StructureNamePunningInput`](crate::input::StructureNamePunningInput).
        1418  +
/// /* ServerBuilderGenerator.kt:171 */See [`StructureNamePunningInput`](crate::input::StructureNamePunningInput).
  862   1419   
pub mod structure_name_punning_input {
  863   1420   
        1421  +
    /* ServerBuilderGenerator.kt:461 */
  864   1422   
    impl ::std::convert::From<Builder> for crate::input::StructureNamePunningInput {
  865   1423   
        fn from(builder: Builder) -> Self {
  866   1424   
            builder.build()
  867   1425   
        }
  868   1426   
    }
  869         -
    /// A builder for [`StructureNamePunningInput`](crate::input::StructureNamePunningInput).
        1427  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`StructureNamePunningInput`](crate::input::StructureNamePunningInput).
        1428  +
    /* RustType.kt:516 */
  870   1429   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1430  +
    /* ServerBuilderGenerator.kt:211 */
  871   1431   
    pub struct Builder {
        1432  +
        /* ServerBuilderGenerator.kt:308 */
  872   1433   
        pub(crate) regular_string: ::std::option::Option<::std::string::String>,
        1434  +
        /* ServerBuilderGenerator.kt:308 */
  873   1435   
        pub(crate) punned_vec: ::std::option::Option<crate::model::Vec>,
        1436  +
        /* ServerBuilderGenerator.kt:211 */
  874   1437   
    }
        1438  +
    /* ServerBuilderGenerator.kt:215 */
  875   1439   
    impl Builder {
        1440  +
        /* ServerBuilderGenerator.kt:331 */
  876   1441   
        #[allow(missing_docs)] // documentation missing in model
        1442  +
                               /* ServerBuilderGenerator.kt:343 */
  877   1443   
        pub fn regular_string(
  878   1444   
            mut self,
  879   1445   
            input: ::std::option::Option<::std::string::String>,
  880   1446   
        ) -> Self {
  881         -
            self.regular_string = input;
        1447  +
            /* ServerBuilderGenerator.kt:344 */
        1448  +
            self.regular_string =
        1449  +
                /* ServerBuilderGenerator.kt:376 */input
        1450  +
            /* ServerBuilderGenerator.kt:344 */;
  882   1451   
            self
        1452  +
            /* ServerBuilderGenerator.kt:343 */
  883   1453   
        }
        1454  +
        /* ServerBuilderGenerator.kt:426 */
  884   1455   
        #[allow(missing_docs)] // documentation missing in model
        1456  +
                               /* ServerBuilderGenerator.kt:428 */
  885   1457   
        pub(crate) fn set_regular_string(
  886   1458   
            mut self,
  887   1459   
            input: Option<impl ::std::convert::Into<::std::string::String>>,
  888   1460   
        ) -> Self {
        1461  +
            /* ServerBuilderGenerator.kt:429 */
  889   1462   
            self.regular_string = input.map(|v| v.into());
  890   1463   
            self
        1464  +
            /* ServerBuilderGenerator.kt:428 */
  891   1465   
        }
        1466  +
        /* ServerBuilderGenerator.kt:331 */
  892   1467   
        #[allow(missing_docs)] // documentation missing in model
        1468  +
                               /* ServerBuilderGenerator.kt:343 */
  893   1469   
        pub fn punned_vec(mut self, input: ::std::option::Option<crate::model::Vec>) -> Self {
  894         -
            self.punned_vec = input;
        1470  +
            /* ServerBuilderGenerator.kt:344 */
        1471  +
            self.punned_vec =
        1472  +
                /* ServerBuilderGenerator.kt:376 */input
        1473  +
            /* ServerBuilderGenerator.kt:344 */;
  895   1474   
            self
        1475  +
            /* ServerBuilderGenerator.kt:343 */
  896   1476   
        }
        1477  +
        /* ServerBuilderGenerator.kt:426 */
  897   1478   
        #[allow(missing_docs)] // documentation missing in model
        1479  +
                               /* ServerBuilderGenerator.kt:428 */
  898   1480   
        pub(crate) fn set_punned_vec(
  899   1481   
            mut self,
  900   1482   
            input: Option<impl ::std::convert::Into<crate::model::Vec>>,
  901   1483   
        ) -> Self {
        1484  +
            /* ServerBuilderGenerator.kt:429 */
  902   1485   
            self.punned_vec = input.map(|v| v.into());
  903   1486   
            self
        1487  +
            /* ServerBuilderGenerator.kt:428 */
  904   1488   
        }
  905         -
        /// Consumes the builder and constructs a [`StructureNamePunningInput`](crate::input::StructureNamePunningInput).
        1489  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`StructureNamePunningInput`](crate::input::StructureNamePunningInput).
        1490  +
        /* ServerBuilderGenerator.kt:271 */
  906   1491   
        pub fn build(self) -> crate::input::StructureNamePunningInput {
  907   1492   
            self.build_enforcing_all_constraints()
  908   1493   
        }
        1494  +
        /* ServerBuilderGenerator.kt:283 */
  909   1495   
        fn build_enforcing_all_constraints(self) -> crate::input::StructureNamePunningInput {
        1496  +
            /* ServerBuilderGenerator.kt:542 */
  910   1497   
            crate::input::StructureNamePunningInput {
        1498  +
                /* ServerBuilderGenerator.kt:546 */
  911   1499   
                regular_string: self.regular_string,
        1500  +
                /* ServerBuilderGenerator.kt:546 */
  912   1501   
                punned_vec: self.punned_vec,
        1502  +
                /* ServerBuilderGenerator.kt:542 */
  913   1503   
            }
        1504  +
            /* ServerBuilderGenerator.kt:283 */
  914   1505   
        }
        1506  +
        /* ServerBuilderGenerator.kt:215 */
  915   1507   
    }
        1508  +
        1509  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  916   1510   
}
  917         -
/// See [`ReservedWordsAsMembersInput`](crate::input::ReservedWordsAsMembersInput).
        1511  +
/// /* ServerBuilderGenerator.kt:171 */See [`ReservedWordsAsMembersInput`](crate::input::ReservedWordsAsMembersInput).
  918   1512   
pub mod reserved_words_as_members_input {
  919   1513   
        1514  +
    /* RustType.kt:516 */
  920   1515   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  921         -
    /// Holds one variant for each of the ways the builder can fail.
        1516  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        1517  +
    /* RustType.kt:516 */
  922   1518   
    #[non_exhaustive]
        1519  +
    /* ServerBuilderConstraintViolations.kt:75 */
  923   1520   
    #[allow(clippy::enum_variant_names)]
  924   1521   
    pub enum ConstraintViolation {
  925         -
        /// Constraint violation occurred building member `r#enum` when building `ReservedWordsAsMembersInput`.
        1522  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `r#enum` when building `ReservedWordsAsMembersInput`.
        1523  +
        /* RustType.kt:516 */
  926   1524   
        #[doc(hidden)]
        1525  +
        /* ServerBuilderConstraintViolations.kt:164 */
  927   1526   
        Enum(crate::model::unknown_variant_colliding_enum::ConstraintViolation),
        1527  +
        /* ServerBuilderConstraintViolations.kt:75 */
  928   1528   
    }
        1529  +
    /* ServerBuilderConstraintViolations.kt:117 */
  929   1530   
    impl ::std::fmt::Display for ConstraintViolation {
        1531  +
        /* ServerBuilderConstraintViolations.kt:118 */
  930   1532   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1533  +
            /* ServerBuilderConstraintViolations.kt:119 */
  931   1534   
            match self {
  932         -
                ConstraintViolation::Enum(_) => write!(f, "constraint violation occurred building member `r#enum` when building `ReservedWordsAsMembersInput`"),
  933         -
            }
        1535  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Enum(_) => write!(f, "constraint violation occurred building member `r#enum` when building `ReservedWordsAsMembersInput`"),
        1536  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        1537  +
            /* ServerBuilderConstraintViolations.kt:118 */
  934   1538   
        }
        1539  +
        /* ServerBuilderConstraintViolations.kt:117 */
  935   1540   
    }
        1541  +
    /* ServerBuilderConstraintViolations.kt:84 */
  936   1542   
    impl ::std::error::Error for ConstraintViolation {}
        1543  +
    /* ServerBuilderConstraintViolations.kt:171 */
  937   1544   
    impl ConstraintViolation {
  938   1545   
        pub(crate) fn as_validation_exception_field(
  939   1546   
            self,
  940   1547   
            path: ::std::string::String,
  941   1548   
        ) -> crate::model::ValidationExceptionField {
  942   1549   
            match self {
  943   1550   
                ConstraintViolation::Enum(inner) => {
  944   1551   
                    inner.as_validation_exception_field(path + "/enum")
  945   1552   
                }
  946   1553   
            }
  947   1554   
        }
  948   1555   
    }
        1556  +
    /* ServerBuilderGenerator.kt:234 */
  949   1557   
    impl ::std::convert::From<ConstraintViolation>
  950   1558   
        for ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection
  951   1559   
    {
  952   1560   
        fn from(constraint_violation: ConstraintViolation) -> Self {
  953   1561   
            let first_validation_exception_field =
  954   1562   
                constraint_violation.as_validation_exception_field("".to_owned());
  955   1563   
            let validation_exception = crate::error::ValidationException {
  956   1564   
                message: format!(
  957   1565   
                    "1 validation error detected. {}",
  958   1566   
                    &first_validation_exception_field.message
  959   1567   
                ),
  960   1568   
                field_list: Some(vec![first_validation_exception_field]),
  961   1569   
            };
  962   1570   
            Self::ConstraintViolation(
  963   1571   
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
  964   1572   
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
  965   1573   
                            )
  966   1574   
        }
  967   1575   
    }
        1576  +
    /* ServerBuilderGenerator.kt:244 */
  968   1577   
    impl ::std::convert::From<Builder>
  969   1578   
        for crate::constrained::MaybeConstrained<crate::input::ReservedWordsAsMembersInput>
  970   1579   
    {
  971   1580   
        fn from(builder: Builder) -> Self {
  972   1581   
            Self::Unconstrained(builder)
  973   1582   
        }
  974   1583   
    }
        1584  +
    /* ServerBuilderGenerator.kt:446 */
  975   1585   
    impl ::std::convert::TryFrom<Builder> for crate::input::ReservedWordsAsMembersInput {
  976   1586   
        type Error = ConstraintViolation;
  977   1587   
  978   1588   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  979   1589   
            builder.build()
  980   1590   
        }
  981   1591   
    }
  982         -
    /// A builder for [`ReservedWordsAsMembersInput`](crate::input::ReservedWordsAsMembersInput).
        1592  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`ReservedWordsAsMembersInput`](crate::input::ReservedWordsAsMembersInput).
        1593  +
    /* RustType.kt:516 */
  983   1594   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1595  +
    /* ServerBuilderGenerator.kt:211 */
  984   1596   
    pub struct Builder {
  985         -
        pub(crate) r#as: ::std::option::Option<i32>,
  986         -
        pub(crate) r#async: ::std::option::Option<bool>,
        1597  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) r#as: ::std::option::Option<i32>,
        1598  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) r#async: ::std::option::Option<bool>,
        1599  +
        /* ServerBuilderGenerator.kt:308 */
  987   1600   
        pub(crate) r#enum: ::std::option::Option<
  988   1601   
            crate::constrained::MaybeConstrained<crate::model::UnknownVariantCollidingEnum>,
  989   1602   
        >,
  990         -
        pub(crate) self_: ::std::option::Option<bool>,
  991         -
        pub(crate) crate_: ::std::option::Option<bool>,
  992         -
        pub(crate) super_: ::std::option::Option<bool>,
        1603  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) self_: ::std::option::Option<bool>,
        1604  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) crate_: ::std::option::Option<bool>,
        1605  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) super_: ::std::option::Option<bool>,
        1606  +
        /* ServerBuilderGenerator.kt:308 */
  993   1607   
        pub(crate) build_value: ::std::option::Option<::std::string::String>,
        1608  +
        /* ServerBuilderGenerator.kt:308 */
  994   1609   
        pub(crate) default_value: ::std::option::Option<::std::string::String>,
        1610  +
        /* ServerBuilderGenerator.kt:308 */
  995   1611   
        pub(crate) send: ::std::option::Option<::std::string::String>,
        1612  +
        /* ServerBuilderGenerator.kt:211 */
  996   1613   
    }
        1614  +
    /* ServerBuilderGenerator.kt:215 */
  997   1615   
    impl Builder {
        1616  +
        /* ServerBuilderGenerator.kt:331 */
  998   1617   
        #[allow(missing_docs)] // documentation missing in model
        1618  +
                               /* ServerBuilderGenerator.kt:343 */
  999   1619   
        pub fn r#as(mut self, input: ::std::option::Option<i32>) -> Self {
 1000         -
            self.r#as = input;
        1620  +
            /* ServerBuilderGenerator.kt:344 */
        1621  +
            self.r#as =
        1622  +
                /* ServerBuilderGenerator.kt:376 */input
        1623  +
            /* ServerBuilderGenerator.kt:344 */;
 1001   1624   
            self
        1625  +
            /* ServerBuilderGenerator.kt:343 */
 1002   1626   
        }
        1627  +
        /* ServerBuilderGenerator.kt:426 */
 1003   1628   
        #[allow(missing_docs)] // documentation missing in model
        1629  +
                               /* ServerBuilderGenerator.kt:428 */
 1004   1630   
        pub(crate) fn set_as(mut self, input: Option<impl ::std::convert::Into<i32>>) -> Self {
        1631  +
            /* ServerBuilderGenerator.kt:429 */
 1005   1632   
            self.r#as = input.map(|v| v.into());
 1006   1633   
            self
        1634  +
            /* ServerBuilderGenerator.kt:428 */
 1007   1635   
        }
        1636  +
        /* ServerBuilderGenerator.kt:331 */
 1008   1637   
        #[allow(missing_docs)] // documentation missing in model
        1638  +
                               /* ServerBuilderGenerator.kt:343 */
 1009   1639   
        pub fn r#async(mut self, input: ::std::option::Option<bool>) -> Self {
 1010         -
            self.r#async = input;
        1640  +
            /* ServerBuilderGenerator.kt:344 */
        1641  +
            self.r#async =
        1642  +
                /* ServerBuilderGenerator.kt:376 */input
        1643  +
            /* ServerBuilderGenerator.kt:344 */;
 1011   1644   
            self
        1645  +
            /* ServerBuilderGenerator.kt:343 */
 1012   1646   
        }
        1647  +
        /* ServerBuilderGenerator.kt:426 */
 1013   1648   
        #[allow(missing_docs)] // documentation missing in model
        1649  +
                               /* ServerBuilderGenerator.kt:428 */
 1014   1650   
        pub(crate) fn set_async(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
        1651  +
            /* ServerBuilderGenerator.kt:429 */
 1015   1652   
            self.r#async = input.map(|v| v.into());
 1016   1653   
            self
        1654  +
            /* ServerBuilderGenerator.kt:428 */
 1017   1655   
        }
        1656  +
        /* ServerBuilderGenerator.kt:331 */
 1018   1657   
        #[allow(missing_docs)] // documentation missing in model
        1658  +
                               /* ServerBuilderGenerator.kt:343 */
 1019   1659   
        pub fn r#enum(
 1020   1660   
            mut self,
 1021   1661   
            input: ::std::option::Option<crate::model::UnknownVariantCollidingEnum>,
 1022   1662   
        ) -> Self {
 1023         -
            self.r#enum = input.map(
 1024         -
                #[allow(clippy::redundant_closure)]
 1025         -
                |v| crate::constrained::MaybeConstrained::Constrained(v),
 1026         -
            );
        1663  +
            /* ServerBuilderGenerator.kt:344 */
        1664  +
            self.r#enum =
        1665  +
                /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
        1666  +
            /* ServerBuilderGenerator.kt:344 */;
 1027   1667   
            self
        1668  +
            /* ServerBuilderGenerator.kt:343 */
 1028   1669   
        }
        1670  +
        /* ServerBuilderGenerator.kt:426 */
 1029   1671   
        #[allow(missing_docs)] // documentation missing in model
        1672  +
                               /* ServerBuilderGenerator.kt:428 */
 1030   1673   
        pub(crate) fn set_enum(
 1031   1674   
            mut self,
 1032   1675   
            input: Option<
 1033   1676   
                impl ::std::convert::Into<
 1034   1677   
                    crate::constrained::MaybeConstrained<crate::model::UnknownVariantCollidingEnum>,
 1035   1678   
                >,
 1036   1679   
            >,
 1037   1680   
        ) -> Self {
        1681  +
            /* ServerBuilderGenerator.kt:429 */
 1038   1682   
            self.r#enum = input.map(|v| v.into());
 1039   1683   
            self
        1684  +
            /* ServerBuilderGenerator.kt:428 */
 1040   1685   
        }
        1686  +
        /* ServerBuilderGenerator.kt:331 */
 1041   1687   
        #[allow(missing_docs)] // documentation missing in model
        1688  +
                               /* ServerBuilderGenerator.kt:343 */
 1042   1689   
        pub fn self_(mut self, input: ::std::option::Option<bool>) -> Self {
 1043         -
            self.self_ = input;
        1690  +
            /* ServerBuilderGenerator.kt:344 */
        1691  +
            self.self_ =
        1692  +
                /* ServerBuilderGenerator.kt:376 */input
        1693  +
            /* ServerBuilderGenerator.kt:344 */;
 1044   1694   
            self
        1695  +
            /* ServerBuilderGenerator.kt:343 */
 1045   1696   
        }
        1697  +
        /* ServerBuilderGenerator.kt:426 */
 1046   1698   
        #[allow(missing_docs)] // documentation missing in model
        1699  +
                               /* ServerBuilderGenerator.kt:428 */
 1047   1700   
        pub(crate) fn set_self(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
        1701  +
            /* ServerBuilderGenerator.kt:429 */
 1048   1702   
            self.self_ = input.map(|v| v.into());
 1049   1703   
            self
        1704  +
            /* ServerBuilderGenerator.kt:428 */
 1050   1705   
        }
        1706  +
        /* ServerBuilderGenerator.kt:331 */
 1051   1707   
        #[allow(missing_docs)] // documentation missing in model
        1708  +
                               /* ServerBuilderGenerator.kt:343 */
 1052   1709   
        pub fn crate_(mut self, input: ::std::option::Option<bool>) -> Self {
 1053         -
            self.crate_ = input;
        1710  +
            /* ServerBuilderGenerator.kt:344 */
        1711  +
            self.crate_ =
        1712  +
                /* ServerBuilderGenerator.kt:376 */input
        1713  +
            /* ServerBuilderGenerator.kt:344 */;
 1054   1714   
            self
        1715  +
            /* ServerBuilderGenerator.kt:343 */
 1055   1716   
        }
        1717  +
        /* ServerBuilderGenerator.kt:426 */
 1056   1718   
        #[allow(missing_docs)] // documentation missing in model
        1719  +
                               /* ServerBuilderGenerator.kt:428 */
 1057   1720   
        pub(crate) fn set_crate(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
        1721  +
            /* ServerBuilderGenerator.kt:429 */
 1058   1722   
            self.crate_ = input.map(|v| v.into());
 1059   1723   
            self
        1724  +
            /* ServerBuilderGenerator.kt:428 */
 1060   1725   
        }
        1726  +
        /* ServerBuilderGenerator.kt:331 */
 1061   1727   
        #[allow(missing_docs)] // documentation missing in model
        1728  +
                               /* ServerBuilderGenerator.kt:343 */
 1062   1729   
        pub fn super_(mut self, input: ::std::option::Option<bool>) -> Self {
 1063         -
            self.super_ = input;
        1730  +
            /* ServerBuilderGenerator.kt:344 */
        1731  +
            self.super_ =
        1732  +
                /* ServerBuilderGenerator.kt:376 */input
        1733  +
            /* ServerBuilderGenerator.kt:344 */;
 1064   1734   
            self
        1735  +
            /* ServerBuilderGenerator.kt:343 */
 1065   1736   
        }
        1737  +
        /* ServerBuilderGenerator.kt:426 */
 1066   1738   
        #[allow(missing_docs)] // documentation missing in model
        1739  +
                               /* ServerBuilderGenerator.kt:428 */
 1067   1740   
        pub(crate) fn set_super(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
        1741  +
            /* ServerBuilderGenerator.kt:429 */
 1068   1742   
            self.super_ = input.map(|v| v.into());
 1069   1743   
            self
        1744  +
            /* ServerBuilderGenerator.kt:428 */
 1070   1745   
        }
        1746  +
        /* ServerBuilderGenerator.kt:331 */
 1071   1747   
        #[allow(missing_docs)] // documentation missing in model
        1748  +
                               /* ServerBuilderGenerator.kt:343 */
 1072   1749   
        pub fn build_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 1073         -
            self.build_value = input;
        1750  +
            /* ServerBuilderGenerator.kt:344 */
        1751  +
            self.build_value =
        1752  +
                /* ServerBuilderGenerator.kt:376 */input
        1753  +
            /* ServerBuilderGenerator.kt:344 */;
 1074   1754   
            self
        1755  +
            /* ServerBuilderGenerator.kt:343 */
 1075   1756   
        }
        1757  +
        /* ServerBuilderGenerator.kt:426 */
 1076   1758   
        #[allow(missing_docs)] // documentation missing in model
        1759  +
                               /* ServerBuilderGenerator.kt:428 */
 1077   1760   
        pub(crate) fn set_build(
 1078   1761   
            mut self,
 1079   1762   
            input: Option<impl ::std::convert::Into<::std::string::String>>,
 1080   1763   
        ) -> Self {
        1764  +
            /* ServerBuilderGenerator.kt:429 */
 1081   1765   
            self.build_value = input.map(|v| v.into());
 1082   1766   
            self
        1767  +
            /* ServerBuilderGenerator.kt:428 */
 1083   1768   
        }
        1769  +
        /* ServerBuilderGenerator.kt:331 */
 1084   1770   
        #[allow(missing_docs)] // documentation missing in model
        1771  +
                               /* ServerBuilderGenerator.kt:343 */
 1085   1772   
        pub fn default_value(
 1086   1773   
            mut self,
 1087   1774   
            input: ::std::option::Option<::std::string::String>,
 1088   1775   
        ) -> Self {
 1089         -
            self.default_value = input;
        1776  +
            /* ServerBuilderGenerator.kt:344 */
        1777  +
            self.default_value =
        1778  +
                /* ServerBuilderGenerator.kt:376 */input
        1779  +
            /* ServerBuilderGenerator.kt:344 */;
 1090   1780   
            self
        1781  +
            /* ServerBuilderGenerator.kt:343 */
 1091   1782   
        }
        1783  +
        /* ServerBuilderGenerator.kt:426 */
 1092   1784   
        #[allow(missing_docs)] // documentation missing in model
        1785  +
                               /* ServerBuilderGenerator.kt:428 */
 1093   1786   
        pub(crate) fn set_default(
 1094   1787   
            mut self,
 1095   1788   
            input: Option<impl ::std::convert::Into<::std::string::String>>,
 1096   1789   
        ) -> Self {
        1790  +
            /* ServerBuilderGenerator.kt:429 */
 1097   1791   
            self.default_value = input.map(|v| v.into());
 1098   1792   
            self
        1793  +
            /* ServerBuilderGenerator.kt:428 */
 1099   1794   
        }
        1795  +
        /* ServerBuilderGenerator.kt:331 */
 1100   1796   
        #[allow(missing_docs)] // documentation missing in model
        1797  +
                               /* ServerBuilderGenerator.kt:343 */
 1101   1798   
        pub fn send(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 1102         -
            self.send = input;
        1799  +
            /* ServerBuilderGenerator.kt:344 */
        1800  +
            self.send =
        1801  +
                /* ServerBuilderGenerator.kt:376 */input
        1802  +
            /* ServerBuilderGenerator.kt:344 */;
 1103   1803   
            self
        1804  +
            /* ServerBuilderGenerator.kt:343 */
 1104   1805   
        }
        1806  +
        /* ServerBuilderGenerator.kt:426 */
 1105   1807   
        #[allow(missing_docs)] // documentation missing in model
        1808  +
                               /* ServerBuilderGenerator.kt:428 */
 1106   1809   
        pub(crate) fn set_send(
 1107   1810   
            mut self,
 1108   1811   
            input: Option<impl ::std::convert::Into<::std::string::String>>,
 1109   1812   
        ) -> Self {
        1813  +
            /* ServerBuilderGenerator.kt:429 */
 1110   1814   
            self.send = input.map(|v| v.into());
 1111   1815   
            self
        1816  +
            /* ServerBuilderGenerator.kt:428 */
 1112   1817   
        }
 1113         -
        /// Consumes the builder and constructs a [`ReservedWordsAsMembersInput`](crate::input::ReservedWordsAsMembersInput).
 1114         -
        ///
        1818  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ReservedWordsAsMembersInput`](crate::input::ReservedWordsAsMembersInput).
        1819  +
        /// /* ServerBuilderGenerator.kt:260 */
 1115   1820   
        /// The builder fails to construct a [`ReservedWordsAsMembersInput`](crate::input::ReservedWordsAsMembersInput) if a [`ConstraintViolation`] occurs.
 1116   1821   
        ///
        1822  +
        /* ServerBuilderGenerator.kt:271 */
 1117   1823   
        pub fn build(
 1118   1824   
            self,
 1119   1825   
        ) -> Result<crate::input::ReservedWordsAsMembersInput, ConstraintViolation> {
 1120   1826   
            self.build_enforcing_all_constraints()
 1121   1827   
        }
        1828  +
        /* ServerBuilderGenerator.kt:283 */
 1122   1829   
        fn build_enforcing_all_constraints(
 1123   1830   
            self,
 1124   1831   
        ) -> Result<crate::input::ReservedWordsAsMembersInput, ConstraintViolation> {
 1125         -
            Ok(crate::input::ReservedWordsAsMembersInput {
        1832  +
            /* ServerBuilderGenerator.kt:287 */
        1833  +
            Ok(
        1834  +
                /* ServerBuilderGenerator.kt:542 */
        1835  +
                crate::input::ReservedWordsAsMembersInput {
        1836  +
                    /* ServerBuilderGenerator.kt:546 */
 1126   1837   
                    r#as: self.r#as,
        1838  +
                    /* ServerBuilderGenerator.kt:546 */
 1127   1839   
                    r#async: self.r#async,
        1840  +
                    /* ServerBuilderGenerator.kt:546 */
 1128   1841   
                    r#enum: self
 1129   1842   
                        .r#enum
        1843  +
                        /* ServerBuilderGenerator.kt:602 */
 1130   1844   
                        .map(|v| match v {
 1131   1845   
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 1132   1846   
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 1133   1847   
                        })
        1848  +
                        /* ServerBuilderGenerator.kt:614 */
 1134   1849   
                        .map(|res| res.map_err(ConstraintViolation::Enum))
 1135   1850   
                        .transpose()?,
        1851  +
                    /* ServerBuilderGenerator.kt:546 */
 1136   1852   
                    self_: self.self_,
        1853  +
                    /* ServerBuilderGenerator.kt:546 */
 1137   1854   
                    crate_: self.crate_,
        1855  +
                    /* ServerBuilderGenerator.kt:546 */
 1138   1856   
                    super_: self.super_,
        1857  +
                    /* ServerBuilderGenerator.kt:546 */
 1139   1858   
                    build_value: self.build_value,
        1859  +
                    /* ServerBuilderGenerator.kt:546 */
 1140   1860   
                    default_value: self.default_value,
        1861  +
                    /* ServerBuilderGenerator.kt:546 */
 1141   1862   
                    send: self.send,
 1142         -
            })
        1863  +
                    /* ServerBuilderGenerator.kt:542 */
        1864  +
                }, /* ServerBuilderGenerator.kt:287 */
        1865  +
            )
        1866  +
            /* ServerBuilderGenerator.kt:283 */
 1143   1867   
        }
        1868  +
        /* ServerBuilderGenerator.kt:215 */
 1144   1869   
    }
        1870  +
        1871  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1145   1872   
}