Server Test Python

Server Test Python

rev. 3c756f73b1f83a0eed4275d9d1e22df0b10b66fb

Files changed:

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

@@ -1,1 +826,832 @@
    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   
pub struct EventStreamsOperation;
    4      4   
    5         -
impl ::aws_smithy_http_server::operation::OperationShape for EventStreamsOperation {
    6         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
    7         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
           5  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for EventStreamsOperation {
           6  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
           7  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
    8      8   
            "com.amazonaws.constraints#EventStreamsOperation",
    9      9   
            "com.amazonaws.constraints",
   10     10   
            "EventStreamsOperation",
   11     11   
        );
   12     12   
   13     13   
    type Input = crate::input::EventStreamsOperationInput;
   14     14   
    type Output = crate::output::EventStreamsOperationOutput;
   15     15   
    type Error = crate::error::EventStreamsOperationError;
   16     16   
}
   17     17   
   18         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for EventStreamsOperation {
   19         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
   20         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
   21         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
   22         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
   23         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
          18  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
          19  +
    for EventStreamsOperation
          20  +
{
          21  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
          22  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
          23  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
          24  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
          25  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
   24     26   
        >,
   25     27   
    >;
   26         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
   27         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
   28         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
          28  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
          29  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
          30  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
   29     31   
    >;
   30     32   
   31     33   
    fn request_fmt() -> Self::RequestFmt {
   32         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
          34  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
   33     35   
    }
   34     36   
   35     37   
    fn response_fmt() -> Self::ResponseFmt {
   36         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
          38  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
   37     39   
    }
   38     40   
}
   39     41   
   40     42   
#[allow(missing_docs)] // documentation missing in model
   41     43   
pub struct StreamingBlobOperation;
   42     44   
   43         -
impl ::aws_smithy_http_server::operation::OperationShape for StreamingBlobOperation {
   44         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
   45         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
          45  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for StreamingBlobOperation {
          46  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
          47  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
   46     48   
            "com.amazonaws.constraints#StreamingBlobOperation",
   47     49   
            "com.amazonaws.constraints",
   48     50   
            "StreamingBlobOperation",
   49     51   
        );
   50     52   
   51     53   
    type Input = crate::input::StreamingBlobOperationInput;
   52     54   
    type Output = crate::output::StreamingBlobOperationOutput;
   53     55   
    type Error = crate::error::StreamingBlobOperationError;
   54     56   
}
   55     57   
   56         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
          58  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
   57     59   
    for StreamingBlobOperation
   58     60   
{
   59         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
   60         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
   61         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
   62         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
   63         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
          61  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
          62  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
          63  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
          64  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
          65  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
   64     66   
        >,
   65     67   
    >;
   66         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
   67         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
   68         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
          68  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
          69  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
          70  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
   69     71   
    >;
   70     72   
   71     73   
    fn request_fmt() -> Self::RequestFmt {
   72         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
          74  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
   73     75   
    }
   74     76   
   75     77   
    fn response_fmt() -> Self::ResponseFmt {
   76         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
          78  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
   77     79   
    }
   78     80   
}
   79     81   
   80     82   
#[allow(missing_docs)] // documentation missing in model
   81     83   
pub struct NonStreamingBlobOperation;
   82     84   
   83         -
impl ::aws_smithy_http_server::operation::OperationShape for NonStreamingBlobOperation {
   84         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
   85         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
          85  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for NonStreamingBlobOperation {
          86  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
          87  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
   86     88   
            "com.amazonaws.constraints#NonStreamingBlobOperation",
   87     89   
            "com.amazonaws.constraints",
   88     90   
            "NonStreamingBlobOperation",
   89     91   
        );
   90     92   
   91     93   
    type Input = crate::input::NonStreamingBlobOperationInput;
   92     94   
    type Output = crate::output::NonStreamingBlobOperationOutput;
   93     95   
    type Error = crate::error::NonStreamingBlobOperationError;
   94     96   
}
   95     97   
   96         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
          98  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
   97     99   
    for NonStreamingBlobOperation
   98    100   
{
   99         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  100         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  101         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  102         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  103         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         101  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         102  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         103  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         104  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         105  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  104    106   
        >,
  105    107   
    >;
  106         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  107         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  108         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         108  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         109  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         110  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  109    111   
    >;
  110    112   
  111    113   
    fn request_fmt() -> Self::RequestFmt {
  112         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         114  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  113    115   
    }
  114    116   
  115    117   
    fn response_fmt() -> Self::ResponseFmt {
  116         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         118  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  117    119   
    }
  118    120   
}
  119    121   
  120    122   
#[allow(missing_docs)] // documentation missing in model
  121    123   
pub struct QueryParamsTargetingMapOfEnumStringOperation;
  122    124   
  123         -
impl ::aws_smithy_http_server::operation::OperationShape
         125  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape
  124    126   
    for QueryParamsTargetingMapOfEnumStringOperation
  125    127   
{
  126         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  127         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         128  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         129  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  128    130   
            "com.amazonaws.constraints#QueryParamsTargetingMapOfEnumStringOperation",
  129    131   
            "com.amazonaws.constraints",
  130    132   
            "QueryParamsTargetingMapOfEnumStringOperation",
  131    133   
        );
  132    134   
  133    135   
    type Input = crate::input::QueryParamsTargetingMapOfEnumStringOperationInput;
  134    136   
    type Output = crate::output::QueryParamsTargetingMapOfEnumStringOperationOutput;
  135    137   
    type Error = crate::error::QueryParamsTargetingMapOfEnumStringOperationError;
  136    138   
}
  137    139   
  138         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
         140  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
  139    141   
    for QueryParamsTargetingMapOfEnumStringOperation
  140    142   
{
  141         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  142         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  143         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  144         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  145         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         143  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         144  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         145  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         146  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         147  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  146    148   
        >,
  147    149   
    >;
  148         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  149         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  150         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         150  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         151  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         152  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  151    153   
    >;
  152    154   
  153    155   
    fn request_fmt() -> Self::RequestFmt {
  154         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         156  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  155    157   
    }
  156    158   
  157    159   
    fn response_fmt() -> Self::ResponseFmt {
  158         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         160  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  159    161   
    }
  160    162   
}
  161    163   
  162    164   
#[allow(missing_docs)] // documentation missing in model
  163    165   
pub struct HttpPrefixHeadersTargetingLengthMapOperation;
  164    166   
  165         -
impl ::aws_smithy_http_server::operation::OperationShape
         167  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape
  166    168   
    for HttpPrefixHeadersTargetingLengthMapOperation
  167    169   
{
  168         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  169         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         170  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         171  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  170    172   
            "com.amazonaws.constraints#HttpPrefixHeadersTargetingLengthMapOperation",
  171    173   
            "com.amazonaws.constraints",
  172    174   
            "HttpPrefixHeadersTargetingLengthMapOperation",
  173    175   
        );
  174    176   
  175    177   
    type Input = crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput;
  176    178   
    type Output = crate::output::HttpPrefixHeadersTargetingLengthMapOperationOutput;
  177    179   
    type Error = crate::error::HttpPrefixHeadersTargetingLengthMapOperationError;
  178    180   
}
  179    181   
  180         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
         182  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
  181    183   
    for HttpPrefixHeadersTargetingLengthMapOperation
  182    184   
{
  183         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  184         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  185         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  186         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  187         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         185  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         186  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         187  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         188  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         189  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  188    190   
        >,
  189    191   
    >;
  190         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  191         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  192         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         192  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         193  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         194  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  193    195   
    >;
  194    196   
  195    197   
    fn request_fmt() -> Self::RequestFmt {
  196         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         198  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  197    199   
    }
  198    200   
  199    201   
    fn response_fmt() -> Self::ResponseFmt {
  200         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         202  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  201    203   
    }
  202    204   
}
  203    205   
  204    206   
#[allow(missing_docs)] // documentation missing in model
  205    207   
pub struct QueryParamsTargetingMapOfListOfLengthPatternStringOperation;
  206    208   
  207         -
impl ::aws_smithy_http_server::operation::OperationShape
         209  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape
  208    210   
    for QueryParamsTargetingMapOfListOfLengthPatternStringOperation
  209    211   
{
  210         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  211         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         212  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         213  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  212    214   
            "com.amazonaws.constraints#QueryParamsTargetingMapOfListOfLengthPatternStringOperation",
  213    215   
            "com.amazonaws.constraints",
  214    216   
            "QueryParamsTargetingMapOfListOfLengthPatternStringOperation",
  215    217   
        );
  216    218   
  217    219   
    type Input = crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput;
  218    220   
    type Output = crate::output::QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput;
  219    221   
    type Error = crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError;
  220    222   
}
  221    223   
  222         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
         224  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
  223    225   
    for QueryParamsTargetingMapOfListOfLengthPatternStringOperation
  224    226   
{
  225         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  226         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  227         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  228         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  229         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         227  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         228  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         229  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         230  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         231  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  230    232   
        >,
  231    233   
    >;
  232         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  233         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  234         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         234  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         235  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         236  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  235    237   
    >;
  236    238   
  237    239   
    fn request_fmt() -> Self::RequestFmt {
  238         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         240  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  239    241   
    }
  240    242   
  241    243   
    fn response_fmt() -> Self::ResponseFmt {
  242         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         244  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  243    245   
    }
  244    246   
}
  245    247   
  246    248   
#[allow(missing_docs)] // documentation missing in model
  247    249   
pub struct QueryParamsTargetingMapOfLengthPatternStringOperation;
  248    250   
  249         -
impl ::aws_smithy_http_server::operation::OperationShape
         251  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape
  250    252   
    for QueryParamsTargetingMapOfLengthPatternStringOperation
  251    253   
{
  252         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  253         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         254  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         255  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  254    256   
            "com.amazonaws.constraints#QueryParamsTargetingMapOfLengthPatternStringOperation",
  255    257   
            "com.amazonaws.constraints",
  256    258   
            "QueryParamsTargetingMapOfLengthPatternStringOperation",
  257    259   
        );
  258    260   
  259    261   
    type Input = crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput;
  260    262   
    type Output = crate::output::QueryParamsTargetingMapOfLengthPatternStringOperationOutput;
  261    263   
    type Error = crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError;
  262    264   
}
  263    265   
  264         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
         266  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
  265    267   
    for QueryParamsTargetingMapOfLengthPatternStringOperation
  266    268   
{
  267         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  268         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  269         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  270         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  271         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         269  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         270  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         271  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         272  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         273  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  272    274   
        >,
  273    275   
    >;
  274         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  275         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  276         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         276  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         277  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         278  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  277    279   
    >;
  278    280   
  279    281   
    fn request_fmt() -> Self::RequestFmt {
  280         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         282  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  281    283   
    }
  282    284   
  283    285   
    fn response_fmt() -> Self::ResponseFmt {
  284         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         286  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  285    287   
    }
  286    288   
}
  287    289   
  288    290   
#[allow(missing_docs)] // documentation missing in model
  289    291   
pub struct QueryParamsTargetingMapOfListOfPatternStringOperation;
  290    292   
  291         -
impl ::aws_smithy_http_server::operation::OperationShape
         293  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape
  292    294   
    for QueryParamsTargetingMapOfListOfPatternStringOperation
  293    295   
{
  294         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  295         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         296  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         297  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  296    298   
            "com.amazonaws.constraints#QueryParamsTargetingMapOfListOfPatternStringOperation",
  297    299   
            "com.amazonaws.constraints",
  298    300   
            "QueryParamsTargetingMapOfListOfPatternStringOperation",
  299    301   
        );
  300    302   
  301    303   
    type Input = crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput;
  302    304   
    type Output = crate::output::QueryParamsTargetingMapOfListOfPatternStringOperationOutput;
  303    305   
    type Error = crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError;
  304    306   
}
  305    307   
  306         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
         308  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
  307    309   
    for QueryParamsTargetingMapOfListOfPatternStringOperation
  308    310   
{
  309         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  310         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  311         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  312         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  313         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         311  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         312  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         313  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         314  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         315  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  314    316   
        >,
  315    317   
    >;
  316         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  317         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  318         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         318  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         319  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         320  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  319    321   
    >;
  320    322   
  321    323   
    fn request_fmt() -> Self::RequestFmt {
  322         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         324  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  323    325   
    }
  324    326   
  325    327   
    fn response_fmt() -> Self::ResponseFmt {
  326         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         328  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  327    329   
    }
  328    330   
}
  329    331   
  330    332   
#[allow(missing_docs)] // documentation missing in model
  331    333   
pub struct QueryParamsTargetingMapOfPatternStringOperation;
  332    334   
  333         -
impl ::aws_smithy_http_server::operation::OperationShape
         335  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape
  334    336   
    for QueryParamsTargetingMapOfPatternStringOperation
  335    337   
{
  336         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  337         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         338  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         339  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  338    340   
            "com.amazonaws.constraints#QueryParamsTargetingMapOfPatternStringOperation",
  339    341   
            "com.amazonaws.constraints",
  340    342   
            "QueryParamsTargetingMapOfPatternStringOperation",
  341    343   
        );
  342    344   
  343    345   
    type Input = crate::input::QueryParamsTargetingMapOfPatternStringOperationInput;
  344    346   
    type Output = crate::output::QueryParamsTargetingMapOfPatternStringOperationOutput;
  345    347   
    type Error = crate::error::QueryParamsTargetingMapOfPatternStringOperationError;
  346    348   
}
  347    349   
  348         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
         350  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
  349    351   
    for QueryParamsTargetingMapOfPatternStringOperation
  350    352   
{
  351         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  352         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  353         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  354         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  355         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         353  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         354  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         355  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         356  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         357  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  356    358   
        >,
  357    359   
    >;
  358         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  359         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  360         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         360  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         361  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         362  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  361    363   
    >;
  362    364   
  363    365   
    fn request_fmt() -> Self::RequestFmt {
  364         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         366  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  365    367   
    }
  366    368   
  367    369   
    fn response_fmt() -> Self::ResponseFmt {
  368         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         370  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  369    371   
    }
  370    372   
}
  371    373   
  372    374   
#[allow(missing_docs)] // documentation missing in model
  373    375   
pub struct QueryParamsTargetingMapOfListOfEnumStringOperation;
  374    376   
  375         -
impl ::aws_smithy_http_server::operation::OperationShape
         377  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape
  376    378   
    for QueryParamsTargetingMapOfListOfEnumStringOperation
  377    379   
{
  378         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  379         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         380  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         381  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  380    382   
            "com.amazonaws.constraints#QueryParamsTargetingMapOfListOfEnumStringOperation",
  381    383   
            "com.amazonaws.constraints",
  382    384   
            "QueryParamsTargetingMapOfListOfEnumStringOperation",
  383    385   
        );
  384    386   
  385    387   
    type Input = crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput;
  386    388   
    type Output = crate::output::QueryParamsTargetingMapOfListOfEnumStringOperationOutput;
  387    389   
    type Error = crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError;
  388    390   
}
  389    391   
  390         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
         392  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
  391    393   
    for QueryParamsTargetingMapOfListOfEnumStringOperation
  392    394   
{
  393         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  394         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  395         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  396         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  397         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         395  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         396  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         397  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         398  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         399  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  398    400   
        >,
  399    401   
    >;
  400         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  401         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  402         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         402  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         403  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         404  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  403    405   
    >;
  404    406   
  405    407   
    fn request_fmt() -> Self::RequestFmt {
  406         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         408  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  407    409   
    }
  408    410   
  409    411   
    fn response_fmt() -> Self::ResponseFmt {
  410         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         412  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  411    413   
    }
  412    414   
}
  413    415   
  414    416   
#[allow(missing_docs)] // documentation missing in model
  415    417   
pub struct QueryParamsTargetingMapOfLengthListOfPatternStringOperation;
  416    418   
  417         -
impl ::aws_smithy_http_server::operation::OperationShape
         419  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape
  418    420   
    for QueryParamsTargetingMapOfLengthListOfPatternStringOperation
  419    421   
{
  420         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  421         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         422  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         423  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  422    424   
            "com.amazonaws.constraints#QueryParamsTargetingMapOfLengthListOfPatternStringOperation",
  423    425   
            "com.amazonaws.constraints",
  424    426   
            "QueryParamsTargetingMapOfLengthListOfPatternStringOperation",
  425    427   
        );
  426    428   
  427    429   
    type Input = crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput;
  428    430   
    type Output = crate::output::QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput;
  429    431   
    type Error = crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError;
  430    432   
}
  431    433   
  432         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
         434  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
  433    435   
    for QueryParamsTargetingMapOfLengthListOfPatternStringOperation
  434    436   
{
  435         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  436         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  437         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  438         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  439         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         437  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         438  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         439  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         440  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         441  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  440    442   
        >,
  441    443   
    >;
  442         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  443         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  444         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         444  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         445  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         446  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  445    447   
    >;
  446    448   
  447    449   
    fn request_fmt() -> Self::RequestFmt {
  448         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         450  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  449    451   
    }
  450    452   
  451    453   
    fn response_fmt() -> Self::ResponseFmt {
  452         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         454  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  453    455   
    }
  454    456   
}
  455    457   
  456    458   
#[allow(missing_docs)] // documentation missing in model
  457    459   
pub struct QueryParamsTargetingMapOfSetOfLengthStringOperation;
  458    460   
  459         -
impl ::aws_smithy_http_server::operation::OperationShape
         461  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape
  460    462   
    for QueryParamsTargetingMapOfSetOfLengthStringOperation
  461    463   
{
  462         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  463         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         464  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         465  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  464    466   
            "com.amazonaws.constraints#QueryParamsTargetingMapOfSetOfLengthStringOperation",
  465    467   
            "com.amazonaws.constraints",
  466    468   
            "QueryParamsTargetingMapOfSetOfLengthStringOperation",
  467    469   
        );
  468    470   
  469    471   
    type Input = crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput;
  470    472   
    type Output = crate::output::QueryParamsTargetingMapOfSetOfLengthStringOperationOutput;
  471    473   
    type Error = crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError;
  472    474   
}
  473    475   
  474         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
         476  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
  475    477   
    for QueryParamsTargetingMapOfSetOfLengthStringOperation
  476    478   
{
  477         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  478         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  479         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  480         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  481         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         479  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         480  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         481  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         482  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         483  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  482    484   
        >,
  483    485   
    >;
  484         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  485         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  486         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         486  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         487  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         488  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  487    489   
    >;
  488    490   
  489    491   
    fn request_fmt() -> Self::RequestFmt {
  490         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         492  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  491    493   
    }
  492    494   
  493    495   
    fn response_fmt() -> Self::ResponseFmt {
  494         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         496  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  495    497   
    }
  496    498   
}
  497    499   
  498    500   
#[allow(missing_docs)] // documentation missing in model
  499    501   
pub struct QueryParamsTargetingMapOfListOfLengthStringOperation;
  500    502   
  501         -
impl ::aws_smithy_http_server::operation::OperationShape
         503  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape
  502    504   
    for QueryParamsTargetingMapOfListOfLengthStringOperation
  503    505   
{
  504         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  505         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         506  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         507  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  506    508   
            "com.amazonaws.constraints#QueryParamsTargetingMapOfListOfLengthStringOperation",
  507    509   
            "com.amazonaws.constraints",
  508    510   
            "QueryParamsTargetingMapOfListOfLengthStringOperation",
  509    511   
        );
  510    512   
  511    513   
    type Input = crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput;
  512    514   
    type Output = crate::output::QueryParamsTargetingMapOfListOfLengthStringOperationOutput;
  513    515   
    type Error = crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError;
  514    516   
}
  515    517   
  516         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
         518  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
  517    519   
    for QueryParamsTargetingMapOfListOfLengthStringOperation
  518    520   
{
  519         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  520         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  521         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  522         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  523         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         521  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         522  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         523  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         524  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         525  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  524    526   
        >,
  525    527   
    >;
  526         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  527         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  528         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         528  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         529  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         530  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  529    531   
    >;
  530    532   
  531    533   
    fn request_fmt() -> Self::RequestFmt {
  532         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         534  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  533    535   
    }
  534    536   
  535    537   
    fn response_fmt() -> Self::ResponseFmt {
  536         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         538  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  537    539   
    }
  538    540   
}
  539    541   
  540    542   
#[allow(missing_docs)] // documentation missing in model
  541    543   
pub struct QueryParamsTargetingMapOfLengthStringOperation;
  542    544   
  543         -
impl ::aws_smithy_http_server::operation::OperationShape
         545  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape
  544    546   
    for QueryParamsTargetingMapOfLengthStringOperation
  545    547   
{
  546         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  547         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         548  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         549  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  548    550   
            "com.amazonaws.constraints#QueryParamsTargetingMapOfLengthStringOperation",
  549    551   
            "com.amazonaws.constraints",
  550    552   
            "QueryParamsTargetingMapOfLengthStringOperation",
  551    553   
        );
  552    554   
  553    555   
    type Input = crate::input::QueryParamsTargetingMapOfLengthStringOperationInput;
  554    556   
    type Output = crate::output::QueryParamsTargetingMapOfLengthStringOperationOutput;
  555    557   
    type Error = crate::error::QueryParamsTargetingMapOfLengthStringOperationError;
  556    558   
}
  557    559   
  558         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
         560  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
  559    561   
    for QueryParamsTargetingMapOfLengthStringOperation
  560    562   
{
  561         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  562         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  563         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  564         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  565         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         563  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         564  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         565  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         566  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         567  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  566    568   
        >,
  567    569   
    >;
  568         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  569         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  570         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         570  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         571  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         572  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  571    573   
    >;
  572    574   
  573    575   
    fn request_fmt() -> Self::RequestFmt {
  574         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         576  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  575    577   
    }
  576    578   
  577    579   
    fn response_fmt() -> Self::ResponseFmt {
  578         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         580  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  579    581   
    }
  580    582   
}
  581    583   
  582    584   
#[allow(missing_docs)] // documentation missing in model
  583    585   
pub struct QueryParamsTargetingLengthMapOperation;
  584    586   
  585         -
impl ::aws_smithy_http_server::operation::OperationShape
         587  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape
  586    588   
    for QueryParamsTargetingLengthMapOperation
  587    589   
{
  588         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  589         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         590  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         591  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  590    592   
            "com.amazonaws.constraints#QueryParamsTargetingLengthMapOperation",
  591    593   
            "com.amazonaws.constraints",
  592    594   
            "QueryParamsTargetingLengthMapOperation",
  593    595   
        );
  594    596   
  595    597   
    type Input = crate::input::QueryParamsTargetingLengthMapOperationInput;
  596    598   
    type Output = crate::output::QueryParamsTargetingLengthMapOperationOutput;
  597    599   
    type Error = crate::error::QueryParamsTargetingLengthMapOperationError;
  598    600   
}
  599    601   
  600         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
         602  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
  601    603   
    for QueryParamsTargetingLengthMapOperation
  602    604   
{
  603         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  604         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  605         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  606         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  607         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         605  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         606  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         607  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         608  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         609  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  608    610   
        >,
  609    611   
    >;
  610         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  611         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  612         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         612  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         613  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         614  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  613    615   
    >;
  614    616   
  615    617   
    fn request_fmt() -> Self::RequestFmt {
  616         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         618  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  617    619   
    }
  618    620   
  619    621   
    fn response_fmt() -> Self::ResponseFmt {
  620         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         622  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  621    623   
    }
  622    624   
}
  623    625   
  624    626   
#[allow(missing_docs)] // documentation missing in model
  625    627   
pub struct ConstrainedRecursiveShapesOperation;
  626    628   
  627         -
impl ::aws_smithy_http_server::operation::OperationShape for ConstrainedRecursiveShapesOperation {
  628         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  629         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         629  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape
         630  +
    for ConstrainedRecursiveShapesOperation
         631  +
{
         632  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         633  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  630    634   
            "com.amazonaws.constraints#ConstrainedRecursiveShapesOperation",
  631    635   
            "com.amazonaws.constraints",
  632    636   
            "ConstrainedRecursiveShapesOperation",
  633    637   
        );
  634    638   
  635    639   
    type Input = crate::input::ConstrainedRecursiveShapesOperationInput;
  636    640   
    type Output = crate::output::ConstrainedRecursiveShapesOperationOutput;
  637    641   
    type Error = crate::error::ConstrainedRecursiveShapesOperationError;
  638    642   
}
  639    643   
  640         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
         644  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
  641    645   
    for ConstrainedRecursiveShapesOperation
  642    646   
{
  643         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  644         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  645         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  646         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  647         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         647  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         648  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         649  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         650  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         651  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  648    652   
        >,
  649    653   
    >;
  650         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  651         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  652         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         654  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         655  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         656  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  653    657   
    >;
  654    658   
  655    659   
    fn request_fmt() -> Self::RequestFmt {
  656         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         660  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  657    661   
    }
  658    662   
  659    663   
    fn response_fmt() -> Self::ResponseFmt {
  660         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         664  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  661    665   
    }
  662    666   
}
  663    667   
  664    668   
#[allow(missing_docs)] // documentation missing in model
  665    669   
pub struct ConstrainedHttpPayloadBoundShapeOperation;
  666    670   
  667         -
impl ::aws_smithy_http_server::operation::OperationShape
         671  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape
  668    672   
    for ConstrainedHttpPayloadBoundShapeOperation
  669    673   
{
  670         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  671         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         674  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         675  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  672    676   
            "com.amazonaws.constraints#ConstrainedHttpPayloadBoundShapeOperation",
  673    677   
            "com.amazonaws.constraints",
  674    678   
            "ConstrainedHttpPayloadBoundShapeOperation",
  675    679   
        );
  676    680   
  677    681   
    type Input = crate::input::ConstrainedHttpPayloadBoundShapeOperationInput;
  678    682   
    type Output = crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput;
  679    683   
    type Error = crate::error::ConstrainedHttpPayloadBoundShapeOperationError;
  680    684   
}
  681    685   
  682         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
         686  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
  683    687   
    for ConstrainedHttpPayloadBoundShapeOperation
  684    688   
{
  685         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  686         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  687         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  688         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  689         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         689  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         690  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         691  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         692  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         693  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  690    694   
        >,
  691    695   
    >;
  692         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  693         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  694         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         696  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         697  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         698  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  695    699   
    >;
  696    700   
  697    701   
    fn request_fmt() -> Self::RequestFmt {
  698         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         702  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  699    703   
    }
  700    704   
  701    705   
    fn response_fmt() -> Self::ResponseFmt {
  702         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         706  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  703    707   
    }
  704    708   
}
  705    709   
  706    710   
#[allow(missing_docs)] // documentation missing in model
  707    711   
pub struct ConstrainedHttpBoundShapesOperation;
  708    712   
  709         -
impl ::aws_smithy_http_server::operation::OperationShape for ConstrainedHttpBoundShapesOperation {
  710         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  711         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         713  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape
         714  +
    for ConstrainedHttpBoundShapesOperation
         715  +
{
         716  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         717  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  712    718   
            "com.amazonaws.constraints#ConstrainedHttpBoundShapesOperation",
  713    719   
            "com.amazonaws.constraints",
  714    720   
            "ConstrainedHttpBoundShapesOperation",
  715    721   
        );
  716    722   
  717    723   
    type Input = crate::input::ConstrainedHttpBoundShapesOperationInput;
  718    724   
    type Output = crate::output::ConstrainedHttpBoundShapesOperationOutput;
  719    725   
    type Error = crate::error::ConstrainedHttpBoundShapesOperationError;
  720    726   
}
  721    727   
  722         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
         728  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
  723    729   
    for ConstrainedHttpBoundShapesOperation
  724    730   
{
  725         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  726         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  727         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  728         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  729         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         731  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         732  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         733  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         734  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         735  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  730    736   
        >,
  731    737   
    >;
  732         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  733         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  734         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         738  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         739  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         740  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  735    741   
    >;
  736    742   
  737    743   
    fn request_fmt() -> Self::RequestFmt {
  738         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         744  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  739    745   
    }
  740    746   
  741    747   
    fn response_fmt() -> Self::ResponseFmt {
  742         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         748  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  743    749   
    }
  744    750   
}
  745    751   
  746    752   
#[allow(missing_docs)] // documentation missing in model
  747    753   
pub struct ConstrainedShapesOnlyInOutputOperation;
  748    754   
  749         -
impl ::aws_smithy_http_server::operation::OperationShape
         755  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape
  750    756   
    for ConstrainedShapesOnlyInOutputOperation
  751    757   
{
  752         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  753         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         758  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         759  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  754    760   
            "com.amazonaws.constraints#ConstrainedShapesOnlyInOutputOperation",
  755    761   
            "com.amazonaws.constraints",
  756    762   
            "ConstrainedShapesOnlyInOutputOperation",
  757    763   
        );
  758    764   
  759    765   
    type Input = crate::input::ConstrainedShapesOnlyInOutputOperationInput;
  760    766   
    type Output = crate::output::ConstrainedShapesOnlyInOutputOperationOutput;
  761    767   
    type Error = crate::error::ConstrainedShapesOnlyInOutputOperationError;
  762    768   
}
  763    769   
  764         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
         770  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
  765    771   
    for ConstrainedShapesOnlyInOutputOperation
  766    772   
{
  767         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  768         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  769         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  770         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  771         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         773  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         774  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         775  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         776  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         777  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  772    778   
        >,
  773    779   
    >;
  774         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  775         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  776         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         780  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         781  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         782  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  777    783   
    >;
  778    784   
  779    785   
    fn request_fmt() -> Self::RequestFmt {
  780         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         786  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  781    787   
    }
  782    788   
  783    789   
    fn response_fmt() -> Self::ResponseFmt {
  784         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         790  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  785    791   
    }
  786    792   
}
  787    793   
  788    794   
#[allow(missing_docs)] // documentation missing in model
  789    795   
pub struct ConstrainedShapesOperation;
  790    796   
  791         -
impl ::aws_smithy_http_server::operation::OperationShape for ConstrainedShapesOperation {
  792         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  793         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         797  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for ConstrainedShapesOperation {
         798  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         799  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  794    800   
            "com.amazonaws.constraints#ConstrainedShapesOperation",
  795    801   
            "com.amazonaws.constraints",
  796    802   
            "ConstrainedShapesOperation",
  797    803   
        );
  798    804   
  799    805   
    type Input = crate::input::ConstrainedShapesOperationInput;
  800    806   
    type Output = crate::output::ConstrainedShapesOperationOutput;
  801    807   
    type Error = crate::error::ConstrainedShapesOperationError;
  802    808   
}
  803    809   
  804         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
         810  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
  805    811   
    for ConstrainedShapesOperation
  806    812   
{
  807         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  808         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  809         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  810         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  811         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         813  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         814  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         815  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         816  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         817  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  812    818   
        >,
  813    819   
    >;
  814         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  815         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  816         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         820  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         821  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         822  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  817    823   
    >;
  818    824   
  819    825   
    fn request_fmt() -> Self::RequestFmt {
  820         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         826  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  821    827   
    }
  822    828   
  823    829   
    fn response_fmt() -> Self::ResponseFmt {
  824         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         830  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  825    831   
    }
  826    832   
}

tmp-codegen-diff/codegen-server-test-python/constraints/rust-server-codegen-python/src/protocol_serde/shape_constrained_http_bound_shapes_operation.rs

@@ -1,1 +43,43 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[allow(clippy::unnecessary_wraps)]
    3      3   
pub async fn de_constrained_http_bound_shapes_operation_http_request<B>(
    4      4   
    #[allow(unused_variables)] request: ::http::Request<B>,
    5      5   
) -> std::result::Result<
    6      6   
    crate::input::ConstrainedHttpBoundShapesOperationInput,
    7         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
           7  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
    8      8   
>
    9      9   
where
   10         -
    B: ::aws_smithy_http_server::body::HttpBody + Send,
          10  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
   11     11   
    B::Data: Send,
   12         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
   13         -
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
          12  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
          13  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
   14     14   
{
   15     15   
    Ok({
   16     16   
        #[allow(unused_mut)]
   17     17   
        let mut input =
   18     18   
            crate::input::constrained_http_bound_shapes_operation_input_internal::Builder::default(
   19     19   
            );
   20     20   
        #[allow(unused_variables)]
   21     21   
        let ::aws_smithy_runtime_api::http::RequestParts {
   22     22   
            uri, headers, body, ..
   23     23   
        } = ::aws_smithy_runtime_api::http::Request::try_from(request)?.into_parts();
@@ -326,326 +469,469 @@
  346    346   
            );
  347    347   
        }
  348    348   
        input.build()?
  349    349   
    })
  350    350   
}
  351    351   
  352    352   
#[allow(clippy::unnecessary_wraps)]
  353    353   
pub fn ser_constrained_http_bound_shapes_operation_http_response(
  354    354   
    #[allow(unused_variables)] output: crate::output::ConstrainedHttpBoundShapesOperationOutput,
  355    355   
) -> std::result::Result<
  356         -
    ::aws_smithy_http_server::response::Response,
  357         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
         356  +
    ::aws_smithy_legacy_http_server::response::Response,
         357  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
  358    358   
> {
  359    359   
    Ok({
  360    360   
        #[allow(unused_mut)]
  361    361   
        let mut builder = ::http::Response::builder();
  362    362   
        builder = crate::protocol_serde::shape_constrained_http_bound_shapes_operation::ser_constrained_http_bound_shapes_operation_headers(&output, builder)?;
  363         -
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
         363  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  364    364   
            builder,
  365    365   
            ::http::header::CONTENT_TYPE,
  366    366   
            "application/json",
  367    367   
        );
  368    368   
        let http_status: u16 = 200;
  369    369   
        builder = builder.status(http_status);
  370    370   
        let payload =
  371    371   
            crate::protocol_serde::shape_constrained_http_bound_shapes_operation_output::ser_constrained_http_bound_shapes_operation_output_output_output(&output)?
  372    372   
        ;
  373    373   
        let content_length = payload.len();
  374         -
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
         374  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  375    375   
            builder,
  376    376   
            ::http::header::CONTENT_LENGTH,
  377    377   
            content_length,
  378    378   
        );
  379         -
        let body = ::aws_smithy_http_server::body::to_boxed(payload);
         379  +
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);
  380    380   
        builder.body(body)?
  381    381   
    })
  382    382   
}
  383    383   
  384    384   
#[allow(clippy::unnecessary_wraps)]
  385    385   
pub fn ser_constrained_http_bound_shapes_operation_http_error(
  386    386   
    error: &crate::error::ConstrainedHttpBoundShapesOperationError,
  387    387   
) -> std::result::Result<
  388         -
    ::aws_smithy_http_server::response::Response,
  389         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
         388  +
    ::aws_smithy_legacy_http_server::response::Response,
         389  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
  390    390   
> {
  391    391   
    Ok({
  392    392   
        match error {
  393    393   
            crate::error::ConstrainedHttpBoundShapesOperationError::ValidationException(output) => {
  394    394   
                let payload = crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(output)?;
  395    395   
                #[allow(unused_mut)]
  396    396   
                let mut builder = ::http::Response::builder();
  397         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         397  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  398    398   
                    builder,
  399    399   
                    ::http::header::CONTENT_TYPE,
  400    400   
                    "application/json",
  401    401   
                );
  402         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         402  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  403    403   
                    builder,
  404    404   
                    ::http::header::HeaderName::from_static("x-amzn-errortype"),
  405    405   
                    "ValidationException",
  406    406   
                );
  407    407   
                let content_length = payload.len();
  408         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         408  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  409    409   
                    builder,
  410    410   
                    ::http::header::CONTENT_LENGTH,
  411    411   
                    content_length,
  412    412   
                );
  413    413   
                builder
  414    414   
                    .status(400)
  415         -
                    .body(::aws_smithy_http_server::body::to_boxed(payload))?
         415  +
                    .body(::aws_smithy_legacy_http_server::body::to_boxed(payload))?
  416    416   
            }
  417    417   
            crate::error::ConstrainedHttpBoundShapesOperationError::InternalServerError(output) => {
  418    418   
                let payload = crate::protocol_serde::shape_internal_server_error::ser_internal_server_error_error(output)?;
  419    419   
                #[allow(unused_mut)]
  420    420   
                let mut builder = ::http::Response::builder();
  421         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         421  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  422    422   
                    builder,
  423    423   
                    ::http::header::CONTENT_TYPE,
  424    424   
                    "application/json",
  425    425   
                );
  426         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         426  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  427    427   
                    builder,
  428    428   
                    ::http::header::HeaderName::from_static("x-amzn-errortype"),
  429    429   
                    "InternalServerError",
  430    430   
                );
  431    431   
                let content_length = payload.len();
  432         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         432  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  433    433   
                    builder,
  434    434   
                    ::http::header::CONTENT_LENGTH,
  435    435   
                    content_length,
  436    436   
                );
  437    437   
                builder
  438    438   
                    .status(500)
  439         -
                    .body(::aws_smithy_http_server::body::to_boxed(payload))?
         439  +
                    .body(::aws_smithy_legacy_http_server::body::to_boxed(payload))?
  440    440   
            }
  441    441   
        }
  442    442   
    })
  443    443   
}
  444    444   
  445    445   
pub fn ser_constrained_http_bound_shapes_operation_headers(
  446    446   
    input: &crate::output::ConstrainedHttpBoundShapesOperationOutput,
  447    447   
    mut builder: ::http::response::Builder,
  448    448   
) -> std::result::Result<::http::response::Builder, ::aws_smithy_types::error::operation::BuildError>
  449    449   
{
@@ -506,506 +620,624 @@
  526    526   
                        "`{}` cannot be used as a header value: {}",
  527    527   
                        &header_value, err
  528    528   
                    ),
  529    529   
                )
  530    530   
            })?;
  531    531   
            builder = builder.header("X-Range-Byte", header_value);
  532    532   
        }
  533    533   
    }
  534    534   
    if let ::std::option::Option::Some(inner_7) = &input.length_string_set_header {
  535    535   
        for inner_8 in inner_7 {
  536         -
            let formatted_9 = ::aws_smithy_http::header::quote_header_value(inner_8.as_str());
         536  +
            let formatted_9 =
         537  +
                ::aws_smithy_legacy_http::header::quote_header_value(inner_8.as_str());
  537    538   
            if !formatted_9.is_empty() {
  538    539   
                let header_value = formatted_9;
  539    540   
                let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  540    541   
                    ::aws_smithy_types::error::operation::BuildError::invalid_field(
  541    542   
                        "length_string_set_header",
  542    543   
                        format!(
  543    544   
                            "`{}` cannot be used as a header value: {}",
  544    545   
                            &header_value, err
  545    546   
                        ),
  546    547   
                    )
  547    548   
                })?;
  548    549   
                builder = builder.header("X-Length-Set", header_value);
  549    550   
            }
  550    551   
        }
  551    552   
    }
  552    553   
    if let ::std::option::Option::Some(inner_10) = &input.list_length_string_header {
  553    554   
        for inner_11 in inner_10 {
  554         -
            let formatted_12 = ::aws_smithy_http::header::quote_header_value(inner_11.as_str());
         555  +
            let formatted_12 =
         556  +
                ::aws_smithy_legacy_http::header::quote_header_value(inner_11.as_str());
  555    557   
            if !formatted_12.is_empty() {
  556    558   
                let header_value = formatted_12;
  557    559   
                let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  558    560   
                    ::aws_smithy_types::error::operation::BuildError::invalid_field(
  559    561   
                        "list_length_string_header",
  560    562   
                        format!(
  561    563   
                            "`{}` cannot be used as a header value: {}",
  562    564   
                            &header_value, err
  563    565   
                        ),
  564    566   
                    )
  565    567   
                })?;
  566    568   
                builder = builder.header("X-List-Length-String", header_value);
  567    569   
            }
  568    570   
        }
  569    571   
    }
  570    572   
    if let ::std::option::Option::Some(inner_13) = &input.length_list_pattern_string_header {
  571    573   
        for inner_14 in inner_13 {
  572         -
            let formatted_15 = ::aws_smithy_http::header::quote_header_value(inner_14.as_str());
         574  +
            let formatted_15 =
         575  +
                ::aws_smithy_legacy_http::header::quote_header_value(inner_14.as_str());
  573    576   
            if !formatted_15.is_empty() {
  574    577   
                let header_value = formatted_15;
  575    578   
                let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  576    579   
                    ::aws_smithy_types::error::operation::BuildError::invalid_field(
  577    580   
                        "length_list_pattern_string_header",
  578    581   
                        format!(
  579    582   
                            "`{}` cannot be used as a header value: {}",
  580    583   
                            &header_value, err
  581    584   
                        ),
  582    585   
                    )
  583    586   
                })?;
  584    587   
                builder = builder.header("X-Length-List-Pattern-String", header_value);
  585    588   
            }
  586    589   
        }
  587    590   
    }
  588    591   
    if let ::std::option::Option::Some(inner_16) = &input.length_set_pattern_string_header {
  589    592   
        for inner_17 in inner_16 {
  590         -
            let formatted_18 = ::aws_smithy_http::header::quote_header_value(inner_17.as_str());
         593  +
            let formatted_18 =
         594  +
                ::aws_smithy_legacy_http::header::quote_header_value(inner_17.as_str());
  591    595   
            if !formatted_18.is_empty() {
  592    596   
                let header_value = formatted_18;
  593    597   
                let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  594    598   
                    ::aws_smithy_types::error::operation::BuildError::invalid_field(
  595    599   
                        "length_set_pattern_string_header",
  596    600   
                        format!(
  597    601   
                            "`{}` cannot be used as a header value: {}",
  598    602   
                            &header_value, err
  599    603   
                        ),
  600    604   
                    )
@@ -731,735 +782,786 @@
  751    755   
                        ),
  752    756   
                    )
  753    757   
                })?;
  754    758   
                builder = builder.header("X-Range-Long-List", header_value);
  755    759   
            }
  756    760   
        }
  757    761   
    }
  758    762   
    {
  759    763   
        for (k, v) in &input.length_string_header_map {
  760    764   
            use std::str::FromStr;
  761         -
            let header_name = http::header::HeaderName::from_str(&format!(
         765  +
            let header_name = ::http::HeaderName::from_str(&format!(
  762    766   
                "{}{}",
  763    767   
                "X-Length-String-Prefix-Headers-", &k
  764    768   
            ))
  765    769   
            .map_err(|err| {
  766    770   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  767    771   
                    "length_string_header_map",
  768    772   
                    format!("`{k}` cannot be used as a header name: {err}"),
  769    773   
                )
  770    774   
            })?;
  771    775   
            let header_value = v.as_str();

tmp-codegen-diff/codegen-server-test-python/constraints/rust-server-codegen-python/src/protocol_serde/shape_constrained_http_bound_shapes_operation_input.rs

@@ -1,1 +442,451 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_length_list_pattern_string_header_header(header_map: &::aws_smithy_runtime_api::http::Headers) -> ::std::result::Result<::std::option::Option<crate::unconstrained::length_list_of_pattern_string_unconstrained::LengthListOfPatternStringUnconstrained>, ::aws_smithy_http::header::ParseError>{
           2  +
pub(crate) fn de_length_list_pattern_string_header_header(header_map: &::aws_smithy_runtime_api::http::Headers) -> ::std::result::Result<::std::option::Option<crate::unconstrained::length_list_of_pattern_string_unconstrained::LengthListOfPatternStringUnconstrained>, ::aws_smithy_legacy_http::header::ParseError>{
    3      3   
    let headers = header_map.get_all("X-Length-List-Pattern-String");
    4         -
    let var_1: Vec<::std::string::String> = ::aws_smithy_http::header::read_many_from_str(headers)?;
           4  +
    let var_1: Vec<::std::string::String> =
           5  +
        ::aws_smithy_legacy_http::header::read_many_from_str(headers)?;
    5      6   
    Ok(if !var_1.is_empty() {
    6      7   
        Some(crate::unconstrained::length_list_of_pattern_string_unconstrained::LengthListOfPatternStringUnconstrained(var_1))
    7      8   
    } else {
    8      9   
        None
    9     10   
    })
   10     11   
}
   11     12   
   12         -
pub(crate) fn de_length_set_pattern_string_header_header(header_map: &::aws_smithy_runtime_api::http::Headers) -> ::std::result::Result<::std::option::Option<crate::unconstrained::length_set_of_pattern_string_unconstrained::LengthSetOfPatternStringUnconstrained>, ::aws_smithy_http::header::ParseError>{
          13  +
pub(crate) fn de_length_set_pattern_string_header_header(header_map: &::aws_smithy_runtime_api::http::Headers) -> ::std::result::Result<::std::option::Option<crate::unconstrained::length_set_of_pattern_string_unconstrained::LengthSetOfPatternStringUnconstrained>, ::aws_smithy_legacy_http::header::ParseError>{
   13     14   
    let headers = header_map.get_all("X-Length-Set-Pattern-String");
   14         -
    let var_2: Vec<::std::string::String> = ::aws_smithy_http::header::read_many_from_str(headers)?;
          15  +
    let var_2: Vec<::std::string::String> =
          16  +
        ::aws_smithy_legacy_http::header::read_many_from_str(headers)?;
   15     17   
    Ok(if !var_2.is_empty() {
   16     18   
        Some(crate::unconstrained::length_set_of_pattern_string_unconstrained::LengthSetOfPatternStringUnconstrained(var_2))
   17     19   
    } else {
   18     20   
        None
   19     21   
    })
   20     22   
}
   21     23   
   22     24   
pub(crate) fn de_length_string_header_header(
   23     25   
    header_map: &::aws_smithy_runtime_api::http::Headers,
   24     26   
) -> ::std::result::Result<
   25     27   
    ::std::option::Option<::std::string::String>,
   26         -
    ::aws_smithy_http::header::ParseError,
          28  +
    ::aws_smithy_legacy_http::header::ParseError,
   27     29   
> {
   28     30   
    let headers = header_map.get_all("X-Length");
   29         -
    ::aws_smithy_http::header::one_or_none(headers)
          31  +
    ::aws_smithy_legacy_http::header::one_or_none(headers)
   30     32   
}
   31     33   
   32     34   
pub(crate) fn de_length_string_header_map_prefix_header(
   33     35   
    header_map: &::aws_smithy_runtime_api::http::Headers,
   34     36   
) -> std::result::Result<
   35     37   
    ::std::option::Option<
   36     38   
        crate::unconstrained::map_of_length_string_unconstrained::MapOfLengthStringUnconstrained,
   37     39   
    >,
   38         -
    ::aws_smithy_http::header::ParseError,
          40  +
    ::aws_smithy_legacy_http::header::ParseError,
   39     41   
> {
   40         -
    let headers = ::aws_smithy_http::header::headers_for_prefix(
          42  +
    let headers = ::aws_smithy_legacy_http::header::headers_for_prefix(
   41     43   
        header_map.iter().map(|(k, _)| k),
   42     44   
        "X-Length-String-Prefix-Headers-",
   43     45   
    );
   44     46   
    let out: std::result::Result<_, _> = headers.map(|(key, header_name)| {
   45     47   
                            let values = header_map.get_all(header_name);
   46     48   
                            crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_length_string_header_map_inner(values).map(|v| (key.to_string(), v.expect(
   47     49   
                                "we have checked there is at least one value for this header name; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues"
   48     50   
                            )))
   49     51   
                        }).collect();
   50     52   
    let out = out.map(
   51     53   
        crate::unconstrained::map_of_length_string_unconstrained::MapOfLengthStringUnconstrained,
   52     54   
    );
   53     55   
    out.map(Some)
   54     56   
}
   55     57   
   56     58   
pub(crate) fn de_length_string_set_header_header(
   57     59   
    header_map: &::aws_smithy_runtime_api::http::Headers,
   58     60   
) -> ::std::result::Result<
   59     61   
    ::std::option::Option<
   60     62   
        crate::unconstrained::set_of_length_string_unconstrained::SetOfLengthStringUnconstrained,
   61     63   
    >,
   62         -
    ::aws_smithy_http::header::ParseError,
          64  +
    ::aws_smithy_legacy_http::header::ParseError,
   63     65   
> {
   64     66   
    let headers = header_map.get_all("X-Length-Set");
   65         -
    let var_3: Vec<::std::string::String> = ::aws_smithy_http::header::read_many_from_str(headers)?;
          67  +
    let var_3: Vec<::std::string::String> =
          68  +
        ::aws_smithy_legacy_http::header::read_many_from_str(headers)?;
   66     69   
    Ok(if !var_3.is_empty() {
   67     70   
        Some(crate::unconstrained::set_of_length_string_unconstrained::SetOfLengthStringUnconstrained(var_3))
   68     71   
    } else {
   69     72   
        None
   70     73   
    })
   71     74   
}
   72     75   
   73     76   
pub(crate) fn de_list_length_string_header_header(
   74     77   
    header_map: &::aws_smithy_runtime_api::http::Headers,
   75     78   
) -> ::std::result::Result<
   76     79   
    ::std::option::Option<
   77     80   
        crate::unconstrained::list_of_length_string_unconstrained::ListOfLengthStringUnconstrained,
   78     81   
    >,
   79         -
    ::aws_smithy_http::header::ParseError,
          82  +
    ::aws_smithy_legacy_http::header::ParseError,
   80     83   
> {
   81     84   
    let headers = header_map.get_all("X-List-Length-String");
   82         -
    let var_4: Vec<::std::string::String> = ::aws_smithy_http::header::read_many_from_str(headers)?;
          85  +
    let var_4: Vec<::std::string::String> =
          86  +
        ::aws_smithy_legacy_http::header::read_many_from_str(headers)?;
   83     87   
    Ok(if !var_4.is_empty() {
   84     88   
        Some(crate::unconstrained::list_of_length_string_unconstrained::ListOfLengthStringUnconstrained(var_4))
   85     89   
    } else {
   86     90   
        None
   87     91   
    })
   88     92   
}
   89     93   
   90     94   
pub(crate) fn de_range_byte_header_header(
   91     95   
    header_map: &::aws_smithy_runtime_api::http::Headers,
   92         -
) -> ::std::result::Result<::std::option::Option<i8>, ::aws_smithy_http::header::ParseError> {
          96  +
) -> ::std::result::Result<::std::option::Option<i8>, ::aws_smithy_legacy_http::header::ParseError>
          97  +
{
   93     98   
    let headers = header_map.get_all("X-Range-Byte");
   94         -
    let var_5 = ::aws_smithy_http::header::read_many_primitive::<i8>(headers)?;
          99  +
    let var_5 = ::aws_smithy_legacy_http::header::read_many_primitive::<i8>(headers)?;
   95    100   
    if var_5.len() > 1 {
   96         -
        Err(::aws_smithy_http::header::ParseError::new(format!(
         101  +
        Err(::aws_smithy_legacy_http::header::ParseError::new(format!(
   97    102   
            "expected one item but found {}",
   98    103   
            var_5.len()
   99    104   
        )))
  100    105   
    } else {
  101    106   
        let mut var_5 = var_5;
  102    107   
        Ok(var_5.pop())
  103    108   
    }
  104    109   
}
  105    110   
  106    111   
pub(crate) fn de_range_byte_list_header_header(
  107    112   
    header_map: &::aws_smithy_runtime_api::http::Headers,
  108    113   
) -> ::std::result::Result<
  109    114   
    ::std::option::Option<
  110    115   
        crate::unconstrained::list_of_range_byte_unconstrained::ListOfRangeByteUnconstrained,
  111    116   
    >,
  112         -
    ::aws_smithy_http::header::ParseError,
         117  +
    ::aws_smithy_legacy_http::header::ParseError,
  113    118   
> {
  114    119   
    let headers = header_map.get_all("X-Range-Byte-List");
  115         -
    let var_6 = ::aws_smithy_http::header::read_many_primitive::<i8>(headers)?;
         120  +
    let var_6 = ::aws_smithy_legacy_http::header::read_many_primitive::<i8>(headers)?;
  116    121   
    Ok(if !var_6.is_empty() {
  117    122   
        Some(
  118    123   
            crate::unconstrained::list_of_range_byte_unconstrained::ListOfRangeByteUnconstrained(
  119    124   
                var_6,
  120    125   
            ),
  121    126   
        )
  122    127   
    } else {
  123    128   
        None
  124    129   
    })
  125    130   
}
  126    131   
  127    132   
pub(crate) fn de_range_byte_set_header_header(
  128    133   
    header_map: &::aws_smithy_runtime_api::http::Headers,
  129    134   
) -> ::std::result::Result<
  130    135   
    ::std::option::Option<
  131    136   
        crate::unconstrained::set_of_range_byte_unconstrained::SetOfRangeByteUnconstrained,
  132    137   
    >,
  133         -
    ::aws_smithy_http::header::ParseError,
         138  +
    ::aws_smithy_legacy_http::header::ParseError,
  134    139   
> {
  135    140   
    let headers = header_map.get_all("X-Range-Byte-Set");
  136         -
    let var_7 = ::aws_smithy_http::header::read_many_primitive::<i8>(headers)?;
         141  +
    let var_7 = ::aws_smithy_legacy_http::header::read_many_primitive::<i8>(headers)?;
  137    142   
    Ok(if !var_7.is_empty() {
  138    143   
        Some(
  139    144   
            crate::unconstrained::set_of_range_byte_unconstrained::SetOfRangeByteUnconstrained(
  140    145   
                var_7,
  141    146   
            ),
  142    147   
        )
  143    148   
    } else {
  144    149   
        None
  145    150   
    })
  146    151   
}
  147    152   
  148    153   
pub(crate) fn de_range_integer_header_header(
  149    154   
    header_map: &::aws_smithy_runtime_api::http::Headers,
  150         -
) -> ::std::result::Result<::std::option::Option<i32>, ::aws_smithy_http::header::ParseError> {
         155  +
) -> ::std::result::Result<::std::option::Option<i32>, ::aws_smithy_legacy_http::header::ParseError>
         156  +
{
  151    157   
    let headers = header_map.get_all("X-Range-Integer");
  152         -
    let var_8 = ::aws_smithy_http::header::read_many_primitive::<i32>(headers)?;
         158  +
    let var_8 = ::aws_smithy_legacy_http::header::read_many_primitive::<i32>(headers)?;
  153    159   
    if var_8.len() > 1 {
  154         -
        Err(::aws_smithy_http::header::ParseError::new(format!(
         160  +
        Err(::aws_smithy_legacy_http::header::ParseError::new(format!(
  155    161   
            "expected one item but found {}",
  156    162   
            var_8.len()
  157    163   
        )))
  158    164   
    } else {
  159    165   
        let mut var_8 = var_8;
  160    166   
        Ok(var_8.pop())
  161    167   
    }
  162    168   
}
  163    169   
  164    170   
pub(crate) fn de_range_integer_list_header_header(
  165    171   
    header_map: &::aws_smithy_runtime_api::http::Headers,
  166    172   
) -> ::std::result::Result<
  167    173   
    ::std::option::Option<
  168    174   
        crate::unconstrained::list_of_range_integer_unconstrained::ListOfRangeIntegerUnconstrained,
  169    175   
    >,
  170         -
    ::aws_smithy_http::header::ParseError,
         176  +
    ::aws_smithy_legacy_http::header::ParseError,
  171    177   
> {
  172    178   
    let headers = header_map.get_all("X-Range-Integer-List");
  173         -
    let var_9 = ::aws_smithy_http::header::read_many_primitive::<i32>(headers)?;
         179  +
    let var_9 = ::aws_smithy_legacy_http::header::read_many_primitive::<i32>(headers)?;
  174    180   
    Ok(if !var_9.is_empty() {
  175    181   
        Some(crate::unconstrained::list_of_range_integer_unconstrained::ListOfRangeIntegerUnconstrained(var_9))
  176    182   
    } else {
  177    183   
        None
  178    184   
    })
  179    185   
}
  180    186   
  181    187   
pub(crate) fn de_range_integer_set_header_header(
  182    188   
    header_map: &::aws_smithy_runtime_api::http::Headers,
  183    189   
) -> ::std::result::Result<
  184    190   
    ::std::option::Option<
  185    191   
        crate::unconstrained::set_of_range_integer_unconstrained::SetOfRangeIntegerUnconstrained,
  186    192   
    >,
  187         -
    ::aws_smithy_http::header::ParseError,
         193  +
    ::aws_smithy_legacy_http::header::ParseError,
  188    194   
> {
  189    195   
    let headers = header_map.get_all("X-Range-Integer-Set");
  190         -
    let var_10 = ::aws_smithy_http::header::read_many_primitive::<i32>(headers)?;
         196  +
    let var_10 = ::aws_smithy_legacy_http::header::read_many_primitive::<i32>(headers)?;
  191    197   
    Ok(if !var_10.is_empty() {
  192    198   
        Some(crate::unconstrained::set_of_range_integer_unconstrained::SetOfRangeIntegerUnconstrained(var_10))
  193    199   
    } else {
  194    200   
        None
  195    201   
    })
  196    202   
}
  197    203   
  198    204   
pub(crate) fn de_range_long_header_header(
  199    205   
    header_map: &::aws_smithy_runtime_api::http::Headers,
  200         -
) -> ::std::result::Result<::std::option::Option<i64>, ::aws_smithy_http::header::ParseError> {
         206  +
) -> ::std::result::Result<::std::option::Option<i64>, ::aws_smithy_legacy_http::header::ParseError>
         207  +
{
  201    208   
    let headers = header_map.get_all("X-Range-Long");
  202         -
    let var_11 = ::aws_smithy_http::header::read_many_primitive::<i64>(headers)?;
         209  +
    let var_11 = ::aws_smithy_legacy_http::header::read_many_primitive::<i64>(headers)?;
  203    210   
    if var_11.len() > 1 {
  204         -
        Err(::aws_smithy_http::header::ParseError::new(format!(
         211  +
        Err(::aws_smithy_legacy_http::header::ParseError::new(format!(
  205    212   
            "expected one item but found {}",
  206    213   
            var_11.len()
  207    214   
        )))
  208    215   
    } else {
  209    216   
        let mut var_11 = var_11;
  210    217   
        Ok(var_11.pop())
  211    218   
    }
  212    219   
}
  213    220   
  214    221   
pub(crate) fn de_range_long_list_header_header(
  215    222   
    header_map: &::aws_smithy_runtime_api::http::Headers,
  216    223   
) -> ::std::result::Result<
  217    224   
    ::std::option::Option<
  218    225   
        crate::unconstrained::list_of_range_long_unconstrained::ListOfRangeLongUnconstrained,
  219    226   
    >,
  220         -
    ::aws_smithy_http::header::ParseError,
         227  +
    ::aws_smithy_legacy_http::header::ParseError,
  221    228   
> {
  222    229   
    let headers = header_map.get_all("X-Range-Long-List");
  223         -
    let var_12 = ::aws_smithy_http::header::read_many_primitive::<i64>(headers)?;
         230  +
    let var_12 = ::aws_smithy_legacy_http::header::read_many_primitive::<i64>(headers)?;
  224    231   
    Ok(if !var_12.is_empty() {
  225    232   
        Some(
  226    233   
            crate::unconstrained::list_of_range_long_unconstrained::ListOfRangeLongUnconstrained(
  227    234   
                var_12,
  228    235   
            ),
  229    236   
        )
  230    237   
    } else {
  231    238   
        None
  232    239   
    })
  233    240   
}
  234    241   
  235    242   
pub(crate) fn de_range_long_set_header_header(
  236    243   
    header_map: &::aws_smithy_runtime_api::http::Headers,
  237    244   
) -> ::std::result::Result<
  238    245   
    ::std::option::Option<
  239    246   
        crate::unconstrained::set_of_range_long_unconstrained::SetOfRangeLongUnconstrained,
  240    247   
    >,
  241         -
    ::aws_smithy_http::header::ParseError,
         248  +
    ::aws_smithy_legacy_http::header::ParseError,
  242    249   
> {
  243    250   
    let headers = header_map.get_all("X-Range-Long-Set");
  244         -
    let var_13 = ::aws_smithy_http::header::read_many_primitive::<i64>(headers)?;
         251  +
    let var_13 = ::aws_smithy_legacy_http::header::read_many_primitive::<i64>(headers)?;
  245    252   
    Ok(if !var_13.is_empty() {
  246    253   
        Some(
  247    254   
            crate::unconstrained::set_of_range_long_unconstrained::SetOfRangeLongUnconstrained(
  248    255   
                var_13,
  249    256   
            ),
  250    257   
        )
  251    258   
    } else {
  252    259   
        None
  253    260   
    })
  254    261   
}
  255    262   
  256    263   
pub(crate) fn de_range_short_header_header(
  257    264   
    header_map: &::aws_smithy_runtime_api::http::Headers,
  258         -
) -> ::std::result::Result<::std::option::Option<i16>, ::aws_smithy_http::header::ParseError> {
         265  +
) -> ::std::result::Result<::std::option::Option<i16>, ::aws_smithy_legacy_http::header::ParseError>
         266  +
{
  259    267   
    let headers = header_map.get_all("X-Range-Short");
  260         -
    let var_14 = ::aws_smithy_http::header::read_many_primitive::<i16>(headers)?;
         268  +
    let var_14 = ::aws_smithy_legacy_http::header::read_many_primitive::<i16>(headers)?;
  261    269   
    if var_14.len() > 1 {
  262         -
        Err(::aws_smithy_http::header::ParseError::new(format!(
         270  +
        Err(::aws_smithy_legacy_http::header::ParseError::new(format!(
  263    271   
            "expected one item but found {}",
  264    272   
            var_14.len()
  265    273   
        )))
  266    274   
    } else {
  267    275   
        let mut var_14 = var_14;
  268    276   
        Ok(var_14.pop())
  269    277   
    }
  270    278   
}
  271    279   
  272    280   
pub(crate) fn de_range_short_list_header_header(
  273    281   
    header_map: &::aws_smithy_runtime_api::http::Headers,
  274    282   
) -> ::std::result::Result<
  275    283   
    ::std::option::Option<
  276    284   
        crate::unconstrained::list_of_range_short_unconstrained::ListOfRangeShortUnconstrained,
  277    285   
    >,
  278         -
    ::aws_smithy_http::header::ParseError,
         286  +
    ::aws_smithy_legacy_http::header::ParseError,
  279    287   
> {
  280    288   
    let headers = header_map.get_all("X-Range-Short-List");
  281         -
    let var_15 = ::aws_smithy_http::header::read_many_primitive::<i16>(headers)?;
         289  +
    let var_15 = ::aws_smithy_legacy_http::header::read_many_primitive::<i16>(headers)?;
  282    290   
    Ok(if !var_15.is_empty() {
  283    291   
        Some(
  284    292   
            crate::unconstrained::list_of_range_short_unconstrained::ListOfRangeShortUnconstrained(
  285    293   
                var_15,
  286    294   
            ),
  287    295   
        )
  288    296   
    } else {
  289    297   
        None
  290    298   
    })
  291    299   
}
  292    300   
  293    301   
pub(crate) fn de_range_short_set_header_header(
  294    302   
    header_map: &::aws_smithy_runtime_api::http::Headers,
  295    303   
) -> ::std::result::Result<
  296    304   
    ::std::option::Option<
  297    305   
        crate::unconstrained::set_of_range_short_unconstrained::SetOfRangeShortUnconstrained,
  298    306   
    >,
  299         -
    ::aws_smithy_http::header::ParseError,
         307  +
    ::aws_smithy_legacy_http::header::ParseError,
  300    308   
> {
  301    309   
    let headers = header_map.get_all("X-Range-Short-Set");
  302         -
    let var_16 = ::aws_smithy_http::header::read_many_primitive::<i16>(headers)?;
         310  +
    let var_16 = ::aws_smithy_legacy_http::header::read_many_primitive::<i16>(headers)?;
  303    311   
    Ok(if !var_16.is_empty() {
  304    312   
        Some(
  305    313   
            crate::unconstrained::set_of_range_short_unconstrained::SetOfRangeShortUnconstrained(
  306    314   
                var_16,
  307    315   
            ),
  308    316   
        )
  309    317   
    } else {
  310    318   
        None
  311    319   
    })
  312    320   
}
  313    321   
  314    322   
pub fn de_range_integer_label(
  315    323   
    value: &str,
  316    324   
) -> std::result::Result<
  317    325   
    i32,
  318         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
         326  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
  319    327   
> {
  320    328   
    let value = <_ as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(value)?;
  321    329   
    Ok(value)
  322    330   
}
  323    331   
  324    332   
pub fn de_range_short_label(
  325    333   
    value: &str,
  326    334   
) -> std::result::Result<
  327    335   
    i16,
  328         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
         336  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
  329    337   
> {
  330    338   
    let value = <_ as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(value)?;
  331    339   
    Ok(value)
  332    340   
}
  333    341   
  334    342   
pub fn de_range_long_label(
  335    343   
    value: &str,
  336    344   
) -> std::result::Result<
  337    345   
    i64,
  338         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
         346  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
  339    347   
> {
  340    348   
    let value = <_ as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(value)?;
  341    349   
    Ok(value)
  342    350   
}
  343    351   
  344    352   
pub fn de_range_byte_label(
  345    353   
    value: &str,
  346    354   
) -> std::result::Result<
  347    355   
    i8,
  348         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
         356  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
  349    357   
> {
  350    358   
    let value = <_ as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(value)?;
  351    359   
    Ok(value)
  352    360   
}
  353    361   
  354    362   
pub fn de_length_string_label(
  355    363   
    value: &str,
  356    364   
) -> std::result::Result<
  357    365   
    ::std::string::String,
  358         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
         366  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
  359    367   
> {
  360    368   
    let value = ::percent_encoding::percent_decode_str(value)
  361    369   
        .decode_utf8()?
  362    370   
        .into_owned();
  363    371   
    Ok(value)
  364    372   
}
  365    373   
  366    374   
pub fn de_enum_string_label(
  367    375   
    value: &str,
  368    376   
) -> std::result::Result<
  369    377   
    ::std::string::String,
  370         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
         378  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
  371    379   
> {
  372    380   
    let value = ::percent_encoding::percent_decode_str(value)
  373    381   
        .decode_utf8()?
  374    382   
        .into_owned();
  375    383   
    Ok(value)
  376    384   
}
  377    385   
  378    386   
pub fn de_enum_string_query(
  379    387   
    value: &str,
  380    388   
) -> std::result::Result<
  381    389   
    ::std::option::Option<::std::string::String>,
  382         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
         390  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
  383    391   
> {
  384    392   
    let value = value.to_owned();
  385    393   
    Ok(Some(value))
  386    394   
}
  387    395   
  388    396   
pub fn de_length_string_query(
  389    397   
    value: &str,
  390    398   
) -> std::result::Result<
  391    399   
    ::std::option::Option<::std::string::String>,
  392         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
         400  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
  393    401   
> {
  394    402   
    let value = value.to_owned();
  395    403   
    Ok(Some(value))
  396    404   
}
  397    405   
  398    406   
pub fn de_range_byte_query(
  399    407   
    value: &str,
  400    408   
) -> std::result::Result<
  401    409   
    i8,
  402         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
         410  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
  403    411   
> {
  404    412   
    let value = <_ as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(value)?;
  405    413   
    Ok(value)
  406    414   
}
  407    415   
  408    416   
pub fn de_range_integer_query(
  409    417   
    value: &str,
  410    418   
) -> std::result::Result<
  411    419   
    i32,
  412         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
         420  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
  413    421   
> {
  414    422   
    let value = <_ as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(value)?;
  415    423   
    Ok(value)
  416    424   
}
  417    425   
  418    426   
pub fn de_range_long_query(
  419    427   
    value: &str,
  420    428   
) -> std::result::Result<
  421    429   
    i64,
  422         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
         430  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
  423    431   
> {
  424    432   
    let value = <_ as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(value)?;
  425    433   
    Ok(value)
  426    434   
}
  427    435   
  428    436   
pub fn de_range_short_query(
  429    437   
    value: &str,
  430    438   
) -> std::result::Result<
  431    439   
    i16,
  432         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
         440  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
  433    441   
> {
  434    442   
    let value = <_ as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(value)?;
  435    443   
    Ok(value)
  436    444   
}
  437    445   
  438    446   
pub fn de_length_string_header_map_inner<'a>(
  439    447   
    headers: impl ::std::iter::Iterator<Item = &'a str>,
  440         -
) -> std::result::Result<Option<::std::string::String>, ::aws_smithy_http::header::ParseError> {
  441         -
    ::aws_smithy_http::header::one_or_none(headers)
         448  +
) -> std::result::Result<Option<::std::string::String>, ::aws_smithy_legacy_http::header::ParseError>
         449  +
{
         450  +
    ::aws_smithy_legacy_http::header::one_or_none(headers)
  442    451   
}

tmp-codegen-diff/codegen-server-test-python/constraints/rust-server-codegen-python/src/protocol_serde/shape_constrained_http_payload_bound_shape_operation.rs

@@ -1,1 +133,133 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[allow(clippy::unnecessary_wraps)]
    3      3   
pub async fn de_constrained_http_payload_bound_shape_operation_http_request<B>(
    4      4   
    #[allow(unused_variables)] request: ::http::Request<B>,
    5      5   
) -> std::result::Result<
    6      6   
    crate::input::ConstrainedHttpPayloadBoundShapeOperationInput,
    7         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
           7  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
    8      8   
>
    9      9   
where
   10         -
    B: ::aws_smithy_http_server::body::HttpBody + Send,
          10  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
   11     11   
    B::Data: Send,
   12         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
   13         -
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
          12  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
          13  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
   14     14   
{
   15     15   
    Ok({
   16     16   
        #[allow(unused_mut)]
   17     17   
        let mut input = crate::input::constrained_http_payload_bound_shape_operation_input_internal::Builder::default();
   18     18   
        #[allow(unused_variables)]
   19     19   
        let ::aws_smithy_runtime_api::http::RequestParts {
   20     20   
            uri, headers, body, ..
   21     21   
        } = ::aws_smithy_runtime_api::http::Request::try_from(request)?.into_parts();
   22     22   
        if let Some(value) = {
   23     23   
            let bytes = ::hyper::body::to_bytes(body).await?;
   24     24   
            if !bytes.is_empty() {
   25         -
                ::aws_smithy_http_server::protocol::content_type_header_classifier_smithy(
          25  +
                ::aws_smithy_legacy_http_server::protocol::content_type_header_classifier_smithy(
   26     26   
                    &headers,
   27     27   
                    Some("application/json"),
   28     28   
                )?;
   29     29   
            }
   30     30   
            crate::protocol_serde::shape_constrained_http_payload_bound_shape_operation_input::de_http_payload_bound_constrained_shape_payload(&bytes)?
   31     31   
        } {
   32     32   
            input = input.set_http_payload_bound_constrained_shape(value)
   33     33   
        }
   34     34   
        input.build()?
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
#[allow(clippy::unnecessary_wraps)]
   39     39   
pub fn ser_constrained_http_payload_bound_shape_operation_http_response(
   40     40   
    #[allow(unused_variables)]
   41     41   
    output: crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput,
   42     42   
) -> std::result::Result<
   43         -
    ::aws_smithy_http_server::response::Response,
   44         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
          43  +
    ::aws_smithy_legacy_http_server::response::Response,
          44  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
   45     45   
> {
   46     46   
    Ok({
   47     47   
        #[allow(unused_mut)]
   48     48   
        let mut builder = ::http::Response::builder();
   49         -
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
          49  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   50     50   
            builder,
   51     51   
            ::http::header::CONTENT_TYPE,
   52     52   
            "application/json",
   53     53   
        );
   54     54   
        let http_status: u16 = 200;
   55     55   
        builder = builder.status(http_status);
   56     56   
        let payload =
   57     57   
            crate::protocol_serde::shape_constrained_http_payload_bound_shape_operation_output::ser_http_payload_bound_constrained_shape_http_payload(& output.http_payload_bound_constrained_shape)?
   58     58   
        ;
   59     59   
        let content_length = payload.len();
   60         -
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
          60  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   61     61   
            builder,
   62     62   
            ::http::header::CONTENT_LENGTH,
   63     63   
            content_length,
   64     64   
        );
   65         -
        let body = ::aws_smithy_http_server::body::to_boxed(payload);
          65  +
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);
   66     66   
        builder.body(body)?
   67     67   
    })
   68     68   
}
   69     69   
   70     70   
#[allow(clippy::unnecessary_wraps)]
   71     71   
pub fn ser_constrained_http_payload_bound_shape_operation_http_error(
   72     72   
    error: &crate::error::ConstrainedHttpPayloadBoundShapeOperationError,
   73     73   
) -> std::result::Result<
   74         -
    ::aws_smithy_http_server::response::Response,
   75         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
          74  +
    ::aws_smithy_legacy_http_server::response::Response,
          75  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
   76     76   
> {
   77     77   
    Ok({
   78     78   
        match error {
   79     79   
            crate::error::ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(
   80     80   
                output,
   81     81   
            ) => {
   82     82   
                let payload = crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(output)?;
   83     83   
                #[allow(unused_mut)]
   84     84   
                let mut builder = ::http::Response::builder();
   85         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          85  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   86     86   
                    builder,
   87     87   
                    ::http::header::CONTENT_TYPE,
   88     88   
                    "application/json",
   89     89   
                );
   90         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          90  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   91     91   
                    builder,
   92     92   
                    ::http::header::HeaderName::from_static("x-amzn-errortype"),
   93     93   
                    "ValidationException",
   94     94   
                );
   95     95   
                let content_length = payload.len();
   96         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          96  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   97     97   
                    builder,
   98     98   
                    ::http::header::CONTENT_LENGTH,
   99     99   
                    content_length,
  100    100   
                );
  101    101   
                builder
  102    102   
                    .status(400)
  103         -
                    .body(::aws_smithy_http_server::body::to_boxed(payload))?
         103  +
                    .body(::aws_smithy_legacy_http_server::body::to_boxed(payload))?
  104    104   
            }
  105    105   
            crate::error::ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError(
  106    106   
                output,
  107    107   
            ) => {
  108    108   
                let payload = crate::protocol_serde::shape_internal_server_error::ser_internal_server_error_error(output)?;
  109    109   
                #[allow(unused_mut)]
  110    110   
                let mut builder = ::http::Response::builder();
  111         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         111  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  112    112   
                    builder,
  113    113   
                    ::http::header::CONTENT_TYPE,
  114    114   
                    "application/json",
  115    115   
                );
  116         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         116  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  117    117   
                    builder,
  118    118   
                    ::http::header::HeaderName::from_static("x-amzn-errortype"),
  119    119   
                    "InternalServerError",
  120    120   
                );
  121    121   
                let content_length = payload.len();
  122         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         122  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  123    123   
                    builder,
  124    124   
                    ::http::header::CONTENT_LENGTH,
  125    125   
                    content_length,
  126    126   
                );
  127    127   
                builder
  128    128   
                    .status(500)
  129         -
                    .body(::aws_smithy_http_server::body::to_boxed(payload))?
         129  +
                    .body(::aws_smithy_legacy_http_server::body::to_boxed(payload))?
  130    130   
            }
  131    131   
        }
  132    132   
    })
  133    133   
}

tmp-codegen-diff/codegen-server-test-python/constraints/rust-server-codegen-python/src/protocol_serde/shape_constrained_recursive_shapes_operation.rs

@@ -1,1 +151,151 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[allow(clippy::unnecessary_wraps)]
    3      3   
pub async fn de_constrained_recursive_shapes_operation_http_request<B>(
    4      4   
    #[allow(unused_variables)] request: ::http::Request<B>,
    5      5   
) -> std::result::Result<
    6      6   
    crate::input::ConstrainedRecursiveShapesOperationInput,
    7         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
           7  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
    8      8   
>
    9      9   
where
   10         -
    B: ::aws_smithy_http_server::body::HttpBody + Send,
          10  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
   11     11   
    B::Data: Send,
   12         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
   13         -
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
          12  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
          13  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
   14     14   
{
   15     15   
    Ok({
   16     16   
        #[allow(unused_mut)]
   17     17   
        let mut input =
   18     18   
            crate::input::constrained_recursive_shapes_operation_input_internal::Builder::default();
   19     19   
        #[allow(unused_variables)]
   20     20   
        let ::aws_smithy_runtime_api::http::RequestParts {
   21     21   
            uri, headers, body, ..
   22     22   
        } = ::aws_smithy_runtime_api::http::Request::try_from(request)?.into_parts();
   23     23   
        let bytes = ::hyper::body::to_bytes(body).await?;
   24     24   
        if !bytes.is_empty() {
   25         -
            ::aws_smithy_http_server::protocol::content_type_header_classifier_smithy(
          25  +
            ::aws_smithy_legacy_http_server::protocol::content_type_header_classifier_smithy(
   26     26   
                &headers,
   27     27   
                Some("application/json"),
   28     28   
            )?;
   29     29   
            input = crate::protocol_serde::shape_constrained_recursive_shapes_operation::de_constrained_recursive_shapes_operation(bytes.as_ref(), input)?;
   30     30   
        }
   31     31   
        input.build()?
   32     32   
    })
   33     33   
}
   34     34   
   35     35   
#[allow(clippy::unnecessary_wraps)]
   36     36   
pub fn ser_constrained_recursive_shapes_operation_http_response(
   37     37   
    #[allow(unused_variables)] output: crate::output::ConstrainedRecursiveShapesOperationOutput,
   38     38   
) -> std::result::Result<
   39         -
    ::aws_smithy_http_server::response::Response,
   40         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
          39  +
    ::aws_smithy_legacy_http_server::response::Response,
          40  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
   41     41   
> {
   42     42   
    Ok({
   43     43   
        #[allow(unused_mut)]
   44     44   
        let mut builder = ::http::Response::builder();
   45         -
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
          45  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   46     46   
            builder,
   47     47   
            ::http::header::CONTENT_TYPE,
   48     48   
            "application/json",
   49     49   
        );
   50     50   
        let http_status: u16 = 200;
   51     51   
        builder = builder.status(http_status);
   52     52   
        let payload =
   53     53   
            crate::protocol_serde::shape_constrained_recursive_shapes_operation_output::ser_constrained_recursive_shapes_operation_output_output_output(&output)?
   54     54   
        ;
   55     55   
        let content_length = payload.len();
   56         -
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
          56  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   57     57   
            builder,
   58     58   
            ::http::header::CONTENT_LENGTH,
   59     59   
            content_length,
   60     60   
        );
   61         -
        let body = ::aws_smithy_http_server::body::to_boxed(payload);
          61  +
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);
   62     62   
        builder.body(body)?
   63     63   
    })
   64     64   
}
   65     65   
   66     66   
#[allow(clippy::unnecessary_wraps)]
   67     67   
pub fn ser_constrained_recursive_shapes_operation_http_error(
   68     68   
    error: &crate::error::ConstrainedRecursiveShapesOperationError,
   69     69   
) -> std::result::Result<
   70         -
    ::aws_smithy_http_server::response::Response,
   71         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
          70  +
    ::aws_smithy_legacy_http_server::response::Response,
          71  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
   72     72   
> {
   73     73   
    Ok({
   74     74   
        match error {
   75     75   
            crate::error::ConstrainedRecursiveShapesOperationError::ValidationException(output) => {
   76     76   
                let payload = crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(output)?;
   77     77   
                #[allow(unused_mut)]
   78     78   
                let mut builder = ::http::Response::builder();
   79         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          79  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   80     80   
                    builder,
   81     81   
                    ::http::header::CONTENT_TYPE,
   82     82   
                    "application/json",
   83     83   
                );
   84         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          84  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   85     85   
                    builder,
   86     86   
                    ::http::header::HeaderName::from_static("x-amzn-errortype"),
   87     87   
                    "ValidationException",
   88     88   
                );
   89     89   
                let content_length = payload.len();
   90         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          90  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   91     91   
                    builder,
   92     92   
                    ::http::header::CONTENT_LENGTH,
   93     93   
                    content_length,
   94     94   
                );
   95     95   
                builder
   96     96   
                    .status(400)
   97         -
                    .body(::aws_smithy_http_server::body::to_boxed(payload))?
          97  +
                    .body(::aws_smithy_legacy_http_server::body::to_boxed(payload))?
   98     98   
            }
   99     99   
            crate::error::ConstrainedRecursiveShapesOperationError::InternalServerError(output) => {
  100    100   
                let payload = crate::protocol_serde::shape_internal_server_error::ser_internal_server_error_error(output)?;
  101    101   
                #[allow(unused_mut)]
  102    102   
                let mut builder = ::http::Response::builder();
  103         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         103  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  104    104   
                    builder,
  105    105   
                    ::http::header::CONTENT_TYPE,
  106    106   
                    "application/json",
  107    107   
                );
  108         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         108  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  109    109   
                    builder,
  110    110   
                    ::http::header::HeaderName::from_static("x-amzn-errortype"),
  111    111   
                    "InternalServerError",
  112    112   
                );
  113    113   
                let content_length = payload.len();
  114         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         114  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  115    115   
                    builder,
  116    116   
                    ::http::header::CONTENT_LENGTH,
  117    117   
                    content_length,
  118    118   
                );
  119    119   
                builder
  120    120   
                    .status(500)
  121         -
                    .body(::aws_smithy_http_server::body::to_boxed(payload))?
         121  +
                    .body(::aws_smithy_legacy_http_server::body::to_boxed(payload))?
  122    122   
            }
  123    123   
        }
  124    124   
    })
  125    125   
}
  126    126   
  127    127   
pub(crate) fn de_constrained_recursive_shapes_operation(
  128    128   
    value: &[u8],
  129    129   
    mut builder: crate::input::constrained_recursive_shapes_operation_input_internal::Builder,
  130    130   
) -> ::std::result::Result<
  131    131   
    crate::input::constrained_recursive_shapes_operation_input_internal::Builder,

tmp-codegen-diff/codegen-server-test-python/constraints/rust-server-codegen-python/src/protocol_serde/shape_constrained_shapes_only_in_output_operation.rs

@@ -1,1 +95,97 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[allow(clippy::unnecessary_wraps)]
    3      3   
pub async fn de_constrained_shapes_only_in_output_operation_http_request<B>(
    4      4   
    #[allow(unused_variables)] request: ::http::Request<B>,
    5      5   
) -> std::result::Result<
    6      6   
    crate::input::ConstrainedShapesOnlyInOutputOperationInput,
    7         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
           7  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
    8      8   
>
    9      9   
where
   10         -
    B: ::aws_smithy_http_server::body::HttpBody + Send,
          10  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
   11     11   
    B::Data: Send,
   12         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
   13         -
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
          12  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
          13  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
   14     14   
{
   15     15   
    Ok({
   16     16   
        #[allow(unused_mut)]
   17     17   
        let mut input = crate::input::constrained_shapes_only_in_output_operation_input_internal::Builder::default();
   18     18   
        #[allow(unused_variables)]
   19     19   
        let ::aws_smithy_runtime_api::http::RequestParts {
   20     20   
            uri, headers, body, ..
   21     21   
        } = ::aws_smithy_runtime_api::http::Request::try_from(request)?.into_parts();
   22         -
        ::aws_smithy_http_server::protocol::content_type_header_classifier_smithy(&headers, None)?;
          22  +
        ::aws_smithy_legacy_http_server::protocol::content_type_header_classifier_smithy(
          23  +
            &headers, None,
          24  +
        )?;
   23     25   
        input.build()
   24     26   
    })
   25     27   
}
   26     28   
   27     29   
#[allow(clippy::unnecessary_wraps)]
   28     30   
pub fn ser_constrained_shapes_only_in_output_operation_http_response(
   29     31   
    #[allow(unused_variables)] output: crate::output::ConstrainedShapesOnlyInOutputOperationOutput,
   30     32   
) -> std::result::Result<
   31         -
    ::aws_smithy_http_server::response::Response,
   32         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
          33  +
    ::aws_smithy_legacy_http_server::response::Response,
          34  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
   33     35   
> {
   34     36   
    Ok({
   35     37   
        #[allow(unused_mut)]
   36     38   
        let mut builder = ::http::Response::builder();
   37         -
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
          39  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   38     40   
            builder,
   39     41   
            ::http::header::CONTENT_TYPE,
   40     42   
            "application/json",
   41     43   
        );
   42     44   
        let http_status: u16 = 200;
   43     45   
        builder = builder.status(http_status);
   44     46   
        let payload =
   45     47   
            crate::protocol_serde::shape_constrained_shapes_only_in_output_operation_output::ser_constrained_shapes_only_in_output_operation_output_output_output(&output)?
   46     48   
        ;
   47     49   
        let content_length = payload.len();
   48         -
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
          50  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   49     51   
            builder,
   50     52   
            ::http::header::CONTENT_LENGTH,
   51     53   
            content_length,
   52     54   
        );
   53         -
        let body = ::aws_smithy_http_server::body::to_boxed(payload);
          55  +
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);
   54     56   
        builder.body(body)?
   55     57   
    })
   56     58   
}
   57     59   
   58     60   
#[allow(clippy::unnecessary_wraps)]
   59     61   
pub fn ser_constrained_shapes_only_in_output_operation_http_error(
   60     62   
    error: &crate::error::ConstrainedShapesOnlyInOutputOperationError,
   61     63   
) -> std::result::Result<
   62         -
    ::aws_smithy_http_server::response::Response,
   63         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
          64  +
    ::aws_smithy_legacy_http_server::response::Response,
          65  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
   64     66   
> {
   65     67   
    Ok({
   66     68   
        match error {
   67     69   
            crate::error::ConstrainedShapesOnlyInOutputOperationError::InternalServerError(
   68     70   
                output,
   69     71   
            ) => {
   70     72   
                let payload = crate::protocol_serde::shape_internal_server_error::ser_internal_server_error_error(output)?;
   71     73   
                #[allow(unused_mut)]
   72     74   
                let mut builder = ::http::Response::builder();
   73         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          75  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   74     76   
                    builder,
   75     77   
                    ::http::header::CONTENT_TYPE,
   76     78   
                    "application/json",
   77     79   
                );
   78         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          80  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   79     81   
                    builder,
   80     82   
                    ::http::header::HeaderName::from_static("x-amzn-errortype"),
   81     83   
                    "InternalServerError",
   82     84   
                );
   83     85   
                let content_length = payload.len();
   84         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          86  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   85     87   
                    builder,
   86     88   
                    ::http::header::CONTENT_LENGTH,
   87     89   
                    content_length,
   88     90   
                );
   89     91   
                builder
   90     92   
                    .status(500)
   91         -
                    .body(::aws_smithy_http_server::body::to_boxed(payload))?
          93  +
                    .body(::aws_smithy_legacy_http_server::body::to_boxed(payload))?
   92     94   
            }
   93     95   
        }
   94     96   
    })
   95     97   
}

tmp-codegen-diff/codegen-server-test-python/constraints/rust-server-codegen-python/src/protocol_serde/shape_constrained_shapes_operation.rs

@@ -1,1 +151,151 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[allow(clippy::unnecessary_wraps)]
    3      3   
pub async fn de_constrained_shapes_operation_http_request<B>(
    4      4   
    #[allow(unused_variables)] request: ::http::Request<B>,
    5      5   
) -> std::result::Result<
    6      6   
    crate::input::ConstrainedShapesOperationInput,
    7         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
           7  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
    8      8   
>
    9      9   
where
   10         -
    B: ::aws_smithy_http_server::body::HttpBody + Send,
          10  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
   11     11   
    B::Data: Send,
   12         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
   13         -
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
          12  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
          13  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
   14     14   
{
   15     15   
    Ok({
   16     16   
        #[allow(unused_mut)]
   17     17   
        let mut input =
   18     18   
            crate::input::constrained_shapes_operation_input_internal::Builder::default();
   19     19   
        #[allow(unused_variables)]
   20     20   
        let ::aws_smithy_runtime_api::http::RequestParts {
   21     21   
            uri, headers, body, ..
   22     22   
        } = ::aws_smithy_runtime_api::http::Request::try_from(request)?.into_parts();
   23     23   
        let bytes = ::hyper::body::to_bytes(body).await?;
   24     24   
        if !bytes.is_empty() {
   25         -
            ::aws_smithy_http_server::protocol::content_type_header_classifier_smithy(
          25  +
            ::aws_smithy_legacy_http_server::protocol::content_type_header_classifier_smithy(
   26     26   
                &headers,
   27     27   
                Some("application/json"),
   28     28   
            )?;
   29     29   
            input = crate::protocol_serde::shape_constrained_shapes_operation::de_constrained_shapes_operation(bytes.as_ref(), input)?;
   30     30   
        }
   31     31   
        input.build()?
   32     32   
    })
   33     33   
}
   34     34   
   35     35   
#[allow(clippy::unnecessary_wraps)]
   36     36   
pub fn ser_constrained_shapes_operation_http_response(
   37     37   
    #[allow(unused_variables)] output: crate::output::ConstrainedShapesOperationOutput,
   38     38   
) -> std::result::Result<
   39         -
    ::aws_smithy_http_server::response::Response,
   40         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
          39  +
    ::aws_smithy_legacy_http_server::response::Response,
          40  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
   41     41   
> {
   42     42   
    Ok({
   43     43   
        #[allow(unused_mut)]
   44     44   
        let mut builder = ::http::Response::builder();
   45         -
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
          45  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   46     46   
            builder,
   47     47   
            ::http::header::CONTENT_TYPE,
   48     48   
            "application/json",
   49     49   
        );
   50     50   
        let http_status: u16 = 200;
   51     51   
        builder = builder.status(http_status);
   52     52   
        let payload =
   53     53   
            crate::protocol_serde::shape_constrained_shapes_operation_output::ser_constrained_shapes_operation_output_output_output(&output)?
   54     54   
        ;
   55     55   
        let content_length = payload.len();
   56         -
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
          56  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   57     57   
            builder,
   58     58   
            ::http::header::CONTENT_LENGTH,
   59     59   
            content_length,
   60     60   
        );
   61         -
        let body = ::aws_smithy_http_server::body::to_boxed(payload);
          61  +
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);
   62     62   
        builder.body(body)?
   63     63   
    })
   64     64   
}
   65     65   
   66     66   
#[allow(clippy::unnecessary_wraps)]
   67     67   
pub fn ser_constrained_shapes_operation_http_error(
   68     68   
    error: &crate::error::ConstrainedShapesOperationError,
   69     69   
) -> std::result::Result<
   70         -
    ::aws_smithy_http_server::response::Response,
   71         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
          70  +
    ::aws_smithy_legacy_http_server::response::Response,
          71  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
   72     72   
> {
   73     73   
    Ok({
   74     74   
        match error {
   75     75   
            crate::error::ConstrainedShapesOperationError::ValidationException(output) => {
   76     76   
                let payload = crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(output)?;
   77     77   
                #[allow(unused_mut)]
   78     78   
                let mut builder = ::http::Response::builder();
   79         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          79  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   80     80   
                    builder,
   81     81   
                    ::http::header::CONTENT_TYPE,
   82     82   
                    "application/json",
   83     83   
                );
   84         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          84  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   85     85   
                    builder,
   86     86   
                    ::http::header::HeaderName::from_static("x-amzn-errortype"),
   87     87   
                    "ValidationException",
   88     88   
                );
   89     89   
                let content_length = payload.len();
   90         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          90  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   91     91   
                    builder,
   92     92   
                    ::http::header::CONTENT_LENGTH,
   93     93   
                    content_length,
   94     94   
                );
   95     95   
                builder
   96     96   
                    .status(400)
   97         -
                    .body(::aws_smithy_http_server::body::to_boxed(payload))?
          97  +
                    .body(::aws_smithy_legacy_http_server::body::to_boxed(payload))?
   98     98   
            }
   99     99   
            crate::error::ConstrainedShapesOperationError::InternalServerError(output) => {
  100    100   
                let payload = crate::protocol_serde::shape_internal_server_error::ser_internal_server_error_error(output)?;
  101    101   
                #[allow(unused_mut)]
  102    102   
                let mut builder = ::http::Response::builder();
  103         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         103  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  104    104   
                    builder,
  105    105   
                    ::http::header::CONTENT_TYPE,
  106    106   
                    "application/json",
  107    107   
                );
  108         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         108  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  109    109   
                    builder,
  110    110   
                    ::http::header::HeaderName::from_static("x-amzn-errortype"),
  111    111   
                    "InternalServerError",
  112    112   
                );
  113    113   
                let content_length = payload.len();
  114         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         114  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  115    115   
                    builder,
  116    116   
                    ::http::header::CONTENT_LENGTH,
  117    117   
                    content_length,
  118    118   
                );
  119    119   
                builder
  120    120   
                    .status(500)
  121         -
                    .body(::aws_smithy_http_server::body::to_boxed(payload))?
         121  +
                    .body(::aws_smithy_legacy_http_server::body::to_boxed(payload))?
  122    122   
            }
  123    123   
        }
  124    124   
    })
  125    125   
}
  126    126   
  127    127   
pub(crate) fn de_constrained_shapes_operation(
  128    128   
    value: &[u8],
  129    129   
    mut builder: crate::input::constrained_shapes_operation_input_internal::Builder,
  130    130   
) -> ::std::result::Result<
  131    131   
    crate::input::constrained_shapes_operation_input_internal::Builder,

tmp-codegen-diff/codegen-server-test-python/constraints/rust-server-codegen-python/src/protocol_serde/shape_event_streams_operation.rs

@@ -1,1 +161,161 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[allow(clippy::unnecessary_wraps)]
    3      3   
pub async fn de_event_streams_operation_http_request<B>(
    4      4   
    #[allow(unused_variables)] request: ::http::Request<B>,
    5      5   
) -> std::result::Result<
    6      6   
    crate::input::EventStreamsOperationInput,
    7         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
           7  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
    8      8   
>
    9      9   
where
   10         -
    B: ::aws_smithy_http_server::body::HttpBody + Send,
          10  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
   11     11   
    B: Into<::aws_smithy_types::byte_stream::ByteStream>,
   12     12   
    B::Data: Send,
   13         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
   14         -
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
          13  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
          14  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
   15     15   
{
   16     16   
    Ok({
   17     17   
        #[allow(unused_mut)]
   18     18   
        let mut input = crate::input::event_streams_operation_input_internal::Builder::default();
   19     19   
        #[allow(unused_variables)]
   20     20   
        let ::aws_smithy_runtime_api::http::RequestParts {
   21     21   
            uri, headers, body, ..
   22     22   
        } = ::aws_smithy_runtime_api::http::Request::try_from(request)?.into_parts();
   23     23   
        if let Some(value) = {
   24     24   
            let mut receiver =
   25     25   
                crate::protocol_serde::shape_event_streams_operation_input::de_events_payload(
   26     26   
                    &mut body.into().into_inner(),
   27     27   
                )?;
   28     28   
            if let Some(_initial_event) = receiver
   29         -
                                                .try_recv_initial(::aws_smithy_http::event_stream::InitialMessageType::Request)
          29  +
                                                .try_recv_initial(::aws_smithy_legacy_http::event_stream::InitialMessageType::Request)
   30     30   
                                                .await
   31     31   
                                                .map_err(
   32         -
                                                    |ev_error| ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::ConstraintViolation(
          32  +
                                                    |ev_error| ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::ConstraintViolation(
   33     33   
                                                        #[allow(clippy::useless_conversion)]
   34     34   
                                                        format!("{ev_error}").into()
   35     35   
                                                    )
   36     36   
                                                )? {
   37     37   
                                                
   38     38   
                                            }
   39     39   
            Some(receiver)
   40     40   
        } {
   41     41   
            input = input.set_events(value)
   42     42   
        }
   43     43   
        input.build()?
   44     44   
    })
   45     45   
}
   46     46   
   47     47   
#[allow(clippy::unnecessary_wraps)]
   48     48   
pub fn ser_event_streams_operation_http_response(
   49     49   
    #[allow(unused_variables)] output: crate::output::EventStreamsOperationOutput,
   50     50   
) -> std::result::Result<
   51         -
    ::aws_smithy_http_server::response::Response,
   52         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
          51  +
    ::aws_smithy_legacy_http_server::response::Response,
          52  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
   53     53   
> {
   54     54   
    Ok({
   55     55   
        #[allow(unused_mut)]
   56     56   
        let mut builder = ::http::Response::builder();
   57         -
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
          57  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   58     58   
            builder,
   59     59   
            ::http::header::CONTENT_TYPE,
   60     60   
            "application/vnd.amazon.eventstream",
   61     61   
        );
   62     62   
        let http_status: u16 = 200;
   63     63   
        builder = builder.status(http_status);
   64         -
        let body = ::aws_smithy_http_server::body::boxed(
   65         -
            ::aws_smithy_http_server::body::Body::wrap_stream({
          64  +
        let body = ::aws_smithy_legacy_http_server::body::boxed(
          65  +
            ::aws_smithy_legacy_http_server::body::Body::wrap_stream({
   66     66   
                let error_marshaller = crate::event_stream_serde::EventErrorMarshaller::new();
   67     67   
                let marshaller = crate::event_stream_serde::EventMarshaller::new();
   68     68   
                let signer = ::aws_smithy_eventstream::frame::NoOpSigner {};
   69     69   
                output
   70     70   
                    .events
   71     71   
                    .into_body_stream(marshaller, error_marshaller, signer)
   72     72   
            }),
   73     73   
        );
   74     74   
        builder.body(body)?
   75     75   
    })
   76     76   
}
   77     77   
   78     78   
#[allow(clippy::unnecessary_wraps)]
   79     79   
pub fn ser_event_streams_operation_http_error(
   80     80   
    error: &crate::error::EventStreamsOperationError,
   81     81   
) -> std::result::Result<
   82         -
    ::aws_smithy_http_server::response::Response,
   83         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
          82  +
    ::aws_smithy_legacy_http_server::response::Response,
          83  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
   84     84   
> {
   85     85   
    Ok({
   86     86   
        match error {
   87     87   
            crate::error::EventStreamsOperationError::ValidationException(output) => {
   88     88   
                let payload = crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(output)?;
   89     89   
                #[allow(unused_mut)]
   90     90   
                let mut builder = ::http::Response::builder();
   91         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          91  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   92     92   
                    builder,
   93     93   
                    ::http::header::CONTENT_TYPE,
   94     94   
                    "application/vnd.amazon.eventstream",
   95     95   
                );
   96         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          96  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   97     97   
                    builder,
   98     98   
                    ::http::header::HeaderName::from_static("x-amzn-errortype"),
   99     99   
                    "ValidationException",
  100    100   
                );
  101    101   
                let content_length = payload.len();
  102         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         102  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  103    103   
                    builder,
  104    104   
                    ::http::header::CONTENT_LENGTH,
  105    105   
                    content_length,
  106    106   
                );
  107    107   
                builder
  108    108   
                    .status(400)
  109         -
                    .body(::aws_smithy_http_server::body::to_boxed(payload))?
         109  +
                    .body(::aws_smithy_legacy_http_server::body::to_boxed(payload))?
  110    110   
            }
  111    111   
            crate::error::EventStreamsOperationError::EventStreamErrorMessage(output) => {
  112    112   
                let payload = crate::protocol_serde::shape_event_stream_error_message::ser_event_stream_error_message_error(output)?;
  113    113   
                #[allow(unused_mut)]
  114    114   
                let mut builder = ::http::Response::builder();
  115         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         115  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  116    116   
                    builder,
  117    117   
                    ::http::header::CONTENT_TYPE,
  118    118   
                    "application/vnd.amazon.eventstream",
  119    119   
                );
  120         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         120  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  121    121   
                    builder,
  122    122   
                    ::http::header::HeaderName::from_static("x-amzn-errortype"),
  123    123   
                    "EventStreamErrorMessage",
  124    124   
                );
  125    125   
                let content_length = payload.len();
  126         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         126  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  127    127   
                    builder,
  128    128   
                    ::http::header::CONTENT_LENGTH,
  129    129   
                    content_length,
  130    130   
                );
  131    131   
                builder
  132    132   
                    .status(500)
  133         -
                    .body(::aws_smithy_http_server::body::to_boxed(payload))?
         133  +
                    .body(::aws_smithy_legacy_http_server::body::to_boxed(payload))?
  134    134   
            }
  135    135   
            crate::error::EventStreamsOperationError::InternalServerError(output) => {
  136    136   
                let payload = crate::protocol_serde::shape_internal_server_error::ser_internal_server_error_error(output)?;
  137    137   
                #[allow(unused_mut)]
  138    138   
                let mut builder = ::http::Response::builder();
  139         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         139  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  140    140   
                    builder,
  141    141   
                    ::http::header::CONTENT_TYPE,
  142    142   
                    "application/vnd.amazon.eventstream",
  143    143   
                );
  144         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         144  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  145    145   
                    builder,
  146    146   
                    ::http::header::HeaderName::from_static("x-amzn-errortype"),
  147    147   
                    "InternalServerError",
  148    148   
                );
  149    149   
                let content_length = payload.len();
  150         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         150  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  151    151   
                    builder,
  152    152   
                    ::http::header::CONTENT_LENGTH,
  153    153   
                    content_length,
  154    154   
                );
  155    155   
                builder
  156    156   
                    .status(500)
  157         -
                    .body(::aws_smithy_http_server::body::to_boxed(payload))?
         157  +
                    .body(::aws_smithy_legacy_http_server::body::to_boxed(payload))?
  158    158   
            }
  159    159   
        }
  160    160   
    })
  161    161   
}

tmp-codegen-diff/codegen-server-test-python/constraints/rust-server-codegen-python/src/protocol_serde/shape_http_prefix_headers_targeting_length_map_operation.rs

@@ -1,1 +142,142 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[allow(clippy::unnecessary_wraps)]
    3      3   
pub async fn de_http_prefix_headers_targeting_length_map_operation_http_request<B>(
    4      4   
    #[allow(unused_variables)] request: ::http::Request<B>,
    5      5   
) -> std::result::Result<
    6      6   
    crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
    7         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
           7  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
    8      8   
>
    9      9   
where
   10         -
    B: ::aws_smithy_http_server::body::HttpBody + Send,
          10  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
   11     11   
    B::Data: Send,
   12         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
   13         -
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
          12  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
          13  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
   14     14   
{
   15     15   
    Ok({
   16     16   
        #[allow(unused_mut)]
   17     17   
        let mut input = crate::input::http_prefix_headers_targeting_length_map_operation_input_internal::Builder::default();
   18     18   
        #[allow(unused_variables)]
   19     19   
        let ::aws_smithy_runtime_api::http::RequestParts {
   20     20   
            uri, headers, body, ..
   21     21   
        } = ::aws_smithy_runtime_api::http::Request::try_from(request)?.into_parts();
   22     22   
        if let Some(value) = crate::protocol_serde::shape_http_prefix_headers_targeting_length_map_operation_input::de_length_map_prefix_header(&headers)? {
   23     23   
                                input = input.set_length_map(Some(value))
   24     24   
                            }
   25     25   
        input.build()?
   26     26   
    })
   27     27   
}
   28     28   
   29     29   
#[allow(clippy::unnecessary_wraps)]
   30     30   
pub fn ser_http_prefix_headers_targeting_length_map_operation_http_response(
   31     31   
    #[allow(unused_variables)]
   32     32   
    output: crate::output::HttpPrefixHeadersTargetingLengthMapOperationOutput,
   33     33   
) -> std::result::Result<
   34         -
    ::aws_smithy_http_server::response::Response,
   35         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
          34  +
    ::aws_smithy_legacy_http_server::response::Response,
          35  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
   36     36   
> {
   37     37   
    Ok({
   38     38   
        #[allow(unused_mut)]
   39     39   
        let mut builder = ::http::Response::builder();
   40     40   
        builder = crate::protocol_serde::shape_http_prefix_headers_targeting_length_map_operation::ser_http_prefix_headers_targeting_length_map_operation_headers(&output, builder)?;
   41         -
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
          41  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   42     42   
            builder,
   43     43   
            ::http::header::CONTENT_TYPE,
   44     44   
            "application/json",
   45     45   
        );
   46     46   
        let http_status: u16 = 200;
   47     47   
        builder = builder.status(http_status);
   48     48   
        let payload =
   49     49   
            crate::protocol_serde::shape_http_prefix_headers_targeting_length_map_operation_output::ser_http_prefix_headers_targeting_length_map_operation_output_output_output(&output)?
   50     50   
        ;
   51     51   
        let content_length = payload.len();
   52         -
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
          52  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   53     53   
            builder,
   54     54   
            ::http::header::CONTENT_LENGTH,
   55     55   
            content_length,
   56     56   
        );
   57         -
        let body = ::aws_smithy_http_server::body::to_boxed(payload);
          57  +
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);
   58     58   
        builder.body(body)?
   59     59   
    })
   60     60   
}
   61     61   
   62     62   
#[allow(clippy::unnecessary_wraps)]
   63     63   
pub fn ser_http_prefix_headers_targeting_length_map_operation_http_error(
   64     64   
    error: &crate::error::HttpPrefixHeadersTargetingLengthMapOperationError,
   65     65   
) -> std::result::Result<
   66         -
    ::aws_smithy_http_server::response::Response,
   67         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
          66  +
    ::aws_smithy_legacy_http_server::response::Response,
          67  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
   68     68   
> {
   69     69   
    Ok({
   70     70   
        match error {
   71     71   
            crate::error::HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(output) => {
   72     72   
                let payload = crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(output)?;
   73     73   
                #[allow(unused_mut)]
   74     74   
                let mut builder = ::http::Response::builder();
   75         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          75  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   76     76   
                                builder,
   77     77   
                                ::http::header::CONTENT_TYPE,
   78     78   
                                "application/json",
   79     79   
                            );
   80         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          80  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   81     81   
                                builder,
   82     82   
                                ::http::header::HeaderName::from_static("x-amzn-errortype"),
   83     83   
                                "ValidationException",
   84     84   
                            );
   85     85   
                let content_length = payload.len();
   86         -
                            builder = ::aws_smithy_http::header::set_response_header_if_absent(builder, ::http::header::CONTENT_LENGTH, content_length);
   87         -
                builder.status(400).body(::aws_smithy_http_server::body::to_boxed(payload))?
          86  +
                            builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(builder, ::http::header::CONTENT_LENGTH, content_length);
          87  +
                builder.status(400).body(::aws_smithy_legacy_http_server::body::to_boxed(payload))?
   88     88   
            }
   89     89   
            crate::error::HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(output) => {
   90     90   
                let payload = crate::protocol_serde::shape_internal_server_error::ser_internal_server_error_error(output)?;
   91     91   
                #[allow(unused_mut)]
   92     92   
                let mut builder = ::http::Response::builder();
   93         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          93  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   94     94   
                                builder,
   95     95   
                                ::http::header::CONTENT_TYPE,
   96     96   
                                "application/json",
   97     97   
                            );
   98         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          98  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   99     99   
                                builder,
  100    100   
                                ::http::header::HeaderName::from_static("x-amzn-errortype"),
  101    101   
                                "InternalServerError",
  102    102   
                            );
  103    103   
                let content_length = payload.len();
  104         -
                            builder = ::aws_smithy_http::header::set_response_header_if_absent(builder, ::http::header::CONTENT_LENGTH, content_length);
  105         -
                builder.status(500).body(::aws_smithy_http_server::body::to_boxed(payload))?
         104  +
                            builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(builder, ::http::header::CONTENT_LENGTH, content_length);
         105  +
                builder.status(500).body(::aws_smithy_legacy_http_server::body::to_boxed(payload))?
  106    106   
            }
  107    107   
        }
  108    108   
    })
  109    109   
}
  110    110   
  111    111   
pub fn ser_http_prefix_headers_targeting_length_map_operation_headers(
  112    112   
    input: &crate::output::HttpPrefixHeadersTargetingLengthMapOperationOutput,
  113    113   
    mut builder: ::http::response::Builder,
  114    114   
) -> std::result::Result<::http::response::Builder, ::aws_smithy_types::error::operation::BuildError>
  115    115   
{
  116    116   
    if let ::std::option::Option::Some(inner_1) = &input.length_map {
  117    117   
        {
  118    118   
            for (k, v) in inner_1 {
  119    119   
                use std::str::FromStr;
  120         -
                let header_name = http::header::HeaderName::from_str(&format!(
         120  +
                let header_name = ::http::HeaderName::from_str(&format!(
  121    121   
                    "{}{}",
  122    122   
                    "X-Prefix-Headers-LengthMap-", &k
  123    123   
                ))
  124    124   
                .map_err(|err| {
  125    125   
                    ::aws_smithy_types::error::operation::BuildError::invalid_field(
  126    126   
                        "length_map",
  127    127   
                        format!("`{k}` cannot be used as a header name: {err}"),
  128    128   
                    )
  129    129   
                })?;
  130    130   
                let header_value = v.as_str();

tmp-codegen-diff/codegen-server-test-python/constraints/rust-server-codegen-python/src/protocol_serde/shape_http_prefix_headers_targeting_length_map_operation_input.rs

@@ -1,1 +26,27 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub(crate) fn de_length_map_prefix_header(
    3      3   
    header_map: &::aws_smithy_runtime_api::http::Headers,
    4      4   
) -> std::result::Result<
    5      5   
    ::std::option::Option<crate::unconstrained::con_b_map_unconstrained::ConBMapUnconstrained>,
    6         -
    ::aws_smithy_http::header::ParseError,
           6  +
    ::aws_smithy_legacy_http::header::ParseError,
    7      7   
> {
    8         -
    let headers = ::aws_smithy_http::header::headers_for_prefix(
           8  +
    let headers = ::aws_smithy_legacy_http::header::headers_for_prefix(
    9      9   
        header_map.iter().map(|(k, _)| k),
   10     10   
        "X-Prefix-Headers-LengthMap-",
   11     11   
    );
   12     12   
    let out: std::result::Result<_, _> = headers.map(|(key, header_name)| {
   13     13   
                            let values = header_map.get_all(header_name);
   14     14   
                            crate::protocol_serde::shape_http_prefix_headers_targeting_length_map_operation_input::de_length_map_inner(values).map(|v| (key.to_string(), v.expect(
   15     15   
                                "we have checked there is at least one value for this header name; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues"
   16     16   
                            )))
   17     17   
                        }).collect();
   18     18   
    let out = out.map(crate::unconstrained::con_b_map_unconstrained::ConBMapUnconstrained);
   19     19   
    out.map(Some)
   20     20   
}
   21     21   
   22     22   
pub fn de_length_map_inner<'a>(
   23     23   
    headers: impl ::std::iter::Iterator<Item = &'a str>,
   24         -
) -> std::result::Result<Option<::std::string::String>, ::aws_smithy_http::header::ParseError> {
   25         -
    ::aws_smithy_http::header::one_or_none(headers)
          24  +
) -> std::result::Result<Option<::std::string::String>, ::aws_smithy_legacy_http::header::ParseError>
          25  +
{
          26  +
    ::aws_smithy_legacy_http::header::one_or_none(headers)
   26     27   
}

tmp-codegen-diff/codegen-server-test-python/constraints/rust-server-codegen-python/src/protocol_serde/shape_non_streaming_blob_operation.rs

@@ -1,1 +90,90 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[allow(clippy::unnecessary_wraps)]
    3      3   
pub async fn de_non_streaming_blob_operation_http_request<B>(
    4      4   
    #[allow(unused_variables)] request: ::http::Request<B>,
    5      5   
) -> std::result::Result<
    6      6   
    crate::input::NonStreamingBlobOperationInput,
    7         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
           7  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
    8      8   
>
    9      9   
where
   10         -
    B: ::aws_smithy_http_server::body::HttpBody + Send,
          10  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
   11     11   
    B::Data: Send,
   12         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
   13         -
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
          12  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
          13  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
   14     14   
{
   15     15   
    Ok({
   16     16   
        #[allow(unused_mut)]
   17     17   
        let mut input =
   18     18   
            crate::input::non_streaming_blob_operation_input_internal::Builder::default();
   19     19   
        #[allow(unused_variables)]
   20     20   
        let ::aws_smithy_runtime_api::http::RequestParts {
   21     21   
            uri, headers, body, ..
   22     22   
        } = ::aws_smithy_runtime_api::http::Request::try_from(request)?.into_parts();
   23     23   
        if let Some(value) = {
   24     24   
            let bytes = ::hyper::body::to_bytes(body).await?;
   25     25   
   26     26   
            crate::protocol_serde::shape_non_streaming_blob_operation_input::de_non_streaming_blob_payload(&bytes)?
   27     27   
        } {
   28     28   
            input = input.set_non_streaming_blob(Some(value))
   29     29   
        }
   30     30   
        input.build()
   31     31   
    })
   32     32   
}
   33     33   
   34     34   
#[allow(clippy::unnecessary_wraps)]
   35     35   
pub fn ser_non_streaming_blob_operation_http_response(
   36     36   
    #[allow(unused_variables)] output: crate::output::NonStreamingBlobOperationOutput,
   37     37   
) -> std::result::Result<
   38         -
    ::aws_smithy_http_server::response::Response,
   39         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
          38  +
    ::aws_smithy_legacy_http_server::response::Response,
          39  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
   40     40   
> {
   41     41   
    Ok({
   42     42   
        #[allow(unused_mut)]
   43     43   
        let mut builder = ::http::Response::builder();
   44     44   
        let http_status: u16 = 200;
   45     45   
        builder = builder.status(http_status);
   46     46   
        let payload =
   47     47   
            crate::protocol_serde::shape_non_streaming_blob_operation_output::ser_non_streaming_blob_http_payload( output.non_streaming_blob)?
   48     48   
        ;
   49     49   
        let content_length = payload.len();
   50         -
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
          50  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   51     51   
            builder,
   52     52   
            ::http::header::CONTENT_LENGTH,
   53     53   
            content_length,
   54     54   
        );
   55         -
        let body = ::aws_smithy_http_server::body::to_boxed(payload);
          55  +
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);
   56     56   
        builder.body(body)?
   57     57   
    })
   58     58   
}
   59     59   
   60     60   
#[allow(clippy::unnecessary_wraps)]
   61     61   
pub fn ser_non_streaming_blob_operation_http_error(
   62     62   
    error: &crate::error::NonStreamingBlobOperationError,
   63     63   
) -> std::result::Result<
   64         -
    ::aws_smithy_http_server::response::Response,
   65         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
          64  +
    ::aws_smithy_legacy_http_server::response::Response,
          65  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
   66     66   
> {
   67     67   
    Ok({
   68     68   
        match error {
   69     69   
            crate::error::NonStreamingBlobOperationError::InternalServerError(output) => {
   70     70   
                let payload = crate::protocol_serde::shape_internal_server_error::ser_internal_server_error_error(output)?;
   71     71   
                #[allow(unused_mut)]
   72     72   
                let mut builder = ::http::Response::builder();
   73         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          73  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   74     74   
                    builder,
   75     75   
                    ::http::header::HeaderName::from_static("x-amzn-errortype"),
   76     76   
                    "InternalServerError",
   77     77   
                );
   78     78   
                let content_length = payload.len();
   79         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          79  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   80     80   
                    builder,
   81     81   
                    ::http::header::CONTENT_LENGTH,
   82     82   
                    content_length,
   83     83   
                );
   84     84   
                builder
   85     85   
                    .status(500)
   86         -
                    .body(::aws_smithy_http_server::body::to_boxed(payload))?
          86  +
                    .body(::aws_smithy_legacy_http_server::body::to_boxed(payload))?
   87     87   
            }
   88     88   
        }
   89     89   
    })
   90     90   
}