Server Test

Server Test

rev. 7254d43655ed63111c94f599437f2b0d3f55446e (ignoring whitespace)

Files changed:

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

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

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

@@ -1,1 +398,398 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[allow(missing_docs)] // documentation missing in model
    3      3   
#[derive(
    4      4   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
    5      5   
)]
    6         -
pub struct SensitiveValidationOutput {}
    7         -
impl SensitiveValidationOutput {
    8         -
    /// Creates a new builder-style object to manufacture [`SensitiveValidationOutput`](crate::output::SensitiveValidationOutput).
    9         -
    pub fn builder() -> crate::output::sensitive_validation_output::Builder {
   10         -
        crate::output::sensitive_validation_output::Builder::default()
           6  +
pub struct MalformedEnumOutput {}
           7  +
impl MalformedEnumOutput {
           8  +
    /// Creates a new builder-style object to manufacture [`MalformedEnumOutput`](crate::output::MalformedEnumOutput).
           9  +
    pub fn builder() -> crate::output::malformed_enum_output::Builder {
          10  +
        crate::output::malformed_enum_output::Builder::default()
   11     11   
    }
   12     12   
}
   13     13   
   14     14   
#[allow(missing_docs)] // documentation missing in model
   15     15   
#[derive(
   16     16   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   17     17   
)]
   18         -
pub struct RecursiveStructuresOutput {}
   19         -
impl RecursiveStructuresOutput {
   20         -
    /// Creates a new builder-style object to manufacture [`RecursiveStructuresOutput`](crate::output::RecursiveStructuresOutput).
   21         -
    pub fn builder() -> crate::output::recursive_structures_output::Builder {
   22         -
        crate::output::recursive_structures_output::Builder::default()
          18  +
pub struct MalformedLengthOutput {}
          19  +
impl MalformedLengthOutput {
          20  +
    /// Creates a new builder-style object to manufacture [`MalformedLengthOutput`](crate::output::MalformedLengthOutput).
          21  +
    pub fn builder() -> crate::output::malformed_length_output::Builder {
          22  +
        crate::output::malformed_length_output::Builder::default()
   23     23   
    }
   24     24   
}
   25     25   
   26     26   
#[allow(missing_docs)] // documentation missing in model
   27     27   
#[derive(
   28     28   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   29     29   
)]
   30         -
pub struct MalformedUniqueItemsOutput {}
   31         -
impl MalformedUniqueItemsOutput {
   32         -
    /// Creates a new builder-style object to manufacture [`MalformedUniqueItemsOutput`](crate::output::MalformedUniqueItemsOutput).
   33         -
    pub fn builder() -> crate::output::malformed_unique_items_output::Builder {
   34         -
        crate::output::malformed_unique_items_output::Builder::default()
          30  +
pub struct MalformedLengthOverrideOutput {}
          31  +
impl MalformedLengthOverrideOutput {
          32  +
    /// Creates a new builder-style object to manufacture [`MalformedLengthOverrideOutput`](crate::output::MalformedLengthOverrideOutput).
          33  +
    pub fn builder() -> crate::output::malformed_length_override_output::Builder {
          34  +
        crate::output::malformed_length_override_output::Builder::default()
   35     35   
    }
   36     36   
}
   37     37   
   38     38   
#[allow(missing_docs)] // documentation missing in model
   39     39   
#[derive(
   40     40   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   41     41   
)]
   42         -
pub struct MalformedRequiredOutput {}
   43         -
impl MalformedRequiredOutput {
   44         -
    /// Creates a new builder-style object to manufacture [`MalformedRequiredOutput`](crate::output::MalformedRequiredOutput).
   45         -
    pub fn builder() -> crate::output::malformed_required_output::Builder {
   46         -
        crate::output::malformed_required_output::Builder::default()
          42  +
pub struct MalformedLengthQueryStringOutput {}
          43  +
impl MalformedLengthQueryStringOutput {
          44  +
    /// Creates a new builder-style object to manufacture [`MalformedLengthQueryStringOutput`](crate::output::MalformedLengthQueryStringOutput).
          45  +
    pub fn builder() -> crate::output::malformed_length_query_string_output::Builder {
          46  +
        crate::output::malformed_length_query_string_output::Builder::default()
   47     47   
    }
   48     48   
}
   49     49   
   50     50   
#[allow(missing_docs)] // documentation missing in model
   51     51   
#[derive(
   52     52   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   53     53   
)]
   54         -
pub struct MalformedRangeOverrideOutput {}
   55         -
impl MalformedRangeOverrideOutput {
   56         -
    /// Creates a new builder-style object to manufacture [`MalformedRangeOverrideOutput`](crate::output::MalformedRangeOverrideOutput).
   57         -
    pub fn builder() -> crate::output::malformed_range_override_output::Builder {
   58         -
        crate::output::malformed_range_override_output::Builder::default()
          54  +
pub struct MalformedPatternOutput {}
          55  +
impl MalformedPatternOutput {
          56  +
    /// Creates a new builder-style object to manufacture [`MalformedPatternOutput`](crate::output::MalformedPatternOutput).
          57  +
    pub fn builder() -> crate::output::malformed_pattern_output::Builder {
          58  +
        crate::output::malformed_pattern_output::Builder::default()
   59     59   
    }
   60     60   
}
   61     61   
   62     62   
#[allow(missing_docs)] // documentation missing in model
   63     63   
#[derive(
   64     64   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   65     65   
)]
   66         -
pub struct MalformedRangeOutput {}
   67         -
impl MalformedRangeOutput {
   68         -
    /// Creates a new builder-style object to manufacture [`MalformedRangeOutput`](crate::output::MalformedRangeOutput).
   69         -
    pub fn builder() -> crate::output::malformed_range_output::Builder {
   70         -
        crate::output::malformed_range_output::Builder::default()
          66  +
pub struct MalformedPatternOverrideOutput {}
          67  +
impl MalformedPatternOverrideOutput {
          68  +
    /// Creates a new builder-style object to manufacture [`MalformedPatternOverrideOutput`](crate::output::MalformedPatternOverrideOutput).
          69  +
    pub fn builder() -> crate::output::malformed_pattern_override_output::Builder {
          70  +
        crate::output::malformed_pattern_override_output::Builder::default()
   71     71   
    }
   72     72   
}
   73     73   
   74     74   
#[allow(missing_docs)] // documentation missing in model
   75     75   
#[derive(
   76     76   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   77     77   
)]
   78         -
pub struct MalformedPatternOverrideOutput {}
   79         -
impl MalformedPatternOverrideOutput {
   80         -
    /// Creates a new builder-style object to manufacture [`MalformedPatternOverrideOutput`](crate::output::MalformedPatternOverrideOutput).
   81         -
    pub fn builder() -> crate::output::malformed_pattern_override_output::Builder {
   82         -
        crate::output::malformed_pattern_override_output::Builder::default()
          78  +
pub struct MalformedRangeOutput {}
          79  +
impl MalformedRangeOutput {
          80  +
    /// Creates a new builder-style object to manufacture [`MalformedRangeOutput`](crate::output::MalformedRangeOutput).
          81  +
    pub fn builder() -> crate::output::malformed_range_output::Builder {
          82  +
        crate::output::malformed_range_output::Builder::default()
   83     83   
    }
   84     84   
}
   85     85   
   86     86   
#[allow(missing_docs)] // documentation missing in model
   87     87   
#[derive(
   88     88   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   89     89   
)]
   90         -
pub struct MalformedPatternOutput {}
   91         -
impl MalformedPatternOutput {
   92         -
    /// Creates a new builder-style object to manufacture [`MalformedPatternOutput`](crate::output::MalformedPatternOutput).
   93         -
    pub fn builder() -> crate::output::malformed_pattern_output::Builder {
   94         -
        crate::output::malformed_pattern_output::Builder::default()
          90  +
pub struct MalformedRangeOverrideOutput {}
          91  +
impl MalformedRangeOverrideOutput {
          92  +
    /// Creates a new builder-style object to manufacture [`MalformedRangeOverrideOutput`](crate::output::MalformedRangeOverrideOutput).
          93  +
    pub fn builder() -> crate::output::malformed_range_override_output::Builder {
          94  +
        crate::output::malformed_range_override_output::Builder::default()
   95     95   
    }
   96     96   
}
   97     97   
   98     98   
#[allow(missing_docs)] // documentation missing in model
   99     99   
#[derive(
  100    100   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  101    101   
)]
  102         -
pub struct MalformedLengthQueryStringOutput {}
  103         -
impl MalformedLengthQueryStringOutput {
  104         -
    /// Creates a new builder-style object to manufacture [`MalformedLengthQueryStringOutput`](crate::output::MalformedLengthQueryStringOutput).
  105         -
    pub fn builder() -> crate::output::malformed_length_query_string_output::Builder {
  106         -
        crate::output::malformed_length_query_string_output::Builder::default()
         102  +
pub struct MalformedRequiredOutput {}
         103  +
impl MalformedRequiredOutput {
         104  +
    /// Creates a new builder-style object to manufacture [`MalformedRequiredOutput`](crate::output::MalformedRequiredOutput).
         105  +
    pub fn builder() -> crate::output::malformed_required_output::Builder {
         106  +
        crate::output::malformed_required_output::Builder::default()
  107    107   
    }
  108    108   
}
  109    109   
  110    110   
#[allow(missing_docs)] // documentation missing in model
  111    111   
#[derive(
  112    112   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  113    113   
)]
  114         -
pub struct MalformedLengthOverrideOutput {}
  115         -
impl MalformedLengthOverrideOutput {
  116         -
    /// Creates a new builder-style object to manufacture [`MalformedLengthOverrideOutput`](crate::output::MalformedLengthOverrideOutput).
  117         -
    pub fn builder() -> crate::output::malformed_length_override_output::Builder {
  118         -
        crate::output::malformed_length_override_output::Builder::default()
         114  +
pub struct MalformedUniqueItemsOutput {}
         115  +
impl MalformedUniqueItemsOutput {
         116  +
    /// Creates a new builder-style object to manufacture [`MalformedUniqueItemsOutput`](crate::output::MalformedUniqueItemsOutput).
         117  +
    pub fn builder() -> crate::output::malformed_unique_items_output::Builder {
         118  +
        crate::output::malformed_unique_items_output::Builder::default()
  119    119   
    }
  120    120   
}
  121    121   
  122    122   
#[allow(missing_docs)] // documentation missing in model
  123    123   
#[derive(
  124    124   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  125    125   
)]
  126         -
pub struct MalformedLengthOutput {}
  127         -
impl MalformedLengthOutput {
  128         -
    /// Creates a new builder-style object to manufacture [`MalformedLengthOutput`](crate::output::MalformedLengthOutput).
  129         -
    pub fn builder() -> crate::output::malformed_length_output::Builder {
  130         -
        crate::output::malformed_length_output::Builder::default()
         126  +
pub struct RecursiveStructuresOutput {}
         127  +
impl RecursiveStructuresOutput {
         128  +
    /// Creates a new builder-style object to manufacture [`RecursiveStructuresOutput`](crate::output::RecursiveStructuresOutput).
         129  +
    pub fn builder() -> crate::output::recursive_structures_output::Builder {
         130  +
        crate::output::recursive_structures_output::Builder::default()
  131    131   
    }
  132    132   
}
  133    133   
  134    134   
#[allow(missing_docs)] // documentation missing in model
  135    135   
#[derive(
  136    136   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  137    137   
)]
  138         -
pub struct MalformedEnumOutput {}
  139         -
impl MalformedEnumOutput {
  140         -
    /// Creates a new builder-style object to manufacture [`MalformedEnumOutput`](crate::output::MalformedEnumOutput).
  141         -
    pub fn builder() -> crate::output::malformed_enum_output::Builder {
  142         -
        crate::output::malformed_enum_output::Builder::default()
         138  +
pub struct SensitiveValidationOutput {}
         139  +
impl SensitiveValidationOutput {
         140  +
    /// Creates a new builder-style object to manufacture [`SensitiveValidationOutput`](crate::output::SensitiveValidationOutput).
         141  +
    pub fn builder() -> crate::output::sensitive_validation_output::Builder {
         142  +
        crate::output::sensitive_validation_output::Builder::default()
  143    143   
    }
  144    144   
}
  145         -
/// See [`SensitiveValidationOutput`](crate::output::SensitiveValidationOutput).
  146         -
pub mod sensitive_validation_output {
         145  +
/// See [`MalformedEnumOutput`](crate::output::MalformedEnumOutput).
         146  +
pub mod malformed_enum_output {
  147    147   
  148         -
    impl ::std::convert::From<Builder> for crate::output::SensitiveValidationOutput {
         148  +
    impl ::std::convert::From<Builder> for crate::output::MalformedEnumOutput {
  149    149   
        fn from(builder: Builder) -> Self {
  150    150   
            builder.build()
  151    151   
        }
  152    152   
    }
  153         -
    /// A builder for [`SensitiveValidationOutput`](crate::output::SensitiveValidationOutput).
         153  +
    /// A builder for [`MalformedEnumOutput`](crate::output::MalformedEnumOutput).
  154    154   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  155    155   
    pub struct Builder {}
  156    156   
    impl Builder {
  157         -
        /// Consumes the builder and constructs a [`SensitiveValidationOutput`](crate::output::SensitiveValidationOutput).
  158         -
        pub fn build(self) -> crate::output::SensitiveValidationOutput {
         157  +
        /// Consumes the builder and constructs a [`MalformedEnumOutput`](crate::output::MalformedEnumOutput).
         158  +
        pub fn build(self) -> crate::output::MalformedEnumOutput {
  159    159   
            self.build_enforcing_all_constraints()
  160    160   
        }
  161         -
        fn build_enforcing_all_constraints(self) -> crate::output::SensitiveValidationOutput {
  162         -
            crate::output::SensitiveValidationOutput {}
         161  +
        fn build_enforcing_all_constraints(self) -> crate::output::MalformedEnumOutput {
         162  +
            crate::output::MalformedEnumOutput {}
  163    163   
        }
  164    164   
    }
  165    165   
}
  166         -
/// See [`RecursiveStructuresOutput`](crate::output::RecursiveStructuresOutput).
  167         -
pub mod recursive_structures_output {
         166  +
/// See [`MalformedLengthOutput`](crate::output::MalformedLengthOutput).
         167  +
pub mod malformed_length_output {
  168    168   
  169         -
    impl ::std::convert::From<Builder> for crate::output::RecursiveStructuresOutput {
         169  +
    impl ::std::convert::From<Builder> for crate::output::MalformedLengthOutput {
  170    170   
        fn from(builder: Builder) -> Self {
  171    171   
            builder.build()
  172    172   
        }
  173    173   
    }
  174         -
    /// A builder for [`RecursiveStructuresOutput`](crate::output::RecursiveStructuresOutput).
         174  +
    /// A builder for [`MalformedLengthOutput`](crate::output::MalformedLengthOutput).
  175    175   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  176    176   
    pub struct Builder {}
  177    177   
    impl Builder {
  178         -
        /// Consumes the builder and constructs a [`RecursiveStructuresOutput`](crate::output::RecursiveStructuresOutput).
  179         -
        pub fn build(self) -> crate::output::RecursiveStructuresOutput {
         178  +
        /// Consumes the builder and constructs a [`MalformedLengthOutput`](crate::output::MalformedLengthOutput).
         179  +
        pub fn build(self) -> crate::output::MalformedLengthOutput {
  180    180   
            self.build_enforcing_all_constraints()
  181    181   
        }
  182         -
        fn build_enforcing_all_constraints(self) -> crate::output::RecursiveStructuresOutput {
  183         -
            crate::output::RecursiveStructuresOutput {}
         182  +
        fn build_enforcing_all_constraints(self) -> crate::output::MalformedLengthOutput {
         183  +
            crate::output::MalformedLengthOutput {}
  184    184   
        }
  185    185   
    }
  186    186   
}
  187         -
/// See [`MalformedUniqueItemsOutput`](crate::output::MalformedUniqueItemsOutput).
  188         -
pub mod malformed_unique_items_output {
         187  +
/// See [`MalformedLengthOverrideOutput`](crate::output::MalformedLengthOverrideOutput).
         188  +
pub mod malformed_length_override_output {
  189    189   
  190         -
    impl ::std::convert::From<Builder> for crate::output::MalformedUniqueItemsOutput {
         190  +
    impl ::std::convert::From<Builder> for crate::output::MalformedLengthOverrideOutput {
  191    191   
        fn from(builder: Builder) -> Self {
  192    192   
            builder.build()
  193    193   
        }
  194    194   
    }
  195         -
    /// A builder for [`MalformedUniqueItemsOutput`](crate::output::MalformedUniqueItemsOutput).
         195  +
    /// A builder for [`MalformedLengthOverrideOutput`](crate::output::MalformedLengthOverrideOutput).
  196    196   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  197    197   
    pub struct Builder {}
  198    198   
    impl Builder {
  199         -
        /// Consumes the builder and constructs a [`MalformedUniqueItemsOutput`](crate::output::MalformedUniqueItemsOutput).
  200         -
        pub fn build(self) -> crate::output::MalformedUniqueItemsOutput {
         199  +
        /// Consumes the builder and constructs a [`MalformedLengthOverrideOutput`](crate::output::MalformedLengthOverrideOutput).
         200  +
        pub fn build(self) -> crate::output::MalformedLengthOverrideOutput {
  201    201   
            self.build_enforcing_all_constraints()
  202    202   
        }
  203         -
        fn build_enforcing_all_constraints(self) -> crate::output::MalformedUniqueItemsOutput {
  204         -
            crate::output::MalformedUniqueItemsOutput {}
         203  +
        fn build_enforcing_all_constraints(self) -> crate::output::MalformedLengthOverrideOutput {
         204  +
            crate::output::MalformedLengthOverrideOutput {}
  205    205   
        }
  206    206   
    }
  207    207   
}
  208         -
/// See [`MalformedRequiredOutput`](crate::output::MalformedRequiredOutput).
  209         -
pub mod malformed_required_output {
         208  +
/// See [`MalformedLengthQueryStringOutput`](crate::output::MalformedLengthQueryStringOutput).
         209  +
pub mod malformed_length_query_string_output {
  210    210   
  211         -
    impl ::std::convert::From<Builder> for crate::output::MalformedRequiredOutput {
         211  +
    impl ::std::convert::From<Builder> for crate::output::MalformedLengthQueryStringOutput {
  212    212   
        fn from(builder: Builder) -> Self {
  213    213   
            builder.build()
  214    214   
        }
  215    215   
    }
  216         -
    /// A builder for [`MalformedRequiredOutput`](crate::output::MalformedRequiredOutput).
         216  +
    /// A builder for [`MalformedLengthQueryStringOutput`](crate::output::MalformedLengthQueryStringOutput).
  217    217   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  218    218   
    pub struct Builder {}
  219    219   
    impl Builder {
  220         -
        /// Consumes the builder and constructs a [`MalformedRequiredOutput`](crate::output::MalformedRequiredOutput).
  221         -
        pub fn build(self) -> crate::output::MalformedRequiredOutput {
         220  +
        /// Consumes the builder and constructs a [`MalformedLengthQueryStringOutput`](crate::output::MalformedLengthQueryStringOutput).
         221  +
        pub fn build(self) -> crate::output::MalformedLengthQueryStringOutput {
  222    222   
            self.build_enforcing_all_constraints()
  223    223   
        }
  224         -
        fn build_enforcing_all_constraints(self) -> crate::output::MalformedRequiredOutput {
  225         -
            crate::output::MalformedRequiredOutput {}
         224  +
        fn build_enforcing_all_constraints(
         225  +
            self,
         226  +
        ) -> crate::output::MalformedLengthQueryStringOutput {
         227  +
            crate::output::MalformedLengthQueryStringOutput {}
  226    228   
        }
  227    229   
    }
  228    230   
}
  229         -
/// See [`MalformedRangeOverrideOutput`](crate::output::MalformedRangeOverrideOutput).
  230         -
pub mod malformed_range_override_output {
         231  +
/// See [`MalformedPatternOutput`](crate::output::MalformedPatternOutput).
         232  +
pub mod malformed_pattern_output {
  231    233   
  232         -
    impl ::std::convert::From<Builder> for crate::output::MalformedRangeOverrideOutput {
         234  +
    impl ::std::convert::From<Builder> for crate::output::MalformedPatternOutput {
  233    235   
        fn from(builder: Builder) -> Self {
  234    236   
            builder.build()
  235    237   
        }
  236    238   
    }
  237         -
    /// A builder for [`MalformedRangeOverrideOutput`](crate::output::MalformedRangeOverrideOutput).
         239  +
    /// A builder for [`MalformedPatternOutput`](crate::output::MalformedPatternOutput).
  238    240   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  239    241   
    pub struct Builder {}
  240    242   
    impl Builder {
  241         -
        /// Consumes the builder and constructs a [`MalformedRangeOverrideOutput`](crate::output::MalformedRangeOverrideOutput).
  242         -
        pub fn build(self) -> crate::output::MalformedRangeOverrideOutput {
         243  +
        /// Consumes the builder and constructs a [`MalformedPatternOutput`](crate::output::MalformedPatternOutput).
         244  +
        pub fn build(self) -> crate::output::MalformedPatternOutput {
  243    245   
            self.build_enforcing_all_constraints()
  244    246   
        }
  245         -
        fn build_enforcing_all_constraints(self) -> crate::output::MalformedRangeOverrideOutput {
  246         -
            crate::output::MalformedRangeOverrideOutput {}
         247  +
        fn build_enforcing_all_constraints(self) -> crate::output::MalformedPatternOutput {
         248  +
            crate::output::MalformedPatternOutput {}
  247    249   
        }
  248    250   
    }
  249    251   
}
  250         -
/// See [`MalformedRangeOutput`](crate::output::MalformedRangeOutput).
  251         -
pub mod malformed_range_output {
         252  +
/// See [`MalformedPatternOverrideOutput`](crate::output::MalformedPatternOverrideOutput).
         253  +
pub mod malformed_pattern_override_output {
  252    254   
  253         -
    impl ::std::convert::From<Builder> for crate::output::MalformedRangeOutput {
         255  +
    impl ::std::convert::From<Builder> for crate::output::MalformedPatternOverrideOutput {
  254    256   
        fn from(builder: Builder) -> Self {
  255    257   
            builder.build()
  256    258   
        }
  257    259   
    }
  258         -
    /// A builder for [`MalformedRangeOutput`](crate::output::MalformedRangeOutput).
         260  +
    /// A builder for [`MalformedPatternOverrideOutput`](crate::output::MalformedPatternOverrideOutput).
  259    261   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  260    262   
    pub struct Builder {}
  261    263   
    impl Builder {
  262         -
        /// Consumes the builder and constructs a [`MalformedRangeOutput`](crate::output::MalformedRangeOutput).
  263         -
        pub fn build(self) -> crate::output::MalformedRangeOutput {
         264  +
        /// Consumes the builder and constructs a [`MalformedPatternOverrideOutput`](crate::output::MalformedPatternOverrideOutput).
         265  +
        pub fn build(self) -> crate::output::MalformedPatternOverrideOutput {
  264    266   
            self.build_enforcing_all_constraints()
  265    267   
        }
  266         -
        fn build_enforcing_all_constraints(self) -> crate::output::MalformedRangeOutput {
  267         -
            crate::output::MalformedRangeOutput {}
         268  +
        fn build_enforcing_all_constraints(self) -> crate::output::MalformedPatternOverrideOutput {
         269  +
            crate::output::MalformedPatternOverrideOutput {}
  268    270   
        }
  269    271   
    }
  270    272   
}
  271         -
/// See [`MalformedPatternOverrideOutput`](crate::output::MalformedPatternOverrideOutput).
  272         -
pub mod malformed_pattern_override_output {
         273  +
/// See [`MalformedRangeOutput`](crate::output::MalformedRangeOutput).
         274  +
pub mod malformed_range_output {
  273    275   
  274         -
    impl ::std::convert::From<Builder> for crate::output::MalformedPatternOverrideOutput {
         276  +
    impl ::std::convert::From<Builder> for crate::output::MalformedRangeOutput {
  275    277   
        fn from(builder: Builder) -> Self {
  276    278   
            builder.build()
  277    279   
        }
  278    280   
    }
  279         -
    /// A builder for [`MalformedPatternOverrideOutput`](crate::output::MalformedPatternOverrideOutput).
         281  +
    /// A builder for [`MalformedRangeOutput`](crate::output::MalformedRangeOutput).
  280    282   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  281    283   
    pub struct Builder {}
  282    284   
    impl Builder {
  283         -
        /// Consumes the builder and constructs a [`MalformedPatternOverrideOutput`](crate::output::MalformedPatternOverrideOutput).
  284         -
        pub fn build(self) -> crate::output::MalformedPatternOverrideOutput {
         285  +
        /// Consumes the builder and constructs a [`MalformedRangeOutput`](crate::output::MalformedRangeOutput).
         286  +
        pub fn build(self) -> crate::output::MalformedRangeOutput {
  285    287   
            self.build_enforcing_all_constraints()
  286    288   
        }
  287         -
        fn build_enforcing_all_constraints(self) -> crate::output::MalformedPatternOverrideOutput {
  288         -
            crate::output::MalformedPatternOverrideOutput {}
         289  +
        fn build_enforcing_all_constraints(self) -> crate::output::MalformedRangeOutput {
         290  +
            crate::output::MalformedRangeOutput {}
  289    291   
        }
  290    292   
    }
  291    293   
}
  292         -
/// See [`MalformedPatternOutput`](crate::output::MalformedPatternOutput).
  293         -
pub mod malformed_pattern_output {
         294  +
/// See [`MalformedRangeOverrideOutput`](crate::output::MalformedRangeOverrideOutput).
         295  +
pub mod malformed_range_override_output {
  294    296   
  295         -
    impl ::std::convert::From<Builder> for crate::output::MalformedPatternOutput {
         297  +
    impl ::std::convert::From<Builder> for crate::output::MalformedRangeOverrideOutput {
  296    298   
        fn from(builder: Builder) -> Self {
  297    299   
            builder.build()
  298    300   
        }
  299    301   
    }
  300         -
    /// A builder for [`MalformedPatternOutput`](crate::output::MalformedPatternOutput).
         302  +
    /// A builder for [`MalformedRangeOverrideOutput`](crate::output::MalformedRangeOverrideOutput).
  301    303   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  302    304   
    pub struct Builder {}
  303    305   
    impl Builder {
  304         -
        /// Consumes the builder and constructs a [`MalformedPatternOutput`](crate::output::MalformedPatternOutput).
  305         -
        pub fn build(self) -> crate::output::MalformedPatternOutput {
         306  +
        /// Consumes the builder and constructs a [`MalformedRangeOverrideOutput`](crate::output::MalformedRangeOverrideOutput).
         307  +
        pub fn build(self) -> crate::output::MalformedRangeOverrideOutput {
  306    308   
            self.build_enforcing_all_constraints()
  307    309   
        }
  308         -
        fn build_enforcing_all_constraints(self) -> crate::output::MalformedPatternOutput {
  309         -
            crate::output::MalformedPatternOutput {}
         310  +
        fn build_enforcing_all_constraints(self) -> crate::output::MalformedRangeOverrideOutput {
         311  +
            crate::output::MalformedRangeOverrideOutput {}
  310    312   
        }
  311    313   
    }
  312    314   
}
  313         -
/// See [`MalformedLengthQueryStringOutput`](crate::output::MalformedLengthQueryStringOutput).
  314         -
pub mod malformed_length_query_string_output {
         315  +
/// See [`MalformedRequiredOutput`](crate::output::MalformedRequiredOutput).
         316  +
pub mod malformed_required_output {
  315    317   
  316         -
    impl ::std::convert::From<Builder> for crate::output::MalformedLengthQueryStringOutput {
         318  +
    impl ::std::convert::From<Builder> for crate::output::MalformedRequiredOutput {
  317    319   
        fn from(builder: Builder) -> Self {
  318    320   
            builder.build()
  319    321   
        }
  320    322   
    }
  321         -
    /// A builder for [`MalformedLengthQueryStringOutput`](crate::output::MalformedLengthQueryStringOutput).
         323  +
    /// A builder for [`MalformedRequiredOutput`](crate::output::MalformedRequiredOutput).
  322    324   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  323    325   
    pub struct Builder {}
  324    326   
    impl Builder {
  325         -
        /// Consumes the builder and constructs a [`MalformedLengthQueryStringOutput`](crate::output::MalformedLengthQueryStringOutput).
  326         -
        pub fn build(self) -> crate::output::MalformedLengthQueryStringOutput {
         327  +
        /// Consumes the builder and constructs a [`MalformedRequiredOutput`](crate::output::MalformedRequiredOutput).
         328  +
        pub fn build(self) -> crate::output::MalformedRequiredOutput {
  327    329   
            self.build_enforcing_all_constraints()
  328    330   
        }
  329         -
        fn build_enforcing_all_constraints(
  330         -
            self,
  331         -
        ) -> crate::output::MalformedLengthQueryStringOutput {
  332         -
            crate::output::MalformedLengthQueryStringOutput {}
         331  +
        fn build_enforcing_all_constraints(self) -> crate::output::MalformedRequiredOutput {
         332  +
            crate::output::MalformedRequiredOutput {}
  333    333   
        }
  334    334   
    }
  335    335   
}
  336         -
/// See [`MalformedLengthOverrideOutput`](crate::output::MalformedLengthOverrideOutput).
  337         -
pub mod malformed_length_override_output {
         336  +
/// See [`MalformedUniqueItemsOutput`](crate::output::MalformedUniqueItemsOutput).
         337  +
pub mod malformed_unique_items_output {
  338    338   
  339         -
    impl ::std::convert::From<Builder> for crate::output::MalformedLengthOverrideOutput {
         339  +
    impl ::std::convert::From<Builder> for crate::output::MalformedUniqueItemsOutput {
  340    340   
        fn from(builder: Builder) -> Self {
  341    341   
            builder.build()
  342    342   
        }
  343    343   
    }
  344         -
    /// A builder for [`MalformedLengthOverrideOutput`](crate::output::MalformedLengthOverrideOutput).
         344  +
    /// A builder for [`MalformedUniqueItemsOutput`](crate::output::MalformedUniqueItemsOutput).
  345    345   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  346    346   
    pub struct Builder {}
  347    347   
    impl Builder {
  348         -
        /// Consumes the builder and constructs a [`MalformedLengthOverrideOutput`](crate::output::MalformedLengthOverrideOutput).
  349         -
        pub fn build(self) -> crate::output::MalformedLengthOverrideOutput {
         348  +
        /// Consumes the builder and constructs a [`MalformedUniqueItemsOutput`](crate::output::MalformedUniqueItemsOutput).
         349  +
        pub fn build(self) -> crate::output::MalformedUniqueItemsOutput {
  350    350   
            self.build_enforcing_all_constraints()
  351    351   
        }
  352         -
        fn build_enforcing_all_constraints(self) -> crate::output::MalformedLengthOverrideOutput {
  353         -
            crate::output::MalformedLengthOverrideOutput {}
         352  +
        fn build_enforcing_all_constraints(self) -> crate::output::MalformedUniqueItemsOutput {
         353  +
            crate::output::MalformedUniqueItemsOutput {}
  354    354   
        }
  355    355   
    }
  356    356   
}
  357         -
/// See [`MalformedLengthOutput`](crate::output::MalformedLengthOutput).
  358         -
pub mod malformed_length_output {
         357  +
/// See [`RecursiveStructuresOutput`](crate::output::RecursiveStructuresOutput).
         358  +
pub mod recursive_structures_output {
  359    359   
  360         -
    impl ::std::convert::From<Builder> for crate::output::MalformedLengthOutput {
         360  +
    impl ::std::convert::From<Builder> for crate::output::RecursiveStructuresOutput {
  361    361   
        fn from(builder: Builder) -> Self {
  362    362   
            builder.build()
  363    363   
        }
  364    364   
    }
  365         -
    /// A builder for [`MalformedLengthOutput`](crate::output::MalformedLengthOutput).
         365  +
    /// A builder for [`RecursiveStructuresOutput`](crate::output::RecursiveStructuresOutput).
  366    366   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  367    367   
    pub struct Builder {}
  368    368   
    impl Builder {
  369         -
        /// Consumes the builder and constructs a [`MalformedLengthOutput`](crate::output::MalformedLengthOutput).
  370         -
        pub fn build(self) -> crate::output::MalformedLengthOutput {
         369  +
        /// Consumes the builder and constructs a [`RecursiveStructuresOutput`](crate::output::RecursiveStructuresOutput).
         370  +
        pub fn build(self) -> crate::output::RecursiveStructuresOutput {
  371    371   
            self.build_enforcing_all_constraints()
  372    372   
        }
  373         -
        fn build_enforcing_all_constraints(self) -> crate::output::MalformedLengthOutput {
  374         -
            crate::output::MalformedLengthOutput {}
         373  +
        fn build_enforcing_all_constraints(self) -> crate::output::RecursiveStructuresOutput {
         374  +
            crate::output::RecursiveStructuresOutput {}
  375    375   
        }
  376    376   
    }
  377    377   
}
  378         -
/// See [`MalformedEnumOutput`](crate::output::MalformedEnumOutput).
  379         -
pub mod malformed_enum_output {
         378  +
/// See [`SensitiveValidationOutput`](crate::output::SensitiveValidationOutput).
         379  +
pub mod sensitive_validation_output {
  380    380   
  381         -
    impl ::std::convert::From<Builder> for crate::output::MalformedEnumOutput {
         381  +
    impl ::std::convert::From<Builder> for crate::output::SensitiveValidationOutput {
  382    382   
        fn from(builder: Builder) -> Self {
  383    383   
            builder.build()
  384    384   
        }
  385    385   
    }
  386         -
    /// A builder for [`MalformedEnumOutput`](crate::output::MalformedEnumOutput).
         386  +
    /// A builder for [`SensitiveValidationOutput`](crate::output::SensitiveValidationOutput).
  387    387   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  388    388   
    pub struct Builder {}
  389    389   
    impl Builder {
  390         -
        /// Consumes the builder and constructs a [`MalformedEnumOutput`](crate::output::MalformedEnumOutput).
  391         -
        pub fn build(self) -> crate::output::MalformedEnumOutput {
         390  +
        /// Consumes the builder and constructs a [`SensitiveValidationOutput`](crate::output::SensitiveValidationOutput).
         391  +
        pub fn build(self) -> crate::output::SensitiveValidationOutput {
  392    392   
            self.build_enforcing_all_constraints()
  393    393   
        }
  394         -
        fn build_enforcing_all_constraints(self) -> crate::output::MalformedEnumOutput {
  395         -
            crate::output::MalformedEnumOutput {}
         394  +
        fn build_enforcing_all_constraints(self) -> crate::output::SensitiveValidationOutput {
         395  +
            crate::output::SensitiveValidationOutput {}
  396    396   
        }
  397    397   
    }
  398    398   
}

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

@@ -1927,1927 +1995,1995 @@
 1947   1947   
                    ".sensitive_validation()",
 1948   1948   
                );
 1949   1949   
            }
 1950   1950   
            if !missing_operation_names.is_empty() {
 1951   1951   
                return Err(MissingOperationsError {
 1952   1952   
                    operation_names2setter_methods: missing_operation_names,
 1953   1953   
                });
 1954   1954   
            }
 1955   1955   
            let unexpected_error_msg = "this should never panic since we are supposed to check beforehand that a handler has been registered for this operation; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues";
 1956   1956   
 1957         -
            crate::model::SensitivePatternString::compile_regex();
 1958         -
            crate::model::pattern_union_override::Second::compile_regex();
 1959         -
            crate::model::pattern_union_override::First::compile_regex();
 1960         -
            crate::model::pattern_map_override::Value::compile_regex();
 1961         -
            crate::model::pattern_map_override::Key::compile_regex();
 1962         -
            crate::model::pattern_list_override::Member::compile_regex();
 1963         -
            crate::input::malformed_pattern_override_input::String::compile_regex();
 1964   1957   
            crate::model::PatternString::compile_regex();
 1965   1958   
            crate::model::EvilString::compile_regex();
        1959  +
            crate::input::malformed_pattern_override_input::String::compile_regex();
        1960  +
            crate::model::SensitivePatternString::compile_regex();
        1961  +
            crate::model::pattern_list_override::Member::compile_regex();
        1962  +
            crate::model::pattern_map_override::Key::compile_regex();
        1963  +
            crate::model::pattern_map_override::Value::compile_regex();
        1964  +
            crate::model::pattern_union_override::First::compile_regex();
        1965  +
            crate::model::pattern_union_override::Second::compile_regex();
 1966   1966   
 1967   1967   
            ::aws_smithy_legacy_http_server::protocol::rest::router::RestRouter::from_iter([
 1968   1968   
                (
 1969   1969   
                    request_specs::malformed_enum(),
 1970   1970   
                    self.malformed_enum.expect(unexpected_error_msg),
 1971   1971   
                ),
 1972   1972   
                (
 1973   1973   
                    request_specs::malformed_length(),
 1974   1974   
                    self.malformed_length.expect(unexpected_error_msg),
 1975   1975   
                ),

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

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