Server Test

Server Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943

Files changed:

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

@@ -1,1 +0,15 @@
    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::body::SdkBody;
    3      4   
pub use ::aws_smithy_types::byte_stream::error::Error as ByteStreamError;
    4      5   
pub use ::aws_smithy_types::byte_stream::AggregatedBytes;
    5         -
pub use ::aws_smithy_types::byte_stream::ByteStream;
           6  +
/* SmithyTypesPubUseExtra.kt:86 */ pub use ::aws_smithy_types::byte_stream::ByteStream;
    6      7   
#[cfg(feature = "rt-tokio")]
    7      8   
pub use ::aws_smithy_types::byte_stream::FsBuilder;
    8      9   
#[cfg(feature = "rt-tokio")]
    9     10   
pub use ::aws_smithy_types::byte_stream::Length;
   10     11   
pub use ::aws_smithy_types::date_time::Format as DateTimeFormat;
          12  +
/* ServerRequiredCustomizations.kt:69 */
   11     13   
pub use ::aws_smithy_types::error::display::DisplayErrorContext;
   12     14   
pub use ::aws_smithy_types::Blob;
   13         -
pub use ::aws_smithy_types::DateTime;
          15  +
/* SmithyTypesPubUseExtra.kt:69 */ pub use ::aws_smithy_types::DateTime;

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

@@ -1,1 +40,50 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
    3      3   
pub(crate) mod tags_unconstrained {
    4      4   
           5  +
    /* UnconstrainedCollectionGenerator.kt:77 */
    5      6   
    #[derive(Debug, Clone)]
    6      7   
    pub(crate) struct TagsUnconstrained(pub(crate) std::vec::Vec<crate::model::tag::Builder>);
    7      8   
    8      9   
    impl From<TagsUnconstrained>
    9     10   
        for crate::constrained::MaybeConstrained<
   10     11   
            crate::constrained::tags_constrained::TagsConstrained,
   11     12   
        >
   12     13   
    {
   13     14   
        fn from(value: TagsUnconstrained) -> Self {
   14     15   
            Self::Unconstrained(value)
   15     16   
        }
   16     17   
    }
          18  +
    /* UnconstrainedCollectionGenerator.kt:97 */
   17     19   
    impl std::convert::TryFrom<TagsUnconstrained>
   18     20   
        for crate::constrained::tags_constrained::TagsConstrained
   19     21   
    {
          22  +
        /* UnconstrainedCollectionGenerator.kt:98 */
   20     23   
        type Error = crate::model::tags::ConstraintViolation;
          24  +
        /* UnconstrainedCollectionGenerator.kt:100 */
   21     25   
        fn try_from(value: TagsUnconstrained) -> std::result::Result<Self, Self::Error> {
          26  +
            /* UnconstrainedCollectionGenerator.kt:127 */
   22     27   
            let res: ::std::result::Result<
   23     28   
                ::std::vec::Vec<crate::model::Tag>,
   24     29   
                (usize, crate::model::tag::ConstraintViolation),
   25     30   
            > = value
   26     31   
                .0
   27     32   
                .into_iter()
   28     33   
                .enumerate()
   29     34   
                .map(|(idx, inner)| {
   30     35   
                    inner
   31     36   
                        .try_into()
   32     37   
                        .map_err(|inner_violation| (idx, inner_violation))
   33     38   
                })
   34     39   
                .collect();
   35     40   
            let inner =
   36     41   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
          42  +
            /* UnconstrainedCollectionGenerator.kt:191 */
   37     43   
            Ok(Self(inner))
          44  +
            /* UnconstrainedCollectionGenerator.kt:100 */
   38     45   
        }
          46  +
        /* UnconstrainedCollectionGenerator.kt:97 */
   39     47   
    }
          48  +
          49  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
   40     50   
}

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

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

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

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