Server Test

Server Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943

Files changed:

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

@@ -1,1 +924,1197 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
           3  +
/* UnconstrainedUnionGenerator.kt:121 */
    3      4   
impl crate::constrained::Constrained for crate::model::RecursiveUnionOne {
    4      5   
    type Unconstrained =
    5      6   
        crate::unconstrained::recursive_union_one_unconstrained::RecursiveUnionOneUnconstrained;
    6      7   
}
    7      8   
    8      9   
impl From<crate::unconstrained::recursive_union_one_unconstrained::RecursiveUnionOneUnconstrained>
    9     10   
    for crate::constrained::MaybeConstrained<crate::model::RecursiveUnionOne>
   10     11   
{
   11     12   
    fn from(
   12     13   
        value: crate::unconstrained::recursive_union_one_unconstrained::RecursiveUnionOneUnconstrained,
   13     14   
    ) -> Self {
   14     15   
        Self::Unconstrained(value)
   15     16   
    }
   16     17   
}
   17     18   
          19  +
/* UnconstrainedUnionGenerator.kt:121 */
   18     20   
impl crate::constrained::Constrained for crate::model::RecursiveUnionTwo {
   19     21   
    type Unconstrained =
   20     22   
        crate::unconstrained::recursive_union_two_unconstrained::RecursiveUnionTwoUnconstrained;
   21     23   
}
   22     24   
   23     25   
impl From<crate::unconstrained::recursive_union_two_unconstrained::RecursiveUnionTwoUnconstrained>
   24     26   
    for crate::constrained::MaybeConstrained<crate::model::RecursiveUnionTwo>
   25     27   
{
   26     28   
    fn from(
   27     29   
        value: crate::unconstrained::recursive_union_two_unconstrained::RecursiveUnionTwoUnconstrained,
   28     30   
    ) -> Self {
   29     31   
        Self::Unconstrained(value)
   30     32   
    }
   31     33   
}
   32     34   
          35  +
/* UnconstrainedUnionGenerator.kt:121 */
   33     36   
impl crate::constrained::Constrained for crate::model::PatternUnionOverride {
   34     37   
    type Unconstrained = crate::unconstrained::pattern_union_override_unconstrained::PatternUnionOverrideUnconstrained;
   35     38   
}
   36     39   
   37     40   
impl From<crate::unconstrained::pattern_union_override_unconstrained::PatternUnionOverrideUnconstrained> for crate::constrained::MaybeConstrained<crate::model::PatternUnionOverride> {
   38     41   
                fn from(value: crate::unconstrained::pattern_union_override_unconstrained::PatternUnionOverrideUnconstrained) -> Self {
   39     42   
                    Self::Unconstrained(value)
   40     43   
                }
   41     44   
            }
   42     45   
          46  +
/* UnconstrainedUnionGenerator.kt:121 */
   43     47   
impl crate::constrained::Constrained for crate::model::PatternUnion {
   44     48   
    type Unconstrained =
   45     49   
        crate::unconstrained::pattern_union_unconstrained::PatternUnionUnconstrained;
   46     50   
}
   47     51   
   48     52   
impl From<crate::unconstrained::pattern_union_unconstrained::PatternUnionUnconstrained>
   49     53   
    for crate::constrained::MaybeConstrained<crate::model::PatternUnion>
   50     54   
{
   51     55   
    fn from(
   52     56   
        value: crate::unconstrained::pattern_union_unconstrained::PatternUnionUnconstrained,
   53     57   
    ) -> Self {
   54     58   
        Self::Unconstrained(value)
   55     59   
    }
   56     60   
}
   57     61   
          62  +
/* UnconstrainedUnionGenerator.kt:121 */
   58     63   
impl crate::constrained::Constrained for crate::model::EnumUnion {
   59     64   
    type Unconstrained = crate::unconstrained::enum_union_unconstrained::EnumUnionUnconstrained;
   60     65   
}
   61     66   
   62     67   
impl From<crate::unconstrained::enum_union_unconstrained::EnumUnionUnconstrained>
   63     68   
    for crate::constrained::MaybeConstrained<crate::model::EnumUnion>
   64     69   
{
   65     70   
    fn from(value: crate::unconstrained::enum_union_unconstrained::EnumUnionUnconstrained) -> Self {
   66     71   
        Self::Unconstrained(value)
   67     72   
    }
   68     73   
}
   69     74   
   70     75   
pub(crate) mod recursive_union_one_unconstrained {
   71     76   
          77  +
    /* UnconstrainedUnionGenerator.kt:82 */
   72     78   
    #[allow(clippy::enum_variant_names)]
   73     79   
    #[derive(Debug, Clone)]
   74     80   
    pub(crate) enum RecursiveUnionOneUnconstrained {
   75         -
        String(::std::string::String),
   76         -
        Union(::std::boxed::Box<crate::unconstrained::recursive_union_two_unconstrained::RecursiveUnionTwoUnconstrained>),
   77         -
    }
          81  +
        /* UnconstrainedUnionGenerator.kt:95 */String(::std::string::String),
          82  +
        /* UnconstrainedUnionGenerator.kt:95 */Union(::std::boxed::Box<crate::unconstrained::recursive_union_two_unconstrained::RecursiveUnionTwoUnconstrained>),
          83  +
    /* UnconstrainedUnionGenerator.kt:82 */}
          84  +
    /* UnconstrainedUnionGenerator.kt:103 */
   78     85   
    impl ::std::convert::TryFrom<RecursiveUnionOneUnconstrained> for crate::model::RecursiveUnionOne {
   79     86   
        type Error = crate::model::recursive_union_one::ConstraintViolation;
   80     87   
   81     88   
        fn try_from(
   82     89   
            value: RecursiveUnionOneUnconstrained,
   83     90   
        ) -> ::std::result::Result<Self, Self::Error> {
   84     91   
            Ok(
   85     92   
        match value {
   86     93   
            crate::unconstrained::recursive_union_one_unconstrained::RecursiveUnionOneUnconstrained::String(unconstrained) => Self::String(
   87     94   
                unconstrained
   88     95   
                                        .try_into()
   89     96   
                                        
   90     97   
                                        
   91     98   
                                        .map_err(Self::Error::String)?
   92     99   
            ),
   93    100   
            crate::unconstrained::recursive_union_one_unconstrained::RecursiveUnionOneUnconstrained::Union(unconstrained) => Self::Union(
   94    101   
                (*unconstrained)
   95    102   
                                        .try_into()
   96    103   
                                        .map(Box::new)
   97    104   
                                        .map_err(Box::new)
   98    105   
                                        .map_err(Self::Error::Union)?
   99    106   
            ),
  100    107   
        }
  101    108   
    )
  102    109   
        }
  103    110   
    }
         111  +
         112  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  104    113   
}
  105    114   
pub(crate) mod recursive_union_two_unconstrained {
  106    115   
         116  +
    /* UnconstrainedUnionGenerator.kt:82 */
  107    117   
    #[allow(clippy::enum_variant_names)]
  108    118   
    #[derive(Debug, Clone)]
  109    119   
    pub(crate) enum RecursiveUnionTwoUnconstrained {
  110         -
        String(::std::string::String),
         120  +
        /* UnconstrainedUnionGenerator.kt:95 */ String(::std::string::String),
         121  +
        /* UnconstrainedUnionGenerator.kt:95 */
  111    122   
        Union(
  112    123   
            crate::unconstrained::recursive_union_one_unconstrained::RecursiveUnionOneUnconstrained,
  113    124   
        ),
         125  +
        /* UnconstrainedUnionGenerator.kt:82 */
  114    126   
    }
         127  +
    /* UnconstrainedUnionGenerator.kt:103 */
  115    128   
    impl ::std::convert::TryFrom<RecursiveUnionTwoUnconstrained> for crate::model::RecursiveUnionTwo {
  116    129   
        type Error = crate::model::recursive_union_two::ConstraintViolation;
  117    130   
  118    131   
        fn try_from(
  119    132   
            value: RecursiveUnionTwoUnconstrained,
  120    133   
        ) -> ::std::result::Result<Self, Self::Error> {
  121    134   
            Ok(
  122    135   
        match value {
  123    136   
            crate::unconstrained::recursive_union_two_unconstrained::RecursiveUnionTwoUnconstrained::String(unconstrained) => Self::String(
  124    137   
                unconstrained
  125    138   
                                        .try_into()
  126    139   
                                        
  127    140   
                                        
  128    141   
                                        .map_err(Self::Error::String)?
  129    142   
            ),
  130    143   
            crate::unconstrained::recursive_union_two_unconstrained::RecursiveUnionTwoUnconstrained::Union(unconstrained) => Self::Union(
  131    144   
                unconstrained
  132    145   
                                        .try_into()
  133    146   
                                        
  134    147   
                                        
  135    148   
                                        .map_err(Self::Error::Union)?
  136    149   
            ),
  137    150   
        }
  138    151   
    )
  139    152   
        }
  140    153   
    }
         154  +
         155  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  141    156   
}
  142    157   
pub(crate) mod union_set_unconstrained {
  143    158   
         159  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  144    160   
    #[derive(Debug, Clone)]
  145    161   
    pub(crate) struct UnionSetUnconstrained(pub(crate) std::vec::Vec<crate::model::FooUnion>);
  146    162   
  147    163   
    impl From<UnionSetUnconstrained> for crate::constrained::MaybeConstrained<crate::model::UnionSet> {
  148    164   
        fn from(value: UnionSetUnconstrained) -> Self {
  149    165   
            Self::Unconstrained(value)
  150    166   
        }
  151    167   
    }
         168  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  152    169   
    impl std::convert::TryFrom<UnionSetUnconstrained> for crate::model::UnionSet {
         170  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  153    171   
        type Error = crate::model::union_set::ConstraintViolation;
         172  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  154    173   
        fn try_from(value: UnionSetUnconstrained) -> std::result::Result<Self, Self::Error> {
         174  +
            /* UnconstrainedCollectionGenerator.kt:185 */
  155    175   
            let inner = value.0;
         176  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  156    177   
            Self::try_from(inner)
         178  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  157    179   
        }
         180  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  158    181   
    }
         182  +
         183  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  159    184   
}
  160    185   
pub(crate) mod structure_set_with_no_key_unconstrained {
  161    186   
         187  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  162    188   
    #[derive(Debug, Clone)]
  163    189   
    pub(crate) struct StructureSetWithNoKeyUnconstrained(
  164    190   
        pub(crate) std::vec::Vec<crate::model::missing_key_structure::Builder>,
  165    191   
    );
  166    192   
  167    193   
    impl From<StructureSetWithNoKeyUnconstrained>
  168    194   
        for crate::constrained::MaybeConstrained<crate::model::StructureSetWithNoKey>
  169    195   
    {
  170    196   
        fn from(value: StructureSetWithNoKeyUnconstrained) -> Self {
  171    197   
            Self::Unconstrained(value)
  172    198   
        }
  173    199   
    }
         200  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  174    201   
    impl std::convert::TryFrom<StructureSetWithNoKeyUnconstrained>
  175    202   
        for crate::model::StructureSetWithNoKey
  176    203   
    {
         204  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  177    205   
        type Error = crate::model::structure_set_with_no_key::ConstraintViolation;
         206  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  178    207   
        fn try_from(
  179    208   
            value: StructureSetWithNoKeyUnconstrained,
  180    209   
        ) -> std::result::Result<Self, Self::Error> {
         210  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  181    211   
            let res: ::std::result::Result<
  182    212   
                ::std::vec::Vec<crate::model::MissingKeyStructure>,
  183    213   
                (
  184    214   
                    usize,
  185    215   
                    crate::model::missing_key_structure::ConstraintViolation,
  186    216   
                ),
  187    217   
            > = value
  188    218   
                .0
  189    219   
                .into_iter()
  190    220   
                .enumerate()
  191    221   
                .map(|(idx, inner)| {
  192    222   
                    inner
  193    223   
                        .try_into()
  194    224   
                        .map_err(|inner_violation| (idx, inner_violation))
  195    225   
                })
  196    226   
                .collect();
  197    227   
            let inner =
  198    228   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         229  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  199    230   
            Self::try_from(inner)
         231  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  200    232   
        }
         233  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  201    234   
    }
         235  +
         236  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  202    237   
}
  203    238   
pub(crate) mod structure_set_unconstrained {
  204    239   
         240  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  205    241   
    #[derive(Debug, Clone)]
  206    242   
    pub(crate) struct StructureSetUnconstrained(
  207    243   
        pub(crate) std::vec::Vec<crate::model::GreetingStruct>,
  208    244   
    );
  209    245   
  210    246   
    impl From<StructureSetUnconstrained>
  211    247   
        for crate::constrained::MaybeConstrained<crate::model::StructureSet>
  212    248   
    {
  213    249   
        fn from(value: StructureSetUnconstrained) -> Self {
  214    250   
            Self::Unconstrained(value)
  215    251   
        }
  216    252   
    }
         253  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  217    254   
    impl std::convert::TryFrom<StructureSetUnconstrained> for crate::model::StructureSet {
         255  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  218    256   
        type Error = crate::model::structure_set::ConstraintViolation;
         257  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  219    258   
        fn try_from(value: StructureSetUnconstrained) -> std::result::Result<Self, Self::Error> {
         259  +
            /* UnconstrainedCollectionGenerator.kt:185 */
  220    260   
            let inner = value.0;
         261  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  221    262   
            Self::try_from(inner)
         263  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  222    264   
        }
         265  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  223    266   
    }
         267  +
         268  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  224    269   
}
  225    270   
pub(crate) mod list_set_unconstrained {
  226    271   
         272  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  227    273   
    #[derive(Debug, Clone)]
  228    274   
    pub(crate) struct ListSetUnconstrained(
  229    275   
        pub(crate) std::vec::Vec<::std::vec::Vec<::std::string::String>>,
  230    276   
    );
  231    277   
  232    278   
    impl From<ListSetUnconstrained> for crate::constrained::MaybeConstrained<crate::model::ListSet> {
  233    279   
        fn from(value: ListSetUnconstrained) -> Self {
  234    280   
            Self::Unconstrained(value)
  235    281   
        }
  236    282   
    }
         283  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  237    284   
    impl std::convert::TryFrom<ListSetUnconstrained> for crate::model::ListSet {
         285  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  238    286   
        type Error = crate::model::list_set::ConstraintViolation;
         287  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  239    288   
        fn try_from(value: ListSetUnconstrained) -> std::result::Result<Self, Self::Error> {
         289  +
            /* UnconstrainedCollectionGenerator.kt:185 */
  240    290   
            let inner = value.0;
         291  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  241    292   
            Self::try_from(inner)
         293  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  242    294   
        }
         295  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  243    296   
    }
         297  +
         298  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  244    299   
}
  245    300   
pub(crate) mod integer_enum_set_unconstrained {
  246    301   
         302  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  247    303   
    #[derive(Debug, Clone)]
  248    304   
    pub(crate) struct IntegerEnumSetUnconstrained(pub(crate) std::vec::Vec<i32>);
  249    305   
  250    306   
    impl From<IntegerEnumSetUnconstrained>
  251    307   
        for crate::constrained::MaybeConstrained<crate::model::IntegerEnumSet>
  252    308   
    {
  253    309   
        fn from(value: IntegerEnumSetUnconstrained) -> Self {
  254    310   
            Self::Unconstrained(value)
  255    311   
        }
  256    312   
    }
         313  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  257    314   
    impl std::convert::TryFrom<IntegerEnumSetUnconstrained> for crate::model::IntegerEnumSet {
         315  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  258    316   
        type Error = crate::model::integer_enum_set::ConstraintViolation;
         317  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  259    318   
        fn try_from(value: IntegerEnumSetUnconstrained) -> std::result::Result<Self, Self::Error> {
         319  +
            /* UnconstrainedCollectionGenerator.kt:185 */
  260    320   
            let inner = value.0;
         321  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  261    322   
            Self::try_from(inner)
         323  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  262    324   
        }
         325  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  263    326   
    }
         327  +
         328  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  264    329   
}
  265    330   
pub(crate) mod foo_enum_set_unconstrained {
  266    331   
         332  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  267    333   
    #[derive(Debug, Clone)]
  268    334   
    pub(crate) struct FooEnumSetUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
  269    335   
  270    336   
    impl From<FooEnumSetUnconstrained>
  271    337   
        for crate::constrained::MaybeConstrained<crate::model::FooEnumSet>
  272    338   
    {
  273    339   
        fn from(value: FooEnumSetUnconstrained) -> Self {
  274    340   
            Self::Unconstrained(value)
  275    341   
        }
  276    342   
    }
         343  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  277    344   
    impl std::convert::TryFrom<FooEnumSetUnconstrained> for crate::model::FooEnumSet {
         345  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  278    346   
        type Error = crate::model::foo_enum_set::ConstraintViolation;
         347  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  279    348   
        fn try_from(value: FooEnumSetUnconstrained) -> std::result::Result<Self, Self::Error> {
         349  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  280    350   
            let res: ::std::result::Result<
  281    351   
                ::std::vec::Vec<crate::model::FooEnum>,
  282    352   
                (usize, crate::model::foo_enum::ConstraintViolation),
  283    353   
            > = value
  284    354   
                .0
  285    355   
                .into_iter()
  286    356   
                .enumerate()
  287    357   
                .map(|(idx, inner)| {
  288    358   
                    inner
  289    359   
                        .try_into()
  290    360   
                        .map_err(|inner_violation| (idx, inner_violation))
  291    361   
                })
  292    362   
                .collect();
  293    363   
            let inner =
  294    364   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         365  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  295    366   
            Self::try_from(inner)
         367  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  296    368   
        }
         369  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  297    370   
    }
         371  +
         372  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  298    373   
}
  299    374   
pub(crate) mod http_date_set_unconstrained {
  300    375   
         376  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  301    377   
    #[derive(Debug, Clone)]
  302    378   
    pub(crate) struct HttpDateSetUnconstrained(
  303    379   
        pub(crate) std::vec::Vec<::aws_smithy_types::DateTime>,
  304    380   
    );
  305    381   
  306    382   
    impl From<HttpDateSetUnconstrained>
  307    383   
        for crate::constrained::MaybeConstrained<crate::model::HttpDateSet>
  308    384   
    {
  309    385   
        fn from(value: HttpDateSetUnconstrained) -> Self {
  310    386   
            Self::Unconstrained(value)
  311    387   
        }
  312    388   
    }
         389  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  313    390   
    impl std::convert::TryFrom<HttpDateSetUnconstrained> for crate::model::HttpDateSet {
         391  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  314    392   
        type Error = crate::model::http_date_set::ConstraintViolation;
         393  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  315    394   
        fn try_from(value: HttpDateSetUnconstrained) -> std::result::Result<Self, Self::Error> {
         395  +
            /* UnconstrainedCollectionGenerator.kt:185 */
  316    396   
            let inner = value.0;
         397  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  317    398   
            Self::try_from(inner)
         399  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  318    400   
        }
         401  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  319    402   
    }
         403  +
         404  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  320    405   
}
  321    406   
pub(crate) mod date_time_set_unconstrained {
  322    407   
         408  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  323    409   
    #[derive(Debug, Clone)]
  324    410   
    pub(crate) struct DateTimeSetUnconstrained(
  325    411   
        pub(crate) std::vec::Vec<::aws_smithy_types::DateTime>,
  326    412   
    );
  327    413   
  328    414   
    impl From<DateTimeSetUnconstrained>
  329    415   
        for crate::constrained::MaybeConstrained<crate::model::DateTimeSet>
  330    416   
    {
  331    417   
        fn from(value: DateTimeSetUnconstrained) -> Self {
  332    418   
            Self::Unconstrained(value)
  333    419   
        }
  334    420   
    }
         421  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  335    422   
    impl std::convert::TryFrom<DateTimeSetUnconstrained> for crate::model::DateTimeSet {
         423  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  336    424   
        type Error = crate::model::date_time_set::ConstraintViolation;
         425  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  337    426   
        fn try_from(value: DateTimeSetUnconstrained) -> std::result::Result<Self, Self::Error> {
         427  +
            /* UnconstrainedCollectionGenerator.kt:185 */
  338    428   
            let inner = value.0;
         429  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  339    430   
            Self::try_from(inner)
         431  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  340    432   
        }
         433  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  341    434   
    }
         435  +
         436  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  342    437   
}
  343    438   
pub(crate) mod timestamp_set_unconstrained {
  344    439   
         440  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  345    441   
    #[derive(Debug, Clone)]
  346    442   
    pub(crate) struct TimestampSetUnconstrained(
  347    443   
        pub(crate) std::vec::Vec<::aws_smithy_types::DateTime>,
  348    444   
    );
  349    445   
  350    446   
    impl From<TimestampSetUnconstrained>
  351    447   
        for crate::constrained::MaybeConstrained<crate::model::TimestampSet>
  352    448   
    {
  353    449   
        fn from(value: TimestampSetUnconstrained) -> Self {
  354    450   
            Self::Unconstrained(value)
  355    451   
        }
  356    452   
    }
         453  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  357    454   
    impl std::convert::TryFrom<TimestampSetUnconstrained> for crate::model::TimestampSet {
         455  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  358    456   
        type Error = crate::model::timestamp_set::ConstraintViolation;
         457  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  359    458   
        fn try_from(value: TimestampSetUnconstrained) -> std::result::Result<Self, Self::Error> {
         459  +
            /* UnconstrainedCollectionGenerator.kt:185 */
  360    460   
            let inner = value.0;
         461  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  361    462   
            Self::try_from(inner)
         463  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  362    464   
        }
         465  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  363    466   
    }
         467  +
         468  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  364    469   
}
  365    470   
pub(crate) mod long_set_unconstrained {
  366    471   
         472  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  367    473   
    #[derive(Debug, Clone)]
  368    474   
    pub(crate) struct LongSetUnconstrained(pub(crate) std::vec::Vec<i64>);
  369    475   
  370    476   
    impl From<LongSetUnconstrained> for crate::constrained::MaybeConstrained<crate::model::LongSet> {
  371    477   
        fn from(value: LongSetUnconstrained) -> Self {
  372    478   
            Self::Unconstrained(value)
  373    479   
        }
  374    480   
    }
         481  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  375    482   
    impl std::convert::TryFrom<LongSetUnconstrained> for crate::model::LongSet {
         483  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  376    484   
        type Error = crate::model::long_set::ConstraintViolation;
         485  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  377    486   
        fn try_from(value: LongSetUnconstrained) -> std::result::Result<Self, Self::Error> {
         487  +
            /* UnconstrainedCollectionGenerator.kt:185 */
  378    488   
            let inner = value.0;
         489  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  379    490   
            Self::try_from(inner)
         491  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  380    492   
        }
         493  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  381    494   
    }
         495  +
         496  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  382    497   
}
  383    498   
pub(crate) mod integer_set_unconstrained {
  384    499   
         500  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  385    501   
    #[derive(Debug, Clone)]
  386    502   
    pub(crate) struct IntegerSetUnconstrained(pub(crate) std::vec::Vec<i32>);
  387    503   
  388    504   
    impl From<IntegerSetUnconstrained>
  389    505   
        for crate::constrained::MaybeConstrained<crate::model::IntegerSet>
  390    506   
    {
  391    507   
        fn from(value: IntegerSetUnconstrained) -> Self {
  392    508   
            Self::Unconstrained(value)
  393    509   
        }
  394    510   
    }
         511  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  395    512   
    impl std::convert::TryFrom<IntegerSetUnconstrained> for crate::model::IntegerSet {
         513  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  396    514   
        type Error = crate::model::integer_set::ConstraintViolation;
         515  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  397    516   
        fn try_from(value: IntegerSetUnconstrained) -> std::result::Result<Self, Self::Error> {
         517  +
            /* UnconstrainedCollectionGenerator.kt:185 */
  398    518   
            let inner = value.0;
         519  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  399    520   
            Self::try_from(inner)
         521  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  400    522   
        }
         523  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  401    524   
    }
         525  +
         526  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  402    527   
}
  403    528   
pub(crate) mod short_set_unconstrained {
  404    529   
         530  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  405    531   
    #[derive(Debug, Clone)]
  406    532   
    pub(crate) struct ShortSetUnconstrained(pub(crate) std::vec::Vec<i16>);
  407    533   
  408    534   
    impl From<ShortSetUnconstrained> for crate::constrained::MaybeConstrained<crate::model::ShortSet> {
  409    535   
        fn from(value: ShortSetUnconstrained) -> Self {
  410    536   
            Self::Unconstrained(value)
  411    537   
        }
  412    538   
    }
         539  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  413    540   
    impl std::convert::TryFrom<ShortSetUnconstrained> for crate::model::ShortSet {
         541  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  414    542   
        type Error = crate::model::short_set::ConstraintViolation;
         543  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  415    544   
        fn try_from(value: ShortSetUnconstrained) -> std::result::Result<Self, Self::Error> {
         545  +
            /* UnconstrainedCollectionGenerator.kt:185 */
  416    546   
            let inner = value.0;
         547  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  417    548   
            Self::try_from(inner)
         549  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  418    550   
        }
         551  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  419    552   
    }
         553  +
         554  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  420    555   
}
  421    556   
pub(crate) mod byte_set_unconstrained {
  422    557   
         558  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  423    559   
    #[derive(Debug, Clone)]
  424    560   
    pub(crate) struct ByteSetUnconstrained(pub(crate) std::vec::Vec<i8>);
  425    561   
  426    562   
    impl From<ByteSetUnconstrained> for crate::constrained::MaybeConstrained<crate::model::ByteSet> {
  427    563   
        fn from(value: ByteSetUnconstrained) -> Self {
  428    564   
            Self::Unconstrained(value)
  429    565   
        }
  430    566   
    }
         567  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  431    568   
    impl std::convert::TryFrom<ByteSetUnconstrained> for crate::model::ByteSet {
         569  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  432    570   
        type Error = crate::model::byte_set::ConstraintViolation;
         571  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  433    572   
        fn try_from(value: ByteSetUnconstrained) -> std::result::Result<Self, Self::Error> {
         573  +
            /* UnconstrainedCollectionGenerator.kt:185 */
  434    574   
            let inner = value.0;
         575  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  435    576   
            Self::try_from(inner)
         577  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  436    578   
        }
         579  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  437    580   
    }
         581  +
         582  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  438    583   
}
  439    584   
pub(crate) mod string_set_unconstrained {
  440    585   
         586  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  441    587   
    #[derive(Debug, Clone)]
  442    588   
    pub(crate) struct StringSetUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
  443    589   
  444    590   
    impl From<StringSetUnconstrained>
  445    591   
        for crate::constrained::MaybeConstrained<crate::model::StringSet>
  446    592   
    {
  447    593   
        fn from(value: StringSetUnconstrained) -> Self {
  448    594   
            Self::Unconstrained(value)
  449    595   
        }
  450    596   
    }
         597  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  451    598   
    impl std::convert::TryFrom<StringSetUnconstrained> for crate::model::StringSet {
         599  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  452    600   
        type Error = crate::model::string_set::ConstraintViolation;
         601  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  453    602   
        fn try_from(value: StringSetUnconstrained) -> std::result::Result<Self, Self::Error> {
         603  +
            /* UnconstrainedCollectionGenerator.kt:185 */
  454    604   
            let inner = value.0;
         605  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  455    606   
            Self::try_from(inner)
         607  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  456    608   
        }
         609  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  457    610   
    }
         611  +
         612  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  458    613   
}
  459    614   
pub(crate) mod boolean_set_unconstrained {
  460    615   
         616  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  461    617   
    #[derive(Debug, Clone)]
  462    618   
    pub(crate) struct BooleanSetUnconstrained(pub(crate) std::vec::Vec<bool>);
  463    619   
  464    620   
    impl From<BooleanSetUnconstrained>
  465    621   
        for crate::constrained::MaybeConstrained<crate::model::BooleanSet>
  466    622   
    {
  467    623   
        fn from(value: BooleanSetUnconstrained) -> Self {
  468    624   
            Self::Unconstrained(value)
  469    625   
        }
  470    626   
    }
         627  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  471    628   
    impl std::convert::TryFrom<BooleanSetUnconstrained> for crate::model::BooleanSet {
         629  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  472    630   
        type Error = crate::model::boolean_set::ConstraintViolation;
         631  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  473    632   
        fn try_from(value: BooleanSetUnconstrained) -> std::result::Result<Self, Self::Error> {
         633  +
            /* UnconstrainedCollectionGenerator.kt:185 */
  474    634   
            let inner = value.0;
         635  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  475    636   
            Self::try_from(inner)
         637  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  476    638   
        }
         639  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  477    640   
    }
         641  +
         642  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  478    643   
}
  479    644   
pub(crate) mod blob_set_unconstrained {
  480    645   
         646  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  481    647   
    #[derive(Debug, Clone)]
  482    648   
    pub(crate) struct BlobSetUnconstrained(pub(crate) std::vec::Vec<::aws_smithy_types::Blob>);
  483    649   
  484    650   
    impl From<BlobSetUnconstrained> for crate::constrained::MaybeConstrained<crate::model::BlobSet> {
  485    651   
        fn from(value: BlobSetUnconstrained) -> Self {
  486    652   
            Self::Unconstrained(value)
  487    653   
        }
  488    654   
    }
         655  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  489    656   
    impl std::convert::TryFrom<BlobSetUnconstrained> for crate::model::BlobSet {
         657  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  490    658   
        type Error = crate::model::blob_set::ConstraintViolation;
         659  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  491    660   
        fn try_from(value: BlobSetUnconstrained) -> std::result::Result<Self, Self::Error> {
         661  +
            /* UnconstrainedCollectionGenerator.kt:185 */
  492    662   
            let inner = value.0;
         663  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  493    664   
            Self::try_from(inner)
         665  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  494    666   
        }
         667  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  495    668   
    }
         669  +
         670  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  496    671   
}
  497    672   
pub(crate) mod pattern_union_override_unconstrained {
  498    673   
         674  +
    /* UnconstrainedUnionGenerator.kt:82 */
  499    675   
    #[allow(clippy::enum_variant_names)]
  500    676   
    #[derive(Debug, Clone)]
  501    677   
    pub(crate) enum PatternUnionOverrideUnconstrained {
  502         -
        First(::std::string::String),
         678  +
        /* UnconstrainedUnionGenerator.kt:95 */ First(::std::string::String),
         679  +
        /* UnconstrainedUnionGenerator.kt:95 */
  503    680   
        Second(::std::string::String),
         681  +
        /* UnconstrainedUnionGenerator.kt:82 */
  504    682   
    }
         683  +
    /* UnconstrainedUnionGenerator.kt:103 */
  505    684   
    impl ::std::convert::TryFrom<PatternUnionOverrideUnconstrained>
  506    685   
        for crate::model::PatternUnionOverride
  507    686   
    {
  508    687   
        type Error = crate::model::pattern_union_override::ConstraintViolation;
  509    688   
  510    689   
        fn try_from(
  511    690   
            value: PatternUnionOverrideUnconstrained,
  512    691   
        ) -> ::std::result::Result<Self, Self::Error> {
  513    692   
            Ok(
  514    693   
        match value {
  515    694   
            crate::unconstrained::pattern_union_override_unconstrained::PatternUnionOverrideUnconstrained::First(unconstrained) => Self::First(
  516    695   
                unconstrained
  517    696   
                                        .try_into()
  518    697   
                                        
  519    698   
                                        
  520    699   
                                        .map_err(Self::Error::First)?
  521    700   
            ),
  522    701   
            crate::unconstrained::pattern_union_override_unconstrained::PatternUnionOverrideUnconstrained::Second(unconstrained) => Self::Second(
  523    702   
                unconstrained
  524    703   
                                        .try_into()
  525    704   
                                        
  526    705   
                                        
  527    706   
                                        .map_err(Self::Error::Second)?
  528    707   
            ),
  529    708   
        }
  530    709   
    )
  531    710   
        }
  532    711   
    }
         712  +
         713  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  533    714   
}
  534    715   
pub(crate) mod pattern_map_override_unconstrained {
  535    716   
         717  +
    /* UnconstrainedMapGenerator.kt:79 */
  536    718   
    #[derive(Debug, Clone)]
  537    719   
    pub(crate) struct PatternMapOverrideUnconstrained(
  538    720   
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
  539    721   
    );
  540    722   
  541    723   
    impl From<PatternMapOverrideUnconstrained>
  542    724   
        for crate::constrained::MaybeConstrained<
  543    725   
            crate::constrained::pattern_map_override_constrained::PatternMapOverrideConstrained,
  544    726   
        >
  545    727   
    {
  546    728   
        fn from(value: PatternMapOverrideUnconstrained) -> Self {
  547    729   
            Self::Unconstrained(value)
  548    730   
        }
  549    731   
    }
         732  +
    /* UnconstrainedMapGenerator.kt:101 */
  550    733   
    impl std::convert::TryFrom<PatternMapOverrideUnconstrained>
  551    734   
        for crate::constrained::pattern_map_override_constrained::PatternMapOverrideConstrained
  552    735   
    {
         736  +
        /* UnconstrainedMapGenerator.kt:102 */
  553    737   
        type Error = crate::model::pattern_map_override::ConstraintViolation;
         738  +
        /* UnconstrainedMapGenerator.kt:104 */
  554    739   
        fn try_from(
  555    740   
            value: PatternMapOverrideUnconstrained,
  556    741   
        ) -> std::result::Result<Self, Self::Error> {
         742  +
            /* UnconstrainedMapGenerator.kt:186 */
  557    743   
            let res: ::std::result::Result<
  558    744   
                ::std::collections::HashMap<
  559    745   
                    crate::model::pattern_map_override::Key,
  560    746   
                    crate::model::pattern_map_override::Value,
  561    747   
                >,
  562    748   
                Self::Error,
  563    749   
            > = value
  564    750   
                .0
  565    751   
                .into_iter()
  566    752   
                .map(|(k, v)| {
  567    753   
                    let k: crate::model::pattern_map_override::Key =
  568    754   
                        k.try_into().map_err(Self::Error::Key)?;
  569    755   
  570    756   
                    match crate::model::pattern_map_override::Value::try_from(v) {
  571    757   
                        Ok(v) => Ok((k, v)),
  572    758   
                        Err(inner_constraint_violation) => {
  573    759   
                            Err(Self::Error::Value(k, inner_constraint_violation))
  574    760   
                        }
  575    761   
                    }
  576    762   
                })
  577    763   
                .collect();
  578    764   
            let hm = res?;
         765  +
            /* UnconstrainedMapGenerator.kt:247 */
  579    766   
            Ok(Self(hm))
         767  +
            /* UnconstrainedMapGenerator.kt:104 */
  580    768   
        }
         769  +
        /* UnconstrainedMapGenerator.kt:101 */
  581    770   
    }
         771  +
         772  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  582    773   
}
  583    774   
pub(crate) mod pattern_list_override_unconstrained {
  584    775   
         776  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  585    777   
    #[derive(Debug, Clone)]
  586    778   
    pub(crate) struct PatternListOverrideUnconstrained(
  587    779   
        pub(crate) std::vec::Vec<::std::string::String>,
  588    780   
    );
  589    781   
  590    782   
    impl From<PatternListOverrideUnconstrained>
  591    783   
        for crate::constrained::MaybeConstrained<
  592    784   
            crate::constrained::pattern_list_override_constrained::PatternListOverrideConstrained,
  593    785   
        >
  594    786   
    {
  595    787   
        fn from(value: PatternListOverrideUnconstrained) -> Self {
  596    788   
            Self::Unconstrained(value)
  597    789   
        }
  598    790   
    }
         791  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  599    792   
    impl std::convert::TryFrom<PatternListOverrideUnconstrained>
  600    793   
        for crate::constrained::pattern_list_override_constrained::PatternListOverrideConstrained
  601    794   
    {
         795  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  602    796   
        type Error = crate::model::pattern_list_override::ConstraintViolation;
         797  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  603    798   
        fn try_from(
  604    799   
            value: PatternListOverrideUnconstrained,
  605    800   
        ) -> std::result::Result<Self, Self::Error> {
         801  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  606    802   
            let res: ::std::result::Result<
  607    803   
                ::std::vec::Vec<crate::model::pattern_list_override::Member>,
  608    804   
                (
  609    805   
                    usize,
  610    806   
                    crate::model::pattern_list_override::member::ConstraintViolation,
  611    807   
                ),
  612    808   
            > = value
  613    809   
                .0
  614    810   
                .into_iter()
  615    811   
                .enumerate()
  616    812   
                .map(|(idx, inner)| {
  617    813   
                    inner
  618    814   
                        .try_into()
  619    815   
                        .map_err(|inner_violation| (idx, inner_violation))
  620    816   
                })
  621    817   
                .collect();
  622    818   
            let inner =
  623    819   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         820  +
            /* UnconstrainedCollectionGenerator.kt:191 */
  624    821   
            Ok(Self(inner))
         822  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  625    823   
        }
         824  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  626    825   
    }
         826  +
         827  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  627    828   
}
  628    829   
pub(crate) mod pattern_union_unconstrained {
  629    830   
         831  +
    /* UnconstrainedUnionGenerator.kt:82 */
  630    832   
    #[allow(clippy::enum_variant_names)]
  631    833   
    #[derive(Debug, Clone)]
  632    834   
    pub(crate) enum PatternUnionUnconstrained {
  633         -
        First(::std::string::String),
         835  +
        /* UnconstrainedUnionGenerator.kt:95 */ First(::std::string::String),
         836  +
        /* UnconstrainedUnionGenerator.kt:95 */
  634    837   
        Second(::std::string::String),
         838  +
        /* UnconstrainedUnionGenerator.kt:82 */
  635    839   
    }
         840  +
    /* UnconstrainedUnionGenerator.kt:103 */
  636    841   
    impl ::std::convert::TryFrom<PatternUnionUnconstrained> for crate::model::PatternUnion {
  637    842   
        type Error = crate::model::pattern_union::ConstraintViolation;
  638    843   
  639    844   
        fn try_from(value: PatternUnionUnconstrained) -> ::std::result::Result<Self, Self::Error> {
  640    845   
            Ok(
  641    846   
        match value {
  642    847   
            crate::unconstrained::pattern_union_unconstrained::PatternUnionUnconstrained::First(unconstrained) => Self::First(
  643    848   
                unconstrained
  644    849   
                                        .try_into()
  645    850   
                                        
  646    851   
                                        
  647    852   
                                        .map_err(Self::Error::First)?
  648    853   
            ),
  649    854   
            crate::unconstrained::pattern_union_unconstrained::PatternUnionUnconstrained::Second(unconstrained) => Self::Second(
  650    855   
                unconstrained
  651    856   
                                        .try_into()
  652    857   
                                        
  653    858   
                                        
  654    859   
                                        .map_err(Self::Error::Second)?
  655    860   
            ),
  656    861   
        }
  657    862   
    )
  658    863   
        }
  659    864   
    }
         865  +
         866  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  660    867   
}
  661    868   
pub(crate) mod pattern_map_unconstrained {
  662    869   
         870  +
    /* UnconstrainedMapGenerator.kt:79 */
  663    871   
    #[derive(Debug, Clone)]
  664    872   
    pub(crate) struct PatternMapUnconstrained(
  665    873   
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
  666    874   
    );
  667    875   
  668    876   
    impl From<PatternMapUnconstrained>
  669    877   
        for crate::constrained::MaybeConstrained<
  670    878   
            crate::constrained::pattern_map_constrained::PatternMapConstrained,
  671    879   
        >
  672    880   
    {
  673    881   
        fn from(value: PatternMapUnconstrained) -> Self {
  674    882   
            Self::Unconstrained(value)
  675    883   
        }
  676    884   
    }
         885  +
    /* UnconstrainedMapGenerator.kt:101 */
  677    886   
    impl std::convert::TryFrom<PatternMapUnconstrained>
  678    887   
        for crate::constrained::pattern_map_constrained::PatternMapConstrained
  679    888   
    {
         889  +
        /* UnconstrainedMapGenerator.kt:102 */
  680    890   
        type Error = crate::model::pattern_map::ConstraintViolation;
         891  +
        /* UnconstrainedMapGenerator.kt:104 */
  681    892   
        fn try_from(value: PatternMapUnconstrained) -> std::result::Result<Self, Self::Error> {
         893  +
            /* UnconstrainedMapGenerator.kt:186 */
  682    894   
            let res: ::std::result::Result<
  683    895   
                ::std::collections::HashMap<
  684    896   
                    crate::model::PatternString,
  685    897   
                    crate::model::PatternString,
  686    898   
                >,
  687    899   
                Self::Error,
  688    900   
            > = value
  689    901   
                .0
  690    902   
                .into_iter()
  691    903   
                .map(|(k, v)| {
  692    904   
                    let k: crate::model::PatternString = k.try_into().map_err(Self::Error::Key)?;
  693    905   
  694    906   
                    match crate::model::PatternString::try_from(v) {
  695    907   
                        Ok(v) => Ok((k, v)),
  696    908   
                        Err(inner_constraint_violation) => {
  697    909   
                            Err(Self::Error::Value(k, inner_constraint_violation))
  698    910   
                        }
  699    911   
                    }
  700    912   
                })
  701    913   
                .collect();
  702    914   
            let hm = res?;
         915  +
            /* UnconstrainedMapGenerator.kt:247 */
  703    916   
            Ok(Self(hm))
         917  +
            /* UnconstrainedMapGenerator.kt:104 */
  704    918   
        }
         919  +
        /* UnconstrainedMapGenerator.kt:101 */
  705    920   
    }
         921  +
         922  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  706    923   
}
  707    924   
pub(crate) mod pattern_list_unconstrained {
  708    925   
         926  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  709    927   
    #[derive(Debug, Clone)]
  710    928   
    pub(crate) struct PatternListUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
  711    929   
  712    930   
    impl From<PatternListUnconstrained>
  713    931   
        for crate::constrained::MaybeConstrained<
  714    932   
            crate::constrained::pattern_list_constrained::PatternListConstrained,
  715    933   
        >
  716    934   
    {
  717    935   
        fn from(value: PatternListUnconstrained) -> Self {
  718    936   
            Self::Unconstrained(value)
  719    937   
        }
  720    938   
    }
         939  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  721    940   
    impl std::convert::TryFrom<PatternListUnconstrained>
  722    941   
        for crate::constrained::pattern_list_constrained::PatternListConstrained
  723    942   
    {
         943  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  724    944   
        type Error = crate::model::pattern_list::ConstraintViolation;
         945  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  725    946   
        fn try_from(value: PatternListUnconstrained) -> std::result::Result<Self, Self::Error> {
         947  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  726    948   
            let res: ::std::result::Result<
  727    949   
                ::std::vec::Vec<crate::model::PatternString>,
  728    950   
                (usize, crate::model::pattern_string::ConstraintViolation),
  729    951   
            > = value
  730    952   
                .0
  731    953   
                .into_iter()
  732    954   
                .enumerate()
  733    955   
                .map(|(idx, inner)| {
  734    956   
                    inner
  735    957   
                        .try_into()
  736    958   
                        .map_err(|inner_violation| (idx, inner_violation))
  737    959   
                })
  738    960   
                .collect();
  739    961   
            let inner =
  740    962   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         963  +
            /* UnconstrainedCollectionGenerator.kt:191 */
  741    964   
            Ok(Self(inner))
         965  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  742    966   
        }
         967  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  743    968   
    }
         969  +
         970  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  744    971   
}
  745    972   
pub(crate) mod length_list_unconstrained {
  746    973   
         974  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  747    975   
    #[derive(Debug, Clone)]
  748    976   
    pub(crate) struct LengthListUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
  749    977   
  750    978   
    impl From<LengthListUnconstrained>
  751    979   
        for crate::constrained::MaybeConstrained<crate::model::LengthList>
  752    980   
    {
  753    981   
        fn from(value: LengthListUnconstrained) -> Self {
  754    982   
            Self::Unconstrained(value)
  755    983   
        }
  756    984   
    }
         985  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  757    986   
    impl std::convert::TryFrom<LengthListUnconstrained> for crate::model::LengthList {
         987  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  758    988   
        type Error = crate::model::length_list::ConstraintViolation;
         989  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  759    990   
        fn try_from(value: LengthListUnconstrained) -> std::result::Result<Self, Self::Error> {
         991  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  760    992   
            let res: ::std::result::Result<
  761    993   
                ::std::vec::Vec<crate::model::LengthString>,
  762    994   
                (usize, crate::model::length_string::ConstraintViolation),
  763    995   
            > = value
  764    996   
                .0
  765    997   
                .into_iter()
  766    998   
                .enumerate()
  767    999   
                .map(|(idx, inner)| {
  768   1000   
                    inner
  769   1001   
                        .try_into()
  770   1002   
                        .map_err(|inner_violation| (idx, inner_violation))
  771   1003   
                })
  772   1004   
                .collect();
  773   1005   
            let inner =
  774   1006   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1007  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  775   1008   
            Self::try_from(inner)
        1009  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  776   1010   
        }
        1011  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  777   1012   
    }
        1013  +
        1014  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  778   1015   
}
  779   1016   
pub(crate) mod length_map_unconstrained {
  780   1017   
        1018  +
    /* UnconstrainedMapGenerator.kt:79 */
  781   1019   
    #[derive(Debug, Clone)]
  782   1020   
    pub(crate) struct LengthMapUnconstrained(
  783   1021   
        pub(crate)  std::collections::HashMap<
  784   1022   
            ::std::string::String,
  785   1023   
            crate::unconstrained::length_list_unconstrained::LengthListUnconstrained,
  786   1024   
        >,
  787   1025   
    );
  788   1026   
  789   1027   
    impl From<LengthMapUnconstrained>
  790   1028   
        for crate::constrained::MaybeConstrained<crate::model::LengthMap>
  791   1029   
    {
  792   1030   
        fn from(value: LengthMapUnconstrained) -> Self {
  793   1031   
            Self::Unconstrained(value)
  794   1032   
        }
  795   1033   
    }
        1034  +
    /* UnconstrainedMapGenerator.kt:101 */
  796   1035   
    impl std::convert::TryFrom<LengthMapUnconstrained> for crate::model::LengthMap {
        1036  +
        /* UnconstrainedMapGenerator.kt:102 */
  797   1037   
        type Error = crate::model::length_map::ConstraintViolation;
        1038  +
        /* UnconstrainedMapGenerator.kt:104 */
  798   1039   
        fn try_from(value: LengthMapUnconstrained) -> std::result::Result<Self, Self::Error> {
        1040  +
            /* UnconstrainedMapGenerator.kt:186 */
  799   1041   
            let res: ::std::result::Result<
  800   1042   
                ::std::collections::HashMap<crate::model::LengthString, crate::model::LengthList>,
  801   1043   
                Self::Error,
  802   1044   
            > = value
  803   1045   
                .0
  804   1046   
                .into_iter()
  805   1047   
                .map(|(k, v)| {
  806   1048   
                    let k: crate::model::LengthString = k.try_into().map_err(Self::Error::Key)?;
  807   1049   
  808   1050   
                    match crate::model::LengthList::try_from(v) {
  809   1051   
                        Ok(v) => Ok((k, v)),
  810   1052   
                        Err(inner_constraint_violation) => {
  811   1053   
                            Err(Self::Error::Value(k, inner_constraint_violation))
  812   1054   
                        }
  813   1055   
                    }
  814   1056   
                })
  815   1057   
                .collect();
  816   1058   
            let hm = res?;
        1059  +
            /* UnconstrainedMapGenerator.kt:245 */
  817   1060   
            Self::try_from(hm)
        1061  +
            /* UnconstrainedMapGenerator.kt:104 */
  818   1062   
        }
        1063  +
        /* UnconstrainedMapGenerator.kt:101 */
  819   1064   
    }
        1065  +
        1066  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  820   1067   
}
  821   1068   
pub(crate) mod enum_union_unconstrained {
  822   1069   
        1070  +
    /* UnconstrainedUnionGenerator.kt:82 */
  823   1071   
    #[allow(clippy::enum_variant_names)]
  824   1072   
    #[derive(Debug, Clone)]
  825   1073   
    pub(crate) enum EnumUnionUnconstrained {
  826         -
        First(::std::string::String),
        1074  +
        /* UnconstrainedUnionGenerator.kt:95 */ First(::std::string::String),
        1075  +
        /* UnconstrainedUnionGenerator.kt:95 */
  827   1076   
        Second(::std::string::String),
        1077  +
        /* UnconstrainedUnionGenerator.kt:82 */
  828   1078   
    }
        1079  +
    /* UnconstrainedUnionGenerator.kt:103 */
  829   1080   
    impl ::std::convert::TryFrom<EnumUnionUnconstrained> for crate::model::EnumUnion {
  830   1081   
        type Error = crate::model::enum_union::ConstraintViolation;
  831   1082   
  832   1083   
        fn try_from(value: EnumUnionUnconstrained) -> ::std::result::Result<Self, Self::Error> {
  833   1084   
            Ok(match value {
  834   1085   
                crate::unconstrained::enum_union_unconstrained::EnumUnionUnconstrained::First(
  835   1086   
                    unconstrained,
  836   1087   
                ) => Self::First(unconstrained.try_into().map_err(Self::Error::First)?),
  837   1088   
                crate::unconstrained::enum_union_unconstrained::EnumUnionUnconstrained::Second(
  838   1089   
                    unconstrained,
  839   1090   
                ) => Self::Second(unconstrained.try_into().map_err(Self::Error::Second)?),
  840   1091   
            })
  841   1092   
        }
  842   1093   
    }
        1094  +
        1095  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  843   1096   
}
  844   1097   
pub(crate) mod enum_map_unconstrained {
  845   1098   
        1099  +
    /* UnconstrainedMapGenerator.kt:79 */
  846   1100   
    #[derive(Debug, Clone)]
  847   1101   
    pub(crate) struct EnumMapUnconstrained(
  848   1102   
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
  849   1103   
    );
  850   1104   
  851   1105   
    impl From<EnumMapUnconstrained>
  852   1106   
        for crate::constrained::MaybeConstrained<
  853   1107   
            crate::constrained::enum_map_constrained::EnumMapConstrained,
  854   1108   
        >
  855   1109   
    {
  856   1110   
        fn from(value: EnumMapUnconstrained) -> Self {
  857   1111   
            Self::Unconstrained(value)
  858   1112   
        }
  859   1113   
    }
        1114  +
    /* UnconstrainedMapGenerator.kt:101 */
  860   1115   
    impl std::convert::TryFrom<EnumMapUnconstrained>
  861   1116   
        for crate::constrained::enum_map_constrained::EnumMapConstrained
  862   1117   
    {
        1118  +
        /* UnconstrainedMapGenerator.kt:102 */
  863   1119   
        type Error = crate::model::enum_map::ConstraintViolation;
        1120  +
        /* UnconstrainedMapGenerator.kt:104 */
  864   1121   
        fn try_from(value: EnumMapUnconstrained) -> std::result::Result<Self, Self::Error> {
        1122  +
            /* UnconstrainedMapGenerator.kt:186 */
  865   1123   
            let res: ::std::result::Result<
  866   1124   
                ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
  867   1125   
                Self::Error,
  868   1126   
            > = value
  869   1127   
                .0
  870   1128   
                .into_iter()
  871   1129   
                .map(|(k, v)| {
  872   1130   
                    let k: crate::model::EnumString = k.try_into().map_err(Self::Error::Key)?;
  873   1131   
  874   1132   
                    match crate::model::EnumString::try_from(v) {
  875   1133   
                        Ok(v) => Ok((k, v)),
  876   1134   
                        Err(inner_constraint_violation) => {
  877   1135   
                            Err(Self::Error::Value(k, inner_constraint_violation))
  878   1136   
                        }
  879   1137   
                    }
  880   1138   
                })
  881   1139   
                .collect();
  882   1140   
            let hm = res?;
        1141  +
            /* UnconstrainedMapGenerator.kt:247 */
  883   1142   
            Ok(Self(hm))
        1143  +
            /* UnconstrainedMapGenerator.kt:104 */
  884   1144   
        }
        1145  +
        /* UnconstrainedMapGenerator.kt:101 */
  885   1146   
    }
        1147  +
        1148  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  886   1149   
}
  887   1150   
pub(crate) mod enum_list_unconstrained {
  888   1151   
        1152  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  889   1153   
    #[derive(Debug, Clone)]
  890   1154   
    pub(crate) struct EnumListUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
  891   1155   
  892   1156   
    impl From<EnumListUnconstrained>
  893   1157   
        for crate::constrained::MaybeConstrained<
  894   1158   
            crate::constrained::enum_list_constrained::EnumListConstrained,
  895   1159   
        >
  896   1160   
    {
  897   1161   
        fn from(value: EnumListUnconstrained) -> Self {
  898   1162   
            Self::Unconstrained(value)
  899   1163   
        }
  900   1164   
    }
        1165  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  901   1166   
    impl std::convert::TryFrom<EnumListUnconstrained>
  902   1167   
        for crate::constrained::enum_list_constrained::EnumListConstrained
  903   1168   
    {
        1169  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  904   1170   
        type Error = crate::model::enum_list::ConstraintViolation;
        1171  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  905   1172   
        fn try_from(value: EnumListUnconstrained) -> std::result::Result<Self, Self::Error> {
        1173  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  906   1174   
            let res: ::std::result::Result<
  907   1175   
                ::std::vec::Vec<crate::model::EnumString>,
  908   1176   
                (usize, crate::model::enum_string::ConstraintViolation),
  909   1177   
            > = value
  910   1178   
                .0
  911   1179   
                .into_iter()
  912   1180   
                .enumerate()
  913   1181   
                .map(|(idx, inner)| {
  914   1182   
                    inner
  915   1183   
                        .try_into()
  916   1184   
                        .map_err(|inner_violation| (idx, inner_violation))
  917   1185   
                })
  918   1186   
                .collect();
  919   1187   
            let inner =
  920   1188   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1189  +
            /* UnconstrainedCollectionGenerator.kt:191 */
  921   1190   
            Ok(Self(inner))
        1191  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  922   1192   
        }
        1193  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  923   1194   
    }
        1195  +
        1196  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  924   1197   
}

tmp-codegen-diff/codegen-server-test/rpcv2Cbor/rust-server-codegen/src/constrained.rs

@@ -1,1 +113,125 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
    3      3   
pub(crate) mod sparse_set_map_constrained {
    4      4   
           5  +
    /* PubCrateConstrainedMapGenerator.kt:80 */
    5      6   
    #[derive(Debug, Clone)]
    6      7   
    pub(crate) struct SparseSetMapConstrained(
    7      8   
        pub(crate)  std::collections::HashMap<
    8      9   
            ::std::string::String,
    9     10   
            ::std::option::Option<crate::model::StringSet>,
   10     11   
        >,
   11     12   
    );
   12     13   
   13     14   
    impl crate::constrained::Constrained for SparseSetMapConstrained {
   14     15   
        type Unconstrained =
   15     16   
            crate::unconstrained::sparse_set_map_unconstrained::SparseSetMapUnconstrained;
   16     17   
    }
          18  +
    /* PubCrateConstrainedMapGenerator.kt:99 */
   17     19   
    impl
   18     20   
        ::std::convert::From<
   19     21   
            ::std::collections::HashMap<
   20     22   
                ::std::string::String,
   21     23   
                ::std::option::Option<crate::model::StringSet>,
   22     24   
            >,
   23     25   
        > for SparseSetMapConstrained
   24     26   
    {
   25     27   
        fn from(
   26     28   
            v: ::std::collections::HashMap<
   27     29   
                ::std::string::String,
   28     30   
                ::std::option::Option<crate::model::StringSet>,
   29     31   
            >,
   30     32   
        ) -> Self {
   31     33   
            Self(v)
   32     34   
        }
   33     35   
    }
   34     36   
   35     37   
    impl ::std::convert::From<SparseSetMapConstrained>
   36     38   
        for ::std::collections::HashMap<
   37     39   
            ::std::string::String,
   38     40   
            ::std::option::Option<crate::model::StringSet>,
   39     41   
        >
   40     42   
    {
   41     43   
        fn from(v: SparseSetMapConstrained) -> Self {
   42     44   
            v.0
   43     45   
        }
   44     46   
    }
          47  +
          48  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
   45     49   
}
   46     50   
pub(crate) mod dense_set_map_constrained {
   47     51   
          52  +
    /* PubCrateConstrainedMapGenerator.kt:80 */
   48     53   
    #[derive(Debug, Clone)]
   49     54   
    pub(crate) struct DenseSetMapConstrained(
   50     55   
        pub(crate) std::collections::HashMap<::std::string::String, crate::model::StringSet>,
   51     56   
    );
   52     57   
   53     58   
    impl crate::constrained::Constrained for DenseSetMapConstrained {
   54     59   
        type Unconstrained =
   55     60   
            crate::unconstrained::dense_set_map_unconstrained::DenseSetMapUnconstrained;
   56     61   
    }
          62  +
    /* PubCrateConstrainedMapGenerator.kt:99 */
   57     63   
    impl
   58     64   
        ::std::convert::From<
   59     65   
            ::std::collections::HashMap<::std::string::String, crate::model::StringSet>,
   60     66   
        > for DenseSetMapConstrained
   61     67   
    {
   62     68   
        fn from(
   63     69   
            v: ::std::collections::HashMap<::std::string::String, crate::model::StringSet>,
   64     70   
        ) -> Self {
   65     71   
            Self(v)
   66     72   
        }
   67     73   
    }
   68     74   
   69     75   
    impl ::std::convert::From<DenseSetMapConstrained>
   70     76   
        for ::std::collections::HashMap<::std::string::String, crate::model::StringSet>
   71     77   
    {
   72     78   
        fn from(v: DenseSetMapConstrained) -> Self {
   73     79   
            v.0
   74     80   
        }
   75     81   
    }
          82  +
          83  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
   76     84   
}
   77     85   
pub(crate) mod foo_enum_list_constrained {
   78     86   
          87  +
    /* PubCrateConstrainedCollectionGenerator.kt:79 */
   79     88   
    #[derive(Debug, Clone)]
   80     89   
    pub(crate) struct FooEnumListConstrained(pub(crate) std::vec::Vec<crate::model::FooEnum>);
   81     90   
   82     91   
    impl crate::constrained::Constrained for FooEnumListConstrained {
   83     92   
        type Unconstrained =
   84     93   
            crate::unconstrained::foo_enum_list_unconstrained::FooEnumListUnconstrained;
   85     94   
    }
          95  +
    /* PubCrateConstrainedCollectionGenerator.kt:108 */
   86     96   
    impl ::std::convert::From<::std::vec::Vec<crate::model::FooEnum>> for FooEnumListConstrained {
   87     97   
        fn from(v: ::std::vec::Vec<crate::model::FooEnum>) -> Self {
   88     98   
            Self(v)
   89     99   
        }
   90    100   
    }
   91    101   
   92    102   
    impl ::std::convert::From<FooEnumListConstrained> for ::std::vec::Vec<crate::model::FooEnum> {
   93    103   
        fn from(v: FooEnumListConstrained) -> Self {
   94    104   
            v.0
   95    105   
        }
   96    106   
    }
         107  +
         108  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
   97    109   
}
   98    110   
   99    111   
/*
  100    112   
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
  101    113   
 * SPDX-License-Identifier: Apache-2.0
  102    114   
 */
  103    115   
  104    116   
pub(crate) trait Constrained {
  105    117   
    type Unconstrained;
  106    118   
}

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

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

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

@@ -1,1 +1919,2939 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* StructureGenerator.kt:197 */
    2      3   
#[allow(missing_docs)] // documentation missing in model
           4  +
/* RustType.kt:516 */
    3      5   
#[derive(
    4      6   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
    5      7   
)]
    6         -
pub struct Float16Input {}
           8  +
pub /* StructureGenerator.kt:201 */ struct Float16Input {/* StructureGenerator.kt:201 */}
           9  +
/* ServerCodegenVisitor.kt:345 */
    7     10   
impl Float16Input {
    8         -
    /// Creates a new builder-style object to manufacture [`Float16Input`](crate::input::Float16Input).
          11  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`Float16Input`](crate::input::Float16Input).
          12  +
    /* ServerBuilderGenerator.kt:295 */
    9     13   
    pub fn builder() -> crate::input::float16_input::Builder {
          14  +
        /* ServerBuilderGenerator.kt:296 */
   10     15   
        crate::input::float16_input::Builder::default()
          16  +
        /* ServerBuilderGenerator.kt:295 */
   11     17   
    }
          18  +
    /* ServerCodegenVisitor.kt:345 */
   12     19   
}
          20  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
   13     21   
impl crate::constrained::Constrained for crate::input::Float16Input {
   14     22   
    type Unconstrained = crate::input::float16_input::Builder;
   15     23   
}
   16     24   
          25  +
/* StructureGenerator.kt:197 */
   17     26   
#[allow(missing_docs)] // documentation missing in model
          27  +
/* RustType.kt:516 */
   18     28   
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
   19         -
pub struct SparseNullsOperationInput {
          29  +
pub /* StructureGenerator.kt:201 */ struct SparseNullsOperationInput {
          30  +
    /* StructureGenerator.kt:231 */
   20     31   
    #[allow(missing_docs)] // documentation missing in model
   21     32   
    pub sparse_string_list:
   22     33   
        ::std::option::Option<::std::vec::Vec<::std::option::Option<::std::string::String>>>,
          34  +
    /* StructureGenerator.kt:231 */
   23     35   
    #[allow(missing_docs)] // documentation missing in model
   24     36   
    pub sparse_string_map: ::std::option::Option<
   25     37   
        ::std::collections::HashMap<
   26     38   
            ::std::string::String,
   27     39   
            ::std::option::Option<::std::string::String>,
   28     40   
        >,
   29     41   
    >,
          42  +
    /* StructureGenerator.kt:201 */
   30     43   
}
          44  +
/* StructureGenerator.kt:135 */
   31     45   
impl SparseNullsOperationInput {
          46  +
    /* StructureGenerator.kt:231 */
   32     47   
    #[allow(missing_docs)] // documentation missing in model
          48  +
                           /* StructureGenerator.kt:166 */
   33     49   
    pub fn sparse_string_list(
   34     50   
        &self,
   35     51   
    ) -> ::std::option::Option<&[::std::option::Option<::std::string::String>]> {
          52  +
        /* StructureGenerator.kt:169 */
   36     53   
        self.sparse_string_list.as_deref()
          54  +
        /* StructureGenerator.kt:166 */
   37     55   
    }
          56  +
    /* StructureGenerator.kt:231 */
   38     57   
    #[allow(missing_docs)] // documentation missing in model
          58  +
                           /* StructureGenerator.kt:166 */
   39     59   
    pub fn sparse_string_map(
   40     60   
        &self,
   41     61   
    ) -> ::std::option::Option<
   42     62   
        &::std::collections::HashMap<
   43     63   
            ::std::string::String,
   44     64   
            ::std::option::Option<::std::string::String>,
   45     65   
        >,
   46     66   
    > {
          67  +
        /* StructureGenerator.kt:170 */
   47     68   
        self.sparse_string_map.as_ref()
          69  +
        /* StructureGenerator.kt:166 */
   48     70   
    }
          71  +
    /* StructureGenerator.kt:135 */
   49     72   
}
          73  +
/* ServerCodegenVisitor.kt:345 */
   50     74   
impl SparseNullsOperationInput {
   51         -
    /// Creates a new builder-style object to manufacture [`SparseNullsOperationInput`](crate::input::SparseNullsOperationInput).
          75  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`SparseNullsOperationInput`](crate::input::SparseNullsOperationInput).
          76  +
    /* ServerBuilderGenerator.kt:295 */
   52     77   
    pub fn builder() -> crate::input::sparse_nulls_operation_input::Builder {
          78  +
        /* ServerBuilderGenerator.kt:296 */
   53     79   
        crate::input::sparse_nulls_operation_input::Builder::default()
          80  +
        /* ServerBuilderGenerator.kt:295 */
   54     81   
    }
          82  +
    /* ServerCodegenVisitor.kt:345 */
   55     83   
}
          84  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
   56     85   
impl crate::constrained::Constrained for crate::input::SparseNullsOperationInput {
   57     86   
    type Unconstrained = crate::input::sparse_nulls_operation_input::Builder;
   58     87   
}
   59     88   
          89  +
/* StructureGenerator.kt:197 */
   60     90   
#[allow(missing_docs)] // documentation missing in model
          91  +
/* RustType.kt:516 */
   61     92   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
   62         -
pub struct OperationWithDefaultsInput {
          93  +
pub /* StructureGenerator.kt:201 */ struct OperationWithDefaultsInput {
          94  +
    /* StructureGenerator.kt:231 */
   63     95   
    #[allow(missing_docs)] // documentation missing in model
   64     96   
    pub defaults: ::std::option::Option<crate::model::Defaults>,
          97  +
    /* StructureGenerator.kt:231 */
   65     98   
    #[allow(missing_docs)] // documentation missing in model
   66     99   
    pub client_optional_defaults: ::std::option::Option<crate::model::ClientOptionalDefaults>,
         100  +
    /* StructureGenerator.kt:231 */
   67    101   
    #[allow(missing_docs)] // documentation missing in model
   68    102   
    pub top_level_default: ::std::string::String,
         103  +
    /* StructureGenerator.kt:231 */
   69    104   
    #[allow(missing_docs)] // documentation missing in model
   70    105   
    pub other_top_level_default: i32,
         106  +
    /* StructureGenerator.kt:201 */
   71    107   
}
         108  +
/* StructureGenerator.kt:135 */
   72    109   
impl OperationWithDefaultsInput {
         110  +
    /* StructureGenerator.kt:231 */
   73    111   
    #[allow(missing_docs)] // documentation missing in model
         112  +
                           /* StructureGenerator.kt:166 */
   74    113   
    pub fn defaults(&self) -> ::std::option::Option<&crate::model::Defaults> {
         114  +
        /* StructureGenerator.kt:170 */
   75    115   
        self.defaults.as_ref()
         116  +
        /* StructureGenerator.kt:166 */
   76    117   
    }
         118  +
    /* StructureGenerator.kt:231 */
   77    119   
    #[allow(missing_docs)] // documentation missing in model
         120  +
                           /* StructureGenerator.kt:166 */
   78    121   
    pub fn client_optional_defaults(
   79    122   
        &self,
   80    123   
    ) -> ::std::option::Option<&crate::model::ClientOptionalDefaults> {
         124  +
        /* StructureGenerator.kt:170 */
   81    125   
        self.client_optional_defaults.as_ref()
         126  +
        /* StructureGenerator.kt:166 */
   82    127   
    }
         128  +
    /* StructureGenerator.kt:231 */
   83    129   
    #[allow(missing_docs)] // documentation missing in model
         130  +
                           /* StructureGenerator.kt:166 */
   84    131   
    pub fn top_level_default(&self) -> &str {
         132  +
        /* StructureGenerator.kt:171 */
   85    133   
        use std::ops::Deref;
   86    134   
        self.top_level_default.deref()
         135  +
        /* StructureGenerator.kt:166 */
   87    136   
    }
         137  +
    /* StructureGenerator.kt:231 */
   88    138   
    #[allow(missing_docs)] // documentation missing in model
         139  +
                           /* StructureGenerator.kt:166 */
   89    140   
    pub fn other_top_level_default(&self) -> i32 {
         141  +
        /* StructureGenerator.kt:168 */
   90    142   
        self.other_top_level_default
         143  +
        /* StructureGenerator.kt:166 */
   91    144   
    }
         145  +
    /* StructureGenerator.kt:135 */
   92    146   
}
         147  +
/* ServerCodegenVisitor.kt:345 */
   93    148   
impl OperationWithDefaultsInput {
   94         -
    /// Creates a new builder-style object to manufacture [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
         149  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
         150  +
    /* ServerBuilderGenerator.kt:295 */
   95    151   
    pub fn builder() -> crate::input::operation_with_defaults_input::Builder {
         152  +
        /* ServerBuilderGenerator.kt:296 */
   96    153   
        crate::input::operation_with_defaults_input::Builder::default()
         154  +
        /* ServerBuilderGenerator.kt:295 */
   97    155   
    }
         156  +
    /* ServerCodegenVisitor.kt:345 */
   98    157   
}
         158  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
   99    159   
impl crate::constrained::Constrained for crate::input::OperationWithDefaultsInput {
  100    160   
    type Unconstrained = crate::input::operation_with_defaults_input::Builder;
  101    161   
}
  102    162   
         163  +
/* StructureGenerator.kt:197 */
  103    164   
#[allow(missing_docs)] // documentation missing in model
         165  +
/* RustType.kt:516 */
  104    166   
#[derive(
  105    167   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  106    168   
)]
  107         -
pub struct FractionalSecondsInput {}
         169  +
pub /* StructureGenerator.kt:201 */ struct FractionalSecondsInput {/* StructureGenerator.kt:201 */}
         170  +
/* ServerCodegenVisitor.kt:345 */
  108    171   
impl FractionalSecondsInput {
  109         -
    /// Creates a new builder-style object to manufacture [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
         172  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
         173  +
    /* ServerBuilderGenerator.kt:295 */
  110    174   
    pub fn builder() -> crate::input::fractional_seconds_input::Builder {
         175  +
        /* ServerBuilderGenerator.kt:296 */
  111    176   
        crate::input::fractional_seconds_input::Builder::default()
         177  +
        /* ServerBuilderGenerator.kt:295 */
  112    178   
    }
         179  +
    /* ServerCodegenVisitor.kt:345 */
  113    180   
}
         181  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  114    182   
impl crate::constrained::Constrained for crate::input::FractionalSecondsInput {
  115    183   
    type Unconstrained = crate::input::fractional_seconds_input::Builder;
  116    184   
}
  117    185   
         186  +
/* StructureGenerator.kt:197 */
  118    187   
#[allow(missing_docs)] // documentation missing in model
         188  +
/* RustType.kt:516 */
  119    189   
#[derive(
  120    190   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  121    191   
)]
  122         -
pub struct GreetingWithErrorsInput {}
         192  +
pub /* StructureGenerator.kt:201 */ struct GreetingWithErrorsInput {/* StructureGenerator.kt:201 */}
         193  +
/* ServerCodegenVisitor.kt:345 */
  123    194   
impl GreetingWithErrorsInput {
  124         -
    /// Creates a new builder-style object to manufacture [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
         195  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
         196  +
    /* ServerBuilderGenerator.kt:295 */
  125    197   
    pub fn builder() -> crate::input::greeting_with_errors_input::Builder {
         198  +
        /* ServerBuilderGenerator.kt:296 */
  126    199   
        crate::input::greeting_with_errors_input::Builder::default()
         200  +
        /* ServerBuilderGenerator.kt:295 */
  127    201   
    }
         202  +
    /* ServerCodegenVisitor.kt:345 */
  128    203   
}
         204  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  129    205   
impl crate::constrained::Constrained for crate::input::GreetingWithErrorsInput {
  130    206   
    type Unconstrained = crate::input::greeting_with_errors_input::Builder;
  131    207   
}
  132    208   
         209  +
/* StructureGenerator.kt:197 */
  133    210   
#[allow(missing_docs)] // documentation missing in model
         211  +
/* RustType.kt:516 */
  134    212   
#[derive(
  135    213   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  136    214   
)]
  137         -
pub struct RecursiveShapesInput {
         215  +
pub /* StructureGenerator.kt:201 */ struct RecursiveShapesInput {
         216  +
    /* StructureGenerator.kt:231 */
  138    217   
    #[allow(missing_docs)] // documentation missing in model
  139    218   
    pub nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
         219  +
    /* StructureGenerator.kt:201 */
  140    220   
}
         221  +
/* StructureGenerator.kt:135 */
  141    222   
impl RecursiveShapesInput {
         223  +
    /* StructureGenerator.kt:231 */
  142    224   
    #[allow(missing_docs)] // documentation missing in model
         225  +
                           /* StructureGenerator.kt:166 */
  143    226   
    pub fn nested(
  144    227   
        &self,
  145    228   
    ) -> ::std::option::Option<&crate::model::RecursiveShapesInputOutputNested1> {
         229  +
        /* StructureGenerator.kt:170 */
  146    230   
        self.nested.as_ref()
         231  +
        /* StructureGenerator.kt:166 */
  147    232   
    }
         233  +
    /* StructureGenerator.kt:135 */
  148    234   
}
         235  +
/* ServerCodegenVisitor.kt:345 */
  149    236   
impl RecursiveShapesInput {
  150         -
    /// Creates a new builder-style object to manufacture [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
         237  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
         238  +
    /* ServerBuilderGenerator.kt:295 */
  151    239   
    pub fn builder() -> crate::input::recursive_shapes_input::Builder {
         240  +
        /* ServerBuilderGenerator.kt:296 */
  152    241   
        crate::input::recursive_shapes_input::Builder::default()
         242  +
        /* ServerBuilderGenerator.kt:295 */
  153    243   
    }
         244  +
    /* ServerCodegenVisitor.kt:345 */
  154    245   
}
         246  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  155    247   
impl crate::constrained::Constrained for crate::input::RecursiveShapesInput {
  156    248   
    type Unconstrained = crate::input::recursive_shapes_input::Builder;
  157    249   
}
  158    250   
         251  +
/* StructureGenerator.kt:197 */
  159    252   
#[allow(missing_docs)] // documentation missing in model
         253  +
/* RustType.kt:516 */
  160    254   
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
  161         -
pub struct RpcV2CborSparseMapsInput {
         255  +
pub /* StructureGenerator.kt:201 */ struct RpcV2CborSparseMapsInput {
         256  +
    /* StructureGenerator.kt:231 */
  162    257   
    #[allow(missing_docs)] // documentation missing in model
  163    258   
    pub sparse_struct_map: ::std::option::Option<
  164    259   
        ::std::collections::HashMap<
  165    260   
            ::std::string::String,
  166    261   
            ::std::option::Option<crate::model::GreetingStruct>,
  167    262   
        >,
  168    263   
    >,
         264  +
    /* StructureGenerator.kt:231 */
  169    265   
    #[allow(missing_docs)] // documentation missing in model
  170    266   
    pub sparse_number_map: ::std::option::Option<
  171    267   
        ::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
  172    268   
    >,
         269  +
    /* StructureGenerator.kt:231 */
  173    270   
    #[allow(missing_docs)] // documentation missing in model
  174    271   
    pub sparse_boolean_map: ::std::option::Option<
  175    272   
        ::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
  176    273   
    >,
         274  +
    /* StructureGenerator.kt:231 */
  177    275   
    #[allow(missing_docs)] // documentation missing in model
  178    276   
    pub sparse_string_map: ::std::option::Option<
  179    277   
        ::std::collections::HashMap<
  180    278   
            ::std::string::String,
  181    279   
            ::std::option::Option<::std::string::String>,
  182    280   
        >,
  183    281   
    >,
         282  +
    /* StructureGenerator.kt:231 */
  184    283   
    #[allow(missing_docs)] // documentation missing in model
  185    284   
    pub sparse_set_map: ::std::option::Option<
  186    285   
        ::std::collections::HashMap<
  187    286   
            ::std::string::String,
  188    287   
            ::std::option::Option<crate::model::StringSet>,
  189    288   
        >,
  190    289   
    >,
         290  +
    /* StructureGenerator.kt:201 */
  191    291   
}
         292  +
/* StructureGenerator.kt:135 */
  192    293   
impl RpcV2CborSparseMapsInput {
         294  +
    /* StructureGenerator.kt:231 */
  193    295   
    #[allow(missing_docs)] // documentation missing in model
         296  +
                           /* StructureGenerator.kt:166 */
  194    297   
    pub fn sparse_struct_map(
  195    298   
        &self,
  196    299   
    ) -> ::std::option::Option<
  197    300   
        &::std::collections::HashMap<
  198    301   
            ::std::string::String,
  199    302   
            ::std::option::Option<crate::model::GreetingStruct>,
  200    303   
        >,
  201    304   
    > {
         305  +
        /* StructureGenerator.kt:170 */
  202    306   
        self.sparse_struct_map.as_ref()
         307  +
        /* StructureGenerator.kt:166 */
  203    308   
    }
         309  +
    /* StructureGenerator.kt:231 */
  204    310   
    #[allow(missing_docs)] // documentation missing in model
         311  +
                           /* StructureGenerator.kt:166 */
  205    312   
    pub fn sparse_number_map(
  206    313   
        &self,
  207    314   
    ) -> ::std::option::Option<
  208    315   
        &::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
  209    316   
    > {
         317  +
        /* StructureGenerator.kt:170 */
  210    318   
        self.sparse_number_map.as_ref()
         319  +
        /* StructureGenerator.kt:166 */
  211    320   
    }
         321  +
    /* StructureGenerator.kt:231 */
  212    322   
    #[allow(missing_docs)] // documentation missing in model
         323  +
                           /* StructureGenerator.kt:166 */
  213    324   
    pub fn sparse_boolean_map(
  214    325   
        &self,
  215    326   
    ) -> ::std::option::Option<
  216    327   
        &::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
  217    328   
    > {
         329  +
        /* StructureGenerator.kt:170 */
  218    330   
        self.sparse_boolean_map.as_ref()
         331  +
        /* StructureGenerator.kt:166 */
  219    332   
    }
         333  +
    /* StructureGenerator.kt:231 */
  220    334   
    #[allow(missing_docs)] // documentation missing in model
         335  +
                           /* StructureGenerator.kt:166 */
  221    336   
    pub fn sparse_string_map(
  222    337   
        &self,
  223    338   
    ) -> ::std::option::Option<
  224    339   
        &::std::collections::HashMap<
  225    340   
            ::std::string::String,
  226    341   
            ::std::option::Option<::std::string::String>,
  227    342   
        >,
  228    343   
    > {
         344  +
        /* StructureGenerator.kt:170 */
  229    345   
        self.sparse_string_map.as_ref()
         346  +
        /* StructureGenerator.kt:166 */
  230    347   
    }
         348  +
    /* StructureGenerator.kt:231 */
  231    349   
    #[allow(missing_docs)] // documentation missing in model
         350  +
                           /* StructureGenerator.kt:166 */
  232    351   
    pub fn sparse_set_map(
  233    352   
        &self,
  234    353   
    ) -> ::std::option::Option<
  235    354   
        &::std::collections::HashMap<
  236    355   
            ::std::string::String,
  237    356   
            ::std::option::Option<crate::model::StringSet>,
  238    357   
        >,
  239    358   
    > {
         359  +
        /* StructureGenerator.kt:170 */
  240    360   
        self.sparse_set_map.as_ref()
         361  +
        /* StructureGenerator.kt:166 */
  241    362   
    }
         363  +
    /* StructureGenerator.kt:135 */
  242    364   
}
         365  +
/* ServerCodegenVisitor.kt:345 */
  243    366   
impl RpcV2CborSparseMapsInput {
  244         -
    /// Creates a new builder-style object to manufacture [`RpcV2CborSparseMapsInput`](crate::input::RpcV2CborSparseMapsInput).
         367  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`RpcV2CborSparseMapsInput`](crate::input::RpcV2CborSparseMapsInput).
         368  +
    /* ServerBuilderGenerator.kt:295 */
  245    369   
    pub fn builder() -> crate::input::rpc_v2_cbor_sparse_maps_input::Builder {
         370  +
        /* ServerBuilderGenerator.kt:296 */
  246    371   
        crate::input::rpc_v2_cbor_sparse_maps_input::Builder::default()
         372  +
        /* ServerBuilderGenerator.kt:295 */
  247    373   
    }
         374  +
    /* ServerCodegenVisitor.kt:345 */
  248    375   
}
         376  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  249    377   
impl crate::constrained::Constrained for crate::input::RpcV2CborSparseMapsInput {
  250    378   
    type Unconstrained = crate::input::rpc_v2_cbor_sparse_maps_input::Builder;
  251    379   
}
  252    380   
         381  +
/* StructureGenerator.kt:197 */
  253    382   
#[allow(missing_docs)] // documentation missing in model
         383  +
/* RustType.kt:516 */
  254    384   
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
  255         -
pub struct RpcV2CborDenseMapsInput {
         385  +
pub /* StructureGenerator.kt:201 */ struct RpcV2CborDenseMapsInput {
         386  +
    /* StructureGenerator.kt:231 */
  256    387   
    #[allow(missing_docs)] // documentation missing in model
  257    388   
    pub dense_struct_map: ::std::option::Option<
  258    389   
        ::std::collections::HashMap<::std::string::String, crate::model::GreetingStruct>,
  259    390   
    >,
         391  +
    /* StructureGenerator.kt:231 */
  260    392   
    #[allow(missing_docs)] // documentation missing in model
  261    393   
    pub dense_number_map:
  262    394   
        ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
         395  +
    /* StructureGenerator.kt:231 */
  263    396   
    #[allow(missing_docs)] // documentation missing in model
  264    397   
    pub dense_boolean_map:
  265    398   
        ::std::option::Option<::std::collections::HashMap<::std::string::String, bool>>,
         399  +
    /* StructureGenerator.kt:231 */
  266    400   
    #[allow(missing_docs)] // documentation missing in model
  267    401   
    pub dense_string_map: ::std::option::Option<
  268    402   
        ::std::collections::HashMap<::std::string::String, ::std::string::String>,
  269    403   
    >,
         404  +
    /* StructureGenerator.kt:231 */
  270    405   
    #[allow(missing_docs)] // documentation missing in model
  271    406   
    pub dense_set_map: ::std::option::Option<
  272    407   
        ::std::collections::HashMap<::std::string::String, crate::model::StringSet>,
  273    408   
    >,
         409  +
    /* StructureGenerator.kt:201 */
  274    410   
}
         411  +
/* StructureGenerator.kt:135 */
  275    412   
impl RpcV2CborDenseMapsInput {
         413  +
    /* StructureGenerator.kt:231 */
  276    414   
    #[allow(missing_docs)] // documentation missing in model
         415  +
                           /* StructureGenerator.kt:166 */
  277    416   
    pub fn dense_struct_map(
  278    417   
        &self,
  279    418   
    ) -> ::std::option::Option<
  280    419   
        &::std::collections::HashMap<::std::string::String, crate::model::GreetingStruct>,
  281    420   
    > {
         421  +
        /* StructureGenerator.kt:170 */
  282    422   
        self.dense_struct_map.as_ref()
         423  +
        /* StructureGenerator.kt:166 */
  283    424   
    }
         425  +
    /* StructureGenerator.kt:231 */
  284    426   
    #[allow(missing_docs)] // documentation missing in model
         427  +
                           /* StructureGenerator.kt:166 */
  285    428   
    pub fn dense_number_map(
  286    429   
        &self,
  287    430   
    ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, i32>> {
         431  +
        /* StructureGenerator.kt:170 */
  288    432   
        self.dense_number_map.as_ref()
         433  +
        /* StructureGenerator.kt:166 */
  289    434   
    }
         435  +
    /* StructureGenerator.kt:231 */
  290    436   
    #[allow(missing_docs)] // documentation missing in model
         437  +
                           /* StructureGenerator.kt:166 */
  291    438   
    pub fn dense_boolean_map(
  292    439   
        &self,
  293    440   
    ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, bool>> {
         441  +
        /* StructureGenerator.kt:170 */
  294    442   
        self.dense_boolean_map.as_ref()
         443  +
        /* StructureGenerator.kt:166 */
  295    444   
    }
         445  +
    /* StructureGenerator.kt:231 */
  296    446   
    #[allow(missing_docs)] // documentation missing in model
         447  +
                           /* StructureGenerator.kt:166 */
  297    448   
    pub fn dense_string_map(
  298    449   
        &self,
  299    450   
    ) -> ::std::option::Option<
  300    451   
        &::std::collections::HashMap<::std::string::String, ::std::string::String>,
  301    452   
    > {
         453  +
        /* StructureGenerator.kt:170 */
  302    454   
        self.dense_string_map.as_ref()
         455  +
        /* StructureGenerator.kt:166 */
  303    456   
    }
         457  +
    /* StructureGenerator.kt:231 */
  304    458   
    #[allow(missing_docs)] // documentation missing in model
         459  +
                           /* StructureGenerator.kt:166 */
  305    460   
    pub fn dense_set_map(
  306    461   
        &self,
  307    462   
    ) -> ::std::option::Option<
  308    463   
        &::std::collections::HashMap<::std::string::String, crate::model::StringSet>,
  309    464   
    > {
         465  +
        /* StructureGenerator.kt:170 */
  310    466   
        self.dense_set_map.as_ref()
         467  +
        /* StructureGenerator.kt:166 */
  311    468   
    }
         469  +
    /* StructureGenerator.kt:135 */
  312    470   
}
         471  +
/* ServerCodegenVisitor.kt:345 */
  313    472   
impl RpcV2CborDenseMapsInput {
  314         -
    /// Creates a new builder-style object to manufacture [`RpcV2CborDenseMapsInput`](crate::input::RpcV2CborDenseMapsInput).
         473  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`RpcV2CborDenseMapsInput`](crate::input::RpcV2CborDenseMapsInput).
         474  +
    /* ServerBuilderGenerator.kt:295 */
  315    475   
    pub fn builder() -> crate::input::rpc_v2_cbor_dense_maps_input::Builder {
         476  +
        /* ServerBuilderGenerator.kt:296 */
  316    477   
        crate::input::rpc_v2_cbor_dense_maps_input::Builder::default()
         478  +
        /* ServerBuilderGenerator.kt:295 */
  317    479   
    }
         480  +
    /* ServerCodegenVisitor.kt:345 */
  318    481   
}
         482  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  319    483   
impl crate::constrained::Constrained for crate::input::RpcV2CborDenseMapsInput {
  320    484   
    type Unconstrained = crate::input::rpc_v2_cbor_dense_maps_input::Builder;
  321    485   
}
  322    486   
         487  +
/* StructureGenerator.kt:197 */
  323    488   
#[allow(missing_docs)] // documentation missing in model
         489  +
/* RustType.kt:516 */
  324    490   
#[derive(
  325    491   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  326    492   
)]
  327         -
pub struct RpcV2CborListsInput {
         493  +
pub /* StructureGenerator.kt:201 */ struct RpcV2CborListsInput {
         494  +
    /* StructureGenerator.kt:231 */
  328    495   
    #[allow(missing_docs)] // documentation missing in model
  329    496   
    pub string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
         497  +
    /* StructureGenerator.kt:231 */
  330    498   
    #[allow(missing_docs)] // documentation missing in model
  331    499   
    pub string_set: ::std::option::Option<crate::model::StringSet>,
         500  +
    /* StructureGenerator.kt:231 */
  332    501   
    #[allow(missing_docs)] // documentation missing in model
  333    502   
    pub integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
         503  +
    /* StructureGenerator.kt:231 */
  334    504   
    #[allow(missing_docs)] // documentation missing in model
  335    505   
    pub boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
         506  +
    /* StructureGenerator.kt:231 */
  336    507   
    #[allow(missing_docs)] // documentation missing in model
  337    508   
    pub timestamp_list: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
         509  +
    /* StructureGenerator.kt:231 */
  338    510   
    #[allow(missing_docs)] // documentation missing in model
  339    511   
    pub enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
         512  +
    /* StructureGenerator.kt:231 */
  340    513   
    #[allow(missing_docs)] // documentation missing in model
  341    514   
    pub int_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
  342         -
    /// A list of lists of strings.
         515  +
    /// /* StructureGenerator.kt:231 */A list of lists of strings.
  343    516   
    pub nested_string_list:
  344    517   
        ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
         518  +
    /* StructureGenerator.kt:231 */
  345    519   
    #[allow(missing_docs)] // documentation missing in model
  346    520   
    pub structure_list: ::std::option::Option<::std::vec::Vec<crate::model::StructureListMember>>,
         521  +
    /* StructureGenerator.kt:231 */
  347    522   
    #[allow(missing_docs)] // documentation missing in model
  348    523   
    pub blob_list: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::Blob>>,
         524  +
    /* StructureGenerator.kt:201 */
  349    525   
}
         526  +
/* StructureGenerator.kt:135 */
  350    527   
impl RpcV2CborListsInput {
         528  +
    /* StructureGenerator.kt:231 */
  351    529   
    #[allow(missing_docs)] // documentation missing in model
         530  +
                           /* StructureGenerator.kt:166 */
  352    531   
    pub fn string_list(&self) -> ::std::option::Option<&[::std::string::String]> {
         532  +
        /* StructureGenerator.kt:169 */
  353    533   
        self.string_list.as_deref()
         534  +
        /* StructureGenerator.kt:166 */
  354    535   
    }
         536  +
    /* StructureGenerator.kt:231 */
  355    537   
    #[allow(missing_docs)] // documentation missing in model
         538  +
                           /* StructureGenerator.kt:166 */
  356    539   
    pub fn string_set(&self) -> ::std::option::Option<&crate::model::StringSet> {
         540  +
        /* StructureGenerator.kt:170 */
  357    541   
        self.string_set.as_ref()
         542  +
        /* StructureGenerator.kt:166 */
  358    543   
    }
         544  +
    /* StructureGenerator.kt:231 */
  359    545   
    #[allow(missing_docs)] // documentation missing in model
         546  +
                           /* StructureGenerator.kt:166 */
  360    547   
    pub fn integer_list(&self) -> ::std::option::Option<&[i32]> {
         548  +
        /* StructureGenerator.kt:169 */
  361    549   
        self.integer_list.as_deref()
         550  +
        /* StructureGenerator.kt:166 */
  362    551   
    }
         552  +
    /* StructureGenerator.kt:231 */
  363    553   
    #[allow(missing_docs)] // documentation missing in model
         554  +
                           /* StructureGenerator.kt:166 */
  364    555   
    pub fn boolean_list(&self) -> ::std::option::Option<&[bool]> {
         556  +
        /* StructureGenerator.kt:169 */
  365    557   
        self.boolean_list.as_deref()
         558  +
        /* StructureGenerator.kt:166 */
  366    559   
    }
         560  +
    /* StructureGenerator.kt:231 */
  367    561   
    #[allow(missing_docs)] // documentation missing in model
         562  +
                           /* StructureGenerator.kt:166 */
  368    563   
    pub fn timestamp_list(&self) -> ::std::option::Option<&[::aws_smithy_types::DateTime]> {
         564  +
        /* StructureGenerator.kt:169 */
  369    565   
        self.timestamp_list.as_deref()
         566  +
        /* StructureGenerator.kt:166 */
  370    567   
    }
         568  +
    /* StructureGenerator.kt:231 */
  371    569   
    #[allow(missing_docs)] // documentation missing in model
         570  +
                           /* StructureGenerator.kt:166 */
  372    571   
    pub fn enum_list(&self) -> ::std::option::Option<&[crate::model::FooEnum]> {
         572  +
        /* StructureGenerator.kt:169 */
  373    573   
        self.enum_list.as_deref()
         574  +
        /* StructureGenerator.kt:166 */
  374    575   
    }
         576  +
    /* StructureGenerator.kt:231 */
  375    577   
    #[allow(missing_docs)] // documentation missing in model
         578  +
                           /* StructureGenerator.kt:166 */
  376    579   
    pub fn int_enum_list(&self) -> ::std::option::Option<&[i32]> {
         580  +
        /* StructureGenerator.kt:169 */
  377    581   
        self.int_enum_list.as_deref()
         582  +
        /* StructureGenerator.kt:166 */
  378    583   
    }
  379         -
    /// A list of lists of strings.
         584  +
    /// /* StructureGenerator.kt:231 */A list of lists of strings.
         585  +
    /* StructureGenerator.kt:166 */
  380    586   
    pub fn nested_string_list(
  381    587   
        &self,
  382    588   
    ) -> ::std::option::Option<&[::std::vec::Vec<::std::string::String>]> {
         589  +
        /* StructureGenerator.kt:169 */
  383    590   
        self.nested_string_list.as_deref()
         591  +
        /* StructureGenerator.kt:166 */
  384    592   
    }
         593  +
    /* StructureGenerator.kt:231 */
  385    594   
    #[allow(missing_docs)] // documentation missing in model
         595  +
                           /* StructureGenerator.kt:166 */
  386    596   
    pub fn structure_list(&self) -> ::std::option::Option<&[crate::model::StructureListMember]> {
         597  +
        /* StructureGenerator.kt:169 */
  387    598   
        self.structure_list.as_deref()
         599  +
        /* StructureGenerator.kt:166 */
  388    600   
    }
         601  +
    /* StructureGenerator.kt:231 */
  389    602   
    #[allow(missing_docs)] // documentation missing in model
         603  +
                           /* StructureGenerator.kt:166 */
  390    604   
    pub fn blob_list(&self) -> ::std::option::Option<&[::aws_smithy_types::Blob]> {
         605  +
        /* StructureGenerator.kt:169 */
  391    606   
        self.blob_list.as_deref()
         607  +
        /* StructureGenerator.kt:166 */
  392    608   
    }
         609  +
    /* StructureGenerator.kt:135 */
  393    610   
}
         611  +
/* ServerCodegenVisitor.kt:345 */
  394    612   
impl RpcV2CborListsInput {
  395         -
    /// Creates a new builder-style object to manufacture [`RpcV2CborListsInput`](crate::input::RpcV2CborListsInput).
         613  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`RpcV2CborListsInput`](crate::input::RpcV2CborListsInput).
         614  +
    /* ServerBuilderGenerator.kt:295 */
  396    615   
    pub fn builder() -> crate::input::rpc_v2_cbor_lists_input::Builder {
         616  +
        /* ServerBuilderGenerator.kt:296 */
  397    617   
        crate::input::rpc_v2_cbor_lists_input::Builder::default()
         618  +
        /* ServerBuilderGenerator.kt:295 */
  398    619   
    }
         620  +
    /* ServerCodegenVisitor.kt:345 */
  399    621   
}
         622  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  400    623   
impl crate::constrained::Constrained for crate::input::RpcV2CborListsInput {
  401    624   
    type Unconstrained = crate::input::rpc_v2_cbor_lists_input::Builder;
  402    625   
}
  403    626   
         627  +
/* StructureGenerator.kt:197 */
  404    628   
#[allow(missing_docs)] // documentation missing in model
         629  +
/* RustType.kt:516 */
  405    630   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
  406         -
pub struct SimpleScalarPropertiesInput {
         631  +
pub /* StructureGenerator.kt:201 */ struct SimpleScalarPropertiesInput {
         632  +
    /* StructureGenerator.kt:231 */
  407    633   
    #[allow(missing_docs)] // documentation missing in model
  408    634   
    pub true_boolean_value: ::std::option::Option<bool>,
         635  +
    /* StructureGenerator.kt:231 */
  409    636   
    #[allow(missing_docs)] // documentation missing in model
  410    637   
    pub false_boolean_value: ::std::option::Option<bool>,
         638  +
    /* StructureGenerator.kt:231 */
  411    639   
    #[allow(missing_docs)] // documentation missing in model
  412    640   
    pub byte_value: ::std::option::Option<i8>,
         641  +
    /* StructureGenerator.kt:231 */
  413    642   
    #[allow(missing_docs)] // documentation missing in model
  414    643   
    pub double_value: ::std::option::Option<f64>,
         644  +
    /* StructureGenerator.kt:231 */
  415    645   
    #[allow(missing_docs)] // documentation missing in model
  416    646   
    pub float_value: ::std::option::Option<f32>,
         647  +
    /* StructureGenerator.kt:231 */
  417    648   
    #[allow(missing_docs)] // documentation missing in model
  418    649   
    pub integer_value: ::std::option::Option<i32>,
         650  +
    /* StructureGenerator.kt:231 */
  419    651   
    #[allow(missing_docs)] // documentation missing in model
  420    652   
    pub long_value: ::std::option::Option<i64>,
         653  +
    /* StructureGenerator.kt:231 */
  421    654   
    #[allow(missing_docs)] // documentation missing in model
  422    655   
    pub short_value: ::std::option::Option<i16>,
         656  +
    /* StructureGenerator.kt:231 */
  423    657   
    #[allow(missing_docs)] // documentation missing in model
  424    658   
    pub string_value: ::std::option::Option<::std::string::String>,
         659  +
    /* StructureGenerator.kt:231 */
  425    660   
    #[allow(missing_docs)] // documentation missing in model
  426    661   
    pub blob_value: ::std::option::Option<::aws_smithy_types::Blob>,
         662  +
    /* StructureGenerator.kt:201 */
  427    663   
}
         664  +
/* StructureGenerator.kt:135 */
  428    665   
impl SimpleScalarPropertiesInput {
         666  +
    /* StructureGenerator.kt:231 */
  429    667   
    #[allow(missing_docs)] // documentation missing in model
         668  +
                           /* StructureGenerator.kt:166 */
  430    669   
    pub fn true_boolean_value(&self) -> ::std::option::Option<bool> {
         670  +
        /* StructureGenerator.kt:168 */
  431    671   
        self.true_boolean_value
         672  +
        /* StructureGenerator.kt:166 */
  432    673   
    }
         674  +
    /* StructureGenerator.kt:231 */
  433    675   
    #[allow(missing_docs)] // documentation missing in model
         676  +
                           /* StructureGenerator.kt:166 */
  434    677   
    pub fn false_boolean_value(&self) -> ::std::option::Option<bool> {
         678  +
        /* StructureGenerator.kt:168 */
  435    679   
        self.false_boolean_value
         680  +
        /* StructureGenerator.kt:166 */
  436    681   
    }
         682  +
    /* StructureGenerator.kt:231 */
  437    683   
    #[allow(missing_docs)] // documentation missing in model
         684  +
                           /* StructureGenerator.kt:166 */
  438    685   
    pub fn byte_value(&self) -> ::std::option::Option<i8> {
         686  +
        /* StructureGenerator.kt:168 */
  439    687   
        self.byte_value
         688  +
        /* StructureGenerator.kt:166 */
  440    689   
    }
         690  +
    /* StructureGenerator.kt:231 */
  441    691   
    #[allow(missing_docs)] // documentation missing in model
         692  +
                           /* StructureGenerator.kt:166 */
  442    693   
    pub fn double_value(&self) -> ::std::option::Option<f64> {
         694  +
        /* StructureGenerator.kt:168 */
  443    695   
        self.double_value
         696  +
        /* StructureGenerator.kt:166 */
  444    697   
    }
         698  +
    /* StructureGenerator.kt:231 */
  445    699   
    #[allow(missing_docs)] // documentation missing in model
         700  +
                           /* StructureGenerator.kt:166 */
  446    701   
    pub fn float_value(&self) -> ::std::option::Option<f32> {
         702  +
        /* StructureGenerator.kt:168 */
  447    703   
        self.float_value
         704  +
        /* StructureGenerator.kt:166 */
  448    705   
    }
         706  +
    /* StructureGenerator.kt:231 */
  449    707   
    #[allow(missing_docs)] // documentation missing in model
         708  +
                           /* StructureGenerator.kt:166 */
  450    709   
    pub fn integer_value(&self) -> ::std::option::Option<i32> {
         710  +
        /* StructureGenerator.kt:168 */
  451    711   
        self.integer_value
         712  +
        /* StructureGenerator.kt:166 */
  452    713   
    }
         714  +
    /* StructureGenerator.kt:231 */
  453    715   
    #[allow(missing_docs)] // documentation missing in model
         716  +
                           /* StructureGenerator.kt:166 */
  454    717   
    pub fn long_value(&self) -> ::std::option::Option<i64> {
         718  +
        /* StructureGenerator.kt:168 */
  455    719   
        self.long_value
         720  +
        /* StructureGenerator.kt:166 */
  456    721   
    }
         722  +
    /* StructureGenerator.kt:231 */
  457    723   
    #[allow(missing_docs)] // documentation missing in model
         724  +
                           /* StructureGenerator.kt:166 */
  458    725   
    pub fn short_value(&self) -> ::std::option::Option<i16> {
         726  +
        /* StructureGenerator.kt:168 */
  459    727   
        self.short_value
         728  +
        /* StructureGenerator.kt:166 */
  460    729   
    }
         730  +
    /* StructureGenerator.kt:231 */
  461    731   
    #[allow(missing_docs)] // documentation missing in model
         732  +
                           /* StructureGenerator.kt:166 */
  462    733   
    pub fn string_value(&self) -> ::std::option::Option<&str> {
         734  +
        /* StructureGenerator.kt:169 */
  463    735   
        self.string_value.as_deref()
         736  +
        /* StructureGenerator.kt:166 */
  464    737   
    }
         738  +
    /* StructureGenerator.kt:231 */
  465    739   
    #[allow(missing_docs)] // documentation missing in model
         740  +
                           /* StructureGenerator.kt:166 */
  466    741   
    pub fn blob_value(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
         742  +
        /* StructureGenerator.kt:170 */
  467    743   
        self.blob_value.as_ref()
         744  +
        /* StructureGenerator.kt:166 */
  468    745   
    }
         746  +
    /* StructureGenerator.kt:135 */
  469    747   
}
         748  +
/* ServerCodegenVisitor.kt:345 */
  470    749   
impl SimpleScalarPropertiesInput {
  471         -
    /// Creates a new builder-style object to manufacture [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
         750  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
         751  +
    /* ServerBuilderGenerator.kt:295 */
  472    752   
    pub fn builder() -> crate::input::simple_scalar_properties_input::Builder {
         753  +
        /* ServerBuilderGenerator.kt:296 */
  473    754   
        crate::input::simple_scalar_properties_input::Builder::default()
         755  +
        /* ServerBuilderGenerator.kt:295 */
  474    756   
    }
         757  +
    /* ServerCodegenVisitor.kt:345 */
  475    758   
}
         759  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  476    760   
impl crate::constrained::Constrained for crate::input::SimpleScalarPropertiesInput {
  477    761   
    type Unconstrained = crate::input::simple_scalar_properties_input::Builder;
  478    762   
}
  479    763   
         764  +
/* StructureGenerator.kt:197 */
  480    765   
#[allow(missing_docs)] // documentation missing in model
         766  +
/* RustType.kt:516 */
  481    767   
#[derive(
  482    768   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  483    769   
)]
  484         -
pub struct OptionalInputOutputInput {
         770  +
pub /* StructureGenerator.kt:201 */ struct OptionalInputOutputInput {
         771  +
    /* StructureGenerator.kt:231 */
  485    772   
    #[allow(missing_docs)] // documentation missing in model
  486    773   
    pub value: ::std::option::Option<::std::string::String>,
         774  +
    /* StructureGenerator.kt:201 */
  487    775   
}
         776  +
/* StructureGenerator.kt:135 */
  488    777   
impl OptionalInputOutputInput {
         778  +
    /* StructureGenerator.kt:231 */
  489    779   
    #[allow(missing_docs)] // documentation missing in model
         780  +
                           /* StructureGenerator.kt:166 */
  490    781   
    pub fn value(&self) -> ::std::option::Option<&str> {
         782  +
        /* StructureGenerator.kt:169 */
  491    783   
        self.value.as_deref()
         784  +
        /* StructureGenerator.kt:166 */
  492    785   
    }
         786  +
    /* StructureGenerator.kt:135 */
  493    787   
}
         788  +
/* ServerCodegenVisitor.kt:345 */
  494    789   
impl OptionalInputOutputInput {
  495         -
    /// Creates a new builder-style object to manufacture [`OptionalInputOutputInput`](crate::input::OptionalInputOutputInput).
         790  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`OptionalInputOutputInput`](crate::input::OptionalInputOutputInput).
         791  +
    /* ServerBuilderGenerator.kt:295 */
  496    792   
    pub fn builder() -> crate::input::optional_input_output_input::Builder {
         793  +
        /* ServerBuilderGenerator.kt:296 */
  497    794   
        crate::input::optional_input_output_input::Builder::default()
         795  +
        /* ServerBuilderGenerator.kt:295 */
  498    796   
    }
         797  +
    /* ServerCodegenVisitor.kt:345 */
  499    798   
}
         799  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  500    800   
impl crate::constrained::Constrained for crate::input::OptionalInputOutputInput {
  501    801   
    type Unconstrained = crate::input::optional_input_output_input::Builder;
  502    802   
}
  503    803   
         804  +
/* StructureGenerator.kt:197 */
  504    805   
#[allow(missing_docs)] // documentation missing in model
         806  +
/* RustType.kt:516 */
  505    807   
#[derive(
  506    808   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  507    809   
)]
  508         -
pub struct EmptyInputOutputInput {}
         810  +
pub /* StructureGenerator.kt:201 */ struct EmptyInputOutputInput {/* StructureGenerator.kt:201 */}
         811  +
/* ServerCodegenVisitor.kt:345 */
  509    812   
impl EmptyInputOutputInput {
  510         -
    /// Creates a new builder-style object to manufacture [`EmptyInputOutputInput`](crate::input::EmptyInputOutputInput).
         813  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`EmptyInputOutputInput`](crate::input::EmptyInputOutputInput).
         814  +
    /* ServerBuilderGenerator.kt:295 */
  511    815   
    pub fn builder() -> crate::input::empty_input_output_input::Builder {
         816  +
        /* ServerBuilderGenerator.kt:296 */
  512    817   
        crate::input::empty_input_output_input::Builder::default()
         818  +
        /* ServerBuilderGenerator.kt:295 */
  513    819   
    }
         820  +
    /* ServerCodegenVisitor.kt:345 */
  514    821   
}
         822  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  515    823   
impl crate::constrained::Constrained for crate::input::EmptyInputOutputInput {
  516    824   
    type Unconstrained = crate::input::empty_input_output_input::Builder;
  517    825   
}
  518    826   
         827  +
/* StructureGenerator.kt:197 */
  519    828   
#[allow(missing_docs)] // documentation missing in model
         829  +
/* RustType.kt:516 */
  520    830   
#[derive(
  521    831   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  522    832   
)]
  523         -
pub struct NoInputOutputInput {}
         833  +
pub /* StructureGenerator.kt:201 */ struct NoInputOutputInput {/* StructureGenerator.kt:201 */}
         834  +
/* ServerCodegenVisitor.kt:345 */
  524    835   
impl NoInputOutputInput {
  525         -
    /// Creates a new builder-style object to manufacture [`NoInputOutputInput`](crate::input::NoInputOutputInput).
         836  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`NoInputOutputInput`](crate::input::NoInputOutputInput).
         837  +
    /* ServerBuilderGenerator.kt:295 */
  526    838   
    pub fn builder() -> crate::input::no_input_output_input::Builder {
         839  +
        /* ServerBuilderGenerator.kt:296 */
  527    840   
        crate::input::no_input_output_input::Builder::default()
         841  +
        /* ServerBuilderGenerator.kt:295 */
  528    842   
    }
         843  +
    /* ServerCodegenVisitor.kt:345 */
  529    844   
}
         845  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  530    846   
impl crate::constrained::Constrained for crate::input::NoInputOutputInput {
  531    847   
    type Unconstrained = crate::input::no_input_output_input::Builder;
  532    848   
}
  533         -
/// See [`Float16Input`](crate::input::Float16Input).
         849  +
/// /* ServerBuilderGenerator.kt:171 */See [`Float16Input`](crate::input::Float16Input).
  534    850   
pub mod float16_input {
  535    851   
         852  +
    /* ServerBuilderGenerator.kt:461 */
  536    853   
    impl ::std::convert::From<Builder> for crate::input::Float16Input {
  537    854   
        fn from(builder: Builder) -> Self {
  538    855   
            builder.build()
  539    856   
        }
  540    857   
    }
  541         -
    /// A builder for [`Float16Input`](crate::input::Float16Input).
         858  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`Float16Input`](crate::input::Float16Input).
         859  +
    /* RustType.kt:516 */
  542    860   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  543         -
    pub struct Builder {}
         861  +
    /* ServerBuilderGenerator.kt:211 */
         862  +
    pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
         863  +
    /* ServerBuilderGenerator.kt:215 */
  544    864   
    impl Builder {
  545         -
        /// Consumes the builder and constructs a [`Float16Input`](crate::input::Float16Input).
         865  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`Float16Input`](crate::input::Float16Input).
         866  +
        /* ServerBuilderGenerator.kt:271 */
  546    867   
        pub fn build(self) -> crate::input::Float16Input {
  547    868   
            self.build_enforcing_all_constraints()
  548    869   
        }
         870  +
        /* ServerBuilderGenerator.kt:283 */
  549    871   
        fn build_enforcing_all_constraints(self) -> crate::input::Float16Input {
  550         -
            crate::input::Float16Input {}
         872  +
            /* ServerBuilderGenerator.kt:542 */
         873  +
            crate::input::Float16Input {
         874  +
            /* ServerBuilderGenerator.kt:542 */}
         875  +
            /* ServerBuilderGenerator.kt:283 */
  551    876   
        }
         877  +
        /* ServerBuilderGenerator.kt:215 */
  552    878   
    }
         879  +
         880  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  553    881   
}
  554         -
/// See [`SparseNullsOperationInput`](crate::input::SparseNullsOperationInput).
         882  +
/// /* ServerBuilderGenerator.kt:171 */See [`SparseNullsOperationInput`](crate::input::SparseNullsOperationInput).
  555    883   
pub mod sparse_nulls_operation_input {
  556    884   
         885  +
    /* ServerBuilderGenerator.kt:461 */
  557    886   
    impl ::std::convert::From<Builder> for crate::input::SparseNullsOperationInput {
  558    887   
        fn from(builder: Builder) -> Self {
  559    888   
            builder.build()
  560    889   
        }
  561    890   
    }
  562         -
    /// A builder for [`SparseNullsOperationInput`](crate::input::SparseNullsOperationInput).
         891  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`SparseNullsOperationInput`](crate::input::SparseNullsOperationInput).
         892  +
    /* RustType.kt:516 */
  563    893   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         894  +
    /* ServerBuilderGenerator.kt:211 */
  564    895   
    pub struct Builder {
         896  +
        /* ServerBuilderGenerator.kt:308 */
  565    897   
        pub(crate) sparse_string_list:
  566    898   
            ::std::option::Option<::std::vec::Vec<::std::option::Option<::std::string::String>>>,
         899  +
        /* ServerBuilderGenerator.kt:308 */
  567    900   
        pub(crate) sparse_string_map: ::std::option::Option<
  568    901   
            ::std::collections::HashMap<
  569    902   
                ::std::string::String,
  570    903   
                ::std::option::Option<::std::string::String>,
  571    904   
            >,
  572    905   
        >,
         906  +
        /* ServerBuilderGenerator.kt:211 */
  573    907   
    }
         908  +
    /* ServerBuilderGenerator.kt:215 */
  574    909   
    impl Builder {
         910  +
        /* ServerBuilderGenerator.kt:331 */
  575    911   
        #[allow(missing_docs)] // documentation missing in model
         912  +
                               /* ServerBuilderGenerator.kt:343 */
  576    913   
        pub fn sparse_string_list(
  577    914   
            mut self,
  578    915   
            input: ::std::option::Option<
  579    916   
                ::std::vec::Vec<::std::option::Option<::std::string::String>>,
  580    917   
            >,
  581    918   
        ) -> Self {
  582         -
            self.sparse_string_list = input;
         919  +
            /* ServerBuilderGenerator.kt:344 */
         920  +
            self.sparse_string_list =
         921  +
                /* ServerBuilderGenerator.kt:376 */input
         922  +
            /* ServerBuilderGenerator.kt:344 */;
  583    923   
            self
         924  +
            /* ServerBuilderGenerator.kt:343 */
  584    925   
        }
         926  +
        /* ServerBuilderGenerator.kt:426 */
  585    927   
        #[allow(missing_docs)] // documentation missing in model
         928  +
                               /* ServerBuilderGenerator.kt:428 */
  586    929   
        pub(crate) fn set_sparse_string_list(
  587    930   
            mut self,
  588    931   
            input: Option<
  589    932   
                impl ::std::convert::Into<::std::vec::Vec<::std::option::Option<::std::string::String>>>,
  590    933   
            >,
  591    934   
        ) -> Self {
         935  +
            /* ServerBuilderGenerator.kt:429 */
  592    936   
            self.sparse_string_list = input.map(|v| v.into());
  593    937   
            self
         938  +
            /* ServerBuilderGenerator.kt:428 */
  594    939   
        }
         940  +
        /* ServerBuilderGenerator.kt:331 */
  595    941   
        #[allow(missing_docs)] // documentation missing in model
         942  +
                               /* ServerBuilderGenerator.kt:343 */
  596    943   
        pub fn sparse_string_map(
  597    944   
            mut self,
  598    945   
            input: ::std::option::Option<
  599    946   
                ::std::collections::HashMap<
  600    947   
                    ::std::string::String,
  601    948   
                    ::std::option::Option<::std::string::String>,
  602    949   
                >,
  603    950   
            >,
  604    951   
        ) -> Self {
  605         -
            self.sparse_string_map = input;
         952  +
            /* ServerBuilderGenerator.kt:344 */
         953  +
            self.sparse_string_map =
         954  +
                /* ServerBuilderGenerator.kt:376 */input
         955  +
            /* ServerBuilderGenerator.kt:344 */;
  606    956   
            self
         957  +
            /* ServerBuilderGenerator.kt:343 */
  607    958   
        }
         959  +
        /* ServerBuilderGenerator.kt:426 */
  608    960   
        #[allow(missing_docs)] // documentation missing in model
         961  +
                               /* ServerBuilderGenerator.kt:428 */
  609    962   
        pub(crate) fn set_sparse_string_map(
  610    963   
            mut self,
  611    964   
            input: Option<
  612    965   
                impl ::std::convert::Into<
  613    966   
                    ::std::collections::HashMap<
  614    967   
                        ::std::string::String,
  615    968   
                        ::std::option::Option<::std::string::String>,
  616    969   
                    >,
  617    970   
                >,
  618    971   
            >,
  619    972   
        ) -> Self {
         973  +
            /* ServerBuilderGenerator.kt:429 */
  620    974   
            self.sparse_string_map = input.map(|v| v.into());
  621    975   
            self
         976  +
            /* ServerBuilderGenerator.kt:428 */
  622    977   
        }
  623         -
        /// Consumes the builder and constructs a [`SparseNullsOperationInput`](crate::input::SparseNullsOperationInput).
         978  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`SparseNullsOperationInput`](crate::input::SparseNullsOperationInput).
         979  +
        /* ServerBuilderGenerator.kt:271 */
  624    980   
        pub fn build(self) -> crate::input::SparseNullsOperationInput {
  625    981   
            self.build_enforcing_all_constraints()
  626    982   
        }
         983  +
        /* ServerBuilderGenerator.kt:283 */
  627    984   
        fn build_enforcing_all_constraints(self) -> crate::input::SparseNullsOperationInput {
         985  +
            /* ServerBuilderGenerator.kt:542 */
  628    986   
            crate::input::SparseNullsOperationInput {
         987  +
                /* ServerBuilderGenerator.kt:546 */
  629    988   
                sparse_string_list: self.sparse_string_list,
         989  +
                /* ServerBuilderGenerator.kt:546 */
  630    990   
                sparse_string_map: self.sparse_string_map,
         991  +
                /* ServerBuilderGenerator.kt:542 */
  631    992   
            }
         993  +
            /* ServerBuilderGenerator.kt:283 */
  632    994   
        }
         995  +
        /* ServerBuilderGenerator.kt:215 */
  633    996   
    }
         997  +
         998  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  634    999   
}
  635         -
/// See [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
        1000  +
/// /* ServerBuilderGenerator.kt:171 */See [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
  636   1001   
pub mod operation_with_defaults_input {
  637   1002   
        1003  +
    /* RustType.kt:516 */
  638   1004   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  639         -
    /// Holds one variant for each of the ways the builder can fail.
        1005  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        1006  +
    /* RustType.kt:516 */
  640   1007   
    #[non_exhaustive]
        1008  +
    /* ServerBuilderConstraintViolations.kt:75 */
  641   1009   
    #[allow(clippy::enum_variant_names)]
  642   1010   
    pub enum ConstraintViolation {
  643         -
        /// Constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`.
        1011  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`.
        1012  +
        /* RustType.kt:516 */
  644   1013   
        #[doc(hidden)]
        1014  +
        /* ServerBuilderConstraintViolations.kt:164 */
  645   1015   
        Defaults(crate::model::defaults::ConstraintViolation),
        1016  +
        /* ServerBuilderConstraintViolations.kt:75 */
  646   1017   
    }
        1018  +
    /* ServerBuilderConstraintViolations.kt:117 */
  647   1019   
    impl ::std::fmt::Display for ConstraintViolation {
        1020  +
        /* ServerBuilderConstraintViolations.kt:118 */
  648   1021   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1022  +
            /* ServerBuilderConstraintViolations.kt:119 */
  649   1023   
            match self {
  650         -
                ConstraintViolation::Defaults(_) => write!(f, "constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`"),
  651         -
            }
        1024  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Defaults(_) => write!(f, "constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`"),
        1025  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        1026  +
            /* ServerBuilderConstraintViolations.kt:118 */
  652   1027   
        }
        1028  +
        /* ServerBuilderConstraintViolations.kt:117 */
  653   1029   
    }
        1030  +
    /* ServerBuilderConstraintViolations.kt:84 */
  654   1031   
    impl ::std::error::Error for ConstraintViolation {}
        1032  +
    /* ServerBuilderConstraintViolations.kt:171 */
  655   1033   
    impl ConstraintViolation {
  656   1034   
        pub(crate) fn as_validation_exception_field(
  657   1035   
            self,
  658   1036   
            path: ::std::string::String,
  659   1037   
        ) -> crate::model::ValidationExceptionField {
  660   1038   
            match self {
  661   1039   
                ConstraintViolation::Defaults(inner) => {
  662   1040   
                    inner.as_validation_exception_field(path + "/defaults")
  663   1041   
                }
  664   1042   
            }
  665   1043   
        }
  666   1044   
    }
        1045  +
    /* ServerBuilderGenerator.kt:234 */
  667   1046   
    impl ::std::convert::From<ConstraintViolation>
  668   1047   
        for ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection
  669   1048   
    {
  670   1049   
        fn from(constraint_violation: ConstraintViolation) -> Self {
  671   1050   
            let first_validation_exception_field =
  672   1051   
                constraint_violation.as_validation_exception_field("".to_owned());
  673   1052   
            let validation_exception = crate::error::ValidationException {
  674   1053   
                message: format!(
  675   1054   
                    "1 validation error detected. {}",
  676   1055   
                    &first_validation_exception_field.message
  677   1056   
                ),
  678   1057   
                field_list: Some(vec![first_validation_exception_field]),
  679   1058   
            };
  680   1059   
            Self::ConstraintViolation(
  681   1060   
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
  682   1061   
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
  683   1062   
                            )
  684   1063   
        }
  685   1064   
    }
        1065  +
    /* ServerBuilderGenerator.kt:244 */
  686   1066   
    impl ::std::convert::From<Builder>
  687   1067   
        for crate::constrained::MaybeConstrained<crate::input::OperationWithDefaultsInput>
  688   1068   
    {
  689   1069   
        fn from(builder: Builder) -> Self {
  690   1070   
            Self::Unconstrained(builder)
  691   1071   
        }
  692   1072   
    }
        1073  +
    /* ServerBuilderGenerator.kt:446 */
  693   1074   
    impl ::std::convert::TryFrom<Builder> for crate::input::OperationWithDefaultsInput {
  694   1075   
        type Error = ConstraintViolation;
  695   1076   
  696   1077   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  697   1078   
            builder.build()
  698   1079   
        }
  699   1080   
    }
  700         -
    /// A builder for [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
        1081  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
        1082  +
    /* RustType.kt:516 */
  701   1083   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1084  +
    /* ServerBuilderGenerator.kt:211 */
  702   1085   
    pub struct Builder {
        1086  +
        /* ServerBuilderGenerator.kt:308 */
  703   1087   
        pub(crate) defaults:
  704   1088   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::Defaults>>,
        1089  +
        /* ServerBuilderGenerator.kt:308 */
  705   1090   
        pub(crate) client_optional_defaults:
  706   1091   
            ::std::option::Option<crate::model::ClientOptionalDefaults>,
        1092  +
        /* ServerBuilderGenerator.kt:308 */
  707   1093   
        pub(crate) top_level_default: ::std::option::Option<::std::string::String>,
        1094  +
        /* ServerBuilderGenerator.kt:308 */
  708   1095   
        pub(crate) other_top_level_default: ::std::option::Option<i32>,
        1096  +
        /* ServerBuilderGenerator.kt:211 */
  709   1097   
    }
        1098  +
    /* ServerBuilderGenerator.kt:215 */
  710   1099   
    impl Builder {
        1100  +
        /* ServerBuilderGenerator.kt:331 */
  711   1101   
        #[allow(missing_docs)] // documentation missing in model
        1102  +
                               /* ServerBuilderGenerator.kt:343 */
  712   1103   
        pub fn defaults(mut self, input: ::std::option::Option<crate::model::Defaults>) -> Self {
  713         -
            self.defaults = input.map(
  714         -
                #[allow(clippy::redundant_closure)]
  715         -
                |v| crate::constrained::MaybeConstrained::Constrained(v),
  716         -
            );
        1104  +
            /* ServerBuilderGenerator.kt:344 */
        1105  +
            self.defaults =
        1106  +
                /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
        1107  +
            /* ServerBuilderGenerator.kt:344 */;
  717   1108   
            self
        1109  +
            /* ServerBuilderGenerator.kt:343 */
  718   1110   
        }
        1111  +
        /* ServerBuilderGenerator.kt:426 */
  719   1112   
        #[allow(missing_docs)] // documentation missing in model
        1113  +
                               /* ServerBuilderGenerator.kt:428 */
  720   1114   
        pub(crate) fn set_defaults(
  721   1115   
            mut self,
  722   1116   
            input: Option<
  723   1117   
                impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::Defaults>>,
  724   1118   
            >,
  725   1119   
        ) -> Self {
        1120  +
            /* ServerBuilderGenerator.kt:429 */
  726   1121   
            self.defaults = input.map(|v| v.into());
  727   1122   
            self
        1123  +
            /* ServerBuilderGenerator.kt:428 */
  728   1124   
        }
        1125  +
        /* ServerBuilderGenerator.kt:331 */
  729   1126   
        #[allow(missing_docs)] // documentation missing in model
        1127  +
                               /* ServerBuilderGenerator.kt:343 */
  730   1128   
        pub fn client_optional_defaults(
  731   1129   
            mut self,
  732   1130   
            input: ::std::option::Option<crate::model::ClientOptionalDefaults>,
  733   1131   
        ) -> Self {
  734         -
            self.client_optional_defaults = input;
        1132  +
            /* ServerBuilderGenerator.kt:344 */
        1133  +
            self.client_optional_defaults =
        1134  +
                /* ServerBuilderGenerator.kt:376 */input
        1135  +
            /* ServerBuilderGenerator.kt:344 */;
  735   1136   
            self
        1137  +
            /* ServerBuilderGenerator.kt:343 */
  736   1138   
        }
        1139  +
        /* ServerBuilderGenerator.kt:426 */
  737   1140   
        #[allow(missing_docs)] // documentation missing in model
        1141  +
                               /* ServerBuilderGenerator.kt:428 */
  738   1142   
        pub(crate) fn set_client_optional_defaults(
  739   1143   
            mut self,
  740   1144   
            input: Option<impl ::std::convert::Into<crate::model::ClientOptionalDefaults>>,
  741   1145   
        ) -> Self {
        1146  +
            /* ServerBuilderGenerator.kt:429 */
  742   1147   
            self.client_optional_defaults = input.map(|v| v.into());
  743   1148   
            self
        1149  +
            /* ServerBuilderGenerator.kt:428 */
  744   1150   
        }
        1151  +
        /* ServerBuilderGenerator.kt:331 */
  745   1152   
        #[allow(missing_docs)] // documentation missing in model
        1153  +
                               /* ServerBuilderGenerator.kt:343 */
  746   1154   
        pub fn top_level_default(mut self, input: ::std::string::String) -> Self {
  747         -
            self.top_level_default = Some(input);
        1155  +
            /* ServerBuilderGenerator.kt:344 */
        1156  +
            self.top_level_default =
        1157  +
                /* ServerBuilderGenerator.kt:345 */Some(
        1158  +
                    /* ServerBuilderGenerator.kt:376 */input
        1159  +
                /* ServerBuilderGenerator.kt:345 */)
        1160  +
            /* ServerBuilderGenerator.kt:344 */;
  748   1161   
            self
        1162  +
            /* ServerBuilderGenerator.kt:343 */
  749   1163   
        }
        1164  +
        /* ServerBuilderGenerator.kt:426 */
  750   1165   
        #[allow(missing_docs)] // documentation missing in model
        1166  +
                               /* ServerBuilderGenerator.kt:428 */
  751   1167   
        pub(crate) fn set_top_level_default(
  752   1168   
            mut self,
  753   1169   
            input: impl ::std::convert::Into<::std::string::String>,
  754   1170   
        ) -> Self {
        1171  +
            /* ServerBuilderGenerator.kt:429 */
  755   1172   
            self.top_level_default = Some(input.into());
  756   1173   
            self
        1174  +
            /* ServerBuilderGenerator.kt:428 */
  757   1175   
        }
        1176  +
        /* ServerBuilderGenerator.kt:331 */
  758   1177   
        #[allow(missing_docs)] // documentation missing in model
        1178  +
                               /* ServerBuilderGenerator.kt:343 */
  759   1179   
        pub fn other_top_level_default(mut self, input: i32) -> Self {
  760         -
            self.other_top_level_default = Some(input);
        1180  +
            /* ServerBuilderGenerator.kt:344 */
        1181  +
            self.other_top_level_default =
        1182  +
                /* ServerBuilderGenerator.kt:345 */Some(
        1183  +
                    /* ServerBuilderGenerator.kt:376 */input
        1184  +
                /* ServerBuilderGenerator.kt:345 */)
        1185  +
            /* ServerBuilderGenerator.kt:344 */;
  761   1186   
            self
        1187  +
            /* ServerBuilderGenerator.kt:343 */
  762   1188   
        }
        1189  +
        /* ServerBuilderGenerator.kt:426 */
  763   1190   
        #[allow(missing_docs)] // documentation missing in model
        1191  +
                               /* ServerBuilderGenerator.kt:428 */
  764   1192   
        pub(crate) fn set_other_top_level_default(
  765   1193   
            mut self,
  766   1194   
            input: impl ::std::convert::Into<i32>,
  767   1195   
        ) -> Self {
        1196  +
            /* ServerBuilderGenerator.kt:429 */
  768   1197   
            self.other_top_level_default = Some(input.into());
  769   1198   
            self
        1199  +
            /* ServerBuilderGenerator.kt:428 */
  770   1200   
        }
  771         -
        /// Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
  772         -
        ///
        1201  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
        1202  +
        /// /* ServerBuilderGenerator.kt:260 */
  773   1203   
        /// The builder fails to construct a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput) if a [`ConstraintViolation`] occurs.
  774   1204   
        ///
        1205  +
        /* ServerBuilderGenerator.kt:271 */
  775   1206   
        pub fn build(
  776   1207   
            self,
  777   1208   
        ) -> Result<crate::input::OperationWithDefaultsInput, ConstraintViolation> {
  778   1209   
            self.build_enforcing_all_constraints()
  779   1210   
        }
        1211  +
        /* ServerBuilderGenerator.kt:283 */
  780   1212   
        fn build_enforcing_all_constraints(
  781   1213   
            self,
  782   1214   
        ) -> Result<crate::input::OperationWithDefaultsInput, ConstraintViolation> {
  783         -
            Ok(crate::input::OperationWithDefaultsInput {
  784         -
                defaults: self
  785         -
                    .defaults
  786         -
                    .map(|v| match v {
  787         -
                        crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
  788         -
                        crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
  789         -
                    })
  790         -
                    .map(|res| res.map_err(ConstraintViolation::Defaults))
  791         -
                    .transpose()?,
  792         -
                client_optional_defaults: self.client_optional_defaults,
  793         -
                top_level_default: self.top_level_default.unwrap_or_else(
  794         -
                    #[allow(clippy::redundant_closure)]
  795         -
                    || String::from("hi"),
  796         -
                ),
  797         -
                other_top_level_default: self.other_top_level_default.unwrap_or(0i32),
  798         -
            })
  799         -
        }
        1215  +
            /* ServerBuilderGenerator.kt:287 */
        1216  +
            Ok(
        1217  +
                /* ServerBuilderGenerator.kt:542 */
        1218  +
                crate::input::OperationWithDefaultsInput {
        1219  +
                    /* ServerBuilderGenerator.kt:546 */
        1220  +
                    defaults: self
        1221  +
                        .defaults
        1222  +
                        /* ServerBuilderGenerator.kt:602 */
        1223  +
                        .map(|v| match v {
        1224  +
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        1225  +
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        1226  +
                        })
        1227  +
                        /* ServerBuilderGenerator.kt:614 */
        1228  +
                        .map(|res| res.map_err(ConstraintViolation::Defaults))
        1229  +
                        .transpose()?,
        1230  +
                    /* ServerBuilderGenerator.kt:546 */
        1231  +
                    client_optional_defaults: self.client_optional_defaults,
        1232  +
                    /* ServerBuilderGenerator.kt:546 */
        1233  +
                    top_level_default: self
        1234  +
                        .top_level_default
        1235  +
                        /* ServerBuilderGeneratorCommon.kt:139 */
        1236  +
                        .unwrap_or_else(
        1237  +
                            #[allow(clippy::redundant_closure)]
        1238  +
                            || String::from("hi"),
        1239  +
                        ),
        1240  +
                    /* ServerBuilderGenerator.kt:546 */
        1241  +
                    other_top_level_default: self
        1242  +
                        .other_top_level_default
        1243  +
                        /* ServerBuilderGeneratorCommon.kt:135 */
        1244  +
                        .unwrap_or(0i32),
        1245  +
                    /* ServerBuilderGenerator.kt:542 */
        1246  +
                }, /* ServerBuilderGenerator.kt:287 */
        1247  +
            )
        1248  +
            /* ServerBuilderGenerator.kt:283 */
        1249  +
        }
        1250  +
        /* ServerBuilderGenerator.kt:215 */
  800   1251   
    }
        1252  +
        1253  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  801   1254   
}
  802         -
/// See [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
        1255  +
/// /* ServerBuilderGenerator.kt:171 */See [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
  803   1256   
pub mod fractional_seconds_input {
  804   1257   
        1258  +
    /* ServerBuilderGenerator.kt:461 */
  805   1259   
    impl ::std::convert::From<Builder> for crate::input::FractionalSecondsInput {
  806   1260   
        fn from(builder: Builder) -> Self {
  807   1261   
            builder.build()
  808   1262   
        }
  809   1263   
    }
  810         -
    /// A builder for [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
        1264  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
        1265  +
    /* RustType.kt:516 */
  811   1266   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  812         -
    pub struct Builder {}
        1267  +
    /* ServerBuilderGenerator.kt:211 */
        1268  +
    pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
        1269  +
    /* ServerBuilderGenerator.kt:215 */
  813   1270   
    impl Builder {
  814         -
        /// Consumes the builder and constructs a [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
        1271  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
        1272  +
        /* ServerBuilderGenerator.kt:271 */
  815   1273   
        pub fn build(self) -> crate::input::FractionalSecondsInput {
  816   1274   
            self.build_enforcing_all_constraints()
  817   1275   
        }
        1276  +
        /* ServerBuilderGenerator.kt:283 */
  818   1277   
        fn build_enforcing_all_constraints(self) -> crate::input::FractionalSecondsInput {
  819         -
            crate::input::FractionalSecondsInput {}
        1278  +
            /* ServerBuilderGenerator.kt:542 */
        1279  +
            crate::input::FractionalSecondsInput {
        1280  +
            /* ServerBuilderGenerator.kt:542 */}
        1281  +
            /* ServerBuilderGenerator.kt:283 */
  820   1282   
        }
        1283  +
        /* ServerBuilderGenerator.kt:215 */
  821   1284   
    }
        1285  +
        1286  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  822   1287   
}
  823         -
/// See [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
        1288  +
/// /* ServerBuilderGenerator.kt:171 */See [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
  824   1289   
pub mod greeting_with_errors_input {
  825   1290   
        1291  +
    /* ServerBuilderGenerator.kt:461 */
  826   1292   
    impl ::std::convert::From<Builder> for crate::input::GreetingWithErrorsInput {
  827   1293   
        fn from(builder: Builder) -> Self {
  828   1294   
            builder.build()
  829   1295   
        }
  830   1296   
    }
  831         -
    /// A builder for [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
        1297  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
        1298  +
    /* RustType.kt:516 */
  832   1299   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  833         -
    pub struct Builder {}
        1300  +
    /* ServerBuilderGenerator.kt:211 */
        1301  +
    pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
        1302  +
    /* ServerBuilderGenerator.kt:215 */
  834   1303   
    impl Builder {
  835         -
        /// Consumes the builder and constructs a [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
        1304  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
        1305  +
        /* ServerBuilderGenerator.kt:271 */
  836   1306   
        pub fn build(self) -> crate::input::GreetingWithErrorsInput {
  837   1307   
            self.build_enforcing_all_constraints()
  838   1308   
        }
        1309  +
        /* ServerBuilderGenerator.kt:283 */
  839   1310   
        fn build_enforcing_all_constraints(self) -> crate::input::GreetingWithErrorsInput {
  840         -
            crate::input::GreetingWithErrorsInput {}
        1311  +
            /* ServerBuilderGenerator.kt:542 */
        1312  +
            crate::input::GreetingWithErrorsInput {
        1313  +
            /* ServerBuilderGenerator.kt:542 */}
        1314  +
            /* ServerBuilderGenerator.kt:283 */
  841   1315   
        }
        1316  +
        /* ServerBuilderGenerator.kt:215 */
  842   1317   
    }
        1318  +
        1319  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  843   1320   
}
  844         -
/// See [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
        1321  +
/// /* ServerBuilderGenerator.kt:171 */See [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
  845   1322   
pub mod recursive_shapes_input {
  846   1323   
        1324  +
    /* ServerBuilderGenerator.kt:461 */
  847   1325   
    impl ::std::convert::From<Builder> for crate::input::RecursiveShapesInput {
  848   1326   
        fn from(builder: Builder) -> Self {
  849   1327   
            builder.build()
  850   1328   
        }
  851   1329   
    }
  852         -
    /// A builder for [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
        1330  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
        1331  +
    /* RustType.kt:516 */
  853   1332   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1333  +
    /* ServerBuilderGenerator.kt:211 */
  854   1334   
    pub struct Builder {
        1335  +
        /* ServerBuilderGenerator.kt:308 */
  855   1336   
        pub(crate) nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
        1337  +
        /* ServerBuilderGenerator.kt:211 */
  856   1338   
    }
        1339  +
    /* ServerBuilderGenerator.kt:215 */
  857   1340   
    impl Builder {
        1341  +
        /* ServerBuilderGenerator.kt:331 */
  858   1342   
        #[allow(missing_docs)] // documentation missing in model
        1343  +
                               /* ServerBuilderGenerator.kt:343 */
  859   1344   
        pub fn nested(
  860   1345   
            mut self,
  861   1346   
            input: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
  862   1347   
        ) -> Self {
  863         -
            self.nested = input;
        1348  +
            /* ServerBuilderGenerator.kt:344 */
        1349  +
            self.nested =
        1350  +
                /* ServerBuilderGenerator.kt:376 */input
        1351  +
            /* ServerBuilderGenerator.kt:344 */;
  864   1352   
            self
        1353  +
            /* ServerBuilderGenerator.kt:343 */
  865   1354   
        }
        1355  +
        /* ServerBuilderGenerator.kt:426 */
  866   1356   
        #[allow(missing_docs)] // documentation missing in model
        1357  +
                               /* ServerBuilderGenerator.kt:428 */
  867   1358   
        pub(crate) fn set_nested(
  868   1359   
            mut self,
  869   1360   
            input: Option<
  870   1361   
                impl ::std::convert::Into<crate::model::RecursiveShapesInputOutputNested1>,
  871   1362   
            >,
  872   1363   
        ) -> Self {
        1364  +
            /* ServerBuilderGenerator.kt:429 */
  873   1365   
            self.nested = input.map(|v| v.into());
  874   1366   
            self
        1367  +
            /* ServerBuilderGenerator.kt:428 */
  875   1368   
        }
  876         -
        /// Consumes the builder and constructs a [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
        1369  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
        1370  +
        /* ServerBuilderGenerator.kt:271 */
  877   1371   
        pub fn build(self) -> crate::input::RecursiveShapesInput {
  878   1372   
            self.build_enforcing_all_constraints()
  879   1373   
        }
        1374  +
        /* ServerBuilderGenerator.kt:283 */
  880   1375   
        fn build_enforcing_all_constraints(self) -> crate::input::RecursiveShapesInput {
        1376  +
            /* ServerBuilderGenerator.kt:542 */
  881   1377   
            crate::input::RecursiveShapesInput {
        1378  +
                /* ServerBuilderGenerator.kt:546 */
  882   1379   
                nested: self.nested,
        1380  +
                /* ServerBuilderGenerator.kt:542 */
  883   1381   
            }
        1382  +
            /* ServerBuilderGenerator.kt:283 */
  884   1383   
        }
        1384  +
        /* ServerBuilderGenerator.kt:215 */
  885   1385   
    }
        1386  +
        1387  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  886   1388   
}
  887         -
/// See [`RpcV2CborSparseMapsInput`](crate::input::RpcV2CborSparseMapsInput).
        1389  +
/// /* ServerBuilderGenerator.kt:171 */See [`RpcV2CborSparseMapsInput`](crate::input::RpcV2CborSparseMapsInput).
  888   1390   
pub mod rpc_v2_cbor_sparse_maps_input {
  889   1391   
        1392  +
    /* RustType.kt:516 */
  890   1393   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  891         -
    /// Holds one variant for each of the ways the builder can fail.
        1394  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        1395  +
    /* RustType.kt:516 */
  892   1396   
    #[non_exhaustive]
        1397  +
    /* ServerBuilderConstraintViolations.kt:75 */
  893   1398   
    #[allow(clippy::enum_variant_names)]
  894   1399   
    pub enum ConstraintViolation {
  895         -
        /// Constraint violation occurred building member `sparse_set_map` when building `RpcV2CborSparseMapsInput`.
        1400  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `sparse_set_map` when building `RpcV2CborSparseMapsInput`.
        1401  +
        /* RustType.kt:516 */
  896   1402   
        #[doc(hidden)]
        1403  +
        /* ServerBuilderConstraintViolations.kt:164 */
  897   1404   
        SparseSetMap(crate::model::sparse_set_map::ConstraintViolation),
        1405  +
        /* ServerBuilderConstraintViolations.kt:75 */
  898   1406   
    }
        1407  +
    /* ServerBuilderConstraintViolations.kt:117 */
  899   1408   
    impl ::std::fmt::Display for ConstraintViolation {
        1409  +
        /* ServerBuilderConstraintViolations.kt:118 */
  900   1410   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1411  +
            /* ServerBuilderConstraintViolations.kt:119 */
  901   1412   
            match self {
  902         -
                ConstraintViolation::SparseSetMap(_) => write!(f, "constraint violation occurred building member `sparse_set_map` when building `RpcV2CborSparseMapsInput`"),
  903         -
            }
        1413  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::SparseSetMap(_) => write!(f, "constraint violation occurred building member `sparse_set_map` when building `RpcV2CborSparseMapsInput`"),
        1414  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        1415  +
            /* ServerBuilderConstraintViolations.kt:118 */
  904   1416   
        }
        1417  +
        /* ServerBuilderConstraintViolations.kt:117 */
  905   1418   
    }
        1419  +
    /* ServerBuilderConstraintViolations.kt:84 */
  906   1420   
    impl ::std::error::Error for ConstraintViolation {}
        1421  +
    /* ServerBuilderConstraintViolations.kt:171 */
  907   1422   
    impl ConstraintViolation {
  908   1423   
        pub(crate) fn as_validation_exception_field(
  909   1424   
            self,
  910   1425   
            path: ::std::string::String,
  911   1426   
        ) -> crate::model::ValidationExceptionField {
  912   1427   
            match self {
  913   1428   
                ConstraintViolation::SparseSetMap(inner) => {
  914   1429   
                    inner.as_validation_exception_field(path + "/sparseSetMap")
  915   1430   
                }
  916   1431   
            }
  917   1432   
        }
  918   1433   
    }
        1434  +
    /* ServerBuilderGenerator.kt:234 */
  919   1435   
    impl ::std::convert::From<ConstraintViolation>
  920   1436   
        for ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection
  921   1437   
    {
  922   1438   
        fn from(constraint_violation: ConstraintViolation) -> Self {
  923   1439   
            let first_validation_exception_field =
  924   1440   
                constraint_violation.as_validation_exception_field("".to_owned());
  925   1441   
            let validation_exception = crate::error::ValidationException {
  926   1442   
                message: format!(
  927   1443   
                    "1 validation error detected. {}",
  928   1444   
                    &first_validation_exception_field.message
  929   1445   
                ),
  930   1446   
                field_list: Some(vec![first_validation_exception_field]),
  931   1447   
            };
  932   1448   
            Self::ConstraintViolation(
  933   1449   
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
  934   1450   
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
  935   1451   
                            )
  936   1452   
        }
  937   1453   
    }
        1454  +
    /* ServerBuilderGenerator.kt:244 */
  938   1455   
    impl ::std::convert::From<Builder>
  939   1456   
        for crate::constrained::MaybeConstrained<crate::input::RpcV2CborSparseMapsInput>
  940   1457   
    {
  941   1458   
        fn from(builder: Builder) -> Self {
  942   1459   
            Self::Unconstrained(builder)
  943   1460   
        }
  944   1461   
    }
        1462  +
    /* ServerBuilderGenerator.kt:446 */
  945   1463   
    impl ::std::convert::TryFrom<Builder> for crate::input::RpcV2CborSparseMapsInput {
  946   1464   
        type Error = ConstraintViolation;
  947   1465   
  948   1466   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  949   1467   
            builder.build()
  950   1468   
        }
  951   1469   
    }
  952         -
    /// A builder for [`RpcV2CborSparseMapsInput`](crate::input::RpcV2CborSparseMapsInput).
        1470  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`RpcV2CborSparseMapsInput`](crate::input::RpcV2CborSparseMapsInput).
        1471  +
    /* RustType.kt:516 */
  953   1472   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1473  +
    /* ServerBuilderGenerator.kt:211 */
  954   1474   
    pub struct Builder {
        1475  +
        /* ServerBuilderGenerator.kt:308 */
  955   1476   
        pub(crate) sparse_struct_map: ::std::option::Option<
  956   1477   
            ::std::collections::HashMap<
  957   1478   
                ::std::string::String,
  958   1479   
                ::std::option::Option<crate::model::GreetingStruct>,
  959   1480   
            >,
  960   1481   
        >,
        1482  +
        /* ServerBuilderGenerator.kt:308 */
  961   1483   
        pub(crate) sparse_number_map: ::std::option::Option<
  962   1484   
            ::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
  963   1485   
        >,
        1486  +
        /* ServerBuilderGenerator.kt:308 */
  964   1487   
        pub(crate) sparse_boolean_map: ::std::option::Option<
  965   1488   
            ::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
  966   1489   
        >,
        1490  +
        /* ServerBuilderGenerator.kt:308 */
  967   1491   
        pub(crate) sparse_string_map: ::std::option::Option<
  968   1492   
            ::std::collections::HashMap<
  969   1493   
                ::std::string::String,
  970   1494   
                ::std::option::Option<::std::string::String>,
  971   1495   
            >,
  972   1496   
        >,
        1497  +
        /* ServerBuilderGenerator.kt:308 */
  973   1498   
        pub(crate) sparse_set_map: ::std::option::Option<
  974   1499   
            crate::constrained::MaybeConstrained<
  975   1500   
                crate::constrained::sparse_set_map_constrained::SparseSetMapConstrained,
  976   1501   
            >,
  977   1502   
        >,
        1503  +
        /* ServerBuilderGenerator.kt:211 */
  978   1504   
    }
        1505  +
    /* ServerBuilderGenerator.kt:215 */
  979   1506   
    impl Builder {
        1507  +
        /* ServerBuilderGenerator.kt:331 */
  980   1508   
        #[allow(missing_docs)] // documentation missing in model
        1509  +
                               /* ServerBuilderGenerator.kt:343 */
  981   1510   
        pub fn sparse_struct_map(
  982   1511   
            mut self,
  983   1512   
            input: ::std::option::Option<
  984   1513   
                ::std::collections::HashMap<
  985   1514   
                    ::std::string::String,
  986   1515   
                    ::std::option::Option<crate::model::GreetingStruct>,
  987   1516   
                >,
  988   1517   
            >,
  989   1518   
        ) -> Self {
  990         -
            self.sparse_struct_map = input;
        1519  +
            /* ServerBuilderGenerator.kt:344 */
        1520  +
            self.sparse_struct_map =
        1521  +
                /* ServerBuilderGenerator.kt:376 */input
        1522  +
            /* ServerBuilderGenerator.kt:344 */;
  991   1523   
            self
        1524  +
            /* ServerBuilderGenerator.kt:343 */
  992   1525   
        }
        1526  +
        /* ServerBuilderGenerator.kt:426 */
  993   1527   
        #[allow(missing_docs)] // documentation missing in model
        1528  +
                               /* ServerBuilderGenerator.kt:428 */
  994   1529   
        pub(crate) fn set_sparse_struct_map(
  995   1530   
            mut self,
  996   1531   
            input: Option<
  997   1532   
                impl ::std::convert::Into<
  998   1533   
                    ::std::collections::HashMap<
  999   1534   
                        ::std::string::String,
 1000   1535   
                        ::std::option::Option<crate::model::GreetingStruct>,
 1001   1536   
                    >,
 1002   1537   
                >,
 1003   1538   
            >,
 1004   1539   
        ) -> Self {
        1540  +
            /* ServerBuilderGenerator.kt:429 */
 1005   1541   
            self.sparse_struct_map = input.map(|v| v.into());
 1006   1542   
            self
        1543  +
            /* ServerBuilderGenerator.kt:428 */
 1007   1544   
        }
        1545  +
        /* ServerBuilderGenerator.kt:331 */
 1008   1546   
        #[allow(missing_docs)] // documentation missing in model
        1547  +
                               /* ServerBuilderGenerator.kt:343 */
 1009   1548   
        pub fn sparse_number_map(
 1010   1549   
            mut self,
 1011   1550   
            input: ::std::option::Option<
 1012   1551   
                ::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
 1013   1552   
            >,
 1014   1553   
        ) -> Self {
 1015         -
            self.sparse_number_map = input;
        1554  +
            /* ServerBuilderGenerator.kt:344 */
        1555  +
            self.sparse_number_map =
        1556  +
                /* ServerBuilderGenerator.kt:376 */input
        1557  +
            /* ServerBuilderGenerator.kt:344 */;
 1016   1558   
            self
        1559  +
            /* ServerBuilderGenerator.kt:343 */
 1017   1560   
        }
        1561  +
        /* ServerBuilderGenerator.kt:426 */
 1018   1562   
        #[allow(missing_docs)] // documentation missing in model
        1563  +
                               /* ServerBuilderGenerator.kt:428 */
 1019   1564   
        pub(crate) fn set_sparse_number_map(
 1020   1565   
            mut self,
 1021   1566   
            input: Option<
 1022   1567   
                impl ::std::convert::Into<
 1023   1568   
                    ::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
 1024   1569   
                >,
 1025   1570   
            >,
 1026   1571   
        ) -> Self {
        1572  +
            /* ServerBuilderGenerator.kt:429 */
 1027   1573   
            self.sparse_number_map = input.map(|v| v.into());
 1028   1574   
            self
        1575  +
            /* ServerBuilderGenerator.kt:428 */
 1029   1576   
        }
        1577  +
        /* ServerBuilderGenerator.kt:331 */
 1030   1578   
        #[allow(missing_docs)] // documentation missing in model
        1579  +
                               /* ServerBuilderGenerator.kt:343 */
 1031   1580   
        pub fn sparse_boolean_map(
 1032   1581   
            mut self,
 1033   1582   
            input: ::std::option::Option<
 1034   1583   
                ::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
 1035   1584   
            >,
 1036   1585   
        ) -> Self {
 1037         -
            self.sparse_boolean_map = input;
        1586  +
            /* ServerBuilderGenerator.kt:344 */
        1587  +
            self.sparse_boolean_map =
        1588  +
                /* ServerBuilderGenerator.kt:376 */input
        1589  +
            /* ServerBuilderGenerator.kt:344 */;
 1038   1590   
            self
        1591  +
            /* ServerBuilderGenerator.kt:343 */
 1039   1592   
        }
        1593  +
        /* ServerBuilderGenerator.kt:426 */
 1040   1594   
        #[allow(missing_docs)] // documentation missing in model
        1595  +
                               /* ServerBuilderGenerator.kt:428 */
 1041   1596   
        pub(crate) fn set_sparse_boolean_map(
 1042   1597   
            mut self,
 1043   1598   
            input: Option<
 1044   1599   
                impl ::std::convert::Into<
 1045   1600   
                    ::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
 1046   1601   
                >,
 1047   1602   
            >,
 1048   1603   
        ) -> Self {
        1604  +
            /* ServerBuilderGenerator.kt:429 */
 1049   1605   
            self.sparse_boolean_map = input.map(|v| v.into());
 1050   1606   
            self
        1607  +
            /* ServerBuilderGenerator.kt:428 */
 1051   1608   
        }
        1609  +
        /* ServerBuilderGenerator.kt:331 */
 1052   1610   
        #[allow(missing_docs)] // documentation missing in model
        1611  +
                               /* ServerBuilderGenerator.kt:343 */
 1053   1612   
        pub fn sparse_string_map(
 1054   1613   
            mut self,
 1055   1614   
            input: ::std::option::Option<
 1056   1615   
                ::std::collections::HashMap<
 1057   1616   
                    ::std::string::String,
 1058   1617   
                    ::std::option::Option<::std::string::String>,
 1059   1618   
                >,
 1060   1619   
            >,
 1061   1620   
        ) -> Self {
 1062         -
            self.sparse_string_map = input;
        1621  +
            /* ServerBuilderGenerator.kt:344 */
        1622  +
            self.sparse_string_map =
        1623  +
                /* ServerBuilderGenerator.kt:376 */input
        1624  +
            /* ServerBuilderGenerator.kt:344 */;
 1063   1625   
            self
        1626  +
            /* ServerBuilderGenerator.kt:343 */
 1064   1627   
        }
        1628  +
        /* ServerBuilderGenerator.kt:426 */
 1065   1629   
        #[allow(missing_docs)] // documentation missing in model
        1630  +
                               /* ServerBuilderGenerator.kt:428 */
 1066   1631   
        pub(crate) fn set_sparse_string_map(
 1067   1632   
            mut self,
 1068   1633   
            input: Option<
 1069   1634   
                impl ::std::convert::Into<
 1070   1635   
                    ::std::collections::HashMap<
 1071   1636   
                        ::std::string::String,
 1072   1637   
                        ::std::option::Option<::std::string::String>,
 1073   1638   
                    >,
 1074   1639   
                >,
 1075   1640   
            >,
 1076   1641   
        ) -> Self {
        1642  +
            /* ServerBuilderGenerator.kt:429 */
 1077   1643   
            self.sparse_string_map = input.map(|v| v.into());
 1078   1644   
            self
        1645  +
            /* ServerBuilderGenerator.kt:428 */
 1079   1646   
        }
        1647  +
        /* ServerBuilderGenerator.kt:331 */
 1080   1648   
        #[allow(missing_docs)] // documentation missing in model
        1649  +
                               /* ServerBuilderGenerator.kt:343 */
 1081   1650   
        pub fn sparse_set_map(
 1082   1651   
            mut self,
 1083   1652   
            input: ::std::option::Option<
 1084   1653   
                ::std::collections::HashMap<
 1085   1654   
                    ::std::string::String,
 1086   1655   
                    ::std::option::Option<crate::model::StringSet>,
 1087   1656   
                >,
 1088   1657   
            >,
 1089   1658   
        ) -> Self {
 1090         -
            self.sparse_set_map = input.map(
 1091         -
                #[allow(clippy::redundant_closure)]
 1092         -
                |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
 1093         -
            );
        1659  +
            /* ServerBuilderGenerator.kt:344 */
        1660  +
            self.sparse_set_map =
        1661  +
                /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
        1662  +
                    /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
        1663  +
                /* ServerBuilderGenerator.kt:369 */)
        1664  +
            /* ServerBuilderGenerator.kt:344 */;
 1094   1665   
            self
        1666  +
            /* ServerBuilderGenerator.kt:343 */
 1095   1667   
        }
        1668  +
        /* ServerBuilderGenerator.kt:426 */
 1096   1669   
        #[allow(missing_docs)] // documentation missing in model
        1670  +
                               /* ServerBuilderGenerator.kt:428 */
 1097   1671   
        pub(crate) fn set_sparse_set_map(
 1098   1672   
            mut self,
 1099   1673   
            input: Option<
 1100   1674   
                impl ::std::convert::Into<
 1101   1675   
                    crate::constrained::MaybeConstrained<
 1102   1676   
                        crate::constrained::sparse_set_map_constrained::SparseSetMapConstrained,
 1103   1677   
                    >,
 1104   1678   
                >,
 1105   1679   
            >,
 1106   1680   
        ) -> Self {
        1681  +
            /* ServerBuilderGenerator.kt:429 */
 1107   1682   
            self.sparse_set_map = input.map(|v| v.into());
 1108   1683   
            self
        1684  +
            /* ServerBuilderGenerator.kt:428 */
 1109   1685   
        }
 1110         -
        /// Consumes the builder and constructs a [`RpcV2CborSparseMapsInput`](crate::input::RpcV2CborSparseMapsInput).
 1111         -
        ///
        1686  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`RpcV2CborSparseMapsInput`](crate::input::RpcV2CborSparseMapsInput).
        1687  +
        /// /* ServerBuilderGenerator.kt:260 */
 1112   1688   
        /// The builder fails to construct a [`RpcV2CborSparseMapsInput`](crate::input::RpcV2CborSparseMapsInput) if a [`ConstraintViolation`] occurs.
 1113   1689   
        ///
        1690  +
        /* ServerBuilderGenerator.kt:271 */
 1114   1691   
        pub fn build(self) -> Result<crate::input::RpcV2CborSparseMapsInput, ConstraintViolation> {
 1115   1692   
            self.build_enforcing_all_constraints()
 1116   1693   
        }
        1694  +
        /* ServerBuilderGenerator.kt:283 */
 1117   1695   
        fn build_enforcing_all_constraints(
 1118   1696   
            self,
 1119   1697   
        ) -> Result<crate::input::RpcV2CborSparseMapsInput, ConstraintViolation> {
 1120         -
            Ok(crate::input::RpcV2CborSparseMapsInput {
 1121         -
                sparse_struct_map: self.sparse_struct_map,
 1122         -
                sparse_number_map: self.sparse_number_map,
 1123         -
                sparse_boolean_map: self.sparse_boolean_map,
 1124         -
                sparse_string_map: self.sparse_string_map,
 1125         -
                sparse_set_map: self
 1126         -
                    .sparse_set_map
 1127         -
                    .map(|v| match v {
 1128         -
                        crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 1129         -
                        crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 1130         -
                    })
 1131         -
                    .map(|res| {
 1132         -
                        res.map(|v| v.into())
 1133         -
                            .map_err(ConstraintViolation::SparseSetMap)
 1134         -
                    })
 1135         -
                    .transpose()?,
 1136         -
            })
 1137         -
        }
        1698  +
            /* ServerBuilderGenerator.kt:287 */
        1699  +
            Ok(
        1700  +
                /* ServerBuilderGenerator.kt:542 */
        1701  +
                crate::input::RpcV2CborSparseMapsInput {
        1702  +
                    /* ServerBuilderGenerator.kt:546 */
        1703  +
                    sparse_struct_map: self.sparse_struct_map,
        1704  +
                    /* ServerBuilderGenerator.kt:546 */
        1705  +
                    sparse_number_map: self.sparse_number_map,
        1706  +
                    /* ServerBuilderGenerator.kt:546 */
        1707  +
                    sparse_boolean_map: self.sparse_boolean_map,
        1708  +
                    /* ServerBuilderGenerator.kt:546 */
        1709  +
                    sparse_string_map: self.sparse_string_map,
        1710  +
                    /* ServerBuilderGenerator.kt:546 */
        1711  +
                    sparse_set_map: self
        1712  +
                        .sparse_set_map
        1713  +
                        /* ServerBuilderGenerator.kt:602 */
        1714  +
                        .map(|v| match v {
        1715  +
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        1716  +
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        1717  +
                        })
        1718  +
                        /* ServerBuilderGenerator.kt:614 */
        1719  +
                        .map(|res| {
        1720  +
                            res.map(|v| v.into())
        1721  +
                                .map_err(ConstraintViolation::SparseSetMap)
        1722  +
                        })
        1723  +
                        .transpose()?,
        1724  +
                    /* ServerBuilderGenerator.kt:542 */
        1725  +
                }, /* ServerBuilderGenerator.kt:287 */
        1726  +
            )
        1727  +
            /* ServerBuilderGenerator.kt:283 */
        1728  +
        }
        1729  +
        /* ServerBuilderGenerator.kt:215 */
 1138   1730   
    }
        1731  +
        1732  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1139   1733   
}
 1140         -
/// See [`RpcV2CborDenseMapsInput`](crate::input::RpcV2CborDenseMapsInput).
        1734  +
/// /* ServerBuilderGenerator.kt:171 */See [`RpcV2CborDenseMapsInput`](crate::input::RpcV2CborDenseMapsInput).
 1141   1735   
pub mod rpc_v2_cbor_dense_maps_input {
 1142   1736   
        1737  +
    /* RustType.kt:516 */
 1143   1738   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1144         -
    /// Holds one variant for each of the ways the builder can fail.
        1739  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        1740  +
    /* RustType.kt:516 */
 1145   1741   
    #[non_exhaustive]
        1742  +
    /* ServerBuilderConstraintViolations.kt:75 */
 1146   1743   
    #[allow(clippy::enum_variant_names)]
 1147   1744   
    pub enum ConstraintViolation {
 1148         -
        /// Constraint violation occurred building member `dense_set_map` when building `RpcV2CborDenseMapsInput`.
        1745  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `dense_set_map` when building `RpcV2CborDenseMapsInput`.
        1746  +
        /* RustType.kt:516 */
 1149   1747   
        #[doc(hidden)]
        1748  +
        /* ServerBuilderConstraintViolations.kt:164 */
 1150   1749   
        DenseSetMap(crate::model::dense_set_map::ConstraintViolation),
        1750  +
        /* ServerBuilderConstraintViolations.kt:75 */
 1151   1751   
    }
        1752  +
    /* ServerBuilderConstraintViolations.kt:117 */
 1152   1753   
    impl ::std::fmt::Display for ConstraintViolation {
        1754  +
        /* ServerBuilderConstraintViolations.kt:118 */
 1153   1755   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1756  +
            /* ServerBuilderConstraintViolations.kt:119 */
 1154   1757   
            match self {
 1155         -
                ConstraintViolation::DenseSetMap(_) => write!(f, "constraint violation occurred building member `dense_set_map` when building `RpcV2CborDenseMapsInput`"),
 1156         -
            }
        1758  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::DenseSetMap(_) => write!(f, "constraint violation occurred building member `dense_set_map` when building `RpcV2CborDenseMapsInput`"),
        1759  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        1760  +
            /* ServerBuilderConstraintViolations.kt:118 */
 1157   1761   
        }
        1762  +
        /* ServerBuilderConstraintViolations.kt:117 */
 1158   1763   
    }
        1764  +
    /* ServerBuilderConstraintViolations.kt:84 */
 1159   1765   
    impl ::std::error::Error for ConstraintViolation {}
        1766  +
    /* ServerBuilderConstraintViolations.kt:171 */
 1160   1767   
    impl ConstraintViolation {
 1161   1768   
        pub(crate) fn as_validation_exception_field(
 1162   1769   
            self,
 1163   1770   
            path: ::std::string::String,
 1164   1771   
        ) -> crate::model::ValidationExceptionField {
 1165   1772   
            match self {
 1166   1773   
                ConstraintViolation::DenseSetMap(inner) => {
 1167   1774   
                    inner.as_validation_exception_field(path + "/denseSetMap")
 1168   1775   
                }
 1169   1776   
            }
 1170   1777   
        }
 1171   1778   
    }
        1779  +
    /* ServerBuilderGenerator.kt:234 */
 1172   1780   
    impl ::std::convert::From<ConstraintViolation>
 1173   1781   
        for ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection
 1174   1782   
    {
 1175   1783   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 1176   1784   
            let first_validation_exception_field =
 1177   1785   
                constraint_violation.as_validation_exception_field("".to_owned());
 1178   1786   
            let validation_exception = crate::error::ValidationException {
 1179   1787   
                message: format!(
 1180   1788   
                    "1 validation error detected. {}",
 1181   1789   
                    &first_validation_exception_field.message
 1182   1790   
                ),
 1183   1791   
                field_list: Some(vec![first_validation_exception_field]),
 1184   1792   
            };
 1185   1793   
            Self::ConstraintViolation(
 1186   1794   
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
 1187   1795   
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
 1188   1796   
                            )
 1189   1797   
        }
 1190   1798   
    }
        1799  +
    /* ServerBuilderGenerator.kt:244 */
 1191   1800   
    impl ::std::convert::From<Builder>
 1192   1801   
        for crate::constrained::MaybeConstrained<crate::input::RpcV2CborDenseMapsInput>
 1193   1802   
    {
 1194   1803   
        fn from(builder: Builder) -> Self {
 1195   1804   
            Self::Unconstrained(builder)
 1196   1805   
        }
 1197   1806   
    }
        1807  +
    /* ServerBuilderGenerator.kt:446 */
 1198   1808   
    impl ::std::convert::TryFrom<Builder> for crate::input::RpcV2CborDenseMapsInput {
 1199   1809   
        type Error = ConstraintViolation;
 1200   1810   
 1201   1811   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1202   1812   
            builder.build()
 1203   1813   
        }
 1204   1814   
    }
 1205         -
    /// A builder for [`RpcV2CborDenseMapsInput`](crate::input::RpcV2CborDenseMapsInput).
        1815  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`RpcV2CborDenseMapsInput`](crate::input::RpcV2CborDenseMapsInput).
        1816  +
    /* RustType.kt:516 */
 1206   1817   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1818  +
    /* ServerBuilderGenerator.kt:211 */
 1207   1819   
    pub struct Builder {
        1820  +
        /* ServerBuilderGenerator.kt:308 */
 1208   1821   
        pub(crate) dense_struct_map: ::std::option::Option<
 1209   1822   
            ::std::collections::HashMap<::std::string::String, crate::model::GreetingStruct>,
 1210   1823   
        >,
        1824  +
        /* ServerBuilderGenerator.kt:308 */
 1211   1825   
        pub(crate) dense_number_map:
 1212   1826   
            ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
        1827  +
        /* ServerBuilderGenerator.kt:308 */
 1213   1828   
        pub(crate) dense_boolean_map:
 1214   1829   
            ::std::option::Option<::std::collections::HashMap<::std::string::String, bool>>,
        1830  +
        /* ServerBuilderGenerator.kt:308 */
 1215   1831   
        pub(crate) dense_string_map: ::std::option::Option<
 1216   1832   
            ::std::collections::HashMap<::std::string::String, ::std::string::String>,
 1217   1833   
        >,
        1834  +
        /* ServerBuilderGenerator.kt:308 */
 1218   1835   
        pub(crate) dense_set_map: ::std::option::Option<
 1219   1836   
            crate::constrained::MaybeConstrained<
 1220   1837   
                crate::constrained::dense_set_map_constrained::DenseSetMapConstrained,
 1221   1838   
            >,
 1222   1839   
        >,
        1840  +
        /* ServerBuilderGenerator.kt:211 */
 1223   1841   
    }
        1842  +
    /* ServerBuilderGenerator.kt:215 */
 1224   1843   
    impl Builder {
        1844  +
        /* ServerBuilderGenerator.kt:331 */
 1225   1845   
        #[allow(missing_docs)] // documentation missing in model
        1846  +
                               /* ServerBuilderGenerator.kt:343 */
 1226   1847   
        pub fn dense_struct_map(
 1227   1848   
            mut self,
 1228   1849   
            input: ::std::option::Option<
 1229   1850   
                ::std::collections::HashMap<::std::string::String, crate::model::GreetingStruct>,
 1230   1851   
            >,
 1231   1852   
        ) -> Self {
 1232         -
            self.dense_struct_map = input;
        1853  +
            /* ServerBuilderGenerator.kt:344 */
        1854  +
            self.dense_struct_map =
        1855  +
                /* ServerBuilderGenerator.kt:376 */input
        1856  +
            /* ServerBuilderGenerator.kt:344 */;
 1233   1857   
            self
        1858  +
            /* ServerBuilderGenerator.kt:343 */
 1234   1859   
        }
        1860  +
        /* ServerBuilderGenerator.kt:426 */
 1235   1861   
        #[allow(missing_docs)] // documentation missing in model
        1862  +
                               /* ServerBuilderGenerator.kt:428 */
 1236   1863   
        pub(crate) fn set_dense_struct_map(
 1237   1864   
            mut self,
 1238   1865   
            input: Option<
 1239   1866   
                impl ::std::convert::Into<
 1240   1867   
                    ::std::collections::HashMap<
 1241   1868   
                        ::std::string::String,
 1242   1869   
                        crate::model::GreetingStruct,
 1243   1870   
                    >,
 1244   1871   
                >,
 1245   1872   
            >,
 1246   1873   
        ) -> Self {
        1874  +
            /* ServerBuilderGenerator.kt:429 */
 1247   1875   
            self.dense_struct_map = input.map(|v| v.into());
 1248   1876   
            self
        1877  +
            /* ServerBuilderGenerator.kt:428 */
 1249   1878   
        }
        1879  +
        /* ServerBuilderGenerator.kt:331 */
 1250   1880   
        #[allow(missing_docs)] // documentation missing in model
        1881  +
                               /* ServerBuilderGenerator.kt:343 */
 1251   1882   
        pub fn dense_number_map(
 1252   1883   
            mut self,
 1253   1884   
            input: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
 1254   1885   
        ) -> Self {
 1255         -
            self.dense_number_map = input;
        1886  +
            /* ServerBuilderGenerator.kt:344 */
        1887  +
            self.dense_number_map =
        1888  +
                /* ServerBuilderGenerator.kt:376 */input
        1889  +
            /* ServerBuilderGenerator.kt:344 */;
 1256   1890   
            self
        1891  +
            /* ServerBuilderGenerator.kt:343 */
 1257   1892   
        }
        1893  +
        /* ServerBuilderGenerator.kt:426 */
 1258   1894   
        #[allow(missing_docs)] // documentation missing in model
        1895  +
                               /* ServerBuilderGenerator.kt:428 */
 1259   1896   
        pub(crate) fn set_dense_number_map(
 1260   1897   
            mut self,
 1261   1898   
            input: Option<
 1262   1899   
                impl ::std::convert::Into<::std::collections::HashMap<::std::string::String, i32>>,
 1263   1900   
            >,
 1264   1901   
        ) -> Self {
        1902  +
            /* ServerBuilderGenerator.kt:429 */
 1265   1903   
            self.dense_number_map = input.map(|v| v.into());
 1266   1904   
            self
        1905  +
            /* ServerBuilderGenerator.kt:428 */
 1267   1906   
        }
        1907  +
        /* ServerBuilderGenerator.kt:331 */
 1268   1908   
        #[allow(missing_docs)] // documentation missing in model
        1909  +
                               /* ServerBuilderGenerator.kt:343 */
 1269   1910   
        pub fn dense_boolean_map(
 1270   1911   
            mut self,
 1271   1912   
            input: ::std::option::Option<::std::collections::HashMap<::std::string::String, bool>>,
 1272   1913   
        ) -> Self {
 1273         -
            self.dense_boolean_map = input;
        1914  +
            /* ServerBuilderGenerator.kt:344 */
        1915  +
            self.dense_boolean_map =
        1916  +
                /* ServerBuilderGenerator.kt:376 */input
        1917  +
            /* ServerBuilderGenerator.kt:344 */;
 1274   1918   
            self
        1919  +
            /* ServerBuilderGenerator.kt:343 */
 1275   1920   
        }
        1921  +
        /* ServerBuilderGenerator.kt:426 */
 1276   1922   
        #[allow(missing_docs)] // documentation missing in model
        1923  +
                               /* ServerBuilderGenerator.kt:428 */
 1277   1924   
        pub(crate) fn set_dense_boolean_map(
 1278   1925   
            mut self,
 1279   1926   
            input: Option<
 1280   1927   
                impl ::std::convert::Into<::std::collections::HashMap<::std::string::String, bool>>,
 1281   1928   
            >,
 1282   1929   
        ) -> Self {
        1930  +
            /* ServerBuilderGenerator.kt:429 */
 1283   1931   
            self.dense_boolean_map = input.map(|v| v.into());
 1284   1932   
            self
        1933  +
            /* ServerBuilderGenerator.kt:428 */
 1285   1934   
        }
        1935  +
        /* ServerBuilderGenerator.kt:331 */
 1286   1936   
        #[allow(missing_docs)] // documentation missing in model
        1937  +
                               /* ServerBuilderGenerator.kt:343 */
 1287   1938   
        pub fn dense_string_map(
 1288   1939   
            mut self,
 1289   1940   
            input: ::std::option::Option<
 1290   1941   
                ::std::collections::HashMap<::std::string::String, ::std::string::String>,
 1291   1942   
            >,
 1292   1943   
        ) -> Self {
 1293         -
            self.dense_string_map = input;
        1944  +
            /* ServerBuilderGenerator.kt:344 */
        1945  +
            self.dense_string_map =
        1946  +
                /* ServerBuilderGenerator.kt:376 */input
        1947  +
            /* ServerBuilderGenerator.kt:344 */;
 1294   1948   
            self
        1949  +
            /* ServerBuilderGenerator.kt:343 */
 1295   1950   
        }
        1951  +
        /* ServerBuilderGenerator.kt:426 */
 1296   1952   
        #[allow(missing_docs)] // documentation missing in model
        1953  +
                               /* ServerBuilderGenerator.kt:428 */
 1297   1954   
        pub(crate) fn set_dense_string_map(
 1298   1955   
            mut self,
 1299   1956   
            input: Option<
 1300   1957   
                impl ::std::convert::Into<
 1301   1958   
                    ::std::collections::HashMap<::std::string::String, ::std::string::String>,
 1302   1959   
                >,
 1303   1960   
            >,
 1304   1961   
        ) -> Self {
        1962  +
            /* ServerBuilderGenerator.kt:429 */
 1305   1963   
            self.dense_string_map = input.map(|v| v.into());
 1306   1964   
            self
        1965  +
            /* ServerBuilderGenerator.kt:428 */
 1307   1966   
        }
        1967  +
        /* ServerBuilderGenerator.kt:331 */
 1308   1968   
        #[allow(missing_docs)] // documentation missing in model
        1969  +
                               /* ServerBuilderGenerator.kt:343 */
 1309   1970   
        pub fn dense_set_map(
 1310   1971   
            mut self,
 1311   1972   
            input: ::std::option::Option<
 1312   1973   
                ::std::collections::HashMap<::std::string::String, crate::model::StringSet>,
 1313   1974   
            >,
 1314   1975   
        ) -> Self {
 1315         -
            self.dense_set_map = input.map(
 1316         -
                #[allow(clippy::redundant_closure)]
 1317         -
                |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
 1318         -
            );
        1976  +
            /* ServerBuilderGenerator.kt:344 */
        1977  +
            self.dense_set_map =
        1978  +
                /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
        1979  +
                    /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
        1980  +
                /* ServerBuilderGenerator.kt:369 */)
        1981  +
            /* ServerBuilderGenerator.kt:344 */;
 1319   1982   
            self
        1983  +
            /* ServerBuilderGenerator.kt:343 */
 1320   1984   
        }
        1985  +
        /* ServerBuilderGenerator.kt:426 */
 1321   1986   
        #[allow(missing_docs)] // documentation missing in model
        1987  +
                               /* ServerBuilderGenerator.kt:428 */
 1322   1988   
        pub(crate) fn set_dense_set_map(
 1323   1989   
            mut self,
 1324   1990   
            input: Option<
 1325   1991   
                impl ::std::convert::Into<
 1326   1992   
                    crate::constrained::MaybeConstrained<
 1327   1993   
                        crate::constrained::dense_set_map_constrained::DenseSetMapConstrained,
 1328   1994   
                    >,
 1329   1995   
                >,
 1330   1996   
            >,
 1331   1997   
        ) -> Self {
        1998  +
            /* ServerBuilderGenerator.kt:429 */
 1332   1999   
            self.dense_set_map = input.map(|v| v.into());
 1333   2000   
            self
        2001  +
            /* ServerBuilderGenerator.kt:428 */
 1334   2002   
        }
 1335         -
        /// Consumes the builder and constructs a [`RpcV2CborDenseMapsInput`](crate::input::RpcV2CborDenseMapsInput).
 1336         -
        ///
        2003  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`RpcV2CborDenseMapsInput`](crate::input::RpcV2CborDenseMapsInput).
        2004  +
        /// /* ServerBuilderGenerator.kt:260 */
 1337   2005   
        /// The builder fails to construct a [`RpcV2CborDenseMapsInput`](crate::input::RpcV2CborDenseMapsInput) if a [`ConstraintViolation`] occurs.
 1338   2006   
        ///
        2007  +
        /* ServerBuilderGenerator.kt:271 */
 1339   2008   
        pub fn build(self) -> Result<crate::input::RpcV2CborDenseMapsInput, ConstraintViolation> {
 1340   2009   
            self.build_enforcing_all_constraints()
 1341   2010   
        }
        2011  +
        /* ServerBuilderGenerator.kt:283 */
 1342   2012   
        fn build_enforcing_all_constraints(
 1343   2013   
            self,
 1344   2014   
        ) -> Result<crate::input::RpcV2CborDenseMapsInput, ConstraintViolation> {
 1345         -
            Ok(crate::input::RpcV2CborDenseMapsInput {
 1346         -
                dense_struct_map: self.dense_struct_map,
 1347         -
                dense_number_map: self.dense_number_map,
 1348         -
                dense_boolean_map: self.dense_boolean_map,
 1349         -
                dense_string_map: self.dense_string_map,
 1350         -
                dense_set_map: self
 1351         -
                    .dense_set_map
 1352         -
                    .map(|v| match v {
 1353         -
                        crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 1354         -
                        crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 1355         -
                    })
 1356         -
                    .map(|res| {
 1357         -
                        res.map(|v| v.into())
 1358         -
                            .map_err(ConstraintViolation::DenseSetMap)
 1359         -
                    })
 1360         -
                    .transpose()?,
 1361         -
            })
 1362         -
        }
        2015  +
            /* ServerBuilderGenerator.kt:287 */
        2016  +
            Ok(
        2017  +
                /* ServerBuilderGenerator.kt:542 */
        2018  +
                crate::input::RpcV2CborDenseMapsInput {
        2019  +
                    /* ServerBuilderGenerator.kt:546 */
        2020  +
                    dense_struct_map: self.dense_struct_map,
        2021  +
                    /* ServerBuilderGenerator.kt:546 */
        2022  +
                    dense_number_map: self.dense_number_map,
        2023  +
                    /* ServerBuilderGenerator.kt:546 */
        2024  +
                    dense_boolean_map: self.dense_boolean_map,
        2025  +
                    /* ServerBuilderGenerator.kt:546 */
        2026  +
                    dense_string_map: self.dense_string_map,
        2027  +
                    /* ServerBuilderGenerator.kt:546 */
        2028  +
                    dense_set_map: self
        2029  +
                        .dense_set_map
        2030  +
                        /* ServerBuilderGenerator.kt:602 */
        2031  +
                        .map(|v| match v {
        2032  +
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        2033  +
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        2034  +
                        })
        2035  +
                        /* ServerBuilderGenerator.kt:614 */
        2036  +
                        .map(|res| {
        2037  +
                            res.map(|v| v.into())
        2038  +
                                .map_err(ConstraintViolation::DenseSetMap)
        2039  +
                        })
        2040  +
                        .transpose()?,
        2041  +
                    /* ServerBuilderGenerator.kt:542 */
        2042  +
                }, /* ServerBuilderGenerator.kt:287 */
        2043  +
            )
        2044  +
            /* ServerBuilderGenerator.kt:283 */
        2045  +
        }
        2046  +
        /* ServerBuilderGenerator.kt:215 */
 1363   2047   
    }
        2048  +
        2049  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1364   2050   
}
 1365         -
/// See [`RpcV2CborListsInput`](crate::input::RpcV2CborListsInput).
        2051  +
/// /* ServerBuilderGenerator.kt:171 */See [`RpcV2CborListsInput`](crate::input::RpcV2CborListsInput).
 1366   2052   
pub mod rpc_v2_cbor_lists_input {
 1367   2053   
        2054  +
    /* RustType.kt:516 */
 1368   2055   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1369         -
    /// Holds one variant for each of the ways the builder can fail.
        2056  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        2057  +
    /* RustType.kt:516 */
 1370   2058   
    #[non_exhaustive]
        2059  +
    /* ServerBuilderConstraintViolations.kt:75 */
 1371   2060   
    #[allow(clippy::enum_variant_names)]
 1372   2061   
    pub enum ConstraintViolation {
 1373         -
        /// Constraint violation occurred building member `string_set` when building `RpcV2CborListsInput`.
        2062  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `string_set` when building `RpcV2CborListsInput`.
        2063  +
        /* RustType.kt:516 */
 1374   2064   
        #[doc(hidden)]
        2065  +
        /* ServerBuilderConstraintViolations.kt:164 */
 1375   2066   
        StringSet(crate::model::string_set::ConstraintViolation),
 1376         -
        /// Constraint violation occurred building member `enum_list` when building `RpcV2CborListsInput`.
        2067  +
        /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `enum_list` when building `RpcV2CborListsInput`.
        2068  +
        /* RustType.kt:516 */
 1377   2069   
        #[doc(hidden)]
        2070  +
        /* ServerBuilderConstraintViolations.kt:164 */
 1378   2071   
        EnumList(crate::model::foo_enum_list::ConstraintViolation),
        2072  +
        /* ServerBuilderConstraintViolations.kt:75 */
 1379   2073   
    }
        2074  +
    /* ServerBuilderConstraintViolations.kt:117 */
 1380   2075   
    impl ::std::fmt::Display for ConstraintViolation {
        2076  +
        /* ServerBuilderConstraintViolations.kt:118 */
 1381   2077   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2078  +
            /* ServerBuilderConstraintViolations.kt:119 */
 1382   2079   
            match self {
 1383         -
                ConstraintViolation::StringSet(_) => write!(f, "constraint violation occurred building member `string_set` when building `RpcV2CborListsInput`"),
 1384         -
                ConstraintViolation::EnumList(_) => write!(f, "constraint violation occurred building member `enum_list` when building `RpcV2CborListsInput`"),
 1385         -
            }
        2080  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::StringSet(_) => write!(f, "constraint violation occurred building member `string_set` when building `RpcV2CborListsInput`"),
        2081  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::EnumList(_) => write!(f, "constraint violation occurred building member `enum_list` when building `RpcV2CborListsInput`"),
        2082  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        2083  +
            /* ServerBuilderConstraintViolations.kt:118 */
 1386   2084   
        }
        2085  +
        /* ServerBuilderConstraintViolations.kt:117 */
 1387   2086   
    }
        2087  +
    /* ServerBuilderConstraintViolations.kt:84 */
 1388   2088   
    impl ::std::error::Error for ConstraintViolation {}
        2089  +
    /* ServerBuilderConstraintViolations.kt:171 */
 1389   2090   
    impl ConstraintViolation {
 1390   2091   
        pub(crate) fn as_validation_exception_field(
 1391   2092   
            self,
 1392   2093   
            path: ::std::string::String,
 1393   2094   
        ) -> crate::model::ValidationExceptionField {
 1394   2095   
            match self {
 1395   2096   
                ConstraintViolation::StringSet(inner) => {
 1396   2097   
                    inner.as_validation_exception_field(path + "/stringSet")
 1397   2098   
                }
 1398   2099   
                ConstraintViolation::EnumList(inner) => {
 1399   2100   
                    inner.as_validation_exception_field(path + "/enumList")
 1400   2101   
                }
 1401   2102   
            }
 1402   2103   
        }
 1403   2104   
    }
        2105  +
    /* ServerBuilderGenerator.kt:234 */
 1404   2106   
    impl ::std::convert::From<ConstraintViolation>
 1405   2107   
        for ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection
 1406   2108   
    {
 1407   2109   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 1408   2110   
            let first_validation_exception_field =
 1409   2111   
                constraint_violation.as_validation_exception_field("".to_owned());
 1410   2112   
            let validation_exception = crate::error::ValidationException {
 1411   2113   
                message: format!(
 1412   2114   
                    "1 validation error detected. {}",
 1413   2115   
                    &first_validation_exception_field.message
 1414   2116   
                ),
 1415   2117   
                field_list: Some(vec![first_validation_exception_field]),
 1416   2118   
            };
 1417   2119   
            Self::ConstraintViolation(
 1418   2120   
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
 1419   2121   
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
 1420   2122   
                            )
 1421   2123   
        }
 1422   2124   
    }
        2125  +
    /* ServerBuilderGenerator.kt:244 */
 1423   2126   
    impl ::std::convert::From<Builder>
 1424   2127   
        for crate::constrained::MaybeConstrained<crate::input::RpcV2CborListsInput>
 1425   2128   
    {
 1426   2129   
        fn from(builder: Builder) -> Self {
 1427   2130   
            Self::Unconstrained(builder)
 1428   2131   
        }
 1429   2132   
    }
        2133  +
    /* ServerBuilderGenerator.kt:446 */
 1430   2134   
    impl ::std::convert::TryFrom<Builder> for crate::input::RpcV2CborListsInput {
 1431   2135   
        type Error = ConstraintViolation;
 1432   2136   
 1433   2137   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1434   2138   
            builder.build()
 1435   2139   
        }
 1436   2140   
    }
 1437         -
    /// A builder for [`RpcV2CborListsInput`](crate::input::RpcV2CborListsInput).
        2141  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`RpcV2CborListsInput`](crate::input::RpcV2CborListsInput).
        2142  +
    /* RustType.kt:516 */
 1438   2143   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2144  +
    /* ServerBuilderGenerator.kt:211 */
 1439   2145   
    pub struct Builder {
        2146  +
        /* ServerBuilderGenerator.kt:308 */
 1440   2147   
        pub(crate) string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
        2148  +
        /* ServerBuilderGenerator.kt:308 */
 1441   2149   
        pub(crate) string_set:
 1442   2150   
            ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::StringSet>>,
        2151  +
        /* ServerBuilderGenerator.kt:308 */
 1443   2152   
        pub(crate) integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
        2153  +
        /* ServerBuilderGenerator.kt:308 */
 1444   2154   
        pub(crate) boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
        2155  +
        /* ServerBuilderGenerator.kt:308 */
 1445   2156   
        pub(crate) timestamp_list:
 1446   2157   
            ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
        2158  +
        /* ServerBuilderGenerator.kt:308 */
 1447   2159   
        pub(crate) enum_list: ::std::option::Option<
 1448   2160   
            crate::constrained::MaybeConstrained<
 1449   2161   
                crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
 1450   2162   
            >,
 1451   2163   
        >,
        2164  +
        /* ServerBuilderGenerator.kt:308 */
 1452   2165   
        pub(crate) int_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
        2166  +
        /* ServerBuilderGenerator.kt:308 */
 1453   2167   
        pub(crate) nested_string_list:
 1454   2168   
            ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
        2169  +
        /* ServerBuilderGenerator.kt:308 */
 1455   2170   
        pub(crate) structure_list:
 1456   2171   
            ::std::option::Option<::std::vec::Vec<crate::model::StructureListMember>>,
        2172  +
        /* ServerBuilderGenerator.kt:308 */
 1457   2173   
        pub(crate) blob_list: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::Blob>>,
        2174  +
        /* ServerBuilderGenerator.kt:211 */
 1458   2175   
    }
        2176  +
    /* ServerBuilderGenerator.kt:215 */
 1459   2177   
    impl Builder {
        2178  +
        /* ServerBuilderGenerator.kt:331 */
 1460   2179   
        #[allow(missing_docs)] // documentation missing in model
        2180  +
                               /* ServerBuilderGenerator.kt:343 */
 1461   2181   
        pub fn string_list(
 1462   2182   
            mut self,
 1463   2183   
            input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
 1464   2184   
        ) -> Self {
 1465         -
            self.string_list = input;
        2185  +
            /* ServerBuilderGenerator.kt:344 */
        2186  +
            self.string_list =
        2187  +
                /* ServerBuilderGenerator.kt:376 */input
        2188  +
            /* ServerBuilderGenerator.kt:344 */;
 1466   2189   
            self
        2190  +
            /* ServerBuilderGenerator.kt:343 */
 1467   2191   
        }
        2192  +
        /* ServerBuilderGenerator.kt:426 */
 1468   2193   
        #[allow(missing_docs)] // documentation missing in model
        2194  +
                               /* ServerBuilderGenerator.kt:428 */
 1469   2195   
        pub(crate) fn set_string_list(
 1470   2196   
            mut self,
 1471   2197   
            input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
 1472   2198   
        ) -> Self {
        2199  +
            /* ServerBuilderGenerator.kt:429 */
 1473   2200   
            self.string_list = input.map(|v| v.into());
 1474   2201   
            self
        2202  +
            /* ServerBuilderGenerator.kt:428 */
 1475   2203   
        }
        2204  +
        /* ServerBuilderGenerator.kt:331 */
 1476   2205   
        #[allow(missing_docs)] // documentation missing in model
        2206  +
                               /* ServerBuilderGenerator.kt:343 */
 1477   2207   
        pub fn string_set(mut self, input: ::std::option::Option<crate::model::StringSet>) -> Self {
 1478         -
            self.string_set = input.map(
 1479         -
                #[allow(clippy::redundant_closure)]
 1480         -
                |v| crate::constrained::MaybeConstrained::Constrained(v),
 1481         -
            );
        2208  +
            /* ServerBuilderGenerator.kt:344 */
        2209  +
            self.string_set =
        2210  +
                /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
        2211  +
            /* ServerBuilderGenerator.kt:344 */;
 1482   2212   
            self
        2213  +
            /* ServerBuilderGenerator.kt:343 */
 1483   2214   
        }
        2215  +
        /* ServerBuilderGenerator.kt:426 */
 1484   2216   
        #[allow(missing_docs)] // documentation missing in model
        2217  +
                               /* ServerBuilderGenerator.kt:428 */
 1485   2218   
        pub(crate) fn set_string_set(
 1486   2219   
            mut self,
 1487   2220   
            input: Option<
 1488   2221   
                impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::StringSet>>,
 1489   2222   
            >,
 1490   2223   
        ) -> Self {
        2224  +
            /* ServerBuilderGenerator.kt:429 */
 1491   2225   
            self.string_set = input.map(|v| v.into());
 1492   2226   
            self
        2227  +
            /* ServerBuilderGenerator.kt:428 */
 1493   2228   
        }
        2229  +
        /* ServerBuilderGenerator.kt:331 */
 1494   2230   
        #[allow(missing_docs)] // documentation missing in model
        2231  +
                               /* ServerBuilderGenerator.kt:343 */
 1495   2232   
        pub fn integer_list(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
 1496         -
            self.integer_list = input;
        2233  +
            /* ServerBuilderGenerator.kt:344 */
        2234  +
            self.integer_list =
        2235  +
                /* ServerBuilderGenerator.kt:376 */input
        2236  +
            /* ServerBuilderGenerator.kt:344 */;
 1497   2237   
            self
        2238  +
            /* ServerBuilderGenerator.kt:343 */
 1498   2239   
        }
        2240  +
        /* ServerBuilderGenerator.kt:426 */
 1499   2241   
        #[allow(missing_docs)] // documentation missing in model
        2242  +
                               /* ServerBuilderGenerator.kt:428 */
 1500   2243   
        pub(crate) fn set_integer_list(
 1501   2244   
            mut self,
 1502   2245   
            input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
 1503   2246   
        ) -> Self {
        2247  +
            /* ServerBuilderGenerator.kt:429 */
 1504   2248   
            self.integer_list = input.map(|v| v.into());
 1505   2249   
            self
        2250  +
            /* ServerBuilderGenerator.kt:428 */
 1506   2251   
        }
        2252  +
        /* ServerBuilderGenerator.kt:331 */
 1507   2253   
        #[allow(missing_docs)] // documentation missing in model
        2254  +
                               /* ServerBuilderGenerator.kt:343 */
 1508   2255   
        pub fn boolean_list(mut self, input: ::std::option::Option<::std::vec::Vec<bool>>) -> Self {
 1509         -
            self.boolean_list = input;
        2256  +
            /* ServerBuilderGenerator.kt:344 */
        2257  +
            self.boolean_list =
        2258  +
                /* ServerBuilderGenerator.kt:376 */input
        2259  +
            /* ServerBuilderGenerator.kt:344 */;
 1510   2260   
            self
        2261  +
            /* ServerBuilderGenerator.kt:343 */
 1511   2262   
        }
        2263  +
        /* ServerBuilderGenerator.kt:426 */
 1512   2264   
        #[allow(missing_docs)] // documentation missing in model
        2265  +
                               /* ServerBuilderGenerator.kt:428 */
 1513   2266   
        pub(crate) fn set_boolean_list(
 1514   2267   
            mut self,
 1515   2268   
            input: Option<impl ::std::convert::Into<::std::vec::Vec<bool>>>,
 1516   2269   
        ) -> Self {
        2270  +
            /* ServerBuilderGenerator.kt:429 */
 1517   2271   
            self.boolean_list = input.map(|v| v.into());
 1518   2272   
            self
        2273  +
            /* ServerBuilderGenerator.kt:428 */
 1519   2274   
        }
        2275  +
        /* ServerBuilderGenerator.kt:331 */
 1520   2276   
        #[allow(missing_docs)] // documentation missing in model
        2277  +
                               /* ServerBuilderGenerator.kt:343 */
 1521   2278   
        pub fn timestamp_list(
 1522   2279   
            mut self,
 1523   2280   
            input: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
 1524   2281   
        ) -> Self {
 1525         -
            self.timestamp_list = input;
        2282  +
            /* ServerBuilderGenerator.kt:344 */
        2283  +
            self.timestamp_list =
        2284  +
                /* ServerBuilderGenerator.kt:376 */input
        2285  +
            /* ServerBuilderGenerator.kt:344 */;
 1526   2286   
            self
        2287  +
            /* ServerBuilderGenerator.kt:343 */
 1527   2288   
        }
        2289  +
        /* ServerBuilderGenerator.kt:426 */
 1528   2290   
        #[allow(missing_docs)] // documentation missing in model
        2291  +
                               /* ServerBuilderGenerator.kt:428 */
 1529   2292   
        pub(crate) fn set_timestamp_list(
 1530   2293   
            mut self,
 1531   2294   
            input: Option<impl ::std::convert::Into<::std::vec::Vec<::aws_smithy_types::DateTime>>>,
 1532   2295   
        ) -> Self {
        2296  +
            /* ServerBuilderGenerator.kt:429 */
 1533   2297   
            self.timestamp_list = input.map(|v| v.into());
 1534   2298   
            self
        2299  +
            /* ServerBuilderGenerator.kt:428 */
 1535   2300   
        }
        2301  +
        /* ServerBuilderGenerator.kt:331 */
 1536   2302   
        #[allow(missing_docs)] // documentation missing in model
        2303  +
                               /* ServerBuilderGenerator.kt:343 */
 1537   2304   
        pub fn enum_list(
 1538   2305   
            mut self,
 1539   2306   
            input: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
 1540   2307   
        ) -> Self {
 1541         -
            self.enum_list = input.map(
 1542         -
                #[allow(clippy::redundant_closure)]
 1543         -
                |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
 1544         -
            );
        2308  +
            /* ServerBuilderGenerator.kt:344 */
        2309  +
            self.enum_list =
        2310  +
                /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
        2311  +
                    /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
        2312  +
                /* ServerBuilderGenerator.kt:369 */)
        2313  +
            /* ServerBuilderGenerator.kt:344 */;
 1545   2314   
            self
        2315  +
            /* ServerBuilderGenerator.kt:343 */
 1546   2316   
        }
        2317  +
        /* ServerBuilderGenerator.kt:426 */
 1547   2318   
        #[allow(missing_docs)] // documentation missing in model
        2319  +
                               /* ServerBuilderGenerator.kt:428 */
 1548   2320   
        pub(crate) fn set_enum_list(
 1549   2321   
            mut self,
 1550   2322   
            input: Option<
 1551   2323   
                impl ::std::convert::Into<
 1552   2324   
                    crate::constrained::MaybeConstrained<
 1553   2325   
                        crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
 1554   2326   
                    >,
 1555   2327   
                >,
 1556   2328   
            >,
 1557   2329   
        ) -> Self {
        2330  +
            /* ServerBuilderGenerator.kt:429 */
 1558   2331   
            self.enum_list = input.map(|v| v.into());
 1559   2332   
            self
        2333  +
            /* ServerBuilderGenerator.kt:428 */
 1560   2334   
        }
        2335  +
        /* ServerBuilderGenerator.kt:331 */
 1561   2336   
        #[allow(missing_docs)] // documentation missing in model
        2337  +
                               /* ServerBuilderGenerator.kt:343 */
 1562   2338   
        pub fn int_enum_list(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
 1563         -
            self.int_enum_list = input;
        2339  +
            /* ServerBuilderGenerator.kt:344 */
        2340  +
            self.int_enum_list =
        2341  +
                /* ServerBuilderGenerator.kt:376 */input
        2342  +
            /* ServerBuilderGenerator.kt:344 */;
 1564   2343   
            self
        2344  +
            /* ServerBuilderGenerator.kt:343 */
 1565   2345   
        }
        2346  +
        /* ServerBuilderGenerator.kt:426 */
 1566   2347   
        #[allow(missing_docs)] // documentation missing in model
        2348  +
                               /* ServerBuilderGenerator.kt:428 */
 1567   2349   
        pub(crate) fn set_int_enum_list(
 1568   2350   
            mut self,
 1569   2351   
            input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
 1570   2352   
        ) -> Self {
        2353  +
            /* ServerBuilderGenerator.kt:429 */
 1571   2354   
            self.int_enum_list = input.map(|v| v.into());
 1572   2355   
            self
        2356  +
            /* ServerBuilderGenerator.kt:428 */
 1573   2357   
        }
 1574         -
        /// A list of lists of strings.
        2358  +
        /// /* ServerBuilderGenerator.kt:331 */A list of lists of strings.
        2359  +
        /* ServerBuilderGenerator.kt:343 */
 1575   2360   
        pub fn nested_string_list(
 1576   2361   
            mut self,
 1577   2362   
            input: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
 1578   2363   
        ) -> Self {
 1579         -
            self.nested_string_list = input;
        2364  +
            /* ServerBuilderGenerator.kt:344 */
        2365  +
            self.nested_string_list =
        2366  +
                /* ServerBuilderGenerator.kt:376 */input
        2367  +
            /* ServerBuilderGenerator.kt:344 */;
 1580   2368   
            self
        2369  +
            /* ServerBuilderGenerator.kt:343 */
 1581   2370   
        }
 1582         -
        /// A list of lists of strings.
        2371  +
        /// /* ServerBuilderGenerator.kt:426 */A list of lists of strings.
        2372  +
        /* ServerBuilderGenerator.kt:428 */
 1583   2373   
        pub(crate) fn set_nested_string_list(
 1584   2374   
            mut self,
 1585   2375   
            input: Option<
 1586   2376   
                impl ::std::convert::Into<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
 1587   2377   
            >,
 1588   2378   
        ) -> Self {
        2379  +
            /* ServerBuilderGenerator.kt:429 */
 1589   2380   
            self.nested_string_list = input.map(|v| v.into());
 1590   2381   
            self
        2382  +
            /* ServerBuilderGenerator.kt:428 */
 1591   2383   
        }
        2384  +
        /* ServerBuilderGenerator.kt:331 */
 1592   2385   
        #[allow(missing_docs)] // documentation missing in model
        2386  +
                               /* ServerBuilderGenerator.kt:343 */
 1593   2387   
        pub fn structure_list(
 1594   2388   
            mut self,
 1595   2389   
            input: ::std::option::Option<::std::vec::Vec<crate::model::StructureListMember>>,
 1596   2390   
        ) -> Self {
 1597         -
            self.structure_list = input;
        2391  +
            /* ServerBuilderGenerator.kt:344 */
        2392  +
            self.structure_list =
        2393  +
                /* ServerBuilderGenerator.kt:376 */input
        2394  +
            /* ServerBuilderGenerator.kt:344 */;
 1598   2395   
            self
        2396  +
            /* ServerBuilderGenerator.kt:343 */
 1599   2397   
        }
        2398  +
        /* ServerBuilderGenerator.kt:426 */
 1600   2399   
        #[allow(missing_docs)] // documentation missing in model
        2400  +
                               /* ServerBuilderGenerator.kt:428 */
 1601   2401   
        pub(crate) fn set_structure_list(
 1602   2402   
            mut self,
 1603   2403   
            input: Option<
 1604   2404   
                impl ::std::convert::Into<::std::vec::Vec<crate::model::StructureListMember>>,
 1605   2405   
            >,
 1606   2406   
        ) -> Self {
        2407  +
            /* ServerBuilderGenerator.kt:429 */
 1607   2408   
            self.structure_list = input.map(|v| v.into());
 1608   2409   
            self
        2410  +
            /* ServerBuilderGenerator.kt:428 */
 1609   2411   
        }
        2412  +
        /* ServerBuilderGenerator.kt:331 */
 1610   2413   
        #[allow(missing_docs)] // documentation missing in model
        2414  +
                               /* ServerBuilderGenerator.kt:343 */
 1611   2415   
        pub fn blob_list(
 1612   2416   
            mut self,
 1613   2417   
            input: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::Blob>>,
 1614   2418   
        ) -> Self {
 1615         -
            self.blob_list = input;
        2419  +
            /* ServerBuilderGenerator.kt:344 */
        2420  +
            self.blob_list =
        2421  +
                /* ServerBuilderGenerator.kt:376 */input
        2422  +
            /* ServerBuilderGenerator.kt:344 */;
 1616   2423   
            self
        2424  +
            /* ServerBuilderGenerator.kt:343 */
 1617   2425   
        }
        2426  +
        /* ServerBuilderGenerator.kt:426 */
 1618   2427   
        #[allow(missing_docs)] // documentation missing in model
        2428  +
                               /* ServerBuilderGenerator.kt:428 */
 1619   2429   
        pub(crate) fn set_blob_list(
 1620   2430   
            mut self,
 1621   2431   
            input: Option<impl ::std::convert::Into<::std::vec::Vec<::aws_smithy_types::Blob>>>,
 1622   2432   
        ) -> Self {
        2433  +
            /* ServerBuilderGenerator.kt:429 */
 1623   2434   
            self.blob_list = input.map(|v| v.into());
 1624   2435   
            self
        2436  +
            /* ServerBuilderGenerator.kt:428 */
 1625   2437   
        }
 1626         -
        /// Consumes the builder and constructs a [`RpcV2CborListsInput`](crate::input::RpcV2CborListsInput).
 1627         -
        ///
        2438  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`RpcV2CborListsInput`](crate::input::RpcV2CborListsInput).
        2439  +
        /// /* ServerBuilderGenerator.kt:260 */
 1628   2440   
        /// The builder fails to construct a [`RpcV2CborListsInput`](crate::input::RpcV2CborListsInput) if a [`ConstraintViolation`] occurs.
 1629   2441   
        ///
 1630         -
        /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        2442  +
        /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        2443  +
        /* ServerBuilderGenerator.kt:271 */
 1631   2444   
        pub fn build(self) -> Result<crate::input::RpcV2CborListsInput, ConstraintViolation> {
 1632   2445   
            self.build_enforcing_all_constraints()
 1633   2446   
        }
        2447  +
        /* ServerBuilderGenerator.kt:283 */
 1634   2448   
        fn build_enforcing_all_constraints(
 1635   2449   
            self,
 1636   2450   
        ) -> Result<crate::input::RpcV2CborListsInput, ConstraintViolation> {
 1637         -
            Ok(crate::input::RpcV2CborListsInput {
 1638         -
                string_list: self.string_list,
 1639         -
                string_set: self
 1640         -
                    .string_set
 1641         -
                    .map(|v| match v {
 1642         -
                        crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 1643         -
                        crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 1644         -
                    })
 1645         -
                    .map(|res| res.map_err(ConstraintViolation::StringSet))
 1646         -
                    .transpose()?,
 1647         -
                integer_list: self.integer_list,
 1648         -
                boolean_list: self.boolean_list,
 1649         -
                timestamp_list: self.timestamp_list,
 1650         -
                enum_list: self
 1651         -
                    .enum_list
 1652         -
                    .map(|v| match v {
 1653         -
                        crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
 1654         -
                        crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
 1655         -
                    })
 1656         -
                    .map(|res| res.map(|v| v.into()).map_err(ConstraintViolation::EnumList))
 1657         -
                    .transpose()?,
 1658         -
                int_enum_list: self.int_enum_list,
 1659         -
                nested_string_list: self.nested_string_list,
 1660         -
                structure_list: self.structure_list,
 1661         -
                blob_list: self.blob_list,
 1662         -
            })
 1663         -
        }
        2451  +
            /* ServerBuilderGenerator.kt:287 */
        2452  +
            Ok(
        2453  +
                /* ServerBuilderGenerator.kt:542 */
        2454  +
                crate::input::RpcV2CborListsInput {
        2455  +
                    /* ServerBuilderGenerator.kt:546 */
        2456  +
                    string_list: self.string_list,
        2457  +
                    /* ServerBuilderGenerator.kt:546 */
        2458  +
                    string_set: self
        2459  +
                        .string_set
        2460  +
                        /* ServerBuilderGenerator.kt:602 */
        2461  +
                        .map(|v| match v {
        2462  +
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        2463  +
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        2464  +
                        })
        2465  +
                        /* ServerBuilderGenerator.kt:614 */
        2466  +
                        .map(|res| res.map_err(ConstraintViolation::StringSet))
        2467  +
                        .transpose()?,
        2468  +
                    /* ServerBuilderGenerator.kt:546 */
        2469  +
                    integer_list: self.integer_list,
        2470  +
                    /* ServerBuilderGenerator.kt:546 */
        2471  +
                    boolean_list: self.boolean_list,
        2472  +
                    /* ServerBuilderGenerator.kt:546 */
        2473  +
                    timestamp_list: self.timestamp_list,
        2474  +
                    /* ServerBuilderGenerator.kt:546 */
        2475  +
                    enum_list: self
        2476  +
                        .enum_list
        2477  +
                        /* ServerBuilderGenerator.kt:602 */
        2478  +
                        .map(|v| match v {
        2479  +
                            crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
        2480  +
                            crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
        2481  +
                        })
        2482  +
                        /* ServerBuilderGenerator.kt:614 */
        2483  +
                        .map(|res| res.map(|v| v.into()).map_err(ConstraintViolation::EnumList))
        2484  +
                        .transpose()?,
        2485  +
                    /* ServerBuilderGenerator.kt:546 */
        2486  +
                    int_enum_list: self.int_enum_list,
        2487  +
                    /* ServerBuilderGenerator.kt:546 */
        2488  +
                    nested_string_list: self.nested_string_list,
        2489  +
                    /* ServerBuilderGenerator.kt:546 */
        2490  +
                    structure_list: self.structure_list,
        2491  +
                    /* ServerBuilderGenerator.kt:546 */
        2492  +
                    blob_list: self.blob_list,
        2493  +
                    /* ServerBuilderGenerator.kt:542 */
        2494  +
                }, /* ServerBuilderGenerator.kt:287 */
        2495  +
            )
        2496  +
            /* ServerBuilderGenerator.kt:283 */
        2497  +
        }
        2498  +
        /* ServerBuilderGenerator.kt:215 */
 1664   2499   
    }
        2500  +
        2501  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1665   2502   
}
 1666         -
/// See [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
        2503  +
/// /* ServerBuilderGenerator.kt:171 */See [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
 1667   2504   
pub mod simple_scalar_properties_input {
 1668   2505   
        2506  +
    /* ServerBuilderGenerator.kt:461 */
 1669   2507   
    impl ::std::convert::From<Builder> for crate::input::SimpleScalarPropertiesInput {
 1670   2508   
        fn from(builder: Builder) -> Self {
 1671   2509   
            builder.build()
 1672   2510   
        }
 1673   2511   
    }
 1674         -
    /// A builder for [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
        2512  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
        2513  +
    /* RustType.kt:516 */
 1675   2514   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2515  +
    /* ServerBuilderGenerator.kt:211 */
 1676   2516   
    pub struct Builder {
        2517  +
        /* ServerBuilderGenerator.kt:308 */
 1677   2518   
        pub(crate) true_boolean_value: ::std::option::Option<bool>,
        2519  +
        /* ServerBuilderGenerator.kt:308 */
 1678   2520   
        pub(crate) false_boolean_value: ::std::option::Option<bool>,
 1679         -
        pub(crate) byte_value: ::std::option::Option<i8>,
        2521  +
        /* ServerBuilderGenerator.kt:308 */ pub(crate) byte_value: ::std::option::Option<i8>,
        2522  +
        /* ServerBuilderGenerator.kt:308 */
 1680   2523   
        pub(crate) double_value: ::std::option::Option<f64>,
        2524  +
        /* ServerBuilderGenerator.kt:308 */
 1681   2525   
        pub(crate) float_value: ::std::option::Option<f32>,
        2526  +
        /* ServerBuilderGenerator.kt:308 */
 1682   2527   
        pub(crate) integer_value: ::std::option::Option<i32>,
        2528  +
        /* ServerBuilderGenerator.kt:308 */
 1683   2529   
        pub(crate) long_value: ::std::option::Option<i64>,
        2530  +
        /* ServerBuilderGenerator.kt:308 */
 1684   2531   
        pub(crate) short_value: ::std::option::Option<i16>,
        2532  +
        /* ServerBuilderGenerator.kt:308 */
 1685   2533   
        pub(crate) string_value: ::std::option::Option<::std::string::String>,
        2534  +
        /* ServerBuilderGenerator.kt:308 */
 1686   2535   
        pub(crate) blob_value: ::std::option::Option<::aws_smithy_types::Blob>,
        2536  +
        /* ServerBuilderGenerator.kt:211 */
 1687   2537   
    }
        2538  +
    /* ServerBuilderGenerator.kt:215 */
 1688   2539   
    impl Builder {
        2540  +
        /* ServerBuilderGenerator.kt:331 */
 1689   2541   
        #[allow(missing_docs)] // documentation missing in model
        2542  +
                               /* ServerBuilderGenerator.kt:343 */
 1690   2543   
        pub fn true_boolean_value(mut self, input: ::std::option::Option<bool>) -> Self {
 1691         -
            self.true_boolean_value = input;
        2544  +
            /* ServerBuilderGenerator.kt:344 */
        2545  +
            self.true_boolean_value =
        2546  +
                /* ServerBuilderGenerator.kt:376 */input
        2547  +
            /* ServerBuilderGenerator.kt:344 */;
 1692   2548   
            self
        2549  +
            /* ServerBuilderGenerator.kt:343 */
 1693   2550   
        }
        2551  +
        /* ServerBuilderGenerator.kt:426 */
 1694   2552   
        #[allow(missing_docs)] // documentation missing in model
        2553  +
                               /* ServerBuilderGenerator.kt:428 */
 1695   2554   
        pub(crate) fn set_true_boolean_value(
 1696   2555   
            mut self,
 1697   2556   
            input: Option<impl ::std::convert::Into<bool>>,
 1698   2557   
        ) -> Self {
        2558  +
            /* ServerBuilderGenerator.kt:429 */
 1699   2559   
            self.true_boolean_value = input.map(|v| v.into());
 1700   2560   
            self
        2561  +
            /* ServerBuilderGenerator.kt:428 */
 1701   2562   
        }
        2563  +
        /* ServerBuilderGenerator.kt:331 */
 1702   2564   
        #[allow(missing_docs)] // documentation missing in model
        2565  +
                               /* ServerBuilderGenerator.kt:343 */
 1703   2566   
        pub fn false_boolean_value(mut self, input: ::std::option::Option<bool>) -> Self {
 1704         -
            self.false_boolean_value = input;
        2567  +
            /* ServerBuilderGenerator.kt:344 */
        2568  +
            self.false_boolean_value =
        2569  +
                /* ServerBuilderGenerator.kt:376 */input
        2570  +
            /* ServerBuilderGenerator.kt:344 */;
 1705   2571   
            self
        2572  +
            /* ServerBuilderGenerator.kt:343 */
 1706   2573   
        }
        2574  +
        /* ServerBuilderGenerator.kt:426 */
 1707   2575   
        #[allow(missing_docs)] // documentation missing in model
        2576  +
                               /* ServerBuilderGenerator.kt:428 */
 1708   2577   
        pub(crate) fn set_false_boolean_value(
 1709   2578   
            mut self,
 1710   2579   
            input: Option<impl ::std::convert::Into<bool>>,
 1711   2580   
        ) -> Self {
        2581  +
            /* ServerBuilderGenerator.kt:429 */
 1712   2582   
            self.false_boolean_value = input.map(|v| v.into());
 1713   2583   
            self
        2584  +
            /* ServerBuilderGenerator.kt:428 */
 1714   2585   
        }
        2586  +
        /* ServerBuilderGenerator.kt:331 */
 1715   2587   
        #[allow(missing_docs)] // documentation missing in model
        2588  +
                               /* ServerBuilderGenerator.kt:343 */
 1716   2589   
        pub fn byte_value(mut self, input: ::std::option::Option<i8>) -> Self {
 1717         -
            self.byte_value = input;
        2590  +
            /* ServerBuilderGenerator.kt:344 */
        2591  +
            self.byte_value =
        2592  +
                /* ServerBuilderGenerator.kt:376 */input
        2593  +
            /* ServerBuilderGenerator.kt:344 */;
 1718   2594   
            self
        2595  +
            /* ServerBuilderGenerator.kt:343 */
 1719   2596   
        }
        2597  +
        /* ServerBuilderGenerator.kt:426 */
 1720   2598   
        #[allow(missing_docs)] // documentation missing in model
        2599  +
                               /* ServerBuilderGenerator.kt:428 */
 1721   2600   
        pub(crate) fn set_byte_value(
 1722   2601   
            mut self,
 1723   2602   
            input: Option<impl ::std::convert::Into<i8>>,
 1724   2603   
        ) -> Self {
        2604  +
            /* ServerBuilderGenerator.kt:429 */
 1725   2605   
            self.byte_value = input.map(|v| v.into());
 1726   2606   
            self
        2607  +
            /* ServerBuilderGenerator.kt:428 */
 1727   2608   
        }
        2609  +
        /* ServerBuilderGenerator.kt:331 */
 1728   2610   
        #[allow(missing_docs)] // documentation missing in model
        2611  +
                               /* ServerBuilderGenerator.kt:343 */
 1729   2612   
        pub fn double_value(mut self, input: ::std::option::Option<f64>) -> Self {
 1730         -
            self.double_value = input;
        2613  +
            /* ServerBuilderGenerator.kt:344 */
        2614  +
            self.double_value =
        2615  +
                /* ServerBuilderGenerator.kt:376 */input
        2616  +
            /* ServerBuilderGenerator.kt:344 */;
 1731   2617   
            self
        2618  +
            /* ServerBuilderGenerator.kt:343 */
 1732   2619   
        }
        2620  +
        /* ServerBuilderGenerator.kt:426 */
 1733   2621   
        #[allow(missing_docs)] // documentation missing in model
        2622  +
                               /* ServerBuilderGenerator.kt:428 */
 1734   2623   
        pub(crate) fn set_double_value(
 1735   2624   
            mut self,
 1736   2625   
            input: Option<impl ::std::convert::Into<f64>>,
 1737   2626   
        ) -> Self {
        2627  +
            /* ServerBuilderGenerator.kt:429 */
 1738   2628   
            self.double_value = input.map(|v| v.into());
 1739   2629   
            self
        2630  +
            /* ServerBuilderGenerator.kt:428 */
 1740   2631   
        }
        2632  +
        /* ServerBuilderGenerator.kt:331 */
 1741   2633   
        #[allow(missing_docs)] // documentation missing in model
        2634  +
                               /* ServerBuilderGenerator.kt:343 */
 1742   2635   
        pub fn float_value(mut self, input: ::std::option::Option<f32>) -> Self {
 1743         -
            self.float_value = input;
        2636  +
            /* ServerBuilderGenerator.kt:344 */
        2637  +
            self.float_value =
        2638  +
                /* ServerBuilderGenerator.kt:376 */input
        2639  +
            /* ServerBuilderGenerator.kt:344 */;
 1744   2640   
            self
        2641  +
            /* ServerBuilderGenerator.kt:343 */
 1745   2642   
        }
        2643  +
        /* ServerBuilderGenerator.kt:426 */
 1746   2644   
        #[allow(missing_docs)] // documentation missing in model
        2645  +
                               /* ServerBuilderGenerator.kt:428 */
 1747   2646   
        pub(crate) fn set_float_value(
 1748   2647   
            mut self,
 1749   2648   
            input: Option<impl ::std::convert::Into<f32>>,
 1750   2649   
        ) -> Self {
        2650  +
            /* ServerBuilderGenerator.kt:429 */
 1751   2651   
            self.float_value = input.map(|v| v.into());
 1752   2652   
            self
        2653  +
            /* ServerBuilderGenerator.kt:428 */
 1753   2654   
        }
        2655  +
        /* ServerBuilderGenerator.kt:331 */
 1754   2656   
        #[allow(missing_docs)] // documentation missing in model
        2657  +
                               /* ServerBuilderGenerator.kt:343 */
 1755   2658   
        pub fn integer_value(mut self, input: ::std::option::Option<i32>) -> Self {
 1756         -
            self.integer_value = input;
        2659  +
            /* ServerBuilderGenerator.kt:344 */
        2660  +
            self.integer_value =
        2661  +
                /* ServerBuilderGenerator.kt:376 */input
        2662  +
            /* ServerBuilderGenerator.kt:344 */;
 1757   2663   
            self
        2664  +
            /* ServerBuilderGenerator.kt:343 */
 1758   2665   
        }
        2666  +
        /* ServerBuilderGenerator.kt:426 */
 1759   2667   
        #[allow(missing_docs)] // documentation missing in model
        2668  +
                               /* ServerBuilderGenerator.kt:428 */
 1760   2669   
        pub(crate) fn set_integer_value(
 1761   2670   
            mut self,
 1762   2671   
            input: Option<impl ::std::convert::Into<i32>>,
 1763   2672   
        ) -> Self {
        2673  +
            /* ServerBuilderGenerator.kt:429 */
 1764   2674   
            self.integer_value = input.map(|v| v.into());
 1765   2675   
            self
        2676  +
            /* ServerBuilderGenerator.kt:428 */
 1766   2677   
        }
        2678  +
        /* ServerBuilderGenerator.kt:331 */
 1767   2679   
        #[allow(missing_docs)] // documentation missing in model
        2680  +
                               /* ServerBuilderGenerator.kt:343 */
 1768   2681   
        pub fn long_value(mut self, input: ::std::option::Option<i64>) -> Self {
 1769         -
            self.long_value = input;
        2682  +
            /* ServerBuilderGenerator.kt:344 */
        2683  +
            self.long_value =
        2684  +
                /* ServerBuilderGenerator.kt:376 */input
        2685  +
            /* ServerBuilderGenerator.kt:344 */;
 1770   2686   
            self
        2687  +
            /* ServerBuilderGenerator.kt:343 */
 1771   2688   
        }
        2689  +
        /* ServerBuilderGenerator.kt:426 */
 1772   2690   
        #[allow(missing_docs)] // documentation missing in model
        2691  +
                               /* ServerBuilderGenerator.kt:428 */
 1773   2692   
        pub(crate) fn set_long_value(
 1774   2693   
            mut self,
 1775   2694   
            input: Option<impl ::std::convert::Into<i64>>,
 1776   2695   
        ) -> Self {
        2696  +
            /* ServerBuilderGenerator.kt:429 */
 1777   2697   
            self.long_value = input.map(|v| v.into());
 1778   2698   
            self
        2699  +
            /* ServerBuilderGenerator.kt:428 */
 1779   2700   
        }
        2701  +
        /* ServerBuilderGenerator.kt:331 */
 1780   2702   
        #[allow(missing_docs)] // documentation missing in model
        2703  +
                               /* ServerBuilderGenerator.kt:343 */
 1781   2704   
        pub fn short_value(mut self, input: ::std::option::Option<i16>) -> Self {
 1782         -
            self.short_value = input;
        2705  +
            /* ServerBuilderGenerator.kt:344 */
        2706  +
            self.short_value =
        2707  +
                /* ServerBuilderGenerator.kt:376 */input
        2708  +
            /* ServerBuilderGenerator.kt:344 */;
 1783   2709   
            self
        2710  +
            /* ServerBuilderGenerator.kt:343 */
 1784   2711   
        }
        2712  +
        /* ServerBuilderGenerator.kt:426 */
 1785   2713   
        #[allow(missing_docs)] // documentation missing in model
        2714  +
                               /* ServerBuilderGenerator.kt:428 */
 1786   2715   
        pub(crate) fn set_short_value(
 1787   2716   
            mut self,
 1788   2717   
            input: Option<impl ::std::convert::Into<i16>>,
 1789   2718   
        ) -> Self {
        2719  +
            /* ServerBuilderGenerator.kt:429 */
 1790   2720   
            self.short_value = input.map(|v| v.into());
 1791   2721   
            self
        2722  +
            /* ServerBuilderGenerator.kt:428 */
 1792   2723   
        }
        2724  +
        /* ServerBuilderGenerator.kt:331 */
 1793   2725   
        #[allow(missing_docs)] // documentation missing in model
        2726  +
                               /* ServerBuilderGenerator.kt:343 */
 1794   2727   
        pub fn string_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 1795         -
            self.string_value = input;
        2728  +
            /* ServerBuilderGenerator.kt:344 */
        2729  +
            self.string_value =
        2730  +
                /* ServerBuilderGenerator.kt:376 */input
        2731  +
            /* ServerBuilderGenerator.kt:344 */;
 1796   2732   
            self
        2733  +
            /* ServerBuilderGenerator.kt:343 */
 1797   2734   
        }
        2735  +
        /* ServerBuilderGenerator.kt:426 */
 1798   2736   
        #[allow(missing_docs)] // documentation missing in model
        2737  +
                               /* ServerBuilderGenerator.kt:428 */
 1799   2738   
        pub(crate) fn set_string_value(
 1800   2739   
            mut self,
 1801   2740   
            input: Option<impl ::std::convert::Into<::std::string::String>>,
 1802   2741   
        ) -> Self {
        2742  +
            /* ServerBuilderGenerator.kt:429 */
 1803   2743   
            self.string_value = input.map(|v| v.into());
 1804   2744   
            self
        2745  +
            /* ServerBuilderGenerator.kt:428 */
 1805   2746   
        }
        2747  +
        /* ServerBuilderGenerator.kt:331 */
 1806   2748   
        #[allow(missing_docs)] // documentation missing in model
        2749  +
                               /* ServerBuilderGenerator.kt:343 */
 1807   2750   
        pub fn blob_value(
 1808   2751   
            mut self,
 1809   2752   
            input: ::std::option::Option<::aws_smithy_types::Blob>,
 1810   2753   
        ) -> Self {
 1811         -
            self.blob_value = input;
        2754  +
            /* ServerBuilderGenerator.kt:344 */
        2755  +
            self.blob_value =
        2756  +
                /* ServerBuilderGenerator.kt:376 */input
        2757  +
            /* ServerBuilderGenerator.kt:344 */;
 1812   2758   
            self
        2759  +
            /* ServerBuilderGenerator.kt:343 */
 1813   2760   
        }
        2761  +
        /* ServerBuilderGenerator.kt:426 */
 1814   2762   
        #[allow(missing_docs)] // documentation missing in model
        2763  +
                               /* ServerBuilderGenerator.kt:428 */
 1815   2764   
        pub(crate) fn set_blob_value(
 1816   2765   
            mut self,
 1817   2766   
            input: Option<impl ::std::convert::Into<::aws_smithy_types::Blob>>,
 1818   2767   
        ) -> Self {
        2768  +
            /* ServerBuilderGenerator.kt:429 */
 1819   2769   
            self.blob_value = input.map(|v| v.into());
 1820   2770   
            self
        2771  +
            /* ServerBuilderGenerator.kt:428 */
 1821   2772   
        }
 1822         -
        /// Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
        2773  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
        2774  +
        /* ServerBuilderGenerator.kt:271 */
 1823   2775   
        pub fn build(self) -> crate::input::SimpleScalarPropertiesInput {
 1824   2776   
            self.build_enforcing_all_constraints()
 1825   2777   
        }
        2778  +
        /* ServerBuilderGenerator.kt:283 */
 1826   2779   
        fn build_enforcing_all_constraints(self) -> crate::input::SimpleScalarPropertiesInput {
        2780  +
            /* ServerBuilderGenerator.kt:542 */
 1827   2781   
            crate::input::SimpleScalarPropertiesInput {
        2782  +
                /* ServerBuilderGenerator.kt:546 */
 1828   2783   
                true_boolean_value: self.true_boolean_value,
        2784  +
                /* ServerBuilderGenerator.kt:546 */
 1829   2785   
                false_boolean_value: self.false_boolean_value,
        2786  +
                /* ServerBuilderGenerator.kt:546 */
 1830   2787   
                byte_value: self.byte_value,
        2788  +
                /* ServerBuilderGenerator.kt:546 */
 1831   2789   
                double_value: self.double_value,
        2790  +
                /* ServerBuilderGenerator.kt:546 */
 1832   2791   
                float_value: self.float_value,
        2792  +
                /* ServerBuilderGenerator.kt:546 */
 1833   2793   
                integer_value: self.integer_value,
        2794  +
                /* ServerBuilderGenerator.kt:546 */
 1834   2795   
                long_value: self.long_value,
        2796  +
                /* ServerBuilderGenerator.kt:546 */
 1835   2797   
                short_value: self.short_value,
        2798  +
                /* ServerBuilderGenerator.kt:546 */
 1836   2799   
                string_value: self.string_value,
        2800  +
                /* ServerBuilderGenerator.kt:546 */
 1837   2801   
                blob_value: self.blob_value,
        2802  +
                /* ServerBuilderGenerator.kt:542 */
 1838   2803   
            }
        2804  +
            /* ServerBuilderGenerator.kt:283 */
 1839   2805   
        }
        2806  +
        /* ServerBuilderGenerator.kt:215 */
 1840   2807   
    }
        2808  +
        2809  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1841   2810   
}
 1842         -
/// See [`OptionalInputOutputInput`](crate::input::OptionalInputOutputInput).
        2811  +
/// /* ServerBuilderGenerator.kt:171 */See [`OptionalInputOutputInput`](crate::input::OptionalInputOutputInput).
 1843   2812   
pub mod optional_input_output_input {
 1844   2813   
        2814  +
    /* ServerBuilderGenerator.kt:461 */
 1845   2815   
    impl ::std::convert::From<Builder> for crate::input::OptionalInputOutputInput {
 1846   2816   
        fn from(builder: Builder) -> Self {
 1847   2817   
            builder.build()
 1848   2818   
        }
 1849   2819   
    }
 1850         -
    /// A builder for [`OptionalInputOutputInput`](crate::input::OptionalInputOutputInput).
        2820  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`OptionalInputOutputInput`](crate::input::OptionalInputOutputInput).
        2821  +
    /* RustType.kt:516 */
 1851   2822   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2823  +
    /* ServerBuilderGenerator.kt:211 */
 1852   2824   
    pub struct Builder {
        2825  +
        /* ServerBuilderGenerator.kt:308 */
 1853   2826   
        pub(crate) value: ::std::option::Option<::std::string::String>,
        2827  +
        /* ServerBuilderGenerator.kt:211 */
 1854   2828   
    }
        2829  +
    /* ServerBuilderGenerator.kt:215 */
 1855   2830   
    impl Builder {
        2831  +
        /* ServerBuilderGenerator.kt:331 */
 1856   2832   
        #[allow(missing_docs)] // documentation missing in model
        2833  +
                               /* ServerBuilderGenerator.kt:343 */
 1857   2834   
        pub fn value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 1858         -
            self.value = input;
        2835  +
            /* ServerBuilderGenerator.kt:344 */
        2836  +
            self.value =
        2837  +
                /* ServerBuilderGenerator.kt:376 */input
        2838  +
            /* ServerBuilderGenerator.kt:344 */;
 1859   2839   
            self
        2840  +
            /* ServerBuilderGenerator.kt:343 */
 1860   2841   
        }
        2842  +
        /* ServerBuilderGenerator.kt:426 */
 1861   2843   
        #[allow(missing_docs)] // documentation missing in model
        2844  +
                               /* ServerBuilderGenerator.kt:428 */
 1862   2845   
        pub(crate) fn set_value(
 1863   2846   
            mut self,
 1864   2847   
            input: Option<impl ::std::convert::Into<::std::string::String>>,
 1865   2848   
        ) -> Self {
        2849  +
            /* ServerBuilderGenerator.kt:429 */
 1866   2850   
            self.value = input.map(|v| v.into());
 1867   2851   
            self
        2852  +
            /* ServerBuilderGenerator.kt:428 */
 1868   2853   
        }
 1869         -
        /// Consumes the builder and constructs a [`OptionalInputOutputInput`](crate::input::OptionalInputOutputInput).
        2854  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`OptionalInputOutputInput`](crate::input::OptionalInputOutputInput).
        2855  +
        /* ServerBuilderGenerator.kt:271 */
 1870   2856   
        pub fn build(self) -> crate::input::OptionalInputOutputInput {
 1871   2857   
            self.build_enforcing_all_constraints()
 1872   2858   
        }
        2859  +
        /* ServerBuilderGenerator.kt:283 */
 1873   2860   
        fn build_enforcing_all_constraints(self) -> crate::input::OptionalInputOutputInput {
 1874         -
            crate::input::OptionalInputOutputInput { value: self.value }
        2861  +
            /* ServerBuilderGenerator.kt:542 */
        2862  +
            crate::input::OptionalInputOutputInput {
        2863  +
                /* ServerBuilderGenerator.kt:546 */
        2864  +
                value: self.value,
        2865  +
                /* ServerBuilderGenerator.kt:542 */
        2866  +
            }
        2867  +
            /* ServerBuilderGenerator.kt:283 */
 1875   2868   
        }
        2869  +
        /* ServerBuilderGenerator.kt:215 */
 1876   2870   
    }
        2871  +
        2872  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1877   2873   
}
 1878         -
/// See [`EmptyInputOutputInput`](crate::input::EmptyInputOutputInput).
        2874  +
/// /* ServerBuilderGenerator.kt:171 */See [`EmptyInputOutputInput`](crate::input::EmptyInputOutputInput).
 1879   2875   
pub mod empty_input_output_input {
 1880   2876   
        2877  +
    /* ServerBuilderGenerator.kt:461 */
 1881   2878   
    impl ::std::convert::From<Builder> for crate::input::EmptyInputOutputInput {
 1882   2879   
        fn from(builder: Builder) -> Self {
 1883   2880   
            builder.build()
 1884   2881   
        }
 1885   2882   
    }
 1886         -
    /// A builder for [`EmptyInputOutputInput`](crate::input::EmptyInputOutputInput).
        2883  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`EmptyInputOutputInput`](crate::input::EmptyInputOutputInput).
        2884  +
    /* RustType.kt:516 */
 1887   2885   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1888         -
    pub struct Builder {}
        2886  +
    /* ServerBuilderGenerator.kt:211 */
        2887  +
    pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
        2888  +
    /* ServerBuilderGenerator.kt:215 */
 1889   2889   
    impl Builder {
 1890         -
        /// Consumes the builder and constructs a [`EmptyInputOutputInput`](crate::input::EmptyInputOutputInput).
        2890  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EmptyInputOutputInput`](crate::input::EmptyInputOutputInput).
        2891  +
        /* ServerBuilderGenerator.kt:271 */
 1891   2892   
        pub fn build(self) -> crate::input::EmptyInputOutputInput {
 1892   2893   
            self.build_enforcing_all_constraints()
 1893   2894   
        }
        2895  +
        /* ServerBuilderGenerator.kt:283 */
 1894   2896   
        fn build_enforcing_all_constraints(self) -> crate::input::EmptyInputOutputInput {
 1895         -
            crate::input::EmptyInputOutputInput {}
        2897  +
            /* ServerBuilderGenerator.kt:542 */
        2898  +
            crate::input::EmptyInputOutputInput {
        2899  +
            /* ServerBuilderGenerator.kt:542 */}
        2900  +
            /* ServerBuilderGenerator.kt:283 */
 1896   2901   
        }
        2902  +
        /* ServerBuilderGenerator.kt:215 */
 1897   2903   
    }
        2904  +
        2905  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1898   2906   
}
 1899         -
/// See [`NoInputOutputInput`](crate::input::NoInputOutputInput).
        2907  +
/// /* ServerBuilderGenerator.kt:171 */See [`NoInputOutputInput`](crate::input::NoInputOutputInput).
 1900   2908   
pub mod no_input_output_input {
 1901   2909   
        2910  +
    /* ServerBuilderGenerator.kt:461 */
 1902   2911   
    impl ::std::convert::From<Builder> for crate::input::NoInputOutputInput {
 1903   2912   
        fn from(builder: Builder) -> Self {
 1904   2913   
            builder.build()
 1905   2914   
        }
 1906   2915   
    }
 1907         -
    /// A builder for [`NoInputOutputInput`](crate::input::NoInputOutputInput).
        2916  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`NoInputOutputInput`](crate::input::NoInputOutputInput).
        2917  +
    /* RustType.kt:516 */
 1908   2918   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1909         -
    pub struct Builder {}
        2919  +
    /* ServerBuilderGenerator.kt:211 */
        2920  +
    pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
        2921  +
    /* ServerBuilderGenerator.kt:215 */
 1910   2922   
    impl Builder {
 1911         -
        /// Consumes the builder and constructs a [`NoInputOutputInput`](crate::input::NoInputOutputInput).
        2923  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`NoInputOutputInput`](crate::input::NoInputOutputInput).
        2924  +
        /* ServerBuilderGenerator.kt:271 */
 1912   2925   
        pub fn build(self) -> crate::input::NoInputOutputInput {
 1913   2926   
            self.build_enforcing_all_constraints()
 1914   2927   
        }
        2928  +
        /* ServerBuilderGenerator.kt:283 */
 1915   2929   
        fn build_enforcing_all_constraints(self) -> crate::input::NoInputOutputInput {
 1916         -
            crate::input::NoInputOutputInput {}
        2930  +
            /* ServerBuilderGenerator.kt:542 */
        2931  +
            crate::input::NoInputOutputInput {
        2932  +
            /* ServerBuilderGenerator.kt:542 */}
        2933  +
            /* ServerBuilderGenerator.kt:283 */
 1917   2934   
        }
        2935  +
        /* ServerBuilderGenerator.kt:215 */
 1918   2936   
    }
        2937  +
        2938  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1919   2939   
}