Server Test Python

Server Test Python

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-server-test-python/rest_json/rust-server-codegen-python/src/python_module_export.rs

@@ -1,1 +324,570 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* PythonServerModuleGenerator.kt:41 */
    2      3   
#[::pyo3::pymodule]
    3         -
#[::pyo3(name = "rest_json")]
           4  +
#[pyo3(name = "rest_json")]
    4      5   
pub fn python_library(py: ::pyo3::Python<'_>, m: &::pyo3::types::PyModule) -> ::pyo3::PyResult<()> {
           6  +
    /* PythonServerModuleGenerator.kt:65 */
    5      7   
    let input = ::pyo3::types::PyModule::new(py, "input")?;
    6      8   
    let output = ::pyo3::types::PyModule::new(py, "output")?;
    7      9   
    let error = ::pyo3::types::PyModule::new(py, "error")?;
          10  +
    /* PythonServerModuleGenerator.kt:96 */
    8     11   
    error.add_class::<crate::error::InternalServerError>()?;
          12  +
    /* PythonServerModuleGenerator.kt:96 */
    9     13   
    error.add_class::<crate::error::ValidationException>()?;
          14  +
    /* PythonServerModuleGenerator.kt:79 */
   10     15   
    let model = ::pyo3::types::PyModule::new(py, "model")?;
          16  +
    /* PythonServerModuleGenerator.kt:96 */
   11     17   
    model.add_class::<crate::model::ValidationExceptionField>()?;
          18  +
    /* PythonServerModuleGenerator.kt:96 */
   12     19   
    output.add_class::<crate::output::OperationWithNestedStructureOutput>()?;
          20  +
    /* PythonServerModuleGenerator.kt:96 */
   13     21   
    model.add_class::<crate::model::Dialog>()?;
          22  +
    /* PythonServerModuleGenerator.kt:96 */
   14     23   
    model.add_class::<crate::model::Farewell>()?;
          24  +
    /* PythonServerModuleGenerator.kt:96 */
   15     25   
    input.add_class::<crate::input::OperationWithNestedStructureInput>()?;
          26  +
    /* PythonServerModuleGenerator.kt:96 */
   16     27   
    model.add_class::<crate::model::TopLevel>()?;
          28  +
    /* PythonServerModuleGenerator.kt:96 */
   17     29   
    output.add_class::<crate::output::OperationWithDefaultsOutput>()?;
          30  +
    /* PythonServerModuleGenerator.kt:96 */
   18     31   
    model.add_class::<crate::model::TestEnum>()?;
          32  +
    /* PythonServerModuleGenerator.kt:96 */
   19     33   
    input.add_class::<crate::input::OperationWithDefaultsInput>()?;
          34  +
    /* PythonServerModuleGenerator.kt:96 */
   20     35   
    model.add_class::<crate::model::ClientOptionalDefaults>()?;
          36  +
    /* PythonServerModuleGenerator.kt:96 */
   21     37   
    model.add_class::<crate::model::Defaults>()?;
          38  +
    /* PythonServerModuleGenerator.kt:96 */
   22     39   
    output.add_class::<crate::output::ContentTypeParametersOutput>()?;
          40  +
    /* PythonServerModuleGenerator.kt:96 */
   23     41   
    input.add_class::<crate::input::ContentTypeParametersInput>()?;
          42  +
    /* PythonServerModuleGenerator.kt:96 */
   24     43   
    output.add_class::<crate::output::PutWithContentEncodingOutput>()?;
          44  +
    /* PythonServerModuleGenerator.kt:96 */
   25     45   
    input.add_class::<crate::input::PutWithContentEncodingInput>()?;
          46  +
    /* PythonServerModuleGenerator.kt:96 */
   26     47   
    output.add_class::<crate::output::FractionalSecondsOutput>()?;
          48  +
    /* PythonServerModuleGenerator.kt:96 */
   27     49   
    input.add_class::<crate::input::FractionalSecondsInput>()?;
          50  +
    /* PythonServerModuleGenerator.kt:96 */
   28     51   
    output.add_class::<crate::output::DatetimeOffsetsOutput>()?;
          52  +
    /* PythonServerModuleGenerator.kt:96 */
   29     53   
    input.add_class::<crate::input::DatetimeOffsetsInput>()?;
          54  +
    /* PythonServerModuleGenerator.kt:96 */
   30     55   
    output.add_class::<crate::output::TestPostNoInputNoPayloadOutput>()?;
          56  +
    /* PythonServerModuleGenerator.kt:96 */
   31     57   
    input.add_class::<crate::input::TestPostNoInputNoPayloadInput>()?;
          58  +
    /* PythonServerModuleGenerator.kt:96 */
   32     59   
    output.add_class::<crate::output::TestGetNoInputNoPayloadOutput>()?;
          60  +
    /* PythonServerModuleGenerator.kt:96 */
   33     61   
    input.add_class::<crate::input::TestGetNoInputNoPayloadInput>()?;
          62  +
    /* PythonServerModuleGenerator.kt:96 */
   34     63   
    output.add_class::<crate::output::TestPostNoPayloadOutput>()?;
          64  +
    /* PythonServerModuleGenerator.kt:96 */
   35     65   
    input.add_class::<crate::input::TestPostNoPayloadInput>()?;
          66  +
    /* PythonServerModuleGenerator.kt:96 */
   36     67   
    output.add_class::<crate::output::TestGetNoPayloadOutput>()?;
          68  +
    /* PythonServerModuleGenerator.kt:96 */
   37     69   
    input.add_class::<crate::input::TestGetNoPayloadInput>()?;
          70  +
    /* PythonServerModuleGenerator.kt:96 */
   38     71   
    output.add_class::<crate::output::TestPayloadBlobOutput>()?;
          72  +
    /* PythonServerModuleGenerator.kt:96 */
   39     73   
    input.add_class::<crate::input::TestPayloadBlobInput>()?;
          74  +
    /* PythonServerModuleGenerator.kt:96 */
   40     75   
    output.add_class::<crate::output::TestPayloadStructureOutput>()?;
          76  +
    /* PythonServerModuleGenerator.kt:96 */
   41     77   
    model.add_class::<crate::model::PayloadConfig>()?;
          78  +
    /* PythonServerModuleGenerator.kt:96 */
   42     79   
    input.add_class::<crate::input::TestPayloadStructureInput>()?;
          80  +
    /* PythonServerModuleGenerator.kt:96 */
   43     81   
    output.add_class::<crate::output::TestBodyStructureOutput>()?;
          82  +
    /* PythonServerModuleGenerator.kt:96 */
   44     83   
    model.add_class::<crate::model::TestConfig>()?;
          84  +
    /* PythonServerModuleGenerator.kt:96 */
   45     85   
    input.add_class::<crate::input::TestBodyStructureInput>()?;
          86  +
    /* PythonServerModuleGenerator.kt:96 */
   46     87   
    output.add_class::<crate::output::MalformedAcceptWithGenericStringOutput>()?;
          88  +
    /* PythonServerModuleGenerator.kt:96 */
   47     89   
    input.add_class::<crate::input::MalformedAcceptWithGenericStringInput>()?;
          90  +
    /* PythonServerModuleGenerator.kt:96 */
   48     91   
    output.add_class::<crate::output::MalformedAcceptWithPayloadOutput>()?;
          92  +
    /* PythonServerModuleGenerator.kt:96 */
   49     93   
    input.add_class::<crate::input::MalformedAcceptWithPayloadInput>()?;
          94  +
    /* PythonServerModuleGenerator.kt:96 */
   50     95   
    output.add_class::<crate::output::MalformedAcceptWithBodyOutput>()?;
          96  +
    /* PythonServerModuleGenerator.kt:96 */
   51     97   
    input.add_class::<crate::input::MalformedAcceptWithBodyInput>()?;
          98  +
    /* PythonServerModuleGenerator.kt:96 */
   52     99   
    output.add_class::<crate::output::MalformedContentTypeWithGenericStringOutput>()?;
         100  +
    /* PythonServerModuleGenerator.kt:96 */
   53    101   
    input.add_class::<crate::input::MalformedContentTypeWithGenericStringInput>()?;
         102  +
    /* PythonServerModuleGenerator.kt:96 */
   54    103   
    output.add_class::<crate::output::MalformedContentTypeWithPayloadOutput>()?;
         104  +
    /* PythonServerModuleGenerator.kt:96 */
   55    105   
    input.add_class::<crate::input::MalformedContentTypeWithPayloadInput>()?;
         106  +
    /* PythonServerModuleGenerator.kt:96 */
   56    107   
    output.add_class::<crate::output::MalformedContentTypeWithBodyOutput>()?;
         108  +
    /* PythonServerModuleGenerator.kt:96 */
   57    109   
    input.add_class::<crate::input::MalformedContentTypeWithBodyInput>()?;
         110  +
    /* PythonServerModuleGenerator.kt:96 */
   58    111   
    output.add_class::<crate::output::MalformedContentTypeWithoutBodyOutput>()?;
         112  +
    /* PythonServerModuleGenerator.kt:96 */
   59    113   
    input.add_class::<crate::input::MalformedContentTypeWithoutBodyInput>()?;
         114  +
    /* PythonServerModuleGenerator.kt:96 */
   60    115   
    output.add_class::<crate::output::MalformedTimestampBodyHttpDateOutput>()?;
         116  +
    /* PythonServerModuleGenerator.kt:96 */
   61    117   
    input.add_class::<crate::input::MalformedTimestampBodyHttpDateInput>()?;
         118  +
    /* PythonServerModuleGenerator.kt:96 */
   62    119   
    output.add_class::<crate::output::MalformedTimestampBodyDateTimeOutput>()?;
         120  +
    /* PythonServerModuleGenerator.kt:96 */
   63    121   
    input.add_class::<crate::input::MalformedTimestampBodyDateTimeInput>()?;
         122  +
    /* PythonServerModuleGenerator.kt:96 */
   64    123   
    output.add_class::<crate::output::MalformedTimestampBodyDefaultOutput>()?;
         124  +
    /* PythonServerModuleGenerator.kt:96 */
   65    125   
    input.add_class::<crate::input::MalformedTimestampBodyDefaultInput>()?;
         126  +
    /* PythonServerModuleGenerator.kt:96 */
   66    127   
    output.add_class::<crate::output::MalformedTimestampHeaderEpochOutput>()?;
         128  +
    /* PythonServerModuleGenerator.kt:96 */
   67    129   
    input.add_class::<crate::input::MalformedTimestampHeaderEpochInput>()?;
         130  +
    /* PythonServerModuleGenerator.kt:96 */
   68    131   
    output.add_class::<crate::output::MalformedTimestampHeaderDateTimeOutput>()?;
         132  +
    /* PythonServerModuleGenerator.kt:96 */
   69    133   
    input.add_class::<crate::input::MalformedTimestampHeaderDateTimeInput>()?;
         134  +
    /* PythonServerModuleGenerator.kt:96 */
   70    135   
    output.add_class::<crate::output::MalformedTimestampHeaderDefaultOutput>()?;
         136  +
    /* PythonServerModuleGenerator.kt:96 */
   71    137   
    input.add_class::<crate::input::MalformedTimestampHeaderDefaultInput>()?;
         138  +
    /* PythonServerModuleGenerator.kt:96 */
   72    139   
    output.add_class::<crate::output::MalformedTimestampQueryEpochOutput>()?;
         140  +
    /* PythonServerModuleGenerator.kt:96 */
   73    141   
    input.add_class::<crate::input::MalformedTimestampQueryEpochInput>()?;
         142  +
    /* PythonServerModuleGenerator.kt:96 */
   74    143   
    output.add_class::<crate::output::MalformedTimestampQueryHttpDateOutput>()?;
         144  +
    /* PythonServerModuleGenerator.kt:96 */
   75    145   
    input.add_class::<crate::input::MalformedTimestampQueryHttpDateInput>()?;
         146  +
    /* PythonServerModuleGenerator.kt:96 */
   76    147   
    output.add_class::<crate::output::MalformedTimestampQueryDefaultOutput>()?;
         148  +
    /* PythonServerModuleGenerator.kt:96 */
   77    149   
    input.add_class::<crate::input::MalformedTimestampQueryDefaultInput>()?;
         150  +
    /* PythonServerModuleGenerator.kt:96 */
   78    151   
    output.add_class::<crate::output::MalformedTimestampPathEpochOutput>()?;
         152  +
    /* PythonServerModuleGenerator.kt:96 */
   79    153   
    input.add_class::<crate::input::MalformedTimestampPathEpochInput>()?;
         154  +
    /* PythonServerModuleGenerator.kt:96 */
   80    155   
    output.add_class::<crate::output::MalformedTimestampPathHttpDateOutput>()?;
         156  +
    /* PythonServerModuleGenerator.kt:96 */
   81    157   
    input.add_class::<crate::input::MalformedTimestampPathHttpDateInput>()?;
         158  +
    /* PythonServerModuleGenerator.kt:96 */
   82    159   
    output.add_class::<crate::output::MalformedTimestampPathDefaultOutput>()?;
         160  +
    /* PythonServerModuleGenerator.kt:96 */
   83    161   
    input.add_class::<crate::input::MalformedTimestampPathDefaultInput>()?;
         162  +
    /* PythonServerModuleGenerator.kt:96 */
   84    163   
    output.add_class::<crate::output::MalformedStringOutput>()?;
         164  +
    /* PythonServerModuleGenerator.kt:96 */
   85    165   
    input.add_class::<crate::input::MalformedStringInput>()?;
         166  +
    /* PythonServerModuleGenerator.kt:96 */
   86    167   
    output.add_class::<crate::output::MalformedDoubleOutput>()?;
         168  +
    /* PythonServerModuleGenerator.kt:96 */
   87    169   
    input.add_class::<crate::input::MalformedDoubleInput>()?;
         170  +
    /* PythonServerModuleGenerator.kt:96 */
   88    171   
    output.add_class::<crate::output::MalformedFloatOutput>()?;
         172  +
    /* PythonServerModuleGenerator.kt:96 */
   89    173   
    input.add_class::<crate::input::MalformedFloatInput>()?;
         174  +
    /* PythonServerModuleGenerator.kt:96 */
   90    175   
    output.add_class::<crate::output::MalformedLongOutput>()?;
         176  +
    /* PythonServerModuleGenerator.kt:96 */
   91    177   
    input.add_class::<crate::input::MalformedLongInput>()?;
         178  +
    /* PythonServerModuleGenerator.kt:96 */
   92    179   
    output.add_class::<crate::output::MalformedShortOutput>()?;
         180  +
    /* PythonServerModuleGenerator.kt:96 */
   93    181   
    input.add_class::<crate::input::MalformedShortInput>()?;
         182  +
    /* PythonServerModuleGenerator.kt:96 */
   94    183   
    output.add_class::<crate::output::MalformedByteOutput>()?;
         184  +
    /* PythonServerModuleGenerator.kt:96 */
   95    185   
    input.add_class::<crate::input::MalformedByteInput>()?;
         186  +
    /* PythonServerModuleGenerator.kt:96 */
   96    187   
    output.add_class::<crate::output::MalformedBlobOutput>()?;
         188  +
    /* PythonServerModuleGenerator.kt:96 */
   97    189   
    input.add_class::<crate::input::MalformedBlobInput>()?;
         190  +
    /* PythonServerModuleGenerator.kt:96 */
   98    191   
    output.add_class::<crate::output::MalformedMapOutput>()?;
         192  +
    /* PythonServerModuleGenerator.kt:96 */
   99    193   
    input.add_class::<crate::input::MalformedMapInput>()?;
         194  +
    /* PythonServerModuleGenerator.kt:96 */
  100    195   
    output.add_class::<crate::output::MalformedListOutput>()?;
         196  +
    /* PythonServerModuleGenerator.kt:96 */
  101    197   
    input.add_class::<crate::input::MalformedListInput>()?;
         198  +
    /* PythonServerModuleGenerator.kt:96 */
  102    199   
    output.add_class::<crate::output::MalformedBooleanOutput>()?;
         200  +
    /* PythonServerModuleGenerator.kt:96 */
  103    201   
    input.add_class::<crate::input::MalformedBooleanInput>()?;
         202  +
    /* PythonServerModuleGenerator.kt:96 */
  104    203   
    output.add_class::<crate::output::MalformedUnionOutput>()?;
         204  +
    /* PythonServerModuleGenerator.kt:96 */
  105    205   
    input.add_class::<crate::input::MalformedUnionInput>()?;
         206  +
    /* PythonServerModuleGenerator.kt:89 */
  106    207   
    model.add_class::<crate::model::PyUnionMarkerSimpleUnion>()?;
         208  +
    /* PythonServerModuleGenerator.kt:96 */
  107    209   
    output.add_class::<crate::output::MalformedIntegerOutput>()?;
         210  +
    /* PythonServerModuleGenerator.kt:96 */
  108    211   
    input.add_class::<crate::input::MalformedIntegerInput>()?;
         212  +
    /* PythonServerModuleGenerator.kt:96 */
  109    213   
    output.add_class::<crate::output::MalformedRequestBodyOutput>()?;
         214  +
    /* PythonServerModuleGenerator.kt:96 */
  110    215   
    input.add_class::<crate::input::MalformedRequestBodyInput>()?;
         216  +
    /* PythonServerModuleGenerator.kt:96 */
  111    217   
    output.add_class::<crate::output::HttpChecksumRequiredOutput>()?;
         218  +
    /* PythonServerModuleGenerator.kt:96 */
  112    219   
    input.add_class::<crate::input::HttpChecksumRequiredInput>()?;
         220  +
    /* PythonServerModuleGenerator.kt:96 */
  113    221   
    output.add_class::<crate::output::HostWithPathOperationOutput>()?;
         222  +
    /* PythonServerModuleGenerator.kt:96 */
  114    223   
    input.add_class::<crate::input::HostWithPathOperationInput>()?;
         224  +
    /* PythonServerModuleGenerator.kt:96 */
  115    225   
    output.add_class::<crate::output::EndpointWithHostLabelOperationOutput>()?;
         226  +
    /* PythonServerModuleGenerator.kt:96 */
  116    227   
    input.add_class::<crate::input::EndpointWithHostLabelOperationInput>()?;
         228  +
    /* PythonServerModuleGenerator.kt:96 */
  117    229   
    output.add_class::<crate::output::EndpointOperationOutput>()?;
         230  +
    /* PythonServerModuleGenerator.kt:96 */
  118    231   
    input.add_class::<crate::input::EndpointOperationInput>()?;
         232  +
    /* PythonServerModuleGenerator.kt:96 */
  119    233   
    output.add_class::<crate::output::PostUnionWithJsonNameOutput>()?;
         234  +
    /* PythonServerModuleGenerator.kt:89 */
  120    235   
    model.add_class::<crate::model::PyUnionMarkerUnionWithJsonName>()?;
         236  +
    /* PythonServerModuleGenerator.kt:96 */
  121    237   
    input.add_class::<crate::input::PostUnionWithJsonNameInput>()?;
         238  +
    /* PythonServerModuleGenerator.kt:96 */
  122    239   
    output.add_class::<crate::output::PostPlayerActionOutput>()?;
         240  +
    /* PythonServerModuleGenerator.kt:89 */
  123    241   
    model.add_class::<crate::model::PyUnionMarkerPlayerAction>()?;
         242  +
    /* PythonServerModuleGenerator.kt:96 */
  124    243   
    model.add_class::<crate::model::Unit>()?;
         244  +
    /* PythonServerModuleGenerator.kt:96 */
  125    245   
    input.add_class::<crate::input::PostPlayerActionInput>()?;
         246  +
    /* PythonServerModuleGenerator.kt:96 */
  126    247   
    output.add_class::<crate::output::JsonUnionsOutput>()?;
         248  +
    /* PythonServerModuleGenerator.kt:89 */
  127    249   
    model.add_class::<crate::model::PyUnionMarkerMyUnion>()?;
         250  +
    /* PythonServerModuleGenerator.kt:96 */
  128    251   
    model.add_class::<crate::model::GreetingStruct>()?;
         252  +
    /* PythonServerModuleGenerator.kt:96 */
  129    253   
    model.add_class::<crate::model::GreetingStruct>()?;
         254  +
    /* PythonServerModuleGenerator.kt:96 */
  130    255   
    model.add_class::<crate::model::FooEnum>()?;
         256  +
    /* PythonServerModuleGenerator.kt:96 */
  131    257   
    input.add_class::<crate::input::JsonUnionsInput>()?;
         258  +
    /* PythonServerModuleGenerator.kt:96 */
  132    259   
    output.add_class::<crate::output::DocumentTypeAsMapValueOutput>()?;
         260  +
    /* PythonServerModuleGenerator.kt:96 */
  133    261   
    input.add_class::<crate::input::DocumentTypeAsMapValueInput>()?;
         262  +
    /* PythonServerModuleGenerator.kt:96 */
  134    263   
    output.add_class::<crate::output::DocumentTypeAsPayloadOutput>()?;
         264  +
    /* PythonServerModuleGenerator.kt:96 */
  135    265   
    input.add_class::<crate::input::DocumentTypeAsPayloadInput>()?;
         266  +
    /* PythonServerModuleGenerator.kt:96 */
  136    267   
    output.add_class::<crate::output::DocumentTypeOutput>()?;
         268  +
    /* PythonServerModuleGenerator.kt:96 */
  137    269   
    input.add_class::<crate::input::DocumentTypeInput>()?;
         270  +
    /* PythonServerModuleGenerator.kt:96 */
  138    271   
    output.add_class::<crate::output::JsonBlobsOutput>()?;
         272  +
    /* PythonServerModuleGenerator.kt:96 */
  139    273   
    input.add_class::<crate::input::JsonBlobsInput>()?;
         274  +
    /* PythonServerModuleGenerator.kt:96 */
  140    275   
    output.add_class::<crate::output::SparseJsonMapsOutput>()?;
         276  +
    /* PythonServerModuleGenerator.kt:96 */
  141    277   
    input.add_class::<crate::input::SparseJsonMapsInput>()?;
         278  +
    /* PythonServerModuleGenerator.kt:96 */
  142    279   
    output.add_class::<crate::output::JsonMapsOutput>()?;
         280  +
    /* PythonServerModuleGenerator.kt:96 */
  143    281   
    input.add_class::<crate::input::JsonMapsInput>()?;
         282  +
    /* PythonServerModuleGenerator.kt:96 */
  144    283   
    output.add_class::<crate::output::SparseJsonListsOutput>()?;
         284  +
    /* PythonServerModuleGenerator.kt:96 */
  145    285   
    input.add_class::<crate::input::SparseJsonListsInput>()?;
         286  +
    /* PythonServerModuleGenerator.kt:96 */
  146    287   
    output.add_class::<crate::output::JsonListsOutput>()?;
         288  +
    /* PythonServerModuleGenerator.kt:96 */
  147    289   
    model.add_class::<crate::model::StructureListMember>()?;
         290  +
    /* PythonServerModuleGenerator.kt:96 */
  148    291   
    input.add_class::<crate::input::JsonListsInput>()?;
         292  +
    /* PythonServerModuleGenerator.kt:96 */
  149    293   
    output.add_class::<crate::output::RecursiveShapesOutput>()?;
         294  +
    /* PythonServerModuleGenerator.kt:96 */
  150    295   
    model.add_class::<crate::model::RecursiveShapesInputOutputNested1>()?;
         296  +
    /* PythonServerModuleGenerator.kt:96 */
  151    297   
    model.add_class::<crate::model::RecursiveShapesInputOutputNested2>()?;
         298  +
    /* PythonServerModuleGenerator.kt:96 */
  152    299   
    input.add_class::<crate::input::RecursiveShapesInput>()?;
         300  +
    /* PythonServerModuleGenerator.kt:96 */
  153    301   
    output.add_class::<crate::output::JsonIntEnumsOutput>()?;
         302  +
    /* PythonServerModuleGenerator.kt:96 */
  154    303   
    input.add_class::<crate::input::JsonIntEnumsInput>()?;
         304  +
    /* PythonServerModuleGenerator.kt:96 */
  155    305   
    output.add_class::<crate::output::JsonEnumsOutput>()?;
         306  +
    /* PythonServerModuleGenerator.kt:96 */
  156    307   
    input.add_class::<crate::input::JsonEnumsInput>()?;
         308  +
    /* PythonServerModuleGenerator.kt:96 */
  157    309   
    output.add_class::<crate::output::JsonTimestampsOutput>()?;
         310  +
    /* PythonServerModuleGenerator.kt:96 */
  158    311   
    input.add_class::<crate::input::JsonTimestampsInput>()?;
         312  +
    /* PythonServerModuleGenerator.kt:96 */
  159    313   
    output.add_class::<crate::output::SimpleScalarPropertiesOutput>()?;
         314  +
    /* PythonServerModuleGenerator.kt:96 */
  160    315   
    input.add_class::<crate::input::SimpleScalarPropertiesInput>()?;
         316  +
    /* PythonServerModuleGenerator.kt:96 */
  161    317   
    error.add_class::<crate::error::FooError>()?;
         318  +
    /* PythonServerModuleGenerator.kt:96 */
  162    319   
    error.add_class::<crate::error::ComplexError>()?;
         320  +
    /* PythonServerModuleGenerator.kt:96 */
  163    321   
    model.add_class::<crate::model::ComplexNestedErrorData>()?;
         322  +
    /* PythonServerModuleGenerator.kt:96 */
  164    323   
    error.add_class::<crate::error::InvalidGreeting>()?;
         324  +
    /* PythonServerModuleGenerator.kt:96 */
  165    325   
    output.add_class::<crate::output::GreetingWithErrorsOutput>()?;
         326  +
    /* PythonServerModuleGenerator.kt:96 */
  166    327   
    input.add_class::<crate::input::GreetingWithErrorsInput>()?;
         328  +
    /* PythonServerModuleGenerator.kt:96 */
  167    329   
    output.add_class::<crate::output::StreamingTraitsWithMediaTypeOutput>()?;
         330  +
    /* PythonServerModuleGenerator.kt:96 */
  168    331   
    input.add_class::<crate::input::StreamingTraitsWithMediaTypeInput>()?;
         332  +
    /* PythonServerModuleGenerator.kt:96 */
  169    333   
    output.add_class::<crate::output::StreamingTraitsRequireLengthOutput>()?;
         334  +
    /* PythonServerModuleGenerator.kt:96 */
  170    335   
    input.add_class::<crate::input::StreamingTraitsRequireLengthInput>()?;
         336  +
    /* PythonServerModuleGenerator.kt:96 */
  171    337   
    output.add_class::<crate::output::StreamingTraitsOutput>()?;
         338  +
    /* PythonServerModuleGenerator.kt:96 */
  172    339   
    input.add_class::<crate::input::StreamingTraitsInput>()?;
         340  +
    /* PythonServerModuleGenerator.kt:96 */
  173    341   
    output.add_class::<crate::output::HttpResponseCodeOutput>()?;
         342  +
    /* PythonServerModuleGenerator.kt:96 */
  174    343   
    input.add_class::<crate::input::HttpResponseCodeInput>()?;
         344  +
    /* PythonServerModuleGenerator.kt:96 */
  175    345   
    output.add_class::<crate::output::HttpPayloadWithUnionOutput>()?;
         346  +
    /* PythonServerModuleGenerator.kt:89 */
  176    347   
    model.add_class::<crate::model::PyUnionMarkerUnionPayload>()?;
         348  +
    /* PythonServerModuleGenerator.kt:96 */
  177    349   
    input.add_class::<crate::input::HttpPayloadWithUnionInput>()?;
         350  +
    /* PythonServerModuleGenerator.kt:96 */
  178    351   
    output.add_class::<crate::output::HttpStringPayloadOutput>()?;
         352  +
    /* PythonServerModuleGenerator.kt:96 */
  179    353   
    input.add_class::<crate::input::HttpStringPayloadInput>()?;
         354  +
    /* PythonServerModuleGenerator.kt:96 */
  180    355   
    output.add_class::<crate::output::HttpEnumPayloadOutput>()?;
         356  +
    /* PythonServerModuleGenerator.kt:96 */
  181    357   
    model.add_class::<crate::model::StringEnum>()?;
         358  +
    /* PythonServerModuleGenerator.kt:96 */
  182    359   
    input.add_class::<crate::input::HttpEnumPayloadInput>()?;
         360  +
    /* PythonServerModuleGenerator.kt:96 */
  183    361   
    output.add_class::<crate::output::HttpPayloadWithStructureOutput>()?;
         362  +
    /* PythonServerModuleGenerator.kt:96 */
  184    363   
    model.add_class::<crate::model::NestedPayload>()?;
         364  +
    /* PythonServerModuleGenerator.kt:96 */
  185    365   
    input.add_class::<crate::input::HttpPayloadWithStructureInput>()?;
         366  +
    /* PythonServerModuleGenerator.kt:96 */
  186    367   
    output.add_class::<crate::output::HttpPayloadTraitsWithMediaTypeOutput>()?;
         368  +
    /* PythonServerModuleGenerator.kt:96 */
  187    369   
    input.add_class::<crate::input::HttpPayloadTraitsWithMediaTypeInput>()?;
         370  +
    /* PythonServerModuleGenerator.kt:96 */
  188    371   
    output.add_class::<crate::output::HttpPayloadTraitsOutput>()?;
         372  +
    /* PythonServerModuleGenerator.kt:96 */
  189    373   
    input.add_class::<crate::input::HttpPayloadTraitsInput>()?;
         374  +
    /* PythonServerModuleGenerator.kt:96 */
  190    375   
    output.add_class::<crate::output::HttpPrefixHeadersInResponseOutput>()?;
         376  +
    /* PythonServerModuleGenerator.kt:96 */
  191    377   
    input.add_class::<crate::input::HttpPrefixHeadersInResponseInput>()?;
         378  +
    /* PythonServerModuleGenerator.kt:96 */
  192    379   
    output.add_class::<crate::output::HttpPrefixHeadersOutput>()?;
         380  +
    /* PythonServerModuleGenerator.kt:96 */
  193    381   
    input.add_class::<crate::input::HttpPrefixHeadersInput>()?;
         382  +
    /* PythonServerModuleGenerator.kt:96 */
  194    383   
    output.add_class::<crate::output::QueryParamsAsStringListMapOutput>()?;
         384  +
    /* PythonServerModuleGenerator.kt:96 */
  195    385   
    input.add_class::<crate::input::QueryParamsAsStringListMapInput>()?;
         386  +
    /* PythonServerModuleGenerator.kt:96 */
  196    387   
    output.add_class::<crate::output::QueryPrecedenceOutput>()?;
         388  +
    /* PythonServerModuleGenerator.kt:96 */
  197    389   
    input.add_class::<crate::input::QueryPrecedenceInput>()?;
         390  +
    /* PythonServerModuleGenerator.kt:96 */
  198    391   
    output.add_class::<crate::output::QueryIdempotencyTokenAutoFillOutput>()?;
         392  +
    /* PythonServerModuleGenerator.kt:96 */
  199    393   
    input.add_class::<crate::input::QueryIdempotencyTokenAutoFillInput>()?;
         394  +
    /* PythonServerModuleGenerator.kt:96 */
  200    395   
    output.add_class::<crate::output::OmitsSerializingEmptyListsOutput>()?;
         396  +
    /* PythonServerModuleGenerator.kt:96 */
  201    397   
    input.add_class::<crate::input::OmitsSerializingEmptyListsInput>()?;
         398  +
    /* PythonServerModuleGenerator.kt:96 */
  202    399   
    output.add_class::<crate::output::OmitsNullSerializesEmptyStringOutput>()?;
         400  +
    /* PythonServerModuleGenerator.kt:96 */
  203    401   
    input.add_class::<crate::input::OmitsNullSerializesEmptyStringInput>()?;
         402  +
    /* PythonServerModuleGenerator.kt:96 */
  204    403   
    output.add_class::<crate::output::IgnoreQueryParamsInResponseOutput>()?;
         404  +
    /* PythonServerModuleGenerator.kt:96 */
  205    405   
    input.add_class::<crate::input::IgnoreQueryParamsInResponseInput>()?;
         406  +
    /* PythonServerModuleGenerator.kt:96 */
  206    407   
    output.add_class::<crate::output::ConstantAndVariableQueryStringOutput>()?;
         408  +
    /* PythonServerModuleGenerator.kt:96 */
  207    409   
    input.add_class::<crate::input::ConstantAndVariableQueryStringInput>()?;
         410  +
    /* PythonServerModuleGenerator.kt:96 */
  208    411   
    output.add_class::<crate::output::ConstantQueryStringOutput>()?;
         412  +
    /* PythonServerModuleGenerator.kt:96 */
  209    413   
    input.add_class::<crate::input::ConstantQueryStringInput>()?;
         414  +
    /* PythonServerModuleGenerator.kt:96 */
  210    415   
    output.add_class::<crate::output::AllQueryStringTypesOutput>()?;
         416  +
    /* PythonServerModuleGenerator.kt:96 */
  211    417   
    input.add_class::<crate::input::AllQueryStringTypesInput>()?;
         418  +
    /* PythonServerModuleGenerator.kt:96 */
  212    419   
    output.add_class::<crate::output::HttpRequestWithRegexLiteralOutput>()?;
         420  +
    /* PythonServerModuleGenerator.kt:96 */
  213    421   
    input.add_class::<crate::input::HttpRequestWithRegexLiteralInput>()?;
         422  +
    /* PythonServerModuleGenerator.kt:96 */
  214    423   
    output.add_class::<crate::output::HttpRequestWithFloatLabelsOutput>()?;
         424  +
    /* PythonServerModuleGenerator.kt:96 */
  215    425   
    input.add_class::<crate::input::HttpRequestWithFloatLabelsInput>()?;
         426  +
    /* PythonServerModuleGenerator.kt:96 */
  216    427   
    output.add_class::<crate::output::HttpRequestWithGreedyLabelInPathOutput>()?;
         428  +
    /* PythonServerModuleGenerator.kt:96 */
  217    429   
    input.add_class::<crate::input::HttpRequestWithGreedyLabelInPathInput>()?;
         430  +
    /* PythonServerModuleGenerator.kt:96 */
  218    431   
    output.add_class::<crate::output::HttpRequestWithLabelsAndTimestampFormatOutput>()?;
         432  +
    /* PythonServerModuleGenerator.kt:96 */
  219    433   
    input.add_class::<crate::input::HttpRequestWithLabelsAndTimestampFormatInput>()?;
         434  +
    /* PythonServerModuleGenerator.kt:96 */
  220    435   
    output.add_class::<crate::output::HttpRequestWithLabelsOutput>()?;
         436  +
    /* PythonServerModuleGenerator.kt:96 */
  221    437   
    input.add_class::<crate::input::HttpRequestWithLabelsInput>()?;
         438  +
    /* PythonServerModuleGenerator.kt:96 */
  222    439   
    output.add_class::<crate::output::MediaTypeHeaderOutput>()?;
         440  +
    /* PythonServerModuleGenerator.kt:96 */
  223    441   
    input.add_class::<crate::input::MediaTypeHeaderInput>()?;
         442  +
    /* PythonServerModuleGenerator.kt:96 */
  224    443   
    output.add_class::<crate::output::TimestampFormatHeadersOutput>()?;
         444  +
    /* PythonServerModuleGenerator.kt:96 */
  225    445   
    input.add_class::<crate::input::TimestampFormatHeadersInput>()?;
         446  +
    /* PythonServerModuleGenerator.kt:96 */
  226    447   
    output.add_class::<crate::output::NullAndEmptyHeadersServerOutput>()?;
         448  +
    /* PythonServerModuleGenerator.kt:96 */
  227    449   
    input.add_class::<crate::input::NullAndEmptyHeadersServerInput>()?;
         450  +
    /* PythonServerModuleGenerator.kt:96 */
  228    451   
    output.add_class::<crate::output::NullAndEmptyHeadersClientOutput>()?;
         452  +
    /* PythonServerModuleGenerator.kt:96 */
  229    453   
    input.add_class::<crate::input::NullAndEmptyHeadersClientInput>()?;
         454  +
    /* PythonServerModuleGenerator.kt:96 */
  230    455   
    output.add_class::<crate::output::InputAndOutputWithHeadersOutput>()?;
         456  +
    /* PythonServerModuleGenerator.kt:96 */
  231    457   
    input.add_class::<crate::input::InputAndOutputWithHeadersInput>()?;
         458  +
    /* PythonServerModuleGenerator.kt:96 */
  232    459   
    output.add_class::<crate::output::UnitInputAndOutputOutput>()?;
         460  +
    /* PythonServerModuleGenerator.kt:96 */
  233    461   
    input.add_class::<crate::input::UnitInputAndOutputInput>()?;
         462  +
    /* PythonServerModuleGenerator.kt:96 */
  234    463   
    output.add_class::<crate::output::EmptyInputAndEmptyOutputOutput>()?;
         464  +
    /* PythonServerModuleGenerator.kt:96 */
  235    465   
    input.add_class::<crate::input::EmptyInputAndEmptyOutputInput>()?;
         466  +
    /* PythonServerModuleGenerator.kt:96 */
  236    467   
    output.add_class::<crate::output::NoInputAndOutputOutput>()?;
         468  +
    /* PythonServerModuleGenerator.kt:96 */
  237    469   
    input.add_class::<crate::input::NoInputAndOutputInput>()?;
         470  +
    /* PythonServerModuleGenerator.kt:96 */
  238    471   
    output.add_class::<crate::output::NoInputAndNoOutputOutput>()?;
         472  +
    /* PythonServerModuleGenerator.kt:96 */
  239    473   
    input.add_class::<crate::input::NoInputAndNoOutputInput>()?;
         474  +
    /* PythonServerModuleGenerator.kt:105 */
  240    475   
    ::pyo3::py_run!(
  241    476   
        py,
  242    477   
        input,
  243    478   
        "import sys; sys.modules['rest_json.input'] = input"
  244    479   
    );
  245    480   
    m.add_submodule(input)?;
  246    481   
    ::pyo3::py_run!(
  247    482   
        py,
  248    483   
        output,
  249    484   
        "import sys; sys.modules['rest_json.output'] = output"
  250    485   
    );
  251    486   
    m.add_submodule(output)?;
  252    487   
    ::pyo3::py_run!(
  253    488   
        py,
  254    489   
        error,
  255    490   
        "import sys; sys.modules['rest_json.error'] = error"
  256    491   
    );
  257    492   
    m.add_submodule(error)?;
         493  +
    /* PythonServerModuleGenerator.kt:117 */
  258    494   
    ::pyo3::py_run!(
  259    495   
        py,
  260    496   
        model,
  261    497   
        "import sys; sys.modules['rest_json.model'] = model"
  262    498   
    );
  263    499   
    m.add_submodule(model)?;
         500  +
    /* PythonServerModuleGenerator.kt:129 */
  264    501   
    let types = ::pyo3::types::PyModule::new(py, "types")?;
  265    502   
    types.add_class::<::aws_smithy_http_server_python::types::Blob>()?;
  266    503   
    types.add_class::<::aws_smithy_http_server_python::types::DateTime>()?;
  267    504   
    types.add_class::<::aws_smithy_http_server_python::types::Format>()?;
  268    505   
    types.add_class::<::aws_smithy_http_server_python::types::ByteStream>()?;
  269    506   
    ::pyo3::py_run!(
  270    507   
        py,
  271    508   
        types,
  272    509   
        "import sys; sys.modules['rest_json.types'] = types"
  273    510   
    );
  274    511   
    m.add_submodule(types)?;
         512  +
    /* PythonServerModuleGenerator.kt:149 */
  275    513   
    let socket = ::pyo3::types::PyModule::new(py, "socket")?;
  276    514   
    socket.add_class::<::aws_smithy_http_server_python::PySocket>()?;
  277    515   
    ::pyo3::py_run!(
  278    516   
        py,
  279    517   
        socket,
  280    518   
        "import sys; sys.modules['rest_json.socket'] = socket"
  281    519   
    );
  282    520   
    m.add_submodule(socket)?;
         521  +
    /* PythonServerModuleGenerator.kt:166 */
  283    522   
    let logging = ::pyo3::types::PyModule::new(py, "logging")?;
  284    523   
    logging.add_function(::pyo3::wrap_pyfunction!(
  285    524   
        ::aws_smithy_http_server_python::py_tracing_event,
  286    525   
        m
  287    526   
    )?)?;
  288    527   
    logging.add_class::<::aws_smithy_http_server_python::PyTracingHandler>()?;
  289    528   
    ::pyo3::py_run!(
  290    529   
        py,
  291    530   
        logging,
  292    531   
        "import sys; sys.modules['rest_json.logging'] = logging"
  293    532   
    );
  294    533   
    m.add_submodule(logging)?;
         534  +
    /* PythonServerModuleGenerator.kt:183 */
  295    535   
    let middleware = ::pyo3::types::PyModule::new(py, "middleware")?;
  296    536   
    middleware.add_class::<::aws_smithy_http_server_python::PyRequest>()?;
  297    537   
    middleware.add_class::<::aws_smithy_http_server_python::PyResponse>()?;
  298    538   
    middleware.add_class::<::aws_smithy_http_server_python::PyMiddlewareException>()?;
  299    539   
    pyo3::py_run!(
  300    540   
        py,
  301    541   
        middleware,
  302    542   
        "import sys; sys.modules['rest_json.middleware'] = middleware"
  303    543   
    );
  304    544   
    m.add_submodule(middleware)?;
         545  +
    /* PythonServerModuleGenerator.kt:201 */
  305    546   
    let tls = ::pyo3::types::PyModule::new(py, "tls")?;
  306    547   
    tls.add_class::<::aws_smithy_http_server_python::tls::PyTlsConfig>()?;
  307    548   
    pyo3::py_run!(py, tls, "import sys; sys.modules['rest_json.tls'] = tls");
  308    549   
    m.add_submodule(tls)?;
         550  +
    /* PythonServerModuleGenerator.kt:217 */
  309    551   
    let aws_lambda = ::pyo3::types::PyModule::new(py, "aws_lambda")?;
  310    552   
    aws_lambda.add_class::<::aws_smithy_http_server_python::lambda::PyLambdaContext>()?;
  311    553   
    aws_lambda.add_class::<::aws_smithy_http_server_python::lambda::PyClientApplication>()?;
  312    554   
    aws_lambda.add_class::<::aws_smithy_http_server_python::lambda::PyClientContext>()?;
  313    555   
    aws_lambda.add_class::<::aws_smithy_http_server_python::lambda::PyCognitoIdentity>()?;
  314    556   
    aws_lambda.add_class::<::aws_smithy_http_server_python::lambda::PyConfig>()?;
  315    557   
    pyo3::py_run!(
  316    558   
        py,
  317    559   
        aws_lambda,
  318    560   
        "import sys; sys.modules['rest_json.aws_lambda'] = aws_lambda"
  319    561   
    );
  320    562   
    m.add_submodule(aws_lambda)?;
         563  +
    /* PythonServerModuleGenerator.kt:238 */
  321    564   
    m.add_class::<crate::python_server_application::App>()?;
         565  +
    /* PythonServerModuleGenerator.kt:243 */
  322    566   
    m.add("CODEGEN_VERSION", "ci")?;
         567  +
    /* PythonServerModuleGenerator.kt:58 */
  323    568   
    Ok(())
         569  +
    /* PythonServerModuleGenerator.kt:41 */
  324    570   
}

tmp-codegen-diff/codegen-server-test-python/rest_json/rust-server-codegen-python/src/python_operation_adaptor.rs

@@ -1,1 +5279,5380 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* PythonServerOperationHandlerGenerator.kt:61 */
    2      3   
/// Python handler for operation `OperationWithNestedStructure`.
    3      4   
pub(crate) async fn operation_with_nested_structure(
    4      5   
    input: crate::input::OperationWithNestedStructureInput,
    5      6   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
    6      7   
    handler: ::aws_smithy_http_server_python::PyHandler,
    7      8   
) -> std::result::Result<
    8      9   
    crate::output::OperationWithNestedStructureOutput,
    9     10   
    crate::error::OperationWithNestedStructureError,
   10     11   
> {
   11     12   
    // Async block used to run the handler and catch any Python error.
   12     13   
    let result = if handler.is_coroutine {
   13     14   
        ::tracing::trace!(
   14     15   
            name = "operation_with_nested_structure",
   15     16   
            "executing python handler coroutine"
   16     17   
        );
   17     18   
        let result = ::pyo3::Python::with_gil(|py| {
   18     19   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
   19     20   
            let coroutine = if handler.args == 1 {
   20     21   
                pyhandler.call1((input,))?
   21     22   
            } else {
   22     23   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
   23     24   
            };
   24     25   
            ::pyo3_asyncio::tokio::into_future(coroutine)
   25     26   
        })?;
   26     27   
        result.await.and_then(|r| {
   27     28   
            ::pyo3::Python::with_gil(|py| {
   28     29   
                r.extract::<crate::output::OperationWithNestedStructureOutput>(py)
   29     30   
            })
   30     31   
        })
   31     32   
    } else {
   32     33   
        ::tracing::trace!(
   33     34   
            name = "operation_with_nested_structure",
   34     35   
            "executing python handler function"
   35     36   
        );
   36     37   
        ::pyo3::Python::with_gil(|py| {
   37     38   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
   38     39   
            let output = if handler.args == 1 {
   39     40   
                pyhandler.call1((input,))?
   40     41   
            } else {
   41     42   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
   42     43   
            };
   43     44   
            output.extract::<crate::output::OperationWithNestedStructureOutput>()
   44     45   
        })
   45     46   
    };
   46     47   
    // Catch and record a Python traceback.
   47     48   
    result.map_err(|e| {
   48     49   
        let rich_py_err =
   49     50   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
   50     51   
                e.clone_ref(py)
   51     52   
            }));
   52     53   
        ::tracing::error!(error = ?rich_py_err, "handler error");
   53     54   
        e.into()
   54     55   
    })
   55     56   
}
   56     57   
          58  +
/* PythonServerOperationHandlerGenerator.kt:61 */
   57     59   
/// Python handler for operation `OperationWithDefaults`.
   58     60   
pub(crate) async fn operation_with_defaults(
   59     61   
    input: crate::input::OperationWithDefaultsInput,
   60     62   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
   61     63   
    handler: ::aws_smithy_http_server_python::PyHandler,
   62     64   
) -> std::result::Result<
   63     65   
    crate::output::OperationWithDefaultsOutput,
   64     66   
    crate::error::OperationWithDefaultsError,
   65     67   
> {
   66     68   
    // Async block used to run the handler and catch any Python error.
   67     69   
    let result = if handler.is_coroutine {
   68     70   
        ::tracing::trace!(
   69     71   
            name = "operation_with_defaults",
   70     72   
            "executing python handler coroutine"
   71     73   
        );
   72     74   
        let result = ::pyo3::Python::with_gil(|py| {
   73     75   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
   74     76   
            let coroutine = if handler.args == 1 {
   75     77   
                pyhandler.call1((input,))?
   76     78   
            } else {
   77     79   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
   78     80   
            };
   79     81   
            ::pyo3_asyncio::tokio::into_future(coroutine)
   80     82   
        })?;
   81     83   
        result.await.and_then(|r| {
   82     84   
            ::pyo3::Python::with_gil(|py| {
   83     85   
                r.extract::<crate::output::OperationWithDefaultsOutput>(py)
   84     86   
            })
   85     87   
        })
   86     88   
    } else {
   87     89   
        ::tracing::trace!(
   88     90   
            name = "operation_with_defaults",
   89     91   
            "executing python handler function"
   90     92   
        );
   91     93   
        ::pyo3::Python::with_gil(|py| {
   92     94   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
   93     95   
            let output = if handler.args == 1 {
   94     96   
                pyhandler.call1((input,))?
   95     97   
            } else {
   96     98   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
   97     99   
            };
   98    100   
            output.extract::<crate::output::OperationWithDefaultsOutput>()
   99    101   
        })
  100    102   
    };
  101    103   
    // Catch and record a Python traceback.
  102    104   
    result.map_err(|e| {
  103    105   
        let rich_py_err =
  104    106   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  105    107   
                e.clone_ref(py)
  106    108   
            }));
  107    109   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  108    110   
        e.into()
  109    111   
    })
  110    112   
}
  111    113   
         114  +
/* PythonServerOperationHandlerGenerator.kt:61 */
  112    115   
/// Python handler for operation `ContentTypeParameters`.
  113    116   
pub(crate) async fn content_type_parameters(
  114    117   
    input: crate::input::ContentTypeParametersInput,
  115    118   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
  116    119   
    handler: ::aws_smithy_http_server_python::PyHandler,
  117    120   
) -> std::result::Result<
  118    121   
    crate::output::ContentTypeParametersOutput,
  119    122   
    crate::error::ContentTypeParametersError,
  120    123   
> {
  121    124   
    // Async block used to run the handler and catch any Python error.
  122    125   
    let result = if handler.is_coroutine {
  123    126   
        ::tracing::trace!(
  124    127   
            name = "content_type_parameters",
  125    128   
            "executing python handler coroutine"
  126    129   
        );
  127    130   
        let result = ::pyo3::Python::with_gil(|py| {
  128    131   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  129    132   
            let coroutine = if handler.args == 1 {
  130    133   
                pyhandler.call1((input,))?
  131    134   
            } else {
  132    135   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  133    136   
            };
  134    137   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  135    138   
        })?;
  136    139   
        result.await.and_then(|r| {
  137    140   
            ::pyo3::Python::with_gil(|py| {
  138    141   
                r.extract::<crate::output::ContentTypeParametersOutput>(py)
  139    142   
            })
  140    143   
        })
  141    144   
    } else {
  142    145   
        ::tracing::trace!(
  143    146   
            name = "content_type_parameters",
  144    147   
            "executing python handler function"
  145    148   
        );
  146    149   
        ::pyo3::Python::with_gil(|py| {
  147    150   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  148    151   
            let output = if handler.args == 1 {
  149    152   
                pyhandler.call1((input,))?
  150    153   
            } else {
  151    154   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  152    155   
            };
  153    156   
            output.extract::<crate::output::ContentTypeParametersOutput>()
  154    157   
        })
  155    158   
    };
  156    159   
    // Catch and record a Python traceback.
  157    160   
    result.map_err(|e| {
  158    161   
        let rich_py_err =
  159    162   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  160    163   
                e.clone_ref(py)
  161    164   
            }));
  162    165   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  163    166   
        e.into()
  164    167   
    })
  165    168   
}
  166    169   
         170  +
/* PythonServerOperationHandlerGenerator.kt:61 */
  167    171   
/// Python handler for operation `PutWithContentEncoding`.
  168    172   
pub(crate) async fn put_with_content_encoding(
  169    173   
    input: crate::input::PutWithContentEncodingInput,
  170    174   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
  171    175   
    handler: ::aws_smithy_http_server_python::PyHandler,
  172    176   
) -> std::result::Result<
  173    177   
    crate::output::PutWithContentEncodingOutput,
  174    178   
    crate::error::PutWithContentEncodingError,
  175    179   
> {
  176    180   
    // Async block used to run the handler and catch any Python error.
  177    181   
    let result = if handler.is_coroutine {
  178    182   
        ::tracing::trace!(
  179    183   
            name = "put_with_content_encoding",
  180    184   
            "executing python handler coroutine"
  181    185   
        );
  182    186   
        let result = ::pyo3::Python::with_gil(|py| {
  183    187   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  184    188   
            let coroutine = if handler.args == 1 {
  185    189   
                pyhandler.call1((input,))?
  186    190   
            } else {
  187    191   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  188    192   
            };
  189    193   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  190    194   
        })?;
  191    195   
        result.await.and_then(|r| {
  192    196   
            ::pyo3::Python::with_gil(|py| {
  193    197   
                r.extract::<crate::output::PutWithContentEncodingOutput>(py)
  194    198   
            })
  195    199   
        })
  196    200   
    } else {
  197    201   
        ::tracing::trace!(
  198    202   
            name = "put_with_content_encoding",
  199    203   
            "executing python handler function"
  200    204   
        );
  201    205   
        ::pyo3::Python::with_gil(|py| {
  202    206   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  203    207   
            let output = if handler.args == 1 {
  204    208   
                pyhandler.call1((input,))?
  205    209   
            } else {
  206    210   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  207    211   
            };
  208    212   
            output.extract::<crate::output::PutWithContentEncodingOutput>()
  209    213   
        })
  210    214   
    };
  211    215   
    // Catch and record a Python traceback.
  212    216   
    result.map_err(|e| {
  213    217   
        let rich_py_err =
  214    218   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  215    219   
                e.clone_ref(py)
  216    220   
            }));
  217    221   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  218    222   
        e.into()
  219    223   
    })
  220    224   
}
  221    225   
         226  +
/* PythonServerOperationHandlerGenerator.kt:61 */
  222    227   
/// Python handler for operation `FractionalSeconds`.
  223    228   
pub(crate) async fn fractional_seconds(
  224    229   
    input: crate::input::FractionalSecondsInput,
  225    230   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
  226    231   
    handler: ::aws_smithy_http_server_python::PyHandler,
  227    232   
) -> std::result::Result<crate::output::FractionalSecondsOutput, crate::error::FractionalSecondsError>
  228    233   
{
  229    234   
    // Async block used to run the handler and catch any Python error.
  230    235   
    let result = if handler.is_coroutine {
  231    236   
        ::tracing::trace!(
  232    237   
            name = "fractional_seconds",
  233    238   
            "executing python handler coroutine"
  234    239   
        );
  235    240   
        let result = ::pyo3::Python::with_gil(|py| {
  236    241   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  237    242   
            let coroutine = if handler.args == 1 {
  238    243   
                pyhandler.call1((input,))?
  239    244   
            } else {
  240    245   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  241    246   
            };
  242    247   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  243    248   
        })?;
  244    249   
        result.await.and_then(|r| {
  245    250   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::FractionalSecondsOutput>(py))
  246    251   
        })
  247    252   
    } else {
  248    253   
        ::tracing::trace!(
  249    254   
            name = "fractional_seconds",
  250    255   
            "executing python handler function"
  251    256   
        );
  252    257   
        ::pyo3::Python::with_gil(|py| {
  253    258   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  254    259   
            let output = if handler.args == 1 {
  255    260   
                pyhandler.call1((input,))?
  256    261   
            } else {
  257    262   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  258    263   
            };
  259    264   
            output.extract::<crate::output::FractionalSecondsOutput>()
  260    265   
        })
  261    266   
    };
  262    267   
    // Catch and record a Python traceback.
  263    268   
    result.map_err(|e| {
  264    269   
        let rich_py_err =
  265    270   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  266    271   
                e.clone_ref(py)
  267    272   
            }));
  268    273   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  269    274   
        e.into()
  270    275   
    })
  271    276   
}
  272    277   
         278  +
/* PythonServerOperationHandlerGenerator.kt:61 */
  273    279   
/// Python handler for operation `DatetimeOffsets`.
  274    280   
pub(crate) async fn datetime_offsets(
  275    281   
    input: crate::input::DatetimeOffsetsInput,
  276    282   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
  277    283   
    handler: ::aws_smithy_http_server_python::PyHandler,
  278    284   
) -> std::result::Result<crate::output::DatetimeOffsetsOutput, crate::error::DatetimeOffsetsError> {
  279    285   
    // Async block used to run the handler and catch any Python error.
  280    286   
    let result = if handler.is_coroutine {
  281    287   
        ::tracing::trace!(
  282    288   
            name = "datetime_offsets",
  283    289   
            "executing python handler coroutine"
  284    290   
        );
  285    291   
        let result = ::pyo3::Python::with_gil(|py| {
  286    292   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  287    293   
            let coroutine = if handler.args == 1 {
  288    294   
                pyhandler.call1((input,))?
  289    295   
            } else {
  290    296   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  291    297   
            };
  292    298   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  293    299   
        })?;
  294    300   
        result.await.and_then(|r| {
  295    301   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::DatetimeOffsetsOutput>(py))
  296    302   
        })
  297    303   
    } else {
  298    304   
        ::tracing::trace!(
  299    305   
            name = "datetime_offsets",
  300    306   
            "executing python handler function"
  301    307   
        );
  302    308   
        ::pyo3::Python::with_gil(|py| {
  303    309   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  304    310   
            let output = if handler.args == 1 {
  305    311   
                pyhandler.call1((input,))?
  306    312   
            } else {
  307    313   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  308    314   
            };
  309    315   
            output.extract::<crate::output::DatetimeOffsetsOutput>()
  310    316   
        })
  311    317   
    };
  312    318   
    // Catch and record a Python traceback.
  313    319   
    result.map_err(|e| {
  314    320   
        let rich_py_err =
  315    321   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  316    322   
                e.clone_ref(py)
  317    323   
            }));
  318    324   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  319    325   
        e.into()
  320    326   
    })
  321    327   
}
  322    328   
         329  +
/* PythonServerOperationHandlerGenerator.kt:61 */
  323    330   
/// Python handler for operation `TestPostNoInputNoPayload`.
  324    331   
pub(crate) async fn test_post_no_input_no_payload(
  325    332   
    input: crate::input::TestPostNoInputNoPayloadInput,
  326    333   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
  327    334   
    handler: ::aws_smithy_http_server_python::PyHandler,
  328    335   
) -> std::result::Result<
  329    336   
    crate::output::TestPostNoInputNoPayloadOutput,
  330    337   
    crate::error::TestPostNoInputNoPayloadError,
  331    338   
> {
  332    339   
    // Async block used to run the handler and catch any Python error.
  333    340   
    let result = if handler.is_coroutine {
  334    341   
        ::tracing::trace!(
  335    342   
            name = "test_post_no_input_no_payload",
  336    343   
            "executing python handler coroutine"
  337    344   
        );
  338    345   
        let result = ::pyo3::Python::with_gil(|py| {
  339    346   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  340    347   
            let coroutine = if handler.args == 1 {
  341    348   
                pyhandler.call1((input,))?
  342    349   
            } else {
  343    350   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  344    351   
            };
  345    352   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  346    353   
        })?;
  347    354   
        result.await.and_then(|r| {
  348    355   
            ::pyo3::Python::with_gil(|py| {
  349    356   
                r.extract::<crate::output::TestPostNoInputNoPayloadOutput>(py)
  350    357   
            })
  351    358   
        })
  352    359   
    } else {
  353    360   
        ::tracing::trace!(
  354    361   
            name = "test_post_no_input_no_payload",
  355    362   
            "executing python handler function"
  356    363   
        );
  357    364   
        ::pyo3::Python::with_gil(|py| {
  358    365   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  359    366   
            let output = if handler.args == 1 {
  360    367   
                pyhandler.call1((input,))?
  361    368   
            } else {
  362    369   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  363    370   
            };
  364    371   
            output.extract::<crate::output::TestPostNoInputNoPayloadOutput>()
  365    372   
        })
  366    373   
    };
  367    374   
    // Catch and record a Python traceback.
  368    375   
    result.map_err(|e| {
  369    376   
        let rich_py_err =
  370    377   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  371    378   
                e.clone_ref(py)
  372    379   
            }));
  373    380   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  374    381   
        e.into()
  375    382   
    })
  376    383   
}
  377    384   
         385  +
/* PythonServerOperationHandlerGenerator.kt:61 */
  378    386   
/// Python handler for operation `TestGetNoInputNoPayload`.
  379    387   
pub(crate) async fn test_get_no_input_no_payload(
  380    388   
    input: crate::input::TestGetNoInputNoPayloadInput,
  381    389   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
  382    390   
    handler: ::aws_smithy_http_server_python::PyHandler,
  383    391   
) -> std::result::Result<
  384    392   
    crate::output::TestGetNoInputNoPayloadOutput,
  385    393   
    crate::error::TestGetNoInputNoPayloadError,
  386    394   
> {
  387    395   
    // Async block used to run the handler and catch any Python error.
  388    396   
    let result = if handler.is_coroutine {
  389    397   
        ::tracing::trace!(
  390    398   
            name = "test_get_no_input_no_payload",
  391    399   
            "executing python handler coroutine"
  392    400   
        );
  393    401   
        let result = ::pyo3::Python::with_gil(|py| {
  394    402   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  395    403   
            let coroutine = if handler.args == 1 {
  396    404   
                pyhandler.call1((input,))?
  397    405   
            } else {
  398    406   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  399    407   
            };
  400    408   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  401    409   
        })?;
  402    410   
        result.await.and_then(|r| {
  403    411   
            ::pyo3::Python::with_gil(|py| {
  404    412   
                r.extract::<crate::output::TestGetNoInputNoPayloadOutput>(py)
  405    413   
            })
  406    414   
        })
  407    415   
    } else {
  408    416   
        ::tracing::trace!(
  409    417   
            name = "test_get_no_input_no_payload",
  410    418   
            "executing python handler function"
  411    419   
        );
  412    420   
        ::pyo3::Python::with_gil(|py| {
  413    421   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  414    422   
            let output = if handler.args == 1 {
  415    423   
                pyhandler.call1((input,))?
  416    424   
            } else {
  417    425   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  418    426   
            };
  419    427   
            output.extract::<crate::output::TestGetNoInputNoPayloadOutput>()
  420    428   
        })
  421    429   
    };
  422    430   
    // Catch and record a Python traceback.
  423    431   
    result.map_err(|e| {
  424    432   
        let rich_py_err =
  425    433   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  426    434   
                e.clone_ref(py)
  427    435   
            }));
  428    436   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  429    437   
        e.into()
  430    438   
    })
  431    439   
}
  432    440   
         441  +
/* PythonServerOperationHandlerGenerator.kt:61 */
  433    442   
/// Python handler for operation `TestPostNoPayload`.
  434    443   
pub(crate) async fn test_post_no_payload(
  435    444   
    input: crate::input::TestPostNoPayloadInput,
  436    445   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
  437    446   
    handler: ::aws_smithy_http_server_python::PyHandler,
  438    447   
) -> std::result::Result<crate::output::TestPostNoPayloadOutput, crate::error::TestPostNoPayloadError>
  439    448   
{
  440    449   
    // Async block used to run the handler and catch any Python error.
  441    450   
    let result = if handler.is_coroutine {
  442    451   
        ::tracing::trace!(
  443    452   
            name = "test_post_no_payload",
  444    453   
            "executing python handler coroutine"
  445    454   
        );
  446    455   
        let result = ::pyo3::Python::with_gil(|py| {
  447    456   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  448    457   
            let coroutine = if handler.args == 1 {
  449    458   
                pyhandler.call1((input,))?
  450    459   
            } else {
  451    460   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  452    461   
            };
  453    462   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  454    463   
        })?;
  455    464   
        result.await.and_then(|r| {
  456    465   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::TestPostNoPayloadOutput>(py))
  457    466   
        })
  458    467   
    } else {
  459    468   
        ::tracing::trace!(
  460    469   
            name = "test_post_no_payload",
  461    470   
            "executing python handler function"
  462    471   
        );
  463    472   
        ::pyo3::Python::with_gil(|py| {
  464    473   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  465    474   
            let output = if handler.args == 1 {
  466    475   
                pyhandler.call1((input,))?
  467    476   
            } else {
  468    477   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  469    478   
            };
  470    479   
            output.extract::<crate::output::TestPostNoPayloadOutput>()
  471    480   
        })
  472    481   
    };
  473    482   
    // Catch and record a Python traceback.
  474    483   
    result.map_err(|e| {
  475    484   
        let rich_py_err =
  476    485   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  477    486   
                e.clone_ref(py)
  478    487   
            }));
  479    488   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  480    489   
        e.into()
  481    490   
    })
  482    491   
}
  483    492   
         493  +
/* PythonServerOperationHandlerGenerator.kt:61 */
  484    494   
/// Python handler for operation `TestGetNoPayload`.
  485    495   
pub(crate) async fn test_get_no_payload(
  486    496   
    input: crate::input::TestGetNoPayloadInput,
  487    497   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
  488    498   
    handler: ::aws_smithy_http_server_python::PyHandler,
  489    499   
) -> std::result::Result<crate::output::TestGetNoPayloadOutput, crate::error::TestGetNoPayloadError>
  490    500   
{
  491    501   
    // Async block used to run the handler and catch any Python error.
  492    502   
    let result = if handler.is_coroutine {
  493    503   
        ::tracing::trace!(
  494    504   
            name = "test_get_no_payload",
  495    505   
            "executing python handler coroutine"
  496    506   
        );
  497    507   
        let result = ::pyo3::Python::with_gil(|py| {
  498    508   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  499    509   
            let coroutine = if handler.args == 1 {
  500    510   
                pyhandler.call1((input,))?
  501    511   
            } else {
  502    512   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  503    513   
            };
  504    514   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  505    515   
        })?;
  506    516   
        result.await.and_then(|r| {
  507    517   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::TestGetNoPayloadOutput>(py))
  508    518   
        })
  509    519   
    } else {
  510    520   
        ::tracing::trace!(
  511    521   
            name = "test_get_no_payload",
  512    522   
            "executing python handler function"
  513    523   
        );
  514    524   
        ::pyo3::Python::with_gil(|py| {
  515    525   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  516    526   
            let output = if handler.args == 1 {
  517    527   
                pyhandler.call1((input,))?
  518    528   
            } else {
  519    529   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  520    530   
            };
  521    531   
            output.extract::<crate::output::TestGetNoPayloadOutput>()
  522    532   
        })
  523    533   
    };
  524    534   
    // Catch and record a Python traceback.
  525    535   
    result.map_err(|e| {
  526    536   
        let rich_py_err =
  527    537   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  528    538   
                e.clone_ref(py)
  529    539   
            }));
  530    540   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  531    541   
        e.into()
  532    542   
    })
  533    543   
}
  534    544   
         545  +
/* PythonServerOperationHandlerGenerator.kt:61 */
  535    546   
/// Python handler for operation `TestPayloadBlob`.
  536    547   
pub(crate) async fn test_payload_blob(
  537    548   
    input: crate::input::TestPayloadBlobInput,
  538    549   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
  539    550   
    handler: ::aws_smithy_http_server_python::PyHandler,
  540    551   
) -> std::result::Result<crate::output::TestPayloadBlobOutput, crate::error::TestPayloadBlobError> {
  541    552   
    // Async block used to run the handler and catch any Python error.
  542    553   
    let result = if handler.is_coroutine {
  543    554   
        ::tracing::trace!(
  544    555   
            name = "test_payload_blob",
  545    556   
            "executing python handler coroutine"
  546    557   
        );
  547    558   
        let result = ::pyo3::Python::with_gil(|py| {
  548    559   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  549    560   
            let coroutine = if handler.args == 1 {
  550    561   
                pyhandler.call1((input,))?
  551    562   
            } else {
  552    563   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  553    564   
            };
  554    565   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  555    566   
        })?;
  556    567   
        result.await.and_then(|r| {
  557    568   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::TestPayloadBlobOutput>(py))
  558    569   
        })
  559    570   
    } else {
  560    571   
        ::tracing::trace!(
  561    572   
            name = "test_payload_blob",
  562    573   
            "executing python handler function"
  563    574   
        );
  564    575   
        ::pyo3::Python::with_gil(|py| {
  565    576   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  566    577   
            let output = if handler.args == 1 {
  567    578   
                pyhandler.call1((input,))?
  568    579   
            } else {
  569    580   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  570    581   
            };
  571    582   
            output.extract::<crate::output::TestPayloadBlobOutput>()
  572    583   
        })
  573    584   
    };
  574    585   
    // Catch and record a Python traceback.
  575    586   
    result.map_err(|e| {
  576    587   
        let rich_py_err =
  577    588   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  578    589   
                e.clone_ref(py)
  579    590   
            }));
  580    591   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  581    592   
        e.into()
  582    593   
    })
  583    594   
}
  584    595   
         596  +
/* PythonServerOperationHandlerGenerator.kt:61 */
  585    597   
/// Python handler for operation `TestPayloadStructure`.
  586    598   
pub(crate) async fn test_payload_structure(
  587    599   
    input: crate::input::TestPayloadStructureInput,
  588    600   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
  589    601   
    handler: ::aws_smithy_http_server_python::PyHandler,
  590    602   
) -> std::result::Result<
  591    603   
    crate::output::TestPayloadStructureOutput,
  592    604   
    crate::error::TestPayloadStructureError,
  593    605   
> {
  594    606   
    // Async block used to run the handler and catch any Python error.
  595    607   
    let result = if handler.is_coroutine {
  596    608   
        ::tracing::trace!(
  597    609   
            name = "test_payload_structure",
  598    610   
            "executing python handler coroutine"
  599    611   
        );
  600    612   
        let result = ::pyo3::Python::with_gil(|py| {
  601    613   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  602    614   
            let coroutine = if handler.args == 1 {
  603    615   
                pyhandler.call1((input,))?
  604    616   
            } else {
  605    617   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  606    618   
            };
  607    619   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  608    620   
        })?;
  609    621   
        result.await.and_then(|r| {
  610    622   
            ::pyo3::Python::with_gil(|py| {
  611    623   
                r.extract::<crate::output::TestPayloadStructureOutput>(py)
  612    624   
            })
  613    625   
        })
  614    626   
    } else {
  615    627   
        ::tracing::trace!(
  616    628   
            name = "test_payload_structure",
  617    629   
            "executing python handler function"
  618    630   
        );
  619    631   
        ::pyo3::Python::with_gil(|py| {
  620    632   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  621    633   
            let output = if handler.args == 1 {
  622    634   
                pyhandler.call1((input,))?
  623    635   
            } else {
  624    636   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  625    637   
            };
  626    638   
            output.extract::<crate::output::TestPayloadStructureOutput>()
  627    639   
        })
  628    640   
    };
  629    641   
    // Catch and record a Python traceback.
  630    642   
    result.map_err(|e| {
  631    643   
        let rich_py_err =
  632    644   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  633    645   
                e.clone_ref(py)
  634    646   
            }));
  635    647   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  636    648   
        e.into()
  637    649   
    })
  638    650   
}
  639    651   
         652  +
/* PythonServerOperationHandlerGenerator.kt:61 */
  640    653   
/// Python handler for operation `TestBodyStructure`.
  641    654   
pub(crate) async fn test_body_structure(
  642    655   
    input: crate::input::TestBodyStructureInput,
  643    656   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
  644    657   
    handler: ::aws_smithy_http_server_python::PyHandler,
  645    658   
) -> std::result::Result<crate::output::TestBodyStructureOutput, crate::error::TestBodyStructureError>
  646    659   
{
  647    660   
    // Async block used to run the handler and catch any Python error.
  648    661   
    let result = if handler.is_coroutine {
  649    662   
        ::tracing::trace!(
  650    663   
            name = "test_body_structure",
  651    664   
            "executing python handler coroutine"
  652    665   
        );
  653    666   
        let result = ::pyo3::Python::with_gil(|py| {
  654    667   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  655    668   
            let coroutine = if handler.args == 1 {
  656    669   
                pyhandler.call1((input,))?
  657    670   
            } else {
  658    671   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  659    672   
            };
  660    673   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  661    674   
        })?;
  662    675   
        result.await.and_then(|r| {
  663    676   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::TestBodyStructureOutput>(py))
  664    677   
        })
  665    678   
    } else {
  666    679   
        ::tracing::trace!(
  667    680   
            name = "test_body_structure",
  668    681   
            "executing python handler function"
  669    682   
        );
  670    683   
        ::pyo3::Python::with_gil(|py| {
  671    684   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  672    685   
            let output = if handler.args == 1 {
  673    686   
                pyhandler.call1((input,))?
  674    687   
            } else {
  675    688   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  676    689   
            };
  677    690   
            output.extract::<crate::output::TestBodyStructureOutput>()
  678    691   
        })
  679    692   
    };
  680    693   
    // Catch and record a Python traceback.
  681    694   
    result.map_err(|e| {
  682    695   
        let rich_py_err =
  683    696   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  684    697   
                e.clone_ref(py)
  685    698   
            }));
  686    699   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  687    700   
        e.into()
  688    701   
    })
  689    702   
}
  690    703   
         704  +
/* PythonServerOperationHandlerGenerator.kt:61 */
  691    705   
/// Python handler for operation `MalformedAcceptWithGenericString`.
  692    706   
pub(crate) async fn malformed_accept_with_generic_string(
  693    707   
    input: crate::input::MalformedAcceptWithGenericStringInput,
  694    708   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
  695    709   
    handler: ::aws_smithy_http_server_python::PyHandler,
  696    710   
) -> std::result::Result<
  697    711   
    crate::output::MalformedAcceptWithGenericStringOutput,
  698    712   
    crate::error::MalformedAcceptWithGenericStringError,
  699    713   
> {
  700    714   
    // Async block used to run the handler and catch any Python error.
  701    715   
    let result = if handler.is_coroutine {
  702    716   
        ::tracing::trace!(
  703    717   
            name = "malformed_accept_with_generic_string",
  704    718   
            "executing python handler coroutine"
  705    719   
        );
  706    720   
        let result = ::pyo3::Python::with_gil(|py| {
  707    721   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  708    722   
            let coroutine = if handler.args == 1 {
  709    723   
                pyhandler.call1((input,))?
  710    724   
            } else {
  711    725   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  712    726   
            };
  713    727   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  714    728   
        })?;
  715    729   
        result.await.and_then(|r| {
  716    730   
            ::pyo3::Python::with_gil(|py| {
  717    731   
                r.extract::<crate::output::MalformedAcceptWithGenericStringOutput>(py)
  718    732   
            })
  719    733   
        })
  720    734   
    } else {
  721    735   
        ::tracing::trace!(
  722    736   
            name = "malformed_accept_with_generic_string",
  723    737   
            "executing python handler function"
  724    738   
        );
  725    739   
        ::pyo3::Python::with_gil(|py| {
  726    740   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  727    741   
            let output = if handler.args == 1 {
  728    742   
                pyhandler.call1((input,))?
  729    743   
            } else {
  730    744   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  731    745   
            };
  732    746   
            output.extract::<crate::output::MalformedAcceptWithGenericStringOutput>()
  733    747   
        })
  734    748   
    };
  735    749   
    // Catch and record a Python traceback.
  736    750   
    result.map_err(|e| {
  737    751   
        let rich_py_err =
  738    752   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  739    753   
                e.clone_ref(py)
  740    754   
            }));
  741    755   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  742    756   
        e.into()
  743    757   
    })
  744    758   
}
  745    759   
         760  +
/* PythonServerOperationHandlerGenerator.kt:61 */
  746    761   
/// Python handler for operation `MalformedAcceptWithPayload`.
  747    762   
pub(crate) async fn malformed_accept_with_payload(
  748    763   
    input: crate::input::MalformedAcceptWithPayloadInput,
  749    764   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
  750    765   
    handler: ::aws_smithy_http_server_python::PyHandler,
  751    766   
) -> std::result::Result<
  752    767   
    crate::output::MalformedAcceptWithPayloadOutput,
  753    768   
    crate::error::MalformedAcceptWithPayloadError,
  754    769   
> {
  755    770   
    // Async block used to run the handler and catch any Python error.
  756    771   
    let result = if handler.is_coroutine {
  757    772   
        ::tracing::trace!(
  758    773   
            name = "malformed_accept_with_payload",
  759    774   
            "executing python handler coroutine"
  760    775   
        );
  761    776   
        let result = ::pyo3::Python::with_gil(|py| {
  762    777   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  763    778   
            let coroutine = if handler.args == 1 {
  764    779   
                pyhandler.call1((input,))?
  765    780   
            } else {
  766    781   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  767    782   
            };
  768    783   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  769    784   
        })?;
  770    785   
        result.await.and_then(|r| {
  771    786   
            ::pyo3::Python::with_gil(|py| {
  772    787   
                r.extract::<crate::output::MalformedAcceptWithPayloadOutput>(py)
  773    788   
            })
  774    789   
        })
  775    790   
    } else {
  776    791   
        ::tracing::trace!(
  777    792   
            name = "malformed_accept_with_payload",
  778    793   
            "executing python handler function"
  779    794   
        );
  780    795   
        ::pyo3::Python::with_gil(|py| {
  781    796   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  782    797   
            let output = if handler.args == 1 {
  783    798   
                pyhandler.call1((input,))?
  784    799   
            } else {
  785    800   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  786    801   
            };
  787    802   
            output.extract::<crate::output::MalformedAcceptWithPayloadOutput>()
  788    803   
        })
  789    804   
    };
  790    805   
    // Catch and record a Python traceback.
  791    806   
    result.map_err(|e| {
  792    807   
        let rich_py_err =
  793    808   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  794    809   
                e.clone_ref(py)
  795    810   
            }));
  796    811   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  797    812   
        e.into()
  798    813   
    })
  799    814   
}
  800    815   
         816  +
/* PythonServerOperationHandlerGenerator.kt:61 */
  801    817   
/// Python handler for operation `MalformedAcceptWithBody`.
  802    818   
pub(crate) async fn malformed_accept_with_body(
  803    819   
    input: crate::input::MalformedAcceptWithBodyInput,
  804    820   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
  805    821   
    handler: ::aws_smithy_http_server_python::PyHandler,
  806    822   
) -> std::result::Result<
  807    823   
    crate::output::MalformedAcceptWithBodyOutput,
  808    824   
    crate::error::MalformedAcceptWithBodyError,
  809    825   
> {
  810    826   
    // Async block used to run the handler and catch any Python error.
  811    827   
    let result = if handler.is_coroutine {
  812    828   
        ::tracing::trace!(
  813    829   
            name = "malformed_accept_with_body",
  814    830   
            "executing python handler coroutine"
  815    831   
        );
  816    832   
        let result = ::pyo3::Python::with_gil(|py| {
  817    833   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  818    834   
            let coroutine = if handler.args == 1 {
  819    835   
                pyhandler.call1((input,))?
  820    836   
            } else {
  821    837   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  822    838   
            };
  823    839   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  824    840   
        })?;
  825    841   
        result.await.and_then(|r| {
  826    842   
            ::pyo3::Python::with_gil(|py| {
  827    843   
                r.extract::<crate::output::MalformedAcceptWithBodyOutput>(py)
  828    844   
            })
  829    845   
        })
  830    846   
    } else {
  831    847   
        ::tracing::trace!(
  832    848   
            name = "malformed_accept_with_body",
  833    849   
            "executing python handler function"
  834    850   
        );
  835    851   
        ::pyo3::Python::with_gil(|py| {
  836    852   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  837    853   
            let output = if handler.args == 1 {
  838    854   
                pyhandler.call1((input,))?
  839    855   
            } else {
  840    856   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  841    857   
            };
  842    858   
            output.extract::<crate::output::MalformedAcceptWithBodyOutput>()
  843    859   
        })
  844    860   
    };
  845    861   
    // Catch and record a Python traceback.
  846    862   
    result.map_err(|e| {
  847    863   
        let rich_py_err =
  848    864   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  849    865   
                e.clone_ref(py)
  850    866   
            }));
  851    867   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  852    868   
        e.into()
  853    869   
    })
  854    870   
}
  855    871   
         872  +
/* PythonServerOperationHandlerGenerator.kt:61 */
  856    873   
/// Python handler for operation `MalformedContentTypeWithGenericString`.
  857    874   
pub(crate) async fn malformed_content_type_with_generic_string(
  858    875   
    input: crate::input::MalformedContentTypeWithGenericStringInput,
  859    876   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
  860    877   
    handler: ::aws_smithy_http_server_python::PyHandler,
  861    878   
) -> std::result::Result<
  862    879   
    crate::output::MalformedContentTypeWithGenericStringOutput,
  863    880   
    crate::error::MalformedContentTypeWithGenericStringError,
  864    881   
> {
  865    882   
    // Async block used to run the handler and catch any Python error.
  866    883   
    let result = if handler.is_coroutine {
  867    884   
        ::tracing::trace!(
  868    885   
            name = "malformed_content_type_with_generic_string",
  869    886   
            "executing python handler coroutine"
  870    887   
        );
  871    888   
        let result = ::pyo3::Python::with_gil(|py| {
  872    889   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  873    890   
            let coroutine = if handler.args == 1 {
  874    891   
                pyhandler.call1((input,))?
  875    892   
            } else {
  876    893   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  877    894   
            };
  878    895   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  879    896   
        })?;
  880    897   
        result.await.and_then(|r| {
  881    898   
            ::pyo3::Python::with_gil(|py| {
  882    899   
                r.extract::<crate::output::MalformedContentTypeWithGenericStringOutput>(py)
  883    900   
            })
  884    901   
        })
  885    902   
    } else {
  886    903   
        ::tracing::trace!(
  887    904   
            name = "malformed_content_type_with_generic_string",
  888    905   
            "executing python handler function"
  889    906   
        );
  890    907   
        ::pyo3::Python::with_gil(|py| {
  891    908   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  892    909   
            let output = if handler.args == 1 {
  893    910   
                pyhandler.call1((input,))?
  894    911   
            } else {
  895    912   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  896    913   
            };
  897    914   
            output.extract::<crate::output::MalformedContentTypeWithGenericStringOutput>()
  898    915   
        })
  899    916   
    };
  900    917   
    // Catch and record a Python traceback.
  901    918   
    result.map_err(|e| {
  902    919   
        let rich_py_err =
  903    920   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  904    921   
                e.clone_ref(py)
  905    922   
            }));
  906    923   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  907    924   
        e.into()
  908    925   
    })
  909    926   
}
  910    927   
         928  +
/* PythonServerOperationHandlerGenerator.kt:61 */
  911    929   
/// Python handler for operation `MalformedContentTypeWithPayload`.
  912    930   
pub(crate) async fn malformed_content_type_with_payload(
  913    931   
    input: crate::input::MalformedContentTypeWithPayloadInput,
  914    932   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
  915    933   
    handler: ::aws_smithy_http_server_python::PyHandler,
  916    934   
) -> std::result::Result<
  917    935   
    crate::output::MalformedContentTypeWithPayloadOutput,
  918    936   
    crate::error::MalformedContentTypeWithPayloadError,
  919    937   
> {
  920    938   
    // Async block used to run the handler and catch any Python error.
  921    939   
    let result = if handler.is_coroutine {
  922    940   
        ::tracing::trace!(
  923    941   
            name = "malformed_content_type_with_payload",
  924    942   
            "executing python handler coroutine"
  925    943   
        );
  926    944   
        let result = ::pyo3::Python::with_gil(|py| {
  927    945   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  928    946   
            let coroutine = if handler.args == 1 {
  929    947   
                pyhandler.call1((input,))?
  930    948   
            } else {
  931    949   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  932    950   
            };
  933    951   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  934    952   
        })?;
  935    953   
        result.await.and_then(|r| {
  936    954   
            ::pyo3::Python::with_gil(|py| {
  937    955   
                r.extract::<crate::output::MalformedContentTypeWithPayloadOutput>(py)
  938    956   
            })
  939    957   
        })
  940    958   
    } else {
  941    959   
        ::tracing::trace!(
  942    960   
            name = "malformed_content_type_with_payload",
  943    961   
            "executing python handler function"
  944    962   
        );
  945    963   
        ::pyo3::Python::with_gil(|py| {
  946    964   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  947    965   
            let output = if handler.args == 1 {
  948    966   
                pyhandler.call1((input,))?
  949    967   
            } else {
  950    968   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  951    969   
            };
  952    970   
            output.extract::<crate::output::MalformedContentTypeWithPayloadOutput>()
  953    971   
        })
  954    972   
    };
  955    973   
    // Catch and record a Python traceback.
  956    974   
    result.map_err(|e| {
  957    975   
        let rich_py_err =
  958    976   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  959    977   
                e.clone_ref(py)
  960    978   
            }));
  961    979   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  962    980   
        e.into()
  963    981   
    })
  964    982   
}
  965    983   
         984  +
/* PythonServerOperationHandlerGenerator.kt:61 */
  966    985   
/// Python handler for operation `MalformedContentTypeWithBody`.
  967    986   
pub(crate) async fn malformed_content_type_with_body(
  968    987   
    input: crate::input::MalformedContentTypeWithBodyInput,
  969    988   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
  970    989   
    handler: ::aws_smithy_http_server_python::PyHandler,
  971    990   
) -> std::result::Result<
  972    991   
    crate::output::MalformedContentTypeWithBodyOutput,
  973    992   
    crate::error::MalformedContentTypeWithBodyError,
  974    993   
> {
  975    994   
    // Async block used to run the handler and catch any Python error.
  976    995   
    let result = if handler.is_coroutine {
  977    996   
        ::tracing::trace!(
  978    997   
            name = "malformed_content_type_with_body",
  979    998   
            "executing python handler coroutine"
  980    999   
        );
  981   1000   
        let result = ::pyo3::Python::with_gil(|py| {
  982   1001   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  983   1002   
            let coroutine = if handler.args == 1 {
  984   1003   
                pyhandler.call1((input,))?
  985   1004   
            } else {
  986   1005   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  987   1006   
            };
  988   1007   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  989   1008   
        })?;
  990   1009   
        result.await.and_then(|r| {
  991   1010   
            ::pyo3::Python::with_gil(|py| {
  992   1011   
                r.extract::<crate::output::MalformedContentTypeWithBodyOutput>(py)
  993   1012   
            })
  994   1013   
        })
  995   1014   
    } else {
  996   1015   
        ::tracing::trace!(
  997   1016   
            name = "malformed_content_type_with_body",
  998   1017   
            "executing python handler function"
  999   1018   
        );
 1000   1019   
        ::pyo3::Python::with_gil(|py| {
 1001   1020   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1002   1021   
            let output = if handler.args == 1 {
 1003   1022   
                pyhandler.call1((input,))?
 1004   1023   
            } else {
 1005   1024   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1006   1025   
            };
 1007   1026   
            output.extract::<crate::output::MalformedContentTypeWithBodyOutput>()
 1008   1027   
        })
 1009   1028   
    };
 1010   1029   
    // Catch and record a Python traceback.
 1011   1030   
    result.map_err(|e| {
 1012   1031   
        let rich_py_err =
 1013   1032   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 1014   1033   
                e.clone_ref(py)
 1015   1034   
            }));
 1016   1035   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 1017   1036   
        e.into()
 1018   1037   
    })
 1019   1038   
}
 1020   1039   
        1040  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 1021   1041   
/// Python handler for operation `MalformedContentTypeWithoutBody`.
 1022   1042   
pub(crate) async fn malformed_content_type_without_body(
 1023   1043   
    input: crate::input::MalformedContentTypeWithoutBodyInput,
 1024   1044   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 1025   1045   
    handler: ::aws_smithy_http_server_python::PyHandler,
 1026   1046   
) -> std::result::Result<
 1027   1047   
    crate::output::MalformedContentTypeWithoutBodyOutput,
 1028   1048   
    crate::error::MalformedContentTypeWithoutBodyError,
 1029   1049   
> {
 1030   1050   
    // Async block used to run the handler and catch any Python error.
 1031   1051   
    let result = if handler.is_coroutine {
 1032   1052   
        ::tracing::trace!(
 1033   1053   
            name = "malformed_content_type_without_body",
 1034   1054   
            "executing python handler coroutine"
 1035   1055   
        );
 1036   1056   
        let result = ::pyo3::Python::with_gil(|py| {
 1037   1057   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1038   1058   
            let coroutine = if handler.args == 1 {
 1039   1059   
                pyhandler.call1((input,))?
 1040   1060   
            } else {
 1041   1061   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1042   1062   
            };
 1043   1063   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 1044   1064   
        })?;
 1045   1065   
        result.await.and_then(|r| {
 1046   1066   
            ::pyo3::Python::with_gil(|py| {
 1047   1067   
                r.extract::<crate::output::MalformedContentTypeWithoutBodyOutput>(py)
 1048   1068   
            })
 1049   1069   
        })
 1050   1070   
    } else {
 1051   1071   
        ::tracing::trace!(
 1052   1072   
            name = "malformed_content_type_without_body",
 1053   1073   
            "executing python handler function"
 1054   1074   
        );
 1055   1075   
        ::pyo3::Python::with_gil(|py| {
 1056   1076   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1057   1077   
            let output = if handler.args == 1 {
 1058   1078   
                pyhandler.call1((input,))?
 1059   1079   
            } else {
 1060   1080   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1061   1081   
            };
 1062   1082   
            output.extract::<crate::output::MalformedContentTypeWithoutBodyOutput>()
 1063   1083   
        })
 1064   1084   
    };
 1065   1085   
    // Catch and record a Python traceback.
 1066   1086   
    result.map_err(|e| {
 1067   1087   
        let rich_py_err =
 1068   1088   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 1069   1089   
                e.clone_ref(py)
 1070   1090   
            }));
 1071   1091   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 1072   1092   
        e.into()
 1073   1093   
    })
 1074   1094   
}
 1075   1095   
        1096  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 1076   1097   
/// Python handler for operation `MalformedTimestampBodyHttpDate`.
 1077   1098   
pub(crate) async fn malformed_timestamp_body_http_date(
 1078   1099   
    input: crate::input::MalformedTimestampBodyHttpDateInput,
 1079   1100   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 1080   1101   
    handler: ::aws_smithy_http_server_python::PyHandler,
 1081   1102   
) -> std::result::Result<
 1082   1103   
    crate::output::MalformedTimestampBodyHttpDateOutput,
 1083   1104   
    crate::error::MalformedTimestampBodyHttpDateError,
 1084   1105   
> {
 1085   1106   
    // Async block used to run the handler and catch any Python error.
 1086   1107   
    let result = if handler.is_coroutine {
 1087   1108   
        ::tracing::trace!(
 1088   1109   
            name = "malformed_timestamp_body_http_date",
 1089   1110   
            "executing python handler coroutine"
 1090   1111   
        );
 1091   1112   
        let result = ::pyo3::Python::with_gil(|py| {
 1092   1113   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1093   1114   
            let coroutine = if handler.args == 1 {
 1094   1115   
                pyhandler.call1((input,))?
 1095   1116   
            } else {
 1096   1117   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1097   1118   
            };
 1098   1119   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 1099   1120   
        })?;
 1100   1121   
        result.await.and_then(|r| {
 1101   1122   
            ::pyo3::Python::with_gil(|py| {
 1102   1123   
                r.extract::<crate::output::MalformedTimestampBodyHttpDateOutput>(py)
 1103   1124   
            })
 1104   1125   
        })
 1105   1126   
    } else {
 1106   1127   
        ::tracing::trace!(
 1107   1128   
            name = "malformed_timestamp_body_http_date",
 1108   1129   
            "executing python handler function"
 1109   1130   
        );
 1110   1131   
        ::pyo3::Python::with_gil(|py| {
 1111   1132   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1112   1133   
            let output = if handler.args == 1 {
 1113   1134   
                pyhandler.call1((input,))?
 1114   1135   
            } else {
 1115   1136   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1116   1137   
            };
 1117   1138   
            output.extract::<crate::output::MalformedTimestampBodyHttpDateOutput>()
 1118   1139   
        })
 1119   1140   
    };
 1120   1141   
    // Catch and record a Python traceback.
 1121   1142   
    result.map_err(|e| {
 1122   1143   
        let rich_py_err =
 1123   1144   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 1124   1145   
                e.clone_ref(py)
 1125   1146   
            }));
 1126   1147   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 1127   1148   
        e.into()
 1128   1149   
    })
 1129   1150   
}
 1130   1151   
        1152  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 1131   1153   
/// Python handler for operation `MalformedTimestampBodyDateTime`.
 1132   1154   
pub(crate) async fn malformed_timestamp_body_date_time(
 1133   1155   
    input: crate::input::MalformedTimestampBodyDateTimeInput,
 1134   1156   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 1135   1157   
    handler: ::aws_smithy_http_server_python::PyHandler,
 1136   1158   
) -> std::result::Result<
 1137   1159   
    crate::output::MalformedTimestampBodyDateTimeOutput,
 1138   1160   
    crate::error::MalformedTimestampBodyDateTimeError,
 1139   1161   
> {
 1140   1162   
    // Async block used to run the handler and catch any Python error.
 1141   1163   
    let result = if handler.is_coroutine {
 1142   1164   
        ::tracing::trace!(
 1143   1165   
            name = "malformed_timestamp_body_date_time",
 1144   1166   
            "executing python handler coroutine"
 1145   1167   
        );
 1146   1168   
        let result = ::pyo3::Python::with_gil(|py| {
 1147   1169   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1148   1170   
            let coroutine = if handler.args == 1 {
 1149   1171   
                pyhandler.call1((input,))?
 1150   1172   
            } else {
 1151   1173   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1152   1174   
            };
 1153   1175   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 1154   1176   
        })?;
 1155   1177   
        result.await.and_then(|r| {
 1156   1178   
            ::pyo3::Python::with_gil(|py| {
 1157   1179   
                r.extract::<crate::output::MalformedTimestampBodyDateTimeOutput>(py)
 1158   1180   
            })
 1159   1181   
        })
 1160   1182   
    } else {
 1161   1183   
        ::tracing::trace!(
 1162   1184   
            name = "malformed_timestamp_body_date_time",
 1163   1185   
            "executing python handler function"
 1164   1186   
        );
 1165   1187   
        ::pyo3::Python::with_gil(|py| {
 1166   1188   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1167   1189   
            let output = if handler.args == 1 {
 1168   1190   
                pyhandler.call1((input,))?
 1169   1191   
            } else {
 1170   1192   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1171   1193   
            };
 1172   1194   
            output.extract::<crate::output::MalformedTimestampBodyDateTimeOutput>()
 1173   1195   
        })
 1174   1196   
    };
 1175   1197   
    // Catch and record a Python traceback.
 1176   1198   
    result.map_err(|e| {
 1177   1199   
        let rich_py_err =
 1178   1200   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 1179   1201   
                e.clone_ref(py)
 1180   1202   
            }));
 1181   1203   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 1182   1204   
        e.into()
 1183   1205   
    })
 1184   1206   
}
 1185   1207   
        1208  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 1186   1209   
/// Python handler for operation `MalformedTimestampBodyDefault`.
 1187   1210   
pub(crate) async fn malformed_timestamp_body_default(
 1188   1211   
    input: crate::input::MalformedTimestampBodyDefaultInput,
 1189   1212   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 1190   1213   
    handler: ::aws_smithy_http_server_python::PyHandler,
 1191   1214   
) -> std::result::Result<
 1192   1215   
    crate::output::MalformedTimestampBodyDefaultOutput,
 1193   1216   
    crate::error::MalformedTimestampBodyDefaultError,
 1194   1217   
> {
 1195   1218   
    // Async block used to run the handler and catch any Python error.
 1196   1219   
    let result = if handler.is_coroutine {
 1197   1220   
        ::tracing::trace!(
 1198   1221   
            name = "malformed_timestamp_body_default",
 1199   1222   
            "executing python handler coroutine"
 1200   1223   
        );
 1201   1224   
        let result = ::pyo3::Python::with_gil(|py| {
 1202   1225   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1203   1226   
            let coroutine = if handler.args == 1 {
 1204   1227   
                pyhandler.call1((input,))?
 1205   1228   
            } else {
 1206   1229   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1207   1230   
            };
 1208   1231   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 1209   1232   
        })?;
 1210   1233   
        result.await.and_then(|r| {
 1211   1234   
            ::pyo3::Python::with_gil(|py| {
 1212   1235   
                r.extract::<crate::output::MalformedTimestampBodyDefaultOutput>(py)
 1213   1236   
            })
 1214   1237   
        })
 1215   1238   
    } else {
 1216   1239   
        ::tracing::trace!(
 1217   1240   
            name = "malformed_timestamp_body_default",
 1218   1241   
            "executing python handler function"
 1219   1242   
        );
 1220   1243   
        ::pyo3::Python::with_gil(|py| {
 1221   1244   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1222   1245   
            let output = if handler.args == 1 {
 1223   1246   
                pyhandler.call1((input,))?
 1224   1247   
            } else {
 1225   1248   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1226   1249   
            };
 1227   1250   
            output.extract::<crate::output::MalformedTimestampBodyDefaultOutput>()
 1228   1251   
        })
 1229   1252   
    };
 1230   1253   
    // Catch and record a Python traceback.
 1231   1254   
    result.map_err(|e| {
 1232   1255   
        let rich_py_err =
 1233   1256   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 1234   1257   
                e.clone_ref(py)
 1235   1258   
            }));
 1236   1259   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 1237   1260   
        e.into()
 1238   1261   
    })
 1239   1262   
}
 1240   1263   
        1264  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 1241   1265   
/// Python handler for operation `MalformedTimestampHeaderEpoch`.
 1242   1266   
pub(crate) async fn malformed_timestamp_header_epoch(
 1243   1267   
    input: crate::input::MalformedTimestampHeaderEpochInput,
 1244   1268   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 1245   1269   
    handler: ::aws_smithy_http_server_python::PyHandler,
 1246   1270   
) -> std::result::Result<
 1247   1271   
    crate::output::MalformedTimestampHeaderEpochOutput,
 1248   1272   
    crate::error::MalformedTimestampHeaderEpochError,
 1249   1273   
> {
 1250   1274   
    // Async block used to run the handler and catch any Python error.
 1251   1275   
    let result = if handler.is_coroutine {
 1252   1276   
        ::tracing::trace!(
 1253   1277   
            name = "malformed_timestamp_header_epoch",
 1254   1278   
            "executing python handler coroutine"
 1255   1279   
        );
 1256   1280   
        let result = ::pyo3::Python::with_gil(|py| {
 1257   1281   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1258   1282   
            let coroutine = if handler.args == 1 {
 1259   1283   
                pyhandler.call1((input,))?
 1260   1284   
            } else {
 1261   1285   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1262   1286   
            };
 1263   1287   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 1264   1288   
        })?;
 1265   1289   
        result.await.and_then(|r| {
 1266   1290   
            ::pyo3::Python::with_gil(|py| {
 1267   1291   
                r.extract::<crate::output::MalformedTimestampHeaderEpochOutput>(py)
 1268   1292   
            })
 1269   1293   
        })
 1270   1294   
    } else {
 1271   1295   
        ::tracing::trace!(
 1272   1296   
            name = "malformed_timestamp_header_epoch",
 1273   1297   
            "executing python handler function"
 1274   1298   
        );
 1275   1299   
        ::pyo3::Python::with_gil(|py| {
 1276   1300   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1277   1301   
            let output = if handler.args == 1 {
 1278   1302   
                pyhandler.call1((input,))?
 1279   1303   
            } else {
 1280   1304   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1281   1305   
            };
 1282   1306   
            output.extract::<crate::output::MalformedTimestampHeaderEpochOutput>()
 1283   1307   
        })
 1284   1308   
    };
 1285   1309   
    // Catch and record a Python traceback.
 1286   1310   
    result.map_err(|e| {
 1287   1311   
        let rich_py_err =
 1288   1312   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 1289   1313   
                e.clone_ref(py)
 1290   1314   
            }));
 1291   1315   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 1292   1316   
        e.into()
 1293   1317   
    })
 1294   1318   
}
 1295   1319   
        1320  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 1296   1321   
/// Python handler for operation `MalformedTimestampHeaderDateTime`.
 1297   1322   
pub(crate) async fn malformed_timestamp_header_date_time(
 1298   1323   
    input: crate::input::MalformedTimestampHeaderDateTimeInput,
 1299   1324   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 1300   1325   
    handler: ::aws_smithy_http_server_python::PyHandler,
 1301   1326   
) -> std::result::Result<
 1302   1327   
    crate::output::MalformedTimestampHeaderDateTimeOutput,
 1303   1328   
    crate::error::MalformedTimestampHeaderDateTimeError,
 1304   1329   
> {
 1305   1330   
    // Async block used to run the handler and catch any Python error.
 1306   1331   
    let result = if handler.is_coroutine {
 1307   1332   
        ::tracing::trace!(
 1308   1333   
            name = "malformed_timestamp_header_date_time",
 1309   1334   
            "executing python handler coroutine"
 1310   1335   
        );
 1311   1336   
        let result = ::pyo3::Python::with_gil(|py| {
 1312   1337   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1313   1338   
            let coroutine = if handler.args == 1 {
 1314   1339   
                pyhandler.call1((input,))?
 1315   1340   
            } else {
 1316   1341   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1317   1342   
            };
 1318   1343   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 1319   1344   
        })?;
 1320   1345   
        result.await.and_then(|r| {
 1321   1346   
            ::pyo3::Python::with_gil(|py| {
 1322   1347   
                r.extract::<crate::output::MalformedTimestampHeaderDateTimeOutput>(py)
 1323   1348   
            })
 1324   1349   
        })
 1325   1350   
    } else {
 1326   1351   
        ::tracing::trace!(
 1327   1352   
            name = "malformed_timestamp_header_date_time",
 1328   1353   
            "executing python handler function"
 1329   1354   
        );
 1330   1355   
        ::pyo3::Python::with_gil(|py| {
 1331   1356   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1332   1357   
            let output = if handler.args == 1 {
 1333   1358   
                pyhandler.call1((input,))?
 1334   1359   
            } else {
 1335   1360   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1336   1361   
            };
 1337   1362   
            output.extract::<crate::output::MalformedTimestampHeaderDateTimeOutput>()
 1338   1363   
        })
 1339   1364   
    };
 1340   1365   
    // Catch and record a Python traceback.
 1341   1366   
    result.map_err(|e| {
 1342   1367   
        let rich_py_err =
 1343   1368   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 1344   1369   
                e.clone_ref(py)
 1345   1370   
            }));
 1346   1371   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 1347   1372   
        e.into()
 1348   1373   
    })
 1349   1374   
}
 1350   1375   
        1376  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 1351   1377   
/// Python handler for operation `MalformedTimestampHeaderDefault`.
 1352   1378   
pub(crate) async fn malformed_timestamp_header_default(
 1353   1379   
    input: crate::input::MalformedTimestampHeaderDefaultInput,
 1354   1380   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 1355   1381   
    handler: ::aws_smithy_http_server_python::PyHandler,
 1356   1382   
) -> std::result::Result<
 1357   1383   
    crate::output::MalformedTimestampHeaderDefaultOutput,
 1358   1384   
    crate::error::MalformedTimestampHeaderDefaultError,
 1359   1385   
> {
 1360   1386   
    // Async block used to run the handler and catch any Python error.
 1361   1387   
    let result = if handler.is_coroutine {
 1362   1388   
        ::tracing::trace!(
 1363   1389   
            name = "malformed_timestamp_header_default",
 1364   1390   
            "executing python handler coroutine"
 1365   1391   
        );
 1366   1392   
        let result = ::pyo3::Python::with_gil(|py| {
 1367   1393   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1368   1394   
            let coroutine = if handler.args == 1 {
 1369   1395   
                pyhandler.call1((input,))?
 1370   1396   
            } else {
 1371   1397   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1372   1398   
            };
 1373   1399   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 1374   1400   
        })?;
 1375   1401   
        result.await.and_then(|r| {
 1376   1402   
            ::pyo3::Python::with_gil(|py| {
 1377   1403   
                r.extract::<crate::output::MalformedTimestampHeaderDefaultOutput>(py)
 1378   1404   
            })
 1379   1405   
        })
 1380   1406   
    } else {
 1381   1407   
        ::tracing::trace!(
 1382   1408   
            name = "malformed_timestamp_header_default",
 1383   1409   
            "executing python handler function"
 1384   1410   
        );
 1385   1411   
        ::pyo3::Python::with_gil(|py| {
 1386   1412   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1387   1413   
            let output = if handler.args == 1 {
 1388   1414   
                pyhandler.call1((input,))?
 1389   1415   
            } else {
 1390   1416   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1391   1417   
            };
 1392   1418   
            output.extract::<crate::output::MalformedTimestampHeaderDefaultOutput>()
 1393   1419   
        })
 1394   1420   
    };
 1395   1421   
    // Catch and record a Python traceback.
 1396   1422   
    result.map_err(|e| {
 1397   1423   
        let rich_py_err =
 1398   1424   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 1399   1425   
                e.clone_ref(py)
 1400   1426   
            }));
 1401   1427   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 1402   1428   
        e.into()
 1403   1429   
    })
 1404   1430   
}
 1405   1431   
        1432  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 1406   1433   
/// Python handler for operation `MalformedTimestampQueryEpoch`.
 1407   1434   
pub(crate) async fn malformed_timestamp_query_epoch(
 1408   1435   
    input: crate::input::MalformedTimestampQueryEpochInput,
 1409   1436   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 1410   1437   
    handler: ::aws_smithy_http_server_python::PyHandler,
 1411   1438   
) -> std::result::Result<
 1412   1439   
    crate::output::MalformedTimestampQueryEpochOutput,
 1413   1440   
    crate::error::MalformedTimestampQueryEpochError,
 1414   1441   
> {
 1415   1442   
    // Async block used to run the handler and catch any Python error.
 1416   1443   
    let result = if handler.is_coroutine {
 1417   1444   
        ::tracing::trace!(
 1418   1445   
            name = "malformed_timestamp_query_epoch",
 1419   1446   
            "executing python handler coroutine"
 1420   1447   
        );
 1421   1448   
        let result = ::pyo3::Python::with_gil(|py| {
 1422   1449   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1423   1450   
            let coroutine = if handler.args == 1 {
 1424   1451   
                pyhandler.call1((input,))?
 1425   1452   
            } else {
 1426   1453   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1427   1454   
            };
 1428   1455   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 1429   1456   
        })?;
 1430   1457   
        result.await.and_then(|r| {
 1431   1458   
            ::pyo3::Python::with_gil(|py| {
 1432   1459   
                r.extract::<crate::output::MalformedTimestampQueryEpochOutput>(py)
 1433   1460   
            })
 1434   1461   
        })
 1435   1462   
    } else {
 1436   1463   
        ::tracing::trace!(
 1437   1464   
            name = "malformed_timestamp_query_epoch",
 1438   1465   
            "executing python handler function"
 1439   1466   
        );
 1440   1467   
        ::pyo3::Python::with_gil(|py| {
 1441   1468   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1442   1469   
            let output = if handler.args == 1 {
 1443   1470   
                pyhandler.call1((input,))?
 1444   1471   
            } else {
 1445   1472   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1446   1473   
            };
 1447   1474   
            output.extract::<crate::output::MalformedTimestampQueryEpochOutput>()
 1448   1475   
        })
 1449   1476   
    };
 1450   1477   
    // Catch and record a Python traceback.
 1451   1478   
    result.map_err(|e| {
 1452   1479   
        let rich_py_err =
 1453   1480   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 1454   1481   
                e.clone_ref(py)
 1455   1482   
            }));
 1456   1483   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 1457   1484   
        e.into()
 1458   1485   
    })
 1459   1486   
}
 1460   1487   
        1488  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 1461   1489   
/// Python handler for operation `MalformedTimestampQueryHttpDate`.
 1462   1490   
pub(crate) async fn malformed_timestamp_query_http_date(
 1463   1491   
    input: crate::input::MalformedTimestampQueryHttpDateInput,
 1464   1492   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 1465   1493   
    handler: ::aws_smithy_http_server_python::PyHandler,
 1466   1494   
) -> std::result::Result<
 1467   1495   
    crate::output::MalformedTimestampQueryHttpDateOutput,
 1468   1496   
    crate::error::MalformedTimestampQueryHttpDateError,
 1469   1497   
> {
 1470   1498   
    // Async block used to run the handler and catch any Python error.
 1471   1499   
    let result = if handler.is_coroutine {
 1472   1500   
        ::tracing::trace!(
 1473   1501   
            name = "malformed_timestamp_query_http_date",
 1474   1502   
            "executing python handler coroutine"
 1475   1503   
        );
 1476   1504   
        let result = ::pyo3::Python::with_gil(|py| {
 1477   1505   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1478   1506   
            let coroutine = if handler.args == 1 {
 1479   1507   
                pyhandler.call1((input,))?
 1480   1508   
            } else {
 1481   1509   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1482   1510   
            };
 1483   1511   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 1484   1512   
        })?;
 1485   1513   
        result.await.and_then(|r| {
 1486   1514   
            ::pyo3::Python::with_gil(|py| {
 1487   1515   
                r.extract::<crate::output::MalformedTimestampQueryHttpDateOutput>(py)
 1488   1516   
            })
 1489   1517   
        })
 1490   1518   
    } else {
 1491   1519   
        ::tracing::trace!(
 1492   1520   
            name = "malformed_timestamp_query_http_date",
 1493   1521   
            "executing python handler function"
 1494   1522   
        );
 1495   1523   
        ::pyo3::Python::with_gil(|py| {
 1496   1524   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1497   1525   
            let output = if handler.args == 1 {
 1498   1526   
                pyhandler.call1((input,))?
 1499   1527   
            } else {
 1500   1528   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1501   1529   
            };
 1502   1530   
            output.extract::<crate::output::MalformedTimestampQueryHttpDateOutput>()
 1503   1531   
        })
 1504   1532   
    };
 1505   1533   
    // Catch and record a Python traceback.
 1506   1534   
    result.map_err(|e| {
 1507   1535   
        let rich_py_err =
 1508   1536   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 1509   1537   
                e.clone_ref(py)
 1510   1538   
            }));
 1511   1539   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 1512   1540   
        e.into()
 1513   1541   
    })
 1514   1542   
}
 1515   1543   
        1544  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 1516   1545   
/// Python handler for operation `MalformedTimestampQueryDefault`.
 1517   1546   
pub(crate) async fn malformed_timestamp_query_default(
 1518   1547   
    input: crate::input::MalformedTimestampQueryDefaultInput,
 1519   1548   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 1520   1549   
    handler: ::aws_smithy_http_server_python::PyHandler,
 1521   1550   
) -> std::result::Result<
 1522   1551   
    crate::output::MalformedTimestampQueryDefaultOutput,
 1523   1552   
    crate::error::MalformedTimestampQueryDefaultError,
 1524   1553   
> {
 1525   1554   
    // Async block used to run the handler and catch any Python error.
 1526   1555   
    let result = if handler.is_coroutine {
 1527   1556   
        ::tracing::trace!(
 1528   1557   
            name = "malformed_timestamp_query_default",
 1529   1558   
            "executing python handler coroutine"
 1530   1559   
        );
 1531   1560   
        let result = ::pyo3::Python::with_gil(|py| {
 1532   1561   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1533   1562   
            let coroutine = if handler.args == 1 {
 1534   1563   
                pyhandler.call1((input,))?
 1535   1564   
            } else {
 1536   1565   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1537   1566   
            };
 1538   1567   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 1539   1568   
        })?;
 1540   1569   
        result.await.and_then(|r| {
 1541   1570   
            ::pyo3::Python::with_gil(|py| {
 1542   1571   
                r.extract::<crate::output::MalformedTimestampQueryDefaultOutput>(py)
 1543   1572   
            })
 1544   1573   
        })
 1545   1574   
    } else {
 1546   1575   
        ::tracing::trace!(
 1547   1576   
            name = "malformed_timestamp_query_default",
 1548   1577   
            "executing python handler function"
 1549   1578   
        );
 1550   1579   
        ::pyo3::Python::with_gil(|py| {
 1551   1580   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1552   1581   
            let output = if handler.args == 1 {
 1553   1582   
                pyhandler.call1((input,))?
 1554   1583   
            } else {
 1555   1584   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1556   1585   
            };
 1557   1586   
            output.extract::<crate::output::MalformedTimestampQueryDefaultOutput>()
 1558   1587   
        })
 1559   1588   
    };
 1560   1589   
    // Catch and record a Python traceback.
 1561   1590   
    result.map_err(|e| {
 1562   1591   
        let rich_py_err =
 1563   1592   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 1564   1593   
                e.clone_ref(py)
 1565   1594   
            }));
 1566   1595   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 1567   1596   
        e.into()
 1568   1597   
    })
 1569   1598   
}
 1570   1599   
        1600  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 1571   1601   
/// Python handler for operation `MalformedTimestampPathEpoch`.
 1572   1602   
pub(crate) async fn malformed_timestamp_path_epoch(
 1573   1603   
    input: crate::input::MalformedTimestampPathEpochInput,
 1574   1604   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 1575   1605   
    handler: ::aws_smithy_http_server_python::PyHandler,
 1576   1606   
) -> std::result::Result<
 1577   1607   
    crate::output::MalformedTimestampPathEpochOutput,
 1578   1608   
    crate::error::MalformedTimestampPathEpochError,
 1579   1609   
> {
 1580   1610   
    // Async block used to run the handler and catch any Python error.
 1581   1611   
    let result = if handler.is_coroutine {
 1582   1612   
        ::tracing::trace!(
 1583   1613   
            name = "malformed_timestamp_path_epoch",
 1584   1614   
            "executing python handler coroutine"
 1585   1615   
        );
 1586   1616   
        let result = ::pyo3::Python::with_gil(|py| {
 1587   1617   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1588   1618   
            let coroutine = if handler.args == 1 {
 1589   1619   
                pyhandler.call1((input,))?
 1590   1620   
            } else {
 1591   1621   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1592   1622   
            };
 1593   1623   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 1594   1624   
        })?;
 1595   1625   
        result.await.and_then(|r| {
 1596   1626   
            ::pyo3::Python::with_gil(|py| {
 1597   1627   
                r.extract::<crate::output::MalformedTimestampPathEpochOutput>(py)
 1598   1628   
            })
 1599   1629   
        })
 1600   1630   
    } else {
 1601   1631   
        ::tracing::trace!(
 1602   1632   
            name = "malformed_timestamp_path_epoch",
 1603   1633   
            "executing python handler function"
 1604   1634   
        );
 1605   1635   
        ::pyo3::Python::with_gil(|py| {
 1606   1636   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1607   1637   
            let output = if handler.args == 1 {
 1608   1638   
                pyhandler.call1((input,))?
 1609   1639   
            } else {
 1610   1640   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1611   1641   
            };
 1612   1642   
            output.extract::<crate::output::MalformedTimestampPathEpochOutput>()
 1613   1643   
        })
 1614   1644   
    };
 1615   1645   
    // Catch and record a Python traceback.
 1616   1646   
    result.map_err(|e| {
 1617   1647   
        let rich_py_err =
 1618   1648   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 1619   1649   
                e.clone_ref(py)
 1620   1650   
            }));
 1621   1651   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 1622   1652   
        e.into()
 1623   1653   
    })
 1624   1654   
}
 1625   1655   
        1656  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 1626   1657   
/// Python handler for operation `MalformedTimestampPathHttpDate`.
 1627   1658   
pub(crate) async fn malformed_timestamp_path_http_date(
 1628   1659   
    input: crate::input::MalformedTimestampPathHttpDateInput,
 1629   1660   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 1630   1661   
    handler: ::aws_smithy_http_server_python::PyHandler,
 1631   1662   
) -> std::result::Result<
 1632   1663   
    crate::output::MalformedTimestampPathHttpDateOutput,
 1633   1664   
    crate::error::MalformedTimestampPathHttpDateError,
 1634   1665   
> {
 1635   1666   
    // Async block used to run the handler and catch any Python error.
 1636   1667   
    let result = if handler.is_coroutine {
 1637   1668   
        ::tracing::trace!(
 1638   1669   
            name = "malformed_timestamp_path_http_date",
 1639   1670   
            "executing python handler coroutine"
 1640   1671   
        );
 1641   1672   
        let result = ::pyo3::Python::with_gil(|py| {
 1642   1673   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1643   1674   
            let coroutine = if handler.args == 1 {
 1644   1675   
                pyhandler.call1((input,))?
 1645   1676   
            } else {
 1646   1677   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1647   1678   
            };
 1648   1679   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 1649   1680   
        })?;
 1650   1681   
        result.await.and_then(|r| {
 1651   1682   
            ::pyo3::Python::with_gil(|py| {
 1652   1683   
                r.extract::<crate::output::MalformedTimestampPathHttpDateOutput>(py)
 1653   1684   
            })
 1654   1685   
        })
 1655   1686   
    } else {
 1656   1687   
        ::tracing::trace!(
 1657   1688   
            name = "malformed_timestamp_path_http_date",
 1658   1689   
            "executing python handler function"
 1659   1690   
        );
 1660   1691   
        ::pyo3::Python::with_gil(|py| {
 1661   1692   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1662   1693   
            let output = if handler.args == 1 {
 1663   1694   
                pyhandler.call1((input,))?
 1664   1695   
            } else {
 1665   1696   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1666   1697   
            };
 1667   1698   
            output.extract::<crate::output::MalformedTimestampPathHttpDateOutput>()
 1668   1699   
        })
 1669   1700   
    };
 1670   1701   
    // Catch and record a Python traceback.
 1671   1702   
    result.map_err(|e| {
 1672   1703   
        let rich_py_err =
 1673   1704   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 1674   1705   
                e.clone_ref(py)
 1675   1706   
            }));
 1676   1707   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 1677   1708   
        e.into()
 1678   1709   
    })
 1679   1710   
}
 1680   1711   
        1712  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 1681   1713   
/// Python handler for operation `MalformedTimestampPathDefault`.
 1682   1714   
pub(crate) async fn malformed_timestamp_path_default(
 1683   1715   
    input: crate::input::MalformedTimestampPathDefaultInput,
 1684   1716   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 1685   1717   
    handler: ::aws_smithy_http_server_python::PyHandler,
 1686   1718   
) -> std::result::Result<
 1687   1719   
    crate::output::MalformedTimestampPathDefaultOutput,
 1688   1720   
    crate::error::MalformedTimestampPathDefaultError,
 1689   1721   
> {
 1690   1722   
    // Async block used to run the handler and catch any Python error.
 1691   1723   
    let result = if handler.is_coroutine {
 1692   1724   
        ::tracing::trace!(
 1693   1725   
            name = "malformed_timestamp_path_default",
 1694   1726   
            "executing python handler coroutine"
 1695   1727   
        );
 1696   1728   
        let result = ::pyo3::Python::with_gil(|py| {
 1697   1729   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1698   1730   
            let coroutine = if handler.args == 1 {
 1699   1731   
                pyhandler.call1((input,))?
 1700   1732   
            } else {
 1701   1733   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1702   1734   
            };
 1703   1735   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 1704   1736   
        })?;
 1705   1737   
        result.await.and_then(|r| {
 1706   1738   
            ::pyo3::Python::with_gil(|py| {
 1707   1739   
                r.extract::<crate::output::MalformedTimestampPathDefaultOutput>(py)
 1708   1740   
            })
 1709   1741   
        })
 1710   1742   
    } else {
 1711   1743   
        ::tracing::trace!(
 1712   1744   
            name = "malformed_timestamp_path_default",
 1713   1745   
            "executing python handler function"
 1714   1746   
        );
 1715   1747   
        ::pyo3::Python::with_gil(|py| {
 1716   1748   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1717   1749   
            let output = if handler.args == 1 {
 1718   1750   
                pyhandler.call1((input,))?
 1719   1751   
            } else {
 1720   1752   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1721   1753   
            };
 1722   1754   
            output.extract::<crate::output::MalformedTimestampPathDefaultOutput>()
 1723   1755   
        })
 1724   1756   
    };
 1725   1757   
    // Catch and record a Python traceback.
 1726   1758   
    result.map_err(|e| {
 1727   1759   
        let rich_py_err =
 1728   1760   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 1729   1761   
                e.clone_ref(py)
 1730   1762   
            }));
 1731   1763   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 1732   1764   
        e.into()
 1733   1765   
    })
 1734   1766   
}
 1735   1767   
        1768  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 1736   1769   
/// Python handler for operation `MalformedString`.
 1737   1770   
pub(crate) async fn malformed_string(
 1738   1771   
    input: crate::input::MalformedStringInput,
 1739   1772   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 1740   1773   
    handler: ::aws_smithy_http_server_python::PyHandler,
 1741   1774   
) -> std::result::Result<crate::output::MalformedStringOutput, crate::error::MalformedStringError> {
 1742   1775   
    // Async block used to run the handler and catch any Python error.
 1743   1776   
    let result = if handler.is_coroutine {
 1744   1777   
        ::tracing::trace!(
 1745   1778   
            name = "malformed_string",
 1746   1779   
            "executing python handler coroutine"
 1747   1780   
        );
 1748   1781   
        let result = ::pyo3::Python::with_gil(|py| {
 1749   1782   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1750   1783   
            let coroutine = if handler.args == 1 {
 1751   1784   
                pyhandler.call1((input,))?
 1752   1785   
            } else {
 1753   1786   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1754   1787   
            };
 1755   1788   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 1756   1789   
        })?;
 1757   1790   
        result.await.and_then(|r| {
 1758   1791   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::MalformedStringOutput>(py))
 1759   1792   
        })
 1760   1793   
    } else {
 1761   1794   
        ::tracing::trace!(
 1762   1795   
            name = "malformed_string",
 1763   1796   
            "executing python handler function"
 1764   1797   
        );
 1765   1798   
        ::pyo3::Python::with_gil(|py| {
 1766   1799   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1767   1800   
            let output = if handler.args == 1 {
 1768   1801   
                pyhandler.call1((input,))?
 1769   1802   
            } else {
 1770   1803   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1771   1804   
            };
 1772   1805   
            output.extract::<crate::output::MalformedStringOutput>()
 1773   1806   
        })
 1774   1807   
    };
 1775   1808   
    // Catch and record a Python traceback.
 1776   1809   
    result.map_err(|e| {
 1777   1810   
        let rich_py_err =
 1778   1811   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 1779   1812   
                e.clone_ref(py)
 1780   1813   
            }));
 1781   1814   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 1782   1815   
        e.into()
 1783   1816   
    })
 1784   1817   
}
 1785   1818   
        1819  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 1786   1820   
/// Python handler for operation `MalformedDouble`.
 1787   1821   
pub(crate) async fn malformed_double(
 1788   1822   
    input: crate::input::MalformedDoubleInput,
 1789   1823   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 1790   1824   
    handler: ::aws_smithy_http_server_python::PyHandler,
 1791   1825   
) -> std::result::Result<crate::output::MalformedDoubleOutput, crate::error::MalformedDoubleError> {
 1792   1826   
    // Async block used to run the handler and catch any Python error.
 1793   1827   
    let result = if handler.is_coroutine {
 1794   1828   
        ::tracing::trace!(
 1795   1829   
            name = "malformed_double",
 1796   1830   
            "executing python handler coroutine"
 1797   1831   
        );
 1798   1832   
        let result = ::pyo3::Python::with_gil(|py| {
 1799   1833   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1800   1834   
            let coroutine = if handler.args == 1 {
 1801   1835   
                pyhandler.call1((input,))?
 1802   1836   
            } else {
 1803   1837   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1804   1838   
            };
 1805   1839   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 1806   1840   
        })?;
 1807   1841   
        result.await.and_then(|r| {
 1808   1842   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::MalformedDoubleOutput>(py))
 1809   1843   
        })
 1810   1844   
    } else {
 1811   1845   
        ::tracing::trace!(
 1812   1846   
            name = "malformed_double",
 1813   1847   
            "executing python handler function"
 1814   1848   
        );
 1815   1849   
        ::pyo3::Python::with_gil(|py| {
 1816   1850   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1817   1851   
            let output = if handler.args == 1 {
 1818   1852   
                pyhandler.call1((input,))?
 1819   1853   
            } else {
 1820   1854   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1821   1855   
            };
 1822   1856   
            output.extract::<crate::output::MalformedDoubleOutput>()
 1823   1857   
        })
 1824   1858   
    };
 1825   1859   
    // Catch and record a Python traceback.
 1826   1860   
    result.map_err(|e| {
 1827   1861   
        let rich_py_err =
 1828   1862   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 1829   1863   
                e.clone_ref(py)
 1830   1864   
            }));
 1831   1865   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 1832   1866   
        e.into()
 1833   1867   
    })
 1834   1868   
}
 1835   1869   
        1870  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 1836   1871   
/// Python handler for operation `MalformedFloat`.
 1837   1872   
pub(crate) async fn malformed_float(
 1838   1873   
    input: crate::input::MalformedFloatInput,
 1839   1874   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 1840   1875   
    handler: ::aws_smithy_http_server_python::PyHandler,
 1841   1876   
) -> std::result::Result<crate::output::MalformedFloatOutput, crate::error::MalformedFloatError> {
 1842   1877   
    // Async block used to run the handler and catch any Python error.
 1843   1878   
    let result = if handler.is_coroutine {
 1844   1879   
        ::tracing::trace!(
 1845   1880   
            name = "malformed_float",
 1846   1881   
            "executing python handler coroutine"
 1847   1882   
        );
 1848   1883   
        let result = ::pyo3::Python::with_gil(|py| {
 1849   1884   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1850   1885   
            let coroutine = if handler.args == 1 {
 1851   1886   
                pyhandler.call1((input,))?
 1852   1887   
            } else {
 1853   1888   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1854   1889   
            };
 1855   1890   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 1856   1891   
        })?;
 1857   1892   
        result.await.and_then(|r| {
 1858   1893   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::MalformedFloatOutput>(py))
 1859   1894   
        })
 1860   1895   
    } else {
 1861   1896   
        ::tracing::trace!(
 1862   1897   
            name = "malformed_float",
 1863   1898   
            "executing python handler function"
 1864   1899   
        );
 1865   1900   
        ::pyo3::Python::with_gil(|py| {
 1866   1901   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1867   1902   
            let output = if handler.args == 1 {
 1868   1903   
                pyhandler.call1((input,))?
 1869   1904   
            } else {
 1870   1905   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1871   1906   
            };
 1872   1907   
            output.extract::<crate::output::MalformedFloatOutput>()
 1873   1908   
        })
 1874   1909   
    };
 1875   1910   
    // Catch and record a Python traceback.
 1876   1911   
    result.map_err(|e| {
 1877   1912   
        let rich_py_err =
 1878   1913   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 1879   1914   
                e.clone_ref(py)
 1880   1915   
            }));
 1881   1916   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 1882   1917   
        e.into()
 1883   1918   
    })
 1884   1919   
}
 1885   1920   
        1921  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 1886   1922   
/// Python handler for operation `MalformedLong`.
 1887   1923   
pub(crate) async fn malformed_long(
 1888   1924   
    input: crate::input::MalformedLongInput,
 1889   1925   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 1890   1926   
    handler: ::aws_smithy_http_server_python::PyHandler,
 1891   1927   
) -> std::result::Result<crate::output::MalformedLongOutput, crate::error::MalformedLongError> {
 1892   1928   
    // Async block used to run the handler and catch any Python error.
 1893   1929   
    let result = if handler.is_coroutine {
 1894   1930   
        ::tracing::trace!(
 1895   1931   
            name = "malformed_long",
 1896   1932   
            "executing python handler coroutine"
 1897   1933   
        );
 1898   1934   
        let result = ::pyo3::Python::with_gil(|py| {
 1899   1935   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1900   1936   
            let coroutine = if handler.args == 1 {
 1901   1937   
                pyhandler.call1((input,))?
 1902   1938   
            } else {
 1903   1939   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1904   1940   
            };
 1905   1941   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 1906   1942   
        })?;
 1907   1943   
        result.await.and_then(|r| {
 1908   1944   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::MalformedLongOutput>(py))
 1909   1945   
        })
 1910   1946   
    } else {
 1911   1947   
        ::tracing::trace!(name = "malformed_long", "executing python handler function");
 1912   1948   
        ::pyo3::Python::with_gil(|py| {
 1913   1949   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1914   1950   
            let output = if handler.args == 1 {
 1915   1951   
                pyhandler.call1((input,))?
 1916   1952   
            } else {
 1917   1953   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1918   1954   
            };
 1919   1955   
            output.extract::<crate::output::MalformedLongOutput>()
 1920   1956   
        })
 1921   1957   
    };
 1922   1958   
    // Catch and record a Python traceback.
 1923   1959   
    result.map_err(|e| {
 1924   1960   
        let rich_py_err =
 1925   1961   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 1926   1962   
                e.clone_ref(py)
 1927   1963   
            }));
 1928   1964   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 1929   1965   
        e.into()
 1930   1966   
    })
 1931   1967   
}
 1932   1968   
        1969  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 1933   1970   
/// Python handler for operation `MalformedShort`.
 1934   1971   
pub(crate) async fn malformed_short(
 1935   1972   
    input: crate::input::MalformedShortInput,
 1936   1973   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 1937   1974   
    handler: ::aws_smithy_http_server_python::PyHandler,
 1938   1975   
) -> std::result::Result<crate::output::MalformedShortOutput, crate::error::MalformedShortError> {
 1939   1976   
    // Async block used to run the handler and catch any Python error.
 1940   1977   
    let result = if handler.is_coroutine {
 1941   1978   
        ::tracing::trace!(
 1942   1979   
            name = "malformed_short",
 1943   1980   
            "executing python handler coroutine"
 1944   1981   
        );
 1945   1982   
        let result = ::pyo3::Python::with_gil(|py| {
 1946   1983   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1947   1984   
            let coroutine = if handler.args == 1 {
 1948   1985   
                pyhandler.call1((input,))?
 1949   1986   
            } else {
 1950   1987   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1951   1988   
            };
 1952   1989   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 1953   1990   
        })?;
 1954   1991   
        result.await.and_then(|r| {
 1955   1992   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::MalformedShortOutput>(py))
 1956   1993   
        })
 1957   1994   
    } else {
 1958   1995   
        ::tracing::trace!(
 1959   1996   
            name = "malformed_short",
 1960   1997   
            "executing python handler function"
 1961   1998   
        );
 1962   1999   
        ::pyo3::Python::with_gil(|py| {
 1963   2000   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1964   2001   
            let output = if handler.args == 1 {
 1965   2002   
                pyhandler.call1((input,))?
 1966   2003   
            } else {
 1967   2004   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 1968   2005   
            };
 1969   2006   
            output.extract::<crate::output::MalformedShortOutput>()
 1970   2007   
        })
 1971   2008   
    };
 1972   2009   
    // Catch and record a Python traceback.
 1973   2010   
    result.map_err(|e| {
 1974   2011   
        let rich_py_err =
 1975   2012   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 1976   2013   
                e.clone_ref(py)
 1977   2014   
            }));
 1978   2015   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 1979   2016   
        e.into()
 1980   2017   
    })
 1981   2018   
}
 1982   2019   
        2020  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 1983   2021   
/// Python handler for operation `MalformedByte`.
 1984   2022   
pub(crate) async fn malformed_byte(
 1985   2023   
    input: crate::input::MalformedByteInput,
 1986   2024   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 1987   2025   
    handler: ::aws_smithy_http_server_python::PyHandler,
 1988   2026   
) -> std::result::Result<crate::output::MalformedByteOutput, crate::error::MalformedByteError> {
 1989   2027   
    // Async block used to run the handler and catch any Python error.
 1990   2028   
    let result = if handler.is_coroutine {
 1991   2029   
        ::tracing::trace!(
 1992   2030   
            name = "malformed_byte",
 1993   2031   
            "executing python handler coroutine"
 1994   2032   
        );
 1995   2033   
        let result = ::pyo3::Python::with_gil(|py| {
 1996   2034   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 1997   2035   
            let coroutine = if handler.args == 1 {
 1998   2036   
                pyhandler.call1((input,))?
 1999   2037   
            } else {
 2000   2038   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2001   2039   
            };
 2002   2040   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 2003   2041   
        })?;
 2004   2042   
        result.await.and_then(|r| {
 2005   2043   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::MalformedByteOutput>(py))
 2006   2044   
        })
 2007   2045   
    } else {
 2008   2046   
        ::tracing::trace!(name = "malformed_byte", "executing python handler function");
 2009   2047   
        ::pyo3::Python::with_gil(|py| {
 2010   2048   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2011   2049   
            let output = if handler.args == 1 {
 2012   2050   
                pyhandler.call1((input,))?
 2013   2051   
            } else {
 2014   2052   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2015   2053   
            };
 2016   2054   
            output.extract::<crate::output::MalformedByteOutput>()
 2017   2055   
        })
 2018   2056   
    };
 2019   2057   
    // Catch and record a Python traceback.
 2020   2058   
    result.map_err(|e| {
 2021   2059   
        let rich_py_err =
 2022   2060   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 2023   2061   
                e.clone_ref(py)
 2024   2062   
            }));
 2025   2063   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 2026   2064   
        e.into()
 2027   2065   
    })
 2028   2066   
}
 2029   2067   
        2068  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 2030   2069   
/// Python handler for operation `MalformedBlob`.
 2031   2070   
pub(crate) async fn malformed_blob(
 2032   2071   
    input: crate::input::MalformedBlobInput,
 2033   2072   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 2034   2073   
    handler: ::aws_smithy_http_server_python::PyHandler,
 2035   2074   
) -> std::result::Result<crate::output::MalformedBlobOutput, crate::error::MalformedBlobError> {
 2036   2075   
    // Async block used to run the handler and catch any Python error.
 2037   2076   
    let result = if handler.is_coroutine {
 2038   2077   
        ::tracing::trace!(
 2039   2078   
            name = "malformed_blob",
 2040   2079   
            "executing python handler coroutine"
 2041   2080   
        );
 2042   2081   
        let result = ::pyo3::Python::with_gil(|py| {
 2043   2082   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2044   2083   
            let coroutine = if handler.args == 1 {
 2045   2084   
                pyhandler.call1((input,))?
 2046   2085   
            } else {
 2047   2086   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2048   2087   
            };
 2049   2088   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 2050   2089   
        })?;
 2051   2090   
        result.await.and_then(|r| {
 2052   2091   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::MalformedBlobOutput>(py))
 2053   2092   
        })
 2054   2093   
    } else {
 2055   2094   
        ::tracing::trace!(name = "malformed_blob", "executing python handler function");
 2056   2095   
        ::pyo3::Python::with_gil(|py| {
 2057   2096   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2058   2097   
            let output = if handler.args == 1 {
 2059   2098   
                pyhandler.call1((input,))?
 2060   2099   
            } else {
 2061   2100   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2062   2101   
            };
 2063   2102   
            output.extract::<crate::output::MalformedBlobOutput>()
 2064   2103   
        })
 2065   2104   
    };
 2066   2105   
    // Catch and record a Python traceback.
 2067   2106   
    result.map_err(|e| {
 2068   2107   
        let rich_py_err =
 2069   2108   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 2070   2109   
                e.clone_ref(py)
 2071   2110   
            }));
 2072   2111   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 2073   2112   
        e.into()
 2074   2113   
    })
 2075   2114   
}
 2076   2115   
        2116  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 2077   2117   
/// Python handler for operation `MalformedMap`.
 2078   2118   
pub(crate) async fn malformed_map(
 2079   2119   
    input: crate::input::MalformedMapInput,
 2080   2120   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 2081   2121   
    handler: ::aws_smithy_http_server_python::PyHandler,
 2082   2122   
) -> std::result::Result<crate::output::MalformedMapOutput, crate::error::MalformedMapError> {
 2083   2123   
    // Async block used to run the handler and catch any Python error.
 2084   2124   
    let result = if handler.is_coroutine {
 2085   2125   
        ::tracing::trace!(name = "malformed_map", "executing python handler coroutine");
 2086   2126   
        let result = ::pyo3::Python::with_gil(|py| {
 2087   2127   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2088   2128   
            let coroutine = if handler.args == 1 {
 2089   2129   
                pyhandler.call1((input,))?
 2090   2130   
            } else {
 2091   2131   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2092   2132   
            };
 2093   2133   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 2094   2134   
        })?;
 2095   2135   
        result.await.and_then(|r| {
 2096   2136   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::MalformedMapOutput>(py))
 2097   2137   
        })
 2098   2138   
    } else {
 2099   2139   
        ::tracing::trace!(name = "malformed_map", "executing python handler function");
 2100   2140   
        ::pyo3::Python::with_gil(|py| {
 2101   2141   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2102   2142   
            let output = if handler.args == 1 {
 2103   2143   
                pyhandler.call1((input,))?
 2104   2144   
            } else {
 2105   2145   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2106   2146   
            };
 2107   2147   
            output.extract::<crate::output::MalformedMapOutput>()
 2108   2148   
        })
 2109   2149   
    };
 2110   2150   
    // Catch and record a Python traceback.
 2111   2151   
    result.map_err(|e| {
 2112   2152   
        let rich_py_err =
 2113   2153   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 2114   2154   
                e.clone_ref(py)
 2115   2155   
            }));
 2116   2156   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 2117   2157   
        e.into()
 2118   2158   
    })
 2119   2159   
}
 2120   2160   
        2161  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 2121   2162   
/// Python handler for operation `MalformedList`.
 2122   2163   
pub(crate) async fn malformed_list(
 2123   2164   
    input: crate::input::MalformedListInput,
 2124   2165   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 2125   2166   
    handler: ::aws_smithy_http_server_python::PyHandler,
 2126   2167   
) -> std::result::Result<crate::output::MalformedListOutput, crate::error::MalformedListError> {
 2127   2168   
    // Async block used to run the handler and catch any Python error.
 2128   2169   
    let result = if handler.is_coroutine {
 2129   2170   
        ::tracing::trace!(
 2130   2171   
            name = "malformed_list",
 2131   2172   
            "executing python handler coroutine"
 2132   2173   
        );
 2133   2174   
        let result = ::pyo3::Python::with_gil(|py| {
 2134   2175   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2135   2176   
            let coroutine = if handler.args == 1 {
 2136   2177   
                pyhandler.call1((input,))?
 2137   2178   
            } else {
 2138   2179   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2139   2180   
            };
 2140   2181   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 2141   2182   
        })?;
 2142   2183   
        result.await.and_then(|r| {
 2143   2184   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::MalformedListOutput>(py))
 2144   2185   
        })
 2145   2186   
    } else {
 2146   2187   
        ::tracing::trace!(name = "malformed_list", "executing python handler function");
 2147   2188   
        ::pyo3::Python::with_gil(|py| {
 2148   2189   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2149   2190   
            let output = if handler.args == 1 {
 2150   2191   
                pyhandler.call1((input,))?
 2151   2192   
            } else {
 2152   2193   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2153   2194   
            };
 2154   2195   
            output.extract::<crate::output::MalformedListOutput>()
 2155   2196   
        })
 2156   2197   
    };
 2157   2198   
    // Catch and record a Python traceback.
 2158   2199   
    result.map_err(|e| {
 2159   2200   
        let rich_py_err =
 2160   2201   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 2161   2202   
                e.clone_ref(py)
 2162   2203   
            }));
 2163   2204   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 2164   2205   
        e.into()
 2165   2206   
    })
 2166   2207   
}
 2167   2208   
        2209  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 2168   2210   
/// Python handler for operation `MalformedBoolean`.
 2169   2211   
pub(crate) async fn malformed_boolean(
 2170   2212   
    input: crate::input::MalformedBooleanInput,
 2171   2213   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 2172   2214   
    handler: ::aws_smithy_http_server_python::PyHandler,
 2173   2215   
) -> std::result::Result<crate::output::MalformedBooleanOutput, crate::error::MalformedBooleanError>
 2174   2216   
{
 2175   2217   
    // Async block used to run the handler and catch any Python error.
 2176   2218   
    let result = if handler.is_coroutine {
 2177   2219   
        ::tracing::trace!(
 2178   2220   
            name = "malformed_boolean",
 2179   2221   
            "executing python handler coroutine"
 2180   2222   
        );
 2181   2223   
        let result = ::pyo3::Python::with_gil(|py| {
 2182   2224   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2183   2225   
            let coroutine = if handler.args == 1 {
 2184   2226   
                pyhandler.call1((input,))?
 2185   2227   
            } else {
 2186   2228   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2187   2229   
            };
 2188   2230   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 2189   2231   
        })?;
 2190   2232   
        result.await.and_then(|r| {
 2191   2233   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::MalformedBooleanOutput>(py))
 2192   2234   
        })
 2193   2235   
    } else {
 2194   2236   
        ::tracing::trace!(
 2195   2237   
            name = "malformed_boolean",
 2196   2238   
            "executing python handler function"
 2197   2239   
        );
 2198   2240   
        ::pyo3::Python::with_gil(|py| {
 2199   2241   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2200   2242   
            let output = if handler.args == 1 {
 2201   2243   
                pyhandler.call1((input,))?
 2202   2244   
            } else {
 2203   2245   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2204   2246   
            };
 2205   2247   
            output.extract::<crate::output::MalformedBooleanOutput>()
 2206   2248   
        })
 2207   2249   
    };
 2208   2250   
    // Catch and record a Python traceback.
 2209   2251   
    result.map_err(|e| {
 2210   2252   
        let rich_py_err =
 2211   2253   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 2212   2254   
                e.clone_ref(py)
 2213   2255   
            }));
 2214   2256   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 2215   2257   
        e.into()
 2216   2258   
    })
 2217   2259   
}
 2218   2260   
        2261  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 2219   2262   
/// Python handler for operation `MalformedUnion`.
 2220   2263   
pub(crate) async fn malformed_union(
 2221   2264   
    input: crate::input::MalformedUnionInput,
 2222   2265   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 2223   2266   
    handler: ::aws_smithy_http_server_python::PyHandler,
 2224   2267   
) -> std::result::Result<crate::output::MalformedUnionOutput, crate::error::MalformedUnionError> {
 2225   2268   
    // Async block used to run the handler and catch any Python error.
 2226   2269   
    let result = if handler.is_coroutine {
 2227   2270   
        ::tracing::trace!(
 2228   2271   
            name = "malformed_union",
 2229   2272   
            "executing python handler coroutine"
 2230   2273   
        );
 2231   2274   
        let result = ::pyo3::Python::with_gil(|py| {
 2232   2275   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2233   2276   
            let coroutine = if handler.args == 1 {
 2234   2277   
                pyhandler.call1((input,))?
 2235   2278   
            } else {
 2236   2279   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2237   2280   
            };
 2238   2281   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 2239   2282   
        })?;
 2240   2283   
        result.await.and_then(|r| {
 2241   2284   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::MalformedUnionOutput>(py))
 2242   2285   
        })
 2243   2286   
    } else {
 2244   2287   
        ::tracing::trace!(
 2245   2288   
            name = "malformed_union",
 2246   2289   
            "executing python handler function"
 2247   2290   
        );
 2248   2291   
        ::pyo3::Python::with_gil(|py| {
 2249   2292   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2250   2293   
            let output = if handler.args == 1 {
 2251   2294   
                pyhandler.call1((input,))?
 2252   2295   
            } else {
 2253   2296   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2254   2297   
            };
 2255   2298   
            output.extract::<crate::output::MalformedUnionOutput>()
 2256   2299   
        })
 2257   2300   
    };
 2258   2301   
    // Catch and record a Python traceback.
 2259   2302   
    result.map_err(|e| {
 2260   2303   
        let rich_py_err =
 2261   2304   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 2262   2305   
                e.clone_ref(py)
 2263   2306   
            }));
 2264   2307   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 2265   2308   
        e.into()
 2266   2309   
    })
 2267   2310   
}
 2268   2311   
        2312  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 2269   2313   
/// Python handler for operation `MalformedInteger`.
 2270   2314   
pub(crate) async fn malformed_integer(
 2271   2315   
    input: crate::input::MalformedIntegerInput,
 2272   2316   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 2273   2317   
    handler: ::aws_smithy_http_server_python::PyHandler,
 2274   2318   
) -> std::result::Result<crate::output::MalformedIntegerOutput, crate::error::MalformedIntegerError>
 2275   2319   
{
 2276   2320   
    // Async block used to run the handler and catch any Python error.
 2277   2321   
    let result = if handler.is_coroutine {
 2278   2322   
        ::tracing::trace!(
 2279   2323   
            name = "malformed_integer",
 2280   2324   
            "executing python handler coroutine"
 2281   2325   
        );
 2282   2326   
        let result = ::pyo3::Python::with_gil(|py| {
 2283   2327   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2284   2328   
            let coroutine = if handler.args == 1 {
 2285   2329   
                pyhandler.call1((input,))?
 2286   2330   
            } else {
 2287   2331   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2288   2332   
            };
 2289   2333   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 2290   2334   
        })?;
 2291   2335   
        result.await.and_then(|r| {
 2292   2336   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::MalformedIntegerOutput>(py))
 2293   2337   
        })
 2294   2338   
    } else {
 2295   2339   
        ::tracing::trace!(
 2296   2340   
            name = "malformed_integer",
 2297   2341   
            "executing python handler function"
 2298   2342   
        );
 2299   2343   
        ::pyo3::Python::with_gil(|py| {
 2300   2344   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2301   2345   
            let output = if handler.args == 1 {
 2302   2346   
                pyhandler.call1((input,))?
 2303   2347   
            } else {
 2304   2348   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2305   2349   
            };
 2306   2350   
            output.extract::<crate::output::MalformedIntegerOutput>()
 2307   2351   
        })
 2308   2352   
    };
 2309   2353   
    // Catch and record a Python traceback.
 2310   2354   
    result.map_err(|e| {
 2311   2355   
        let rich_py_err =
 2312   2356   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 2313   2357   
                e.clone_ref(py)
 2314   2358   
            }));
 2315   2359   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 2316   2360   
        e.into()
 2317   2361   
    })
 2318   2362   
}
 2319   2363   
        2364  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 2320   2365   
/// Python handler for operation `MalformedRequestBody`.
 2321   2366   
pub(crate) async fn malformed_request_body(
 2322   2367   
    input: crate::input::MalformedRequestBodyInput,
 2323   2368   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 2324   2369   
    handler: ::aws_smithy_http_server_python::PyHandler,
 2325   2370   
) -> std::result::Result<
 2326   2371   
    crate::output::MalformedRequestBodyOutput,
 2327   2372   
    crate::error::MalformedRequestBodyError,
 2328   2373   
> {
 2329   2374   
    // Async block used to run the handler and catch any Python error.
 2330   2375   
    let result = if handler.is_coroutine {
 2331   2376   
        ::tracing::trace!(
 2332   2377   
            name = "malformed_request_body",
 2333   2378   
            "executing python handler coroutine"
 2334   2379   
        );
 2335   2380   
        let result = ::pyo3::Python::with_gil(|py| {
 2336   2381   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2337   2382   
            let coroutine = if handler.args == 1 {
 2338   2383   
                pyhandler.call1((input,))?
 2339   2384   
            } else {
 2340   2385   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2341   2386   
            };
 2342   2387   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 2343   2388   
        })?;
 2344   2389   
        result.await.and_then(|r| {
 2345   2390   
            ::pyo3::Python::with_gil(|py| {
 2346   2391   
                r.extract::<crate::output::MalformedRequestBodyOutput>(py)
 2347   2392   
            })
 2348   2393   
        })
 2349   2394   
    } else {
 2350   2395   
        ::tracing::trace!(
 2351   2396   
            name = "malformed_request_body",
 2352   2397   
            "executing python handler function"
 2353   2398   
        );
 2354   2399   
        ::pyo3::Python::with_gil(|py| {
 2355   2400   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2356   2401   
            let output = if handler.args == 1 {
 2357   2402   
                pyhandler.call1((input,))?
 2358   2403   
            } else {
 2359   2404   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2360   2405   
            };
 2361   2406   
            output.extract::<crate::output::MalformedRequestBodyOutput>()
 2362   2407   
        })
 2363   2408   
    };
 2364   2409   
    // Catch and record a Python traceback.
 2365   2410   
    result.map_err(|e| {
 2366   2411   
        let rich_py_err =
 2367   2412   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 2368   2413   
                e.clone_ref(py)
 2369   2414   
            }));
 2370   2415   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 2371   2416   
        e.into()
 2372   2417   
    })
 2373   2418   
}
 2374   2419   
        2420  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 2375   2421   
/// Python handler for operation `HttpChecksumRequired`.
 2376   2422   
pub(crate) async fn http_checksum_required(
 2377   2423   
    input: crate::input::HttpChecksumRequiredInput,
 2378   2424   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 2379   2425   
    handler: ::aws_smithy_http_server_python::PyHandler,
 2380   2426   
) -> std::result::Result<
 2381   2427   
    crate::output::HttpChecksumRequiredOutput,
 2382   2428   
    crate::error::HttpChecksumRequiredError,
 2383   2429   
> {
 2384   2430   
    // Async block used to run the handler and catch any Python error.
 2385   2431   
    let result = if handler.is_coroutine {
 2386   2432   
        ::tracing::trace!(
 2387   2433   
            name = "http_checksum_required",
 2388   2434   
            "executing python handler coroutine"
 2389   2435   
        );
 2390   2436   
        let result = ::pyo3::Python::with_gil(|py| {
 2391   2437   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2392   2438   
            let coroutine = if handler.args == 1 {
 2393   2439   
                pyhandler.call1((input,))?
 2394   2440   
            } else {
 2395   2441   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2396   2442   
            };
 2397   2443   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 2398   2444   
        })?;
 2399   2445   
        result.await.and_then(|r| {
 2400   2446   
            ::pyo3::Python::with_gil(|py| {
 2401   2447   
                r.extract::<crate::output::HttpChecksumRequiredOutput>(py)
 2402   2448   
            })
 2403   2449   
        })
 2404   2450   
    } else {
 2405   2451   
        ::tracing::trace!(
 2406   2452   
            name = "http_checksum_required",
 2407   2453   
            "executing python handler function"
 2408   2454   
        );
 2409   2455   
        ::pyo3::Python::with_gil(|py| {
 2410   2456   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2411   2457   
            let output = if handler.args == 1 {
 2412   2458   
                pyhandler.call1((input,))?
 2413   2459   
            } else {
 2414   2460   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2415   2461   
            };
 2416   2462   
            output.extract::<crate::output::HttpChecksumRequiredOutput>()
 2417   2463   
        })
 2418   2464   
    };
 2419   2465   
    // Catch and record a Python traceback.
 2420   2466   
    result.map_err(|e| {
 2421   2467   
        let rich_py_err =
 2422   2468   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 2423   2469   
                e.clone_ref(py)
 2424   2470   
            }));
 2425   2471   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 2426   2472   
        e.into()
 2427   2473   
    })
 2428   2474   
}
 2429   2475   
        2476  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 2430   2477   
/// Python handler for operation `HostWithPathOperation`.
 2431   2478   
pub(crate) async fn host_with_path_operation(
 2432   2479   
    input: crate::input::HostWithPathOperationInput,
 2433   2480   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 2434   2481   
    handler: ::aws_smithy_http_server_python::PyHandler,
 2435   2482   
) -> std::result::Result<
 2436   2483   
    crate::output::HostWithPathOperationOutput,
 2437   2484   
    crate::error::HostWithPathOperationError,
 2438   2485   
> {
 2439   2486   
    // Async block used to run the handler and catch any Python error.
 2440   2487   
    let result = if handler.is_coroutine {
 2441   2488   
        ::tracing::trace!(
 2442   2489   
            name = "host_with_path_operation",
 2443   2490   
            "executing python handler coroutine"
 2444   2491   
        );
 2445   2492   
        let result = ::pyo3::Python::with_gil(|py| {
 2446   2493   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2447   2494   
            let coroutine = if handler.args == 1 {
 2448   2495   
                pyhandler.call1((input,))?
 2449   2496   
            } else {
 2450   2497   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2451   2498   
            };
 2452   2499   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 2453   2500   
        })?;
 2454   2501   
        result.await.and_then(|r| {
 2455   2502   
            ::pyo3::Python::with_gil(|py| {
 2456   2503   
                r.extract::<crate::output::HostWithPathOperationOutput>(py)
 2457   2504   
            })
 2458   2505   
        })
 2459   2506   
    } else {
 2460   2507   
        ::tracing::trace!(
 2461   2508   
            name = "host_with_path_operation",
 2462   2509   
            "executing python handler function"
 2463   2510   
        );
 2464   2511   
        ::pyo3::Python::with_gil(|py| {
 2465   2512   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2466   2513   
            let output = if handler.args == 1 {
 2467   2514   
                pyhandler.call1((input,))?
 2468   2515   
            } else {
 2469   2516   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2470   2517   
            };
 2471   2518   
            output.extract::<crate::output::HostWithPathOperationOutput>()
 2472   2519   
        })
 2473   2520   
    };
 2474   2521   
    // Catch and record a Python traceback.
 2475   2522   
    result.map_err(|e| {
 2476   2523   
        let rich_py_err =
 2477   2524   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 2478   2525   
                e.clone_ref(py)
 2479   2526   
            }));
 2480   2527   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 2481   2528   
        e.into()
 2482   2529   
    })
 2483   2530   
}
 2484   2531   
        2532  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 2485   2533   
/// Python handler for operation `EndpointWithHostLabelOperation`.
 2486   2534   
pub(crate) async fn endpoint_with_host_label_operation(
 2487   2535   
    input: crate::input::EndpointWithHostLabelOperationInput,
 2488   2536   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 2489   2537   
    handler: ::aws_smithy_http_server_python::PyHandler,
 2490   2538   
) -> std::result::Result<
 2491   2539   
    crate::output::EndpointWithHostLabelOperationOutput,
 2492   2540   
    crate::error::EndpointWithHostLabelOperationError,
 2493   2541   
> {
 2494   2542   
    // Async block used to run the handler and catch any Python error.
 2495   2543   
    let result = if handler.is_coroutine {
 2496   2544   
        ::tracing::trace!(
 2497   2545   
            name = "endpoint_with_host_label_operation",
 2498   2546   
            "executing python handler coroutine"
 2499   2547   
        );
 2500   2548   
        let result = ::pyo3::Python::with_gil(|py| {
 2501   2549   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2502   2550   
            let coroutine = if handler.args == 1 {
 2503   2551   
                pyhandler.call1((input,))?
 2504   2552   
            } else {
 2505   2553   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2506   2554   
            };
 2507   2555   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 2508   2556   
        })?;
 2509   2557   
        result.await.and_then(|r| {
 2510   2558   
            ::pyo3::Python::with_gil(|py| {
 2511   2559   
                r.extract::<crate::output::EndpointWithHostLabelOperationOutput>(py)
 2512   2560   
            })
 2513   2561   
        })
 2514   2562   
    } else {
 2515   2563   
        ::tracing::trace!(
 2516   2564   
            name = "endpoint_with_host_label_operation",
 2517   2565   
            "executing python handler function"
 2518   2566   
        );
 2519   2567   
        ::pyo3::Python::with_gil(|py| {
 2520   2568   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2521   2569   
            let output = if handler.args == 1 {
 2522   2570   
                pyhandler.call1((input,))?
 2523   2571   
            } else {
 2524   2572   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2525   2573   
            };
 2526   2574   
            output.extract::<crate::output::EndpointWithHostLabelOperationOutput>()
 2527   2575   
        })
 2528   2576   
    };
 2529   2577   
    // Catch and record a Python traceback.
 2530   2578   
    result.map_err(|e| {
 2531   2579   
        let rich_py_err =
 2532   2580   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 2533   2581   
                e.clone_ref(py)
 2534   2582   
            }));
 2535   2583   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 2536   2584   
        e.into()
 2537   2585   
    })
 2538   2586   
}
 2539   2587   
        2588  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 2540   2589   
/// Python handler for operation `EndpointOperation`.
 2541   2590   
pub(crate) async fn endpoint_operation(
 2542   2591   
    input: crate::input::EndpointOperationInput,
 2543   2592   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 2544   2593   
    handler: ::aws_smithy_http_server_python::PyHandler,
 2545   2594   
) -> std::result::Result<crate::output::EndpointOperationOutput, crate::error::EndpointOperationError>
 2546   2595   
{
 2547   2596   
    // Async block used to run the handler and catch any Python error.
 2548   2597   
    let result = if handler.is_coroutine {
 2549   2598   
        ::tracing::trace!(
 2550   2599   
            name = "endpoint_operation",
 2551   2600   
            "executing python handler coroutine"
 2552   2601   
        );
 2553   2602   
        let result = ::pyo3::Python::with_gil(|py| {
 2554   2603   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2555   2604   
            let coroutine = if handler.args == 1 {
 2556   2605   
                pyhandler.call1((input,))?
 2557   2606   
            } else {
 2558   2607   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2559   2608   
            };
 2560   2609   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 2561   2610   
        })?;
 2562   2611   
        result.await.and_then(|r| {
 2563   2612   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::EndpointOperationOutput>(py))
 2564   2613   
        })
 2565   2614   
    } else {
 2566   2615   
        ::tracing::trace!(
 2567   2616   
            name = "endpoint_operation",
 2568   2617   
            "executing python handler function"
 2569   2618   
        );
 2570   2619   
        ::pyo3::Python::with_gil(|py| {
 2571   2620   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2572   2621   
            let output = if handler.args == 1 {
 2573   2622   
                pyhandler.call1((input,))?
 2574   2623   
            } else {
 2575   2624   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2576   2625   
            };
 2577   2626   
            output.extract::<crate::output::EndpointOperationOutput>()
 2578   2627   
        })
 2579   2628   
    };
 2580   2629   
    // Catch and record a Python traceback.
 2581   2630   
    result.map_err(|e| {
 2582   2631   
        let rich_py_err =
 2583   2632   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 2584   2633   
                e.clone_ref(py)
 2585   2634   
            }));
 2586   2635   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 2587   2636   
        e.into()
 2588   2637   
    })
 2589   2638   
}
 2590   2639   
        2640  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 2591   2641   
/// Python handler for operation `PostUnionWithJsonName`.
 2592   2642   
pub(crate) async fn post_union_with_json_name(
 2593   2643   
    input: crate::input::PostUnionWithJsonNameInput,
 2594   2644   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 2595   2645   
    handler: ::aws_smithy_http_server_python::PyHandler,
 2596   2646   
) -> std::result::Result<
 2597   2647   
    crate::output::PostUnionWithJsonNameOutput,
 2598   2648   
    crate::error::PostUnionWithJsonNameError,
 2599   2649   
> {
 2600   2650   
    // Async block used to run the handler and catch any Python error.
 2601   2651   
    let result = if handler.is_coroutine {
 2602   2652   
        ::tracing::trace!(
 2603   2653   
            name = "post_union_with_json_name",
 2604   2654   
            "executing python handler coroutine"
 2605   2655   
        );
 2606   2656   
        let result = ::pyo3::Python::with_gil(|py| {
 2607   2657   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2608   2658   
            let coroutine = if handler.args == 1 {
 2609   2659   
                pyhandler.call1((input,))?
 2610   2660   
            } else {
 2611   2661   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2612   2662   
            };
 2613   2663   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 2614   2664   
        })?;
 2615   2665   
        result.await.and_then(|r| {
 2616   2666   
            ::pyo3::Python::with_gil(|py| {
 2617   2667   
                r.extract::<crate::output::PostUnionWithJsonNameOutput>(py)
 2618   2668   
            })
 2619   2669   
        })
 2620   2670   
    } else {
 2621   2671   
        ::tracing::trace!(
 2622   2672   
            name = "post_union_with_json_name",
 2623   2673   
            "executing python handler function"
 2624   2674   
        );
 2625   2675   
        ::pyo3::Python::with_gil(|py| {
 2626   2676   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2627   2677   
            let output = if handler.args == 1 {
 2628   2678   
                pyhandler.call1((input,))?
 2629   2679   
            } else {
 2630   2680   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2631   2681   
            };
 2632   2682   
            output.extract::<crate::output::PostUnionWithJsonNameOutput>()
 2633   2683   
        })
 2634   2684   
    };
 2635   2685   
    // Catch and record a Python traceback.
 2636   2686   
    result.map_err(|e| {
 2637   2687   
        let rich_py_err =
 2638   2688   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 2639   2689   
                e.clone_ref(py)
 2640   2690   
            }));
 2641   2691   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 2642   2692   
        e.into()
 2643   2693   
    })
 2644   2694   
}
 2645   2695   
        2696  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 2646   2697   
/// Python handler for operation `PostPlayerAction`.
 2647   2698   
pub(crate) async fn post_player_action(
 2648   2699   
    input: crate::input::PostPlayerActionInput,
 2649   2700   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 2650   2701   
    handler: ::aws_smithy_http_server_python::PyHandler,
 2651   2702   
) -> std::result::Result<crate::output::PostPlayerActionOutput, crate::error::PostPlayerActionError>
 2652   2703   
{
 2653   2704   
    // Async block used to run the handler and catch any Python error.
 2654   2705   
    let result = if handler.is_coroutine {
 2655   2706   
        ::tracing::trace!(
 2656   2707   
            name = "post_player_action",
 2657   2708   
            "executing python handler coroutine"
 2658   2709   
        );
 2659   2710   
        let result = ::pyo3::Python::with_gil(|py| {
 2660   2711   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2661   2712   
            let coroutine = if handler.args == 1 {
 2662   2713   
                pyhandler.call1((input,))?
 2663   2714   
            } else {
 2664   2715   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2665   2716   
            };
 2666   2717   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 2667   2718   
        })?;
 2668   2719   
        result.await.and_then(|r| {
 2669   2720   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::PostPlayerActionOutput>(py))
 2670   2721   
        })
 2671   2722   
    } else {
 2672   2723   
        ::tracing::trace!(
 2673   2724   
            name = "post_player_action",
 2674   2725   
            "executing python handler function"
 2675   2726   
        );
 2676   2727   
        ::pyo3::Python::with_gil(|py| {
 2677   2728   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2678   2729   
            let output = if handler.args == 1 {
 2679   2730   
                pyhandler.call1((input,))?
 2680   2731   
            } else {
 2681   2732   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2682   2733   
            };
 2683   2734   
            output.extract::<crate::output::PostPlayerActionOutput>()
 2684   2735   
        })
 2685   2736   
    };
 2686   2737   
    // Catch and record a Python traceback.
 2687   2738   
    result.map_err(|e| {
 2688   2739   
        let rich_py_err =
 2689   2740   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 2690   2741   
                e.clone_ref(py)
 2691   2742   
            }));
 2692   2743   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 2693   2744   
        e.into()
 2694   2745   
    })
 2695   2746   
}
 2696   2747   
        2748  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 2697   2749   
/// Python handler for operation `JsonUnions`.
 2698   2750   
pub(crate) async fn json_unions(
 2699   2751   
    input: crate::input::JsonUnionsInput,
 2700   2752   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 2701   2753   
    handler: ::aws_smithy_http_server_python::PyHandler,
 2702   2754   
) -> std::result::Result<crate::output::JsonUnionsOutput, crate::error::JsonUnionsError> {
 2703   2755   
    // Async block used to run the handler and catch any Python error.
 2704   2756   
    let result = if handler.is_coroutine {
 2705   2757   
        ::tracing::trace!(name = "json_unions", "executing python handler coroutine");
 2706   2758   
        let result = ::pyo3::Python::with_gil(|py| {
 2707   2759   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2708   2760   
            let coroutine = if handler.args == 1 {
 2709   2761   
                pyhandler.call1((input,))?
 2710   2762   
            } else {
 2711   2763   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2712   2764   
            };
 2713   2765   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 2714   2766   
        })?;
 2715   2767   
        result.await.and_then(|r| {
 2716   2768   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::JsonUnionsOutput>(py))
 2717   2769   
        })
 2718   2770   
    } else {
 2719   2771   
        ::tracing::trace!(name = "json_unions", "executing python handler function");
 2720   2772   
        ::pyo3::Python::with_gil(|py| {
 2721   2773   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2722   2774   
            let output = if handler.args == 1 {
 2723   2775   
                pyhandler.call1((input,))?
 2724   2776   
            } else {
 2725   2777   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2726   2778   
            };
 2727   2779   
            output.extract::<crate::output::JsonUnionsOutput>()
 2728   2780   
        })
 2729   2781   
    };
 2730   2782   
    // Catch and record a Python traceback.
 2731   2783   
    result.map_err(|e| {
 2732   2784   
        let rich_py_err =
 2733   2785   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 2734   2786   
                e.clone_ref(py)
 2735   2787   
            }));
 2736   2788   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 2737   2789   
        e.into()
 2738   2790   
    })
 2739   2791   
}
 2740   2792   
        2793  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 2741   2794   
/// Python handler for operation `DocumentTypeAsMapValue`.
 2742   2795   
pub(crate) async fn document_type_as_map_value(
 2743   2796   
    input: crate::input::DocumentTypeAsMapValueInput,
 2744   2797   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 2745   2798   
    handler: ::aws_smithy_http_server_python::PyHandler,
 2746   2799   
) -> std::result::Result<
 2747   2800   
    crate::output::DocumentTypeAsMapValueOutput,
 2748   2801   
    crate::error::DocumentTypeAsMapValueError,
 2749   2802   
> {
 2750   2803   
    // Async block used to run the handler and catch any Python error.
 2751   2804   
    let result = if handler.is_coroutine {
 2752   2805   
        ::tracing::trace!(
 2753   2806   
            name = "document_type_as_map_value",
 2754   2807   
            "executing python handler coroutine"
 2755   2808   
        );
 2756   2809   
        let result = ::pyo3::Python::with_gil(|py| {
 2757   2810   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2758   2811   
            let coroutine = if handler.args == 1 {
 2759   2812   
                pyhandler.call1((input,))?
 2760   2813   
            } else {
 2761   2814   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2762   2815   
            };
 2763   2816   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 2764   2817   
        })?;
 2765   2818   
        result.await.and_then(|r| {
 2766   2819   
            ::pyo3::Python::with_gil(|py| {
 2767   2820   
                r.extract::<crate::output::DocumentTypeAsMapValueOutput>(py)
 2768   2821   
            })
 2769   2822   
        })
 2770   2823   
    } else {
 2771   2824   
        ::tracing::trace!(
 2772   2825   
            name = "document_type_as_map_value",
 2773   2826   
            "executing python handler function"
 2774   2827   
        );
 2775   2828   
        ::pyo3::Python::with_gil(|py| {
 2776   2829   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2777   2830   
            let output = if handler.args == 1 {
 2778   2831   
                pyhandler.call1((input,))?
 2779   2832   
            } else {
 2780   2833   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2781   2834   
            };
 2782   2835   
            output.extract::<crate::output::DocumentTypeAsMapValueOutput>()
 2783   2836   
        })
 2784   2837   
    };
 2785   2838   
    // Catch and record a Python traceback.
 2786   2839   
    result.map_err(|e| {
 2787   2840   
        let rich_py_err =
 2788   2841   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 2789   2842   
                e.clone_ref(py)
 2790   2843   
            }));
 2791   2844   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 2792   2845   
        e.into()
 2793   2846   
    })
 2794   2847   
}
 2795   2848   
        2849  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 2796   2850   
/// Python handler for operation `DocumentTypeAsPayload`.
 2797   2851   
pub(crate) async fn document_type_as_payload(
 2798   2852   
    input: crate::input::DocumentTypeAsPayloadInput,
 2799   2853   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 2800   2854   
    handler: ::aws_smithy_http_server_python::PyHandler,
 2801   2855   
) -> std::result::Result<
 2802   2856   
    crate::output::DocumentTypeAsPayloadOutput,
 2803   2857   
    crate::error::DocumentTypeAsPayloadError,
 2804   2858   
> {
 2805   2859   
    // Async block used to run the handler and catch any Python error.
 2806   2860   
    let result = if handler.is_coroutine {
 2807   2861   
        ::tracing::trace!(
 2808   2862   
            name = "document_type_as_payload",
 2809   2863   
            "executing python handler coroutine"
 2810   2864   
        );
 2811   2865   
        let result = ::pyo3::Python::with_gil(|py| {
 2812   2866   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2813   2867   
            let coroutine = if handler.args == 1 {
 2814   2868   
                pyhandler.call1((input,))?
 2815   2869   
            } else {
 2816   2870   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2817   2871   
            };
 2818   2872   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 2819   2873   
        })?;
 2820   2874   
        result.await.and_then(|r| {
 2821   2875   
            ::pyo3::Python::with_gil(|py| {
 2822   2876   
                r.extract::<crate::output::DocumentTypeAsPayloadOutput>(py)
 2823   2877   
            })
 2824   2878   
        })
 2825   2879   
    } else {
 2826   2880   
        ::tracing::trace!(
 2827   2881   
            name = "document_type_as_payload",
 2828   2882   
            "executing python handler function"
 2829   2883   
        );
 2830   2884   
        ::pyo3::Python::with_gil(|py| {
 2831   2885   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2832   2886   
            let output = if handler.args == 1 {
 2833   2887   
                pyhandler.call1((input,))?
 2834   2888   
            } else {
 2835   2889   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2836   2890   
            };
 2837   2891   
            output.extract::<crate::output::DocumentTypeAsPayloadOutput>()
 2838   2892   
        })
 2839   2893   
    };
 2840   2894   
    // Catch and record a Python traceback.
 2841   2895   
    result.map_err(|e| {
 2842   2896   
        let rich_py_err =
 2843   2897   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 2844   2898   
                e.clone_ref(py)
 2845   2899   
            }));
 2846   2900   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 2847   2901   
        e.into()
 2848   2902   
    })
 2849   2903   
}
 2850   2904   
        2905  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 2851   2906   
/// Python handler for operation `DocumentType`.
 2852   2907   
pub(crate) async fn document_type(
 2853   2908   
    input: crate::input::DocumentTypeInput,
 2854   2909   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 2855   2910   
    handler: ::aws_smithy_http_server_python::PyHandler,
 2856   2911   
) -> std::result::Result<crate::output::DocumentTypeOutput, crate::error::DocumentTypeError> {
 2857   2912   
    // Async block used to run the handler and catch any Python error.
 2858   2913   
    let result = if handler.is_coroutine {
 2859   2914   
        ::tracing::trace!(name = "document_type", "executing python handler coroutine");
 2860   2915   
        let result = ::pyo3::Python::with_gil(|py| {
 2861   2916   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2862   2917   
            let coroutine = if handler.args == 1 {
 2863   2918   
                pyhandler.call1((input,))?
 2864   2919   
            } else {
 2865   2920   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2866   2921   
            };
 2867   2922   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 2868   2923   
        })?;
 2869   2924   
        result.await.and_then(|r| {
 2870   2925   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::DocumentTypeOutput>(py))
 2871   2926   
        })
 2872   2927   
    } else {
 2873   2928   
        ::tracing::trace!(name = "document_type", "executing python handler function");
 2874   2929   
        ::pyo3::Python::with_gil(|py| {
 2875   2930   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2876   2931   
            let output = if handler.args == 1 {
 2877   2932   
                pyhandler.call1((input,))?
 2878   2933   
            } else {
 2879   2934   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2880   2935   
            };
 2881   2936   
            output.extract::<crate::output::DocumentTypeOutput>()
 2882   2937   
        })
 2883   2938   
    };
 2884   2939   
    // Catch and record a Python traceback.
 2885   2940   
    result.map_err(|e| {
 2886   2941   
        let rich_py_err =
 2887   2942   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 2888   2943   
                e.clone_ref(py)
 2889   2944   
            }));
 2890   2945   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 2891   2946   
        e.into()
 2892   2947   
    })
 2893   2948   
}
 2894   2949   
        2950  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 2895   2951   
/// Python handler for operation `JsonBlobs`.
 2896   2952   
pub(crate) async fn json_blobs(
 2897   2953   
    input: crate::input::JsonBlobsInput,
 2898   2954   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 2899   2955   
    handler: ::aws_smithy_http_server_python::PyHandler,
 2900   2956   
) -> std::result::Result<crate::output::JsonBlobsOutput, crate::error::JsonBlobsError> {
 2901   2957   
    // Async block used to run the handler and catch any Python error.
 2902   2958   
    let result = if handler.is_coroutine {
 2903   2959   
        ::tracing::trace!(name = "json_blobs", "executing python handler coroutine");
 2904   2960   
        let result = ::pyo3::Python::with_gil(|py| {
 2905   2961   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2906   2962   
            let coroutine = if handler.args == 1 {
 2907   2963   
                pyhandler.call1((input,))?
 2908   2964   
            } else {
 2909   2965   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2910   2966   
            };
 2911   2967   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 2912   2968   
        })?;
 2913   2969   
        result.await.and_then(|r| {
 2914   2970   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::JsonBlobsOutput>(py))
 2915   2971   
        })
 2916   2972   
    } else {
 2917   2973   
        ::tracing::trace!(name = "json_blobs", "executing python handler function");
 2918   2974   
        ::pyo3::Python::with_gil(|py| {
 2919   2975   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2920   2976   
            let output = if handler.args == 1 {
 2921   2977   
                pyhandler.call1((input,))?
 2922   2978   
            } else {
 2923   2979   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2924   2980   
            };
 2925   2981   
            output.extract::<crate::output::JsonBlobsOutput>()
 2926   2982   
        })
 2927   2983   
    };
 2928   2984   
    // Catch and record a Python traceback.
 2929   2985   
    result.map_err(|e| {
 2930   2986   
        let rich_py_err =
 2931   2987   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 2932   2988   
                e.clone_ref(py)
 2933   2989   
            }));
 2934   2990   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 2935   2991   
        e.into()
 2936   2992   
    })
 2937   2993   
}
 2938   2994   
        2995  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 2939   2996   
/// Python handler for operation `SparseJsonMaps`.
 2940   2997   
pub(crate) async fn sparse_json_maps(
 2941   2998   
    input: crate::input::SparseJsonMapsInput,
 2942   2999   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 2943   3000   
    handler: ::aws_smithy_http_server_python::PyHandler,
 2944   3001   
) -> std::result::Result<crate::output::SparseJsonMapsOutput, crate::error::SparseJsonMapsError> {
 2945   3002   
    // Async block used to run the handler and catch any Python error.
 2946   3003   
    let result = if handler.is_coroutine {
 2947   3004   
        ::tracing::trace!(
 2948   3005   
            name = "sparse_json_maps",
 2949   3006   
            "executing python handler coroutine"
 2950   3007   
        );
 2951   3008   
        let result = ::pyo3::Python::with_gil(|py| {
 2952   3009   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2953   3010   
            let coroutine = if handler.args == 1 {
 2954   3011   
                pyhandler.call1((input,))?
 2955   3012   
            } else {
 2956   3013   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2957   3014   
            };
 2958   3015   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 2959   3016   
        })?;
 2960   3017   
        result.await.and_then(|r| {
 2961   3018   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::SparseJsonMapsOutput>(py))
 2962   3019   
        })
 2963   3020   
    } else {
 2964   3021   
        ::tracing::trace!(
 2965   3022   
            name = "sparse_json_maps",
 2966   3023   
            "executing python handler function"
 2967   3024   
        );
 2968   3025   
        ::pyo3::Python::with_gil(|py| {
 2969   3026   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 2970   3027   
            let output = if handler.args == 1 {
 2971   3028   
                pyhandler.call1((input,))?
 2972   3029   
            } else {
 2973   3030   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 2974   3031   
            };
 2975   3032   
            output.extract::<crate::output::SparseJsonMapsOutput>()
 2976   3033   
        })
 2977   3034   
    };
 2978   3035   
    // Catch and record a Python traceback.
 2979   3036   
    result.map_err(|e| {
 2980   3037   
        let rich_py_err =
 2981   3038   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 2982   3039   
                e.clone_ref(py)
 2983   3040   
            }));
 2984   3041   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 2985   3042   
        e.into()
 2986   3043   
    })
 2987   3044   
}
 2988   3045   
        3046  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 2989   3047   
/// Python handler for operation `JsonMaps`.
 2990   3048   
pub(crate) async fn json_maps(
 2991   3049   
    input: crate::input::JsonMapsInput,
 2992   3050   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 2993   3051   
    handler: ::aws_smithy_http_server_python::PyHandler,
 2994   3052   
) -> std::result::Result<crate::output::JsonMapsOutput, crate::error::JsonMapsError> {
 2995   3053   
    // Async block used to run the handler and catch any Python error.
 2996   3054   
    let result = if handler.is_coroutine {
 2997   3055   
        ::tracing::trace!(name = "json_maps", "executing python handler coroutine");
 2998   3056   
        let result = ::pyo3::Python::with_gil(|py| {
 2999   3057   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3000   3058   
            let coroutine = if handler.args == 1 {
 3001   3059   
                pyhandler.call1((input,))?
 3002   3060   
            } else {
 3003   3061   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3004   3062   
            };
 3005   3063   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 3006   3064   
        })?;
 3007   3065   
        result.await.and_then(|r| {
 3008   3066   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::JsonMapsOutput>(py))
 3009   3067   
        })
 3010   3068   
    } else {
 3011   3069   
        ::tracing::trace!(name = "json_maps", "executing python handler function");
 3012   3070   
        ::pyo3::Python::with_gil(|py| {
 3013   3071   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3014   3072   
            let output = if handler.args == 1 {
 3015   3073   
                pyhandler.call1((input,))?
 3016   3074   
            } else {
 3017   3075   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3018   3076   
            };
 3019   3077   
            output.extract::<crate::output::JsonMapsOutput>()
 3020   3078   
        })
 3021   3079   
    };
 3022   3080   
    // Catch and record a Python traceback.
 3023   3081   
    result.map_err(|e| {
 3024   3082   
        let rich_py_err =
 3025   3083   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 3026   3084   
                e.clone_ref(py)
 3027   3085   
            }));
 3028   3086   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 3029   3087   
        e.into()
 3030   3088   
    })
 3031   3089   
}
 3032   3090   
        3091  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 3033   3092   
/// Python handler for operation `SparseJsonLists`.
 3034   3093   
pub(crate) async fn sparse_json_lists(
 3035   3094   
    input: crate::input::SparseJsonListsInput,
 3036   3095   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 3037   3096   
    handler: ::aws_smithy_http_server_python::PyHandler,
 3038   3097   
) -> std::result::Result<crate::output::SparseJsonListsOutput, crate::error::SparseJsonListsError> {
 3039   3098   
    // Async block used to run the handler and catch any Python error.
 3040   3099   
    let result = if handler.is_coroutine {
 3041   3100   
        ::tracing::trace!(
 3042   3101   
            name = "sparse_json_lists",
 3043   3102   
            "executing python handler coroutine"
 3044   3103   
        );
 3045   3104   
        let result = ::pyo3::Python::with_gil(|py| {
 3046   3105   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3047   3106   
            let coroutine = if handler.args == 1 {
 3048   3107   
                pyhandler.call1((input,))?
 3049   3108   
            } else {
 3050   3109   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3051   3110   
            };
 3052   3111   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 3053   3112   
        })?;
 3054   3113   
        result.await.and_then(|r| {
 3055   3114   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::SparseJsonListsOutput>(py))
 3056   3115   
        })
 3057   3116   
    } else {
 3058   3117   
        ::tracing::trace!(
 3059   3118   
            name = "sparse_json_lists",
 3060   3119   
            "executing python handler function"
 3061   3120   
        );
 3062   3121   
        ::pyo3::Python::with_gil(|py| {
 3063   3122   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3064   3123   
            let output = if handler.args == 1 {
 3065   3124   
                pyhandler.call1((input,))?
 3066   3125   
            } else {
 3067   3126   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3068   3127   
            };
 3069   3128   
            output.extract::<crate::output::SparseJsonListsOutput>()
 3070   3129   
        })
 3071   3130   
    };
 3072   3131   
    // Catch and record a Python traceback.
 3073   3132   
    result.map_err(|e| {
 3074   3133   
        let rich_py_err =
 3075   3134   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 3076   3135   
                e.clone_ref(py)
 3077   3136   
            }));
 3078   3137   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 3079   3138   
        e.into()
 3080   3139   
    })
 3081   3140   
}
 3082   3141   
        3142  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 3083   3143   
/// Python handler for operation `JsonLists`.
 3084   3144   
pub(crate) async fn json_lists(
 3085   3145   
    input: crate::input::JsonListsInput,
 3086   3146   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 3087   3147   
    handler: ::aws_smithy_http_server_python::PyHandler,
 3088   3148   
) -> std::result::Result<crate::output::JsonListsOutput, crate::error::JsonListsError> {
 3089   3149   
    // Async block used to run the handler and catch any Python error.
 3090   3150   
    let result = if handler.is_coroutine {
 3091   3151   
        ::tracing::trace!(name = "json_lists", "executing python handler coroutine");
 3092   3152   
        let result = ::pyo3::Python::with_gil(|py| {
 3093   3153   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3094   3154   
            let coroutine = if handler.args == 1 {
 3095   3155   
                pyhandler.call1((input,))?
 3096   3156   
            } else {
 3097   3157   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3098   3158   
            };
 3099   3159   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 3100   3160   
        })?;
 3101   3161   
        result.await.and_then(|r| {
 3102   3162   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::JsonListsOutput>(py))
 3103   3163   
        })
 3104   3164   
    } else {
 3105   3165   
        ::tracing::trace!(name = "json_lists", "executing python handler function");
 3106   3166   
        ::pyo3::Python::with_gil(|py| {
 3107   3167   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3108   3168   
            let output = if handler.args == 1 {
 3109   3169   
                pyhandler.call1((input,))?
 3110   3170   
            } else {
 3111   3171   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3112   3172   
            };
 3113   3173   
            output.extract::<crate::output::JsonListsOutput>()
 3114   3174   
        })
 3115   3175   
    };
 3116   3176   
    // Catch and record a Python traceback.
 3117   3177   
    result.map_err(|e| {
 3118   3178   
        let rich_py_err =
 3119   3179   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 3120   3180   
                e.clone_ref(py)
 3121   3181   
            }));
 3122   3182   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 3123   3183   
        e.into()
 3124   3184   
    })
 3125   3185   
}
 3126   3186   
        3187  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 3127   3188   
/// Python handler for operation `RecursiveShapes`.
 3128   3189   
pub(crate) async fn recursive_shapes(
 3129   3190   
    input: crate::input::RecursiveShapesInput,
 3130   3191   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 3131   3192   
    handler: ::aws_smithy_http_server_python::PyHandler,
 3132   3193   
) -> std::result::Result<crate::output::RecursiveShapesOutput, crate::error::RecursiveShapesError> {
 3133   3194   
    // Async block used to run the handler and catch any Python error.
 3134   3195   
    let result = if handler.is_coroutine {
 3135   3196   
        ::tracing::trace!(
 3136   3197   
            name = "recursive_shapes",
 3137   3198   
            "executing python handler coroutine"
 3138   3199   
        );
 3139   3200   
        let result = ::pyo3::Python::with_gil(|py| {
 3140   3201   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3141   3202   
            let coroutine = if handler.args == 1 {
 3142   3203   
                pyhandler.call1((input,))?
 3143   3204   
            } else {
 3144   3205   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3145   3206   
            };
 3146   3207   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 3147   3208   
        })?;
 3148   3209   
        result.await.and_then(|r| {
 3149   3210   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::RecursiveShapesOutput>(py))
 3150   3211   
        })
 3151   3212   
    } else {
 3152   3213   
        ::tracing::trace!(
 3153   3214   
            name = "recursive_shapes",
 3154   3215   
            "executing python handler function"
 3155   3216   
        );
 3156   3217   
        ::pyo3::Python::with_gil(|py| {
 3157   3218   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3158   3219   
            let output = if handler.args == 1 {
 3159   3220   
                pyhandler.call1((input,))?
 3160   3221   
            } else {
 3161   3222   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3162   3223   
            };
 3163   3224   
            output.extract::<crate::output::RecursiveShapesOutput>()
 3164   3225   
        })
 3165   3226   
    };
 3166   3227   
    // Catch and record a Python traceback.
 3167   3228   
    result.map_err(|e| {
 3168   3229   
        let rich_py_err =
 3169   3230   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 3170   3231   
                e.clone_ref(py)
 3171   3232   
            }));
 3172   3233   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 3173   3234   
        e.into()
 3174   3235   
    })
 3175   3236   
}
 3176   3237   
        3238  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 3177   3239   
/// Python handler for operation `JsonIntEnums`.
 3178   3240   
pub(crate) async fn json_int_enums(
 3179   3241   
    input: crate::input::JsonIntEnumsInput,
 3180   3242   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 3181   3243   
    handler: ::aws_smithy_http_server_python::PyHandler,
 3182   3244   
) -> std::result::Result<crate::output::JsonIntEnumsOutput, crate::error::JsonIntEnumsError> {
 3183   3245   
    // Async block used to run the handler and catch any Python error.
 3184   3246   
    let result = if handler.is_coroutine {
 3185   3247   
        ::tracing::trace!(
 3186   3248   
            name = "json_int_enums",
 3187   3249   
            "executing python handler coroutine"
 3188   3250   
        );
 3189   3251   
        let result = ::pyo3::Python::with_gil(|py| {
 3190   3252   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3191   3253   
            let coroutine = if handler.args == 1 {
 3192   3254   
                pyhandler.call1((input,))?
 3193   3255   
            } else {
 3194   3256   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3195   3257   
            };
 3196   3258   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 3197   3259   
        })?;
 3198   3260   
        result.await.and_then(|r| {
 3199   3261   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::JsonIntEnumsOutput>(py))
 3200   3262   
        })
 3201   3263   
    } else {
 3202   3264   
        ::tracing::trace!(name = "json_int_enums", "executing python handler function");
 3203   3265   
        ::pyo3::Python::with_gil(|py| {
 3204   3266   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3205   3267   
            let output = if handler.args == 1 {
 3206   3268   
                pyhandler.call1((input,))?
 3207   3269   
            } else {
 3208   3270   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3209   3271   
            };
 3210   3272   
            output.extract::<crate::output::JsonIntEnumsOutput>()
 3211   3273   
        })
 3212   3274   
    };
 3213   3275   
    // Catch and record a Python traceback.
 3214   3276   
    result.map_err(|e| {
 3215   3277   
        let rich_py_err =
 3216   3278   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 3217   3279   
                e.clone_ref(py)
 3218   3280   
            }));
 3219   3281   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 3220   3282   
        e.into()
 3221   3283   
    })
 3222   3284   
}
 3223   3285   
        3286  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 3224   3287   
/// Python handler for operation `JsonEnums`.
 3225   3288   
pub(crate) async fn json_enums(
 3226   3289   
    input: crate::input::JsonEnumsInput,
 3227   3290   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 3228   3291   
    handler: ::aws_smithy_http_server_python::PyHandler,
 3229   3292   
) -> std::result::Result<crate::output::JsonEnumsOutput, crate::error::JsonEnumsError> {
 3230   3293   
    // Async block used to run the handler and catch any Python error.
 3231   3294   
    let result = if handler.is_coroutine {
 3232   3295   
        ::tracing::trace!(name = "json_enums", "executing python handler coroutine");
 3233   3296   
        let result = ::pyo3::Python::with_gil(|py| {
 3234   3297   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3235   3298   
            let coroutine = if handler.args == 1 {
 3236   3299   
                pyhandler.call1((input,))?
 3237   3300   
            } else {
 3238   3301   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3239   3302   
            };
 3240   3303   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 3241   3304   
        })?;
 3242   3305   
        result.await.and_then(|r| {
 3243   3306   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::JsonEnumsOutput>(py))
 3244   3307   
        })
 3245   3308   
    } else {
 3246   3309   
        ::tracing::trace!(name = "json_enums", "executing python handler function");
 3247   3310   
        ::pyo3::Python::with_gil(|py| {
 3248   3311   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3249   3312   
            let output = if handler.args == 1 {
 3250   3313   
                pyhandler.call1((input,))?
 3251   3314   
            } else {
 3252   3315   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3253   3316   
            };
 3254   3317   
            output.extract::<crate::output::JsonEnumsOutput>()
 3255   3318   
        })
 3256   3319   
    };
 3257   3320   
    // Catch and record a Python traceback.
 3258   3321   
    result.map_err(|e| {
 3259   3322   
        let rich_py_err =
 3260   3323   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 3261   3324   
                e.clone_ref(py)
 3262   3325   
            }));
 3263   3326   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 3264   3327   
        e.into()
 3265   3328   
    })
 3266   3329   
}
 3267   3330   
        3331  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 3268   3332   
/// Python handler for operation `JsonTimestamps`.
 3269   3333   
pub(crate) async fn json_timestamps(
 3270   3334   
    input: crate::input::JsonTimestampsInput,
 3271   3335   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 3272   3336   
    handler: ::aws_smithy_http_server_python::PyHandler,
 3273   3337   
) -> std::result::Result<crate::output::JsonTimestampsOutput, crate::error::JsonTimestampsError> {
 3274   3338   
    // Async block used to run the handler and catch any Python error.
 3275   3339   
    let result = if handler.is_coroutine {
 3276   3340   
        ::tracing::trace!(
 3277   3341   
            name = "json_timestamps",
 3278   3342   
            "executing python handler coroutine"
 3279   3343   
        );
 3280   3344   
        let result = ::pyo3::Python::with_gil(|py| {
 3281   3345   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3282   3346   
            let coroutine = if handler.args == 1 {
 3283   3347   
                pyhandler.call1((input,))?
 3284   3348   
            } else {
 3285   3349   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3286   3350   
            };
 3287   3351   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 3288   3352   
        })?;
 3289   3353   
        result.await.and_then(|r| {
 3290   3354   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::JsonTimestampsOutput>(py))
 3291   3355   
        })
 3292   3356   
    } else {
 3293   3357   
        ::tracing::trace!(
 3294   3358   
            name = "json_timestamps",
 3295   3359   
            "executing python handler function"
 3296   3360   
        );
 3297   3361   
        ::pyo3::Python::with_gil(|py| {
 3298   3362   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3299   3363   
            let output = if handler.args == 1 {
 3300   3364   
                pyhandler.call1((input,))?
 3301   3365   
            } else {
 3302   3366   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3303   3367   
            };
 3304   3368   
            output.extract::<crate::output::JsonTimestampsOutput>()
 3305   3369   
        })
 3306   3370   
    };
 3307   3371   
    // Catch and record a Python traceback.
 3308   3372   
    result.map_err(|e| {
 3309   3373   
        let rich_py_err =
 3310   3374   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 3311   3375   
                e.clone_ref(py)
 3312   3376   
            }));
 3313   3377   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 3314   3378   
        e.into()
 3315   3379   
    })
 3316   3380   
}
 3317   3381   
        3382  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 3318   3383   
/// Python handler for operation `SimpleScalarProperties`.
 3319   3384   
pub(crate) async fn simple_scalar_properties(
 3320   3385   
    input: crate::input::SimpleScalarPropertiesInput,
 3321   3386   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 3322   3387   
    handler: ::aws_smithy_http_server_python::PyHandler,
 3323   3388   
) -> std::result::Result<
 3324   3389   
    crate::output::SimpleScalarPropertiesOutput,
 3325   3390   
    crate::error::SimpleScalarPropertiesError,
 3326   3391   
> {
 3327   3392   
    // Async block used to run the handler and catch any Python error.
 3328   3393   
    let result = if handler.is_coroutine {
 3329   3394   
        ::tracing::trace!(
 3330   3395   
            name = "simple_scalar_properties",
 3331   3396   
            "executing python handler coroutine"
 3332   3397   
        );
 3333   3398   
        let result = ::pyo3::Python::with_gil(|py| {
 3334   3399   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3335   3400   
            let coroutine = if handler.args == 1 {
 3336   3401   
                pyhandler.call1((input,))?
 3337   3402   
            } else {
 3338   3403   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3339   3404   
            };
 3340   3405   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 3341   3406   
        })?;
 3342   3407   
        result.await.and_then(|r| {
 3343   3408   
            ::pyo3::Python::with_gil(|py| {
 3344   3409   
                r.extract::<crate::output::SimpleScalarPropertiesOutput>(py)
 3345   3410   
            })
 3346   3411   
        })
 3347   3412   
    } else {
 3348   3413   
        ::tracing::trace!(
 3349   3414   
            name = "simple_scalar_properties",
 3350   3415   
            "executing python handler function"
 3351   3416   
        );
 3352   3417   
        ::pyo3::Python::with_gil(|py| {
 3353   3418   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3354   3419   
            let output = if handler.args == 1 {
 3355   3420   
                pyhandler.call1((input,))?
 3356   3421   
            } else {
 3357   3422   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3358   3423   
            };
 3359   3424   
            output.extract::<crate::output::SimpleScalarPropertiesOutput>()
 3360   3425   
        })
 3361   3426   
    };
 3362   3427   
    // Catch and record a Python traceback.
 3363   3428   
    result.map_err(|e| {
 3364   3429   
        let rich_py_err =
 3365   3430   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 3366   3431   
                e.clone_ref(py)
 3367   3432   
            }));
 3368   3433   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 3369   3434   
        e.into()
 3370   3435   
    })
 3371   3436   
}
 3372   3437   
        3438  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 3373   3439   
/// Python handler for operation `GreetingWithErrors`.
 3374   3440   
pub(crate) async fn greeting_with_errors(
 3375   3441   
    input: crate::input::GreetingWithErrorsInput,
 3376   3442   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 3377   3443   
    handler: ::aws_smithy_http_server_python::PyHandler,
 3378   3444   
) -> std::result::Result<
 3379   3445   
    crate::output::GreetingWithErrorsOutput,
 3380   3446   
    crate::error::GreetingWithErrorsError,
 3381   3447   
> {
 3382   3448   
    // Async block used to run the handler and catch any Python error.
 3383   3449   
    let result = if handler.is_coroutine {
 3384   3450   
        ::tracing::trace!(
 3385   3451   
            name = "greeting_with_errors",
 3386   3452   
            "executing python handler coroutine"
 3387   3453   
        );
 3388   3454   
        let result = ::pyo3::Python::with_gil(|py| {
 3389   3455   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3390   3456   
            let coroutine = if handler.args == 1 {
 3391   3457   
                pyhandler.call1((input,))?
 3392   3458   
            } else {
 3393   3459   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3394   3460   
            };
 3395   3461   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 3396   3462   
        })?;
 3397   3463   
        result.await.and_then(|r| {
 3398   3464   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::GreetingWithErrorsOutput>(py))
 3399   3465   
        })
 3400   3466   
    } else {
 3401   3467   
        ::tracing::trace!(
 3402   3468   
            name = "greeting_with_errors",
 3403   3469   
            "executing python handler function"
 3404   3470   
        );
 3405   3471   
        ::pyo3::Python::with_gil(|py| {
 3406   3472   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3407   3473   
            let output = if handler.args == 1 {
 3408   3474   
                pyhandler.call1((input,))?
 3409   3475   
            } else {
 3410   3476   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3411   3477   
            };
 3412   3478   
            output.extract::<crate::output::GreetingWithErrorsOutput>()
 3413   3479   
        })
 3414   3480   
    };
 3415   3481   
    // Catch and record a Python traceback.
 3416   3482   
    result.map_err(|e| {
 3417   3483   
        let rich_py_err =
 3418   3484   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 3419   3485   
                e.clone_ref(py)
 3420   3486   
            }));
 3421   3487   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 3422   3488   
        e.into()
 3423   3489   
    })
 3424   3490   
}
 3425   3491   
        3492  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 3426   3493   
/// Python handler for operation `StreamingTraitsWithMediaType`.
 3427   3494   
pub(crate) async fn streaming_traits_with_media_type(
 3428   3495   
    input: crate::input::StreamingTraitsWithMediaTypeInput,
 3429   3496   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 3430   3497   
    handler: ::aws_smithy_http_server_python::PyHandler,
 3431   3498   
) -> std::result::Result<
 3432   3499   
    crate::output::StreamingTraitsWithMediaTypeOutput,
 3433   3500   
    crate::error::StreamingTraitsWithMediaTypeError,
 3434   3501   
> {
 3435   3502   
    // Async block used to run the handler and catch any Python error.
 3436   3503   
    let result = if handler.is_coroutine {
 3437   3504   
        ::tracing::trace!(
 3438   3505   
            name = "streaming_traits_with_media_type",
 3439   3506   
            "executing python handler coroutine"
 3440   3507   
        );
 3441   3508   
        let result = ::pyo3::Python::with_gil(|py| {
 3442   3509   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3443   3510   
            let coroutine = if handler.args == 1 {
 3444   3511   
                pyhandler.call1((input,))?
 3445   3512   
            } else {
 3446   3513   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3447   3514   
            };
 3448   3515   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 3449   3516   
        })?;
 3450   3517   
        result.await.and_then(|r| {
 3451   3518   
            ::pyo3::Python::with_gil(|py| {
 3452   3519   
                r.extract::<crate::output::StreamingTraitsWithMediaTypeOutput>(py)
 3453   3520   
            })
 3454   3521   
        })
 3455   3522   
    } else {
 3456   3523   
        ::tracing::trace!(
 3457   3524   
            name = "streaming_traits_with_media_type",
 3458   3525   
            "executing python handler function"
 3459   3526   
        );
 3460   3527   
        ::pyo3::Python::with_gil(|py| {
 3461   3528   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3462   3529   
            let output = if handler.args == 1 {
 3463   3530   
                pyhandler.call1((input,))?
 3464   3531   
            } else {
 3465   3532   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3466   3533   
            };
 3467   3534   
            output.extract::<crate::output::StreamingTraitsWithMediaTypeOutput>()
 3468   3535   
        })
 3469   3536   
    };
 3470   3537   
    // Catch and record a Python traceback.
 3471   3538   
    result.map_err(|e| {
 3472   3539   
        let rich_py_err =
 3473   3540   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 3474   3541   
                e.clone_ref(py)
 3475   3542   
            }));
 3476   3543   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 3477   3544   
        e.into()
 3478   3545   
    })
 3479   3546   
}
 3480   3547   
        3548  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 3481   3549   
/// Python handler for operation `StreamingTraitsRequireLength`.
 3482   3550   
pub(crate) async fn streaming_traits_require_length(
 3483   3551   
    input: crate::input::StreamingTraitsRequireLengthInput,
 3484   3552   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 3485   3553   
    handler: ::aws_smithy_http_server_python::PyHandler,
 3486   3554   
) -> std::result::Result<
 3487   3555   
    crate::output::StreamingTraitsRequireLengthOutput,
 3488   3556   
    crate::error::StreamingTraitsRequireLengthError,
 3489   3557   
> {
 3490   3558   
    // Async block used to run the handler and catch any Python error.
 3491   3559   
    let result = if handler.is_coroutine {
 3492   3560   
        ::tracing::trace!(
 3493   3561   
            name = "streaming_traits_require_length",
 3494   3562   
            "executing python handler coroutine"
 3495   3563   
        );
 3496   3564   
        let result = ::pyo3::Python::with_gil(|py| {
 3497   3565   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3498   3566   
            let coroutine = if handler.args == 1 {
 3499   3567   
                pyhandler.call1((input,))?
 3500   3568   
            } else {
 3501   3569   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3502   3570   
            };
 3503   3571   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 3504   3572   
        })?;
 3505   3573   
        result.await.and_then(|r| {
 3506   3574   
            ::pyo3::Python::with_gil(|py| {
 3507   3575   
                r.extract::<crate::output::StreamingTraitsRequireLengthOutput>(py)
 3508   3576   
            })
 3509   3577   
        })
 3510   3578   
    } else {
 3511   3579   
        ::tracing::trace!(
 3512   3580   
            name = "streaming_traits_require_length",
 3513   3581   
            "executing python handler function"
 3514   3582   
        );
 3515   3583   
        ::pyo3::Python::with_gil(|py| {
 3516   3584   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3517   3585   
            let output = if handler.args == 1 {
 3518   3586   
                pyhandler.call1((input,))?
 3519   3587   
            } else {
 3520   3588   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3521   3589   
            };
 3522   3590   
            output.extract::<crate::output::StreamingTraitsRequireLengthOutput>()
 3523   3591   
        })
 3524   3592   
    };
 3525   3593   
    // Catch and record a Python traceback.
 3526   3594   
    result.map_err(|e| {
 3527   3595   
        let rich_py_err =
 3528   3596   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 3529   3597   
                e.clone_ref(py)
 3530   3598   
            }));
 3531   3599   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 3532   3600   
        e.into()
 3533   3601   
    })
 3534   3602   
}
 3535   3603   
        3604  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 3536   3605   
/// Python handler for operation `StreamingTraits`.
 3537   3606   
pub(crate) async fn streaming_traits(
 3538   3607   
    input: crate::input::StreamingTraitsInput,
 3539   3608   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 3540   3609   
    handler: ::aws_smithy_http_server_python::PyHandler,
 3541   3610   
) -> std::result::Result<crate::output::StreamingTraitsOutput, crate::error::StreamingTraitsError> {
 3542   3611   
    // Async block used to run the handler and catch any Python error.
 3543   3612   
    let result = if handler.is_coroutine {
 3544   3613   
        ::tracing::trace!(
 3545   3614   
            name = "streaming_traits",
 3546   3615   
            "executing python handler coroutine"
 3547   3616   
        );
 3548   3617   
        let result = ::pyo3::Python::with_gil(|py| {
 3549   3618   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3550   3619   
            let coroutine = if handler.args == 1 {
 3551   3620   
                pyhandler.call1((input,))?
 3552   3621   
            } else {
 3553   3622   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3554   3623   
            };
 3555   3624   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 3556   3625   
        })?;
 3557   3626   
        result.await.and_then(|r| {
 3558   3627   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::StreamingTraitsOutput>(py))
 3559   3628   
        })
 3560   3629   
    } else {
 3561   3630   
        ::tracing::trace!(
 3562   3631   
            name = "streaming_traits",
 3563   3632   
            "executing python handler function"
 3564   3633   
        );
 3565   3634   
        ::pyo3::Python::with_gil(|py| {
 3566   3635   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3567   3636   
            let output = if handler.args == 1 {
 3568   3637   
                pyhandler.call1((input,))?
 3569   3638   
            } else {
 3570   3639   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3571   3640   
            };
 3572   3641   
            output.extract::<crate::output::StreamingTraitsOutput>()
 3573   3642   
        })
 3574   3643   
    };
 3575   3644   
    // Catch and record a Python traceback.
 3576   3645   
    result.map_err(|e| {
 3577   3646   
        let rich_py_err =
 3578   3647   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 3579   3648   
                e.clone_ref(py)
 3580   3649   
            }));
 3581   3650   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 3582   3651   
        e.into()
 3583   3652   
    })
 3584   3653   
}
 3585   3654   
        3655  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 3586   3656   
/// Python handler for operation `HttpResponseCode`.
 3587   3657   
pub(crate) async fn http_response_code(
 3588   3658   
    input: crate::input::HttpResponseCodeInput,
 3589   3659   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 3590   3660   
    handler: ::aws_smithy_http_server_python::PyHandler,
 3591   3661   
) -> std::result::Result<crate::output::HttpResponseCodeOutput, crate::error::HttpResponseCodeError>
 3592   3662   
{
 3593   3663   
    // Async block used to run the handler and catch any Python error.
 3594   3664   
    let result = if handler.is_coroutine {
 3595   3665   
        ::tracing::trace!(
 3596   3666   
            name = "http_response_code",
 3597   3667   
            "executing python handler coroutine"
 3598   3668   
        );
 3599   3669   
        let result = ::pyo3::Python::with_gil(|py| {
 3600   3670   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3601   3671   
            let coroutine = if handler.args == 1 {
 3602   3672   
                pyhandler.call1((input,))?
 3603   3673   
            } else {
 3604   3674   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3605   3675   
            };
 3606   3676   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 3607   3677   
        })?;
 3608   3678   
        result.await.and_then(|r| {
 3609   3679   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::HttpResponseCodeOutput>(py))
 3610   3680   
        })
 3611   3681   
    } else {
 3612   3682   
        ::tracing::trace!(
 3613   3683   
            name = "http_response_code",
 3614   3684   
            "executing python handler function"
 3615   3685   
        );
 3616   3686   
        ::pyo3::Python::with_gil(|py| {
 3617   3687   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3618   3688   
            let output = if handler.args == 1 {
 3619   3689   
                pyhandler.call1((input,))?
 3620   3690   
            } else {
 3621   3691   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3622   3692   
            };
 3623   3693   
            output.extract::<crate::output::HttpResponseCodeOutput>()
 3624   3694   
        })
 3625   3695   
    };
 3626   3696   
    // Catch and record a Python traceback.
 3627   3697   
    result.map_err(|e| {
 3628   3698   
        let rich_py_err =
 3629   3699   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 3630   3700   
                e.clone_ref(py)
 3631   3701   
            }));
 3632   3702   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 3633   3703   
        e.into()
 3634   3704   
    })
 3635   3705   
}
 3636   3706   
        3707  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 3637   3708   
/// Python handler for operation `HttpPayloadWithUnion`.
 3638   3709   
pub(crate) async fn http_payload_with_union(
 3639   3710   
    input: crate::input::HttpPayloadWithUnionInput,
 3640   3711   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 3641   3712   
    handler: ::aws_smithy_http_server_python::PyHandler,
 3642   3713   
) -> std::result::Result<
 3643   3714   
    crate::output::HttpPayloadWithUnionOutput,
 3644   3715   
    crate::error::HttpPayloadWithUnionError,
 3645   3716   
> {
 3646   3717   
    // Async block used to run the handler and catch any Python error.
 3647   3718   
    let result = if handler.is_coroutine {
 3648   3719   
        ::tracing::trace!(
 3649   3720   
            name = "http_payload_with_union",
 3650   3721   
            "executing python handler coroutine"
 3651   3722   
        );
 3652   3723   
        let result = ::pyo3::Python::with_gil(|py| {
 3653   3724   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3654   3725   
            let coroutine = if handler.args == 1 {
 3655   3726   
                pyhandler.call1((input,))?
 3656   3727   
            } else {
 3657   3728   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3658   3729   
            };
 3659   3730   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 3660   3731   
        })?;
 3661   3732   
        result.await.and_then(|r| {
 3662   3733   
            ::pyo3::Python::with_gil(|py| {
 3663   3734   
                r.extract::<crate::output::HttpPayloadWithUnionOutput>(py)
 3664   3735   
            })
 3665   3736   
        })
 3666   3737   
    } else {
 3667   3738   
        ::tracing::trace!(
 3668   3739   
            name = "http_payload_with_union",
 3669   3740   
            "executing python handler function"
 3670   3741   
        );
 3671   3742   
        ::pyo3::Python::with_gil(|py| {
 3672   3743   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3673   3744   
            let output = if handler.args == 1 {
 3674   3745   
                pyhandler.call1((input,))?
 3675   3746   
            } else {
 3676   3747   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3677   3748   
            };
 3678   3749   
            output.extract::<crate::output::HttpPayloadWithUnionOutput>()
 3679   3750   
        })
 3680   3751   
    };
 3681   3752   
    // Catch and record a Python traceback.
 3682   3753   
    result.map_err(|e| {
 3683   3754   
        let rich_py_err =
 3684   3755   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 3685   3756   
                e.clone_ref(py)
 3686   3757   
            }));
 3687   3758   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 3688   3759   
        e.into()
 3689   3760   
    })
 3690   3761   
}
 3691   3762   
        3763  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 3692   3764   
/// Python handler for operation `HttpStringPayload`.
 3693   3765   
pub(crate) async fn http_string_payload(
 3694   3766   
    input: crate::input::HttpStringPayloadInput,
 3695   3767   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 3696   3768   
    handler: ::aws_smithy_http_server_python::PyHandler,
 3697   3769   
) -> std::result::Result<crate::output::HttpStringPayloadOutput, crate::error::HttpStringPayloadError>
 3698   3770   
{
 3699   3771   
    // Async block used to run the handler and catch any Python error.
 3700   3772   
    let result = if handler.is_coroutine {
 3701   3773   
        ::tracing::trace!(
 3702   3774   
            name = "http_string_payload",
 3703   3775   
            "executing python handler coroutine"
 3704   3776   
        );
 3705   3777   
        let result = ::pyo3::Python::with_gil(|py| {
 3706   3778   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3707   3779   
            let coroutine = if handler.args == 1 {
 3708   3780   
                pyhandler.call1((input,))?
 3709   3781   
            } else {
 3710   3782   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3711   3783   
            };
 3712   3784   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 3713   3785   
        })?;
 3714   3786   
        result.await.and_then(|r| {
 3715   3787   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::HttpStringPayloadOutput>(py))
 3716   3788   
        })
 3717   3789   
    } else {
 3718   3790   
        ::tracing::trace!(
 3719   3791   
            name = "http_string_payload",
 3720   3792   
            "executing python handler function"
 3721   3793   
        );
 3722   3794   
        ::pyo3::Python::with_gil(|py| {
 3723   3795   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3724   3796   
            let output = if handler.args == 1 {
 3725   3797   
                pyhandler.call1((input,))?
 3726   3798   
            } else {
 3727   3799   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3728   3800   
            };
 3729   3801   
            output.extract::<crate::output::HttpStringPayloadOutput>()
 3730   3802   
        })
 3731   3803   
    };
 3732   3804   
    // Catch and record a Python traceback.
 3733   3805   
    result.map_err(|e| {
 3734   3806   
        let rich_py_err =
 3735   3807   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 3736   3808   
                e.clone_ref(py)
 3737   3809   
            }));
 3738   3810   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 3739   3811   
        e.into()
 3740   3812   
    })
 3741   3813   
}
 3742   3814   
        3815  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 3743   3816   
/// Python handler for operation `HttpEnumPayload`.
 3744   3817   
pub(crate) async fn http_enum_payload(
 3745   3818   
    input: crate::input::HttpEnumPayloadInput,
 3746   3819   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 3747   3820   
    handler: ::aws_smithy_http_server_python::PyHandler,
 3748   3821   
) -> std::result::Result<crate::output::HttpEnumPayloadOutput, crate::error::HttpEnumPayloadError> {
 3749   3822   
    // Async block used to run the handler and catch any Python error.
 3750   3823   
    let result = if handler.is_coroutine {
 3751   3824   
        ::tracing::trace!(
 3752   3825   
            name = "http_enum_payload",
 3753   3826   
            "executing python handler coroutine"
 3754   3827   
        );
 3755   3828   
        let result = ::pyo3::Python::with_gil(|py| {
 3756   3829   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3757   3830   
            let coroutine = if handler.args == 1 {
 3758   3831   
                pyhandler.call1((input,))?
 3759   3832   
            } else {
 3760   3833   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3761   3834   
            };
 3762   3835   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 3763   3836   
        })?;
 3764   3837   
        result.await.and_then(|r| {
 3765   3838   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::HttpEnumPayloadOutput>(py))
 3766   3839   
        })
 3767   3840   
    } else {
 3768   3841   
        ::tracing::trace!(
 3769   3842   
            name = "http_enum_payload",
 3770   3843   
            "executing python handler function"
 3771   3844   
        );
 3772   3845   
        ::pyo3::Python::with_gil(|py| {
 3773   3846   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3774   3847   
            let output = if handler.args == 1 {
 3775   3848   
                pyhandler.call1((input,))?
 3776   3849   
            } else {
 3777   3850   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3778   3851   
            };
 3779   3852   
            output.extract::<crate::output::HttpEnumPayloadOutput>()
 3780   3853   
        })
 3781   3854   
    };
 3782   3855   
    // Catch and record a Python traceback.
 3783   3856   
    result.map_err(|e| {
 3784   3857   
        let rich_py_err =
 3785   3858   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 3786   3859   
                e.clone_ref(py)
 3787   3860   
            }));
 3788   3861   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 3789   3862   
        e.into()
 3790   3863   
    })
 3791   3864   
}
 3792   3865   
        3866  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 3793   3867   
/// Python handler for operation `HttpPayloadWithStructure`.
 3794   3868   
pub(crate) async fn http_payload_with_structure(
 3795   3869   
    input: crate::input::HttpPayloadWithStructureInput,
 3796   3870   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 3797   3871   
    handler: ::aws_smithy_http_server_python::PyHandler,
 3798   3872   
) -> std::result::Result<
 3799   3873   
    crate::output::HttpPayloadWithStructureOutput,
 3800   3874   
    crate::error::HttpPayloadWithStructureError,
 3801   3875   
> {
 3802   3876   
    // Async block used to run the handler and catch any Python error.
 3803   3877   
    let result = if handler.is_coroutine {
 3804   3878   
        ::tracing::trace!(
 3805   3879   
            name = "http_payload_with_structure",
 3806   3880   
            "executing python handler coroutine"
 3807   3881   
        );
 3808   3882   
        let result = ::pyo3::Python::with_gil(|py| {
 3809   3883   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3810   3884   
            let coroutine = if handler.args == 1 {
 3811   3885   
                pyhandler.call1((input,))?
 3812   3886   
            } else {
 3813   3887   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3814   3888   
            };
 3815   3889   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 3816   3890   
        })?;
 3817   3891   
        result.await.and_then(|r| {
 3818   3892   
            ::pyo3::Python::with_gil(|py| {
 3819   3893   
                r.extract::<crate::output::HttpPayloadWithStructureOutput>(py)
 3820   3894   
            })
 3821   3895   
        })
 3822   3896   
    } else {
 3823   3897   
        ::tracing::trace!(
 3824   3898   
            name = "http_payload_with_structure",
 3825   3899   
            "executing python handler function"
 3826   3900   
        );
 3827   3901   
        ::pyo3::Python::with_gil(|py| {
 3828   3902   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3829   3903   
            let output = if handler.args == 1 {
 3830   3904   
                pyhandler.call1((input,))?
 3831   3905   
            } else {
 3832   3906   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3833   3907   
            };
 3834   3908   
            output.extract::<crate::output::HttpPayloadWithStructureOutput>()
 3835   3909   
        })
 3836   3910   
    };
 3837   3911   
    // Catch and record a Python traceback.
 3838   3912   
    result.map_err(|e| {
 3839   3913   
        let rich_py_err =
 3840   3914   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 3841   3915   
                e.clone_ref(py)
 3842   3916   
            }));
 3843   3917   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 3844   3918   
        e.into()
 3845   3919   
    })
 3846   3920   
}
 3847   3921   
        3922  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 3848   3923   
/// Python handler for operation `HttpPayloadTraitsWithMediaType`.
 3849   3924   
pub(crate) async fn http_payload_traits_with_media_type(
 3850   3925   
    input: crate::input::HttpPayloadTraitsWithMediaTypeInput,
 3851   3926   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 3852   3927   
    handler: ::aws_smithy_http_server_python::PyHandler,
 3853   3928   
) -> std::result::Result<
 3854   3929   
    crate::output::HttpPayloadTraitsWithMediaTypeOutput,
 3855   3930   
    crate::error::HttpPayloadTraitsWithMediaTypeError,
 3856   3931   
> {
 3857   3932   
    // Async block used to run the handler and catch any Python error.
 3858   3933   
    let result = if handler.is_coroutine {
 3859   3934   
        ::tracing::trace!(
 3860   3935   
            name = "http_payload_traits_with_media_type",
 3861   3936   
            "executing python handler coroutine"
 3862   3937   
        );
 3863   3938   
        let result = ::pyo3::Python::with_gil(|py| {
 3864   3939   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3865   3940   
            let coroutine = if handler.args == 1 {
 3866   3941   
                pyhandler.call1((input,))?
 3867   3942   
            } else {
 3868   3943   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3869   3944   
            };
 3870   3945   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 3871   3946   
        })?;
 3872   3947   
        result.await.and_then(|r| {
 3873   3948   
            ::pyo3::Python::with_gil(|py| {
 3874   3949   
                r.extract::<crate::output::HttpPayloadTraitsWithMediaTypeOutput>(py)
 3875   3950   
            })
 3876   3951   
        })
 3877   3952   
    } else {
 3878   3953   
        ::tracing::trace!(
 3879   3954   
            name = "http_payload_traits_with_media_type",
 3880   3955   
            "executing python handler function"
 3881   3956   
        );
 3882   3957   
        ::pyo3::Python::with_gil(|py| {
 3883   3958   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3884   3959   
            let output = if handler.args == 1 {
 3885   3960   
                pyhandler.call1((input,))?
 3886   3961   
            } else {
 3887   3962   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3888   3963   
            };
 3889   3964   
            output.extract::<crate::output::HttpPayloadTraitsWithMediaTypeOutput>()
 3890   3965   
        })
 3891   3966   
    };
 3892   3967   
    // Catch and record a Python traceback.
 3893   3968   
    result.map_err(|e| {
 3894   3969   
        let rich_py_err =
 3895   3970   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 3896   3971   
                e.clone_ref(py)
 3897   3972   
            }));
 3898   3973   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 3899   3974   
        e.into()
 3900   3975   
    })
 3901   3976   
}
 3902   3977   
        3978  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 3903   3979   
/// Python handler for operation `HttpPayloadTraits`.
 3904   3980   
pub(crate) async fn http_payload_traits(
 3905   3981   
    input: crate::input::HttpPayloadTraitsInput,
 3906   3982   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 3907   3983   
    handler: ::aws_smithy_http_server_python::PyHandler,
 3908   3984   
) -> std::result::Result<crate::output::HttpPayloadTraitsOutput, crate::error::HttpPayloadTraitsError>
 3909   3985   
{
 3910   3986   
    // Async block used to run the handler and catch any Python error.
 3911   3987   
    let result = if handler.is_coroutine {
 3912   3988   
        ::tracing::trace!(
 3913   3989   
            name = "http_payload_traits",
 3914   3990   
            "executing python handler coroutine"
 3915   3991   
        );
 3916   3992   
        let result = ::pyo3::Python::with_gil(|py| {
 3917   3993   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3918   3994   
            let coroutine = if handler.args == 1 {
 3919   3995   
                pyhandler.call1((input,))?
 3920   3996   
            } else {
 3921   3997   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3922   3998   
            };
 3923   3999   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 3924   4000   
        })?;
 3925   4001   
        result.await.and_then(|r| {
 3926   4002   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::HttpPayloadTraitsOutput>(py))
 3927   4003   
        })
 3928   4004   
    } else {
 3929   4005   
        ::tracing::trace!(
 3930   4006   
            name = "http_payload_traits",
 3931   4007   
            "executing python handler function"
 3932   4008   
        );
 3933   4009   
        ::pyo3::Python::with_gil(|py| {
 3934   4010   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3935   4011   
            let output = if handler.args == 1 {
 3936   4012   
                pyhandler.call1((input,))?
 3937   4013   
            } else {
 3938   4014   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3939   4015   
            };
 3940   4016   
            output.extract::<crate::output::HttpPayloadTraitsOutput>()
 3941   4017   
        })
 3942   4018   
    };
 3943   4019   
    // Catch and record a Python traceback.
 3944   4020   
    result.map_err(|e| {
 3945   4021   
        let rich_py_err =
 3946   4022   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 3947   4023   
                e.clone_ref(py)
 3948   4024   
            }));
 3949   4025   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 3950   4026   
        e.into()
 3951   4027   
    })
 3952   4028   
}
 3953   4029   
        4030  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 3954   4031   
/// Python handler for operation `HttpPrefixHeadersInResponse`.
 3955   4032   
pub(crate) async fn http_prefix_headers_in_response(
 3956   4033   
    input: crate::input::HttpPrefixHeadersInResponseInput,
 3957   4034   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 3958   4035   
    handler: ::aws_smithy_http_server_python::PyHandler,
 3959   4036   
) -> std::result::Result<
 3960   4037   
    crate::output::HttpPrefixHeadersInResponseOutput,
 3961   4038   
    crate::error::HttpPrefixHeadersInResponseError,
 3962   4039   
> {
 3963   4040   
    // Async block used to run the handler and catch any Python error.
 3964   4041   
    let result = if handler.is_coroutine {
 3965   4042   
        ::tracing::trace!(
 3966   4043   
            name = "http_prefix_headers_in_response",
 3967   4044   
            "executing python handler coroutine"
 3968   4045   
        );
 3969   4046   
        let result = ::pyo3::Python::with_gil(|py| {
 3970   4047   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3971   4048   
            let coroutine = if handler.args == 1 {
 3972   4049   
                pyhandler.call1((input,))?
 3973   4050   
            } else {
 3974   4051   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3975   4052   
            };
 3976   4053   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 3977   4054   
        })?;
 3978   4055   
        result.await.and_then(|r| {
 3979   4056   
            ::pyo3::Python::with_gil(|py| {
 3980   4057   
                r.extract::<crate::output::HttpPrefixHeadersInResponseOutput>(py)
 3981   4058   
            })
 3982   4059   
        })
 3983   4060   
    } else {
 3984   4061   
        ::tracing::trace!(
 3985   4062   
            name = "http_prefix_headers_in_response",
 3986   4063   
            "executing python handler function"
 3987   4064   
        );
 3988   4065   
        ::pyo3::Python::with_gil(|py| {
 3989   4066   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 3990   4067   
            let output = if handler.args == 1 {
 3991   4068   
                pyhandler.call1((input,))?
 3992   4069   
            } else {
 3993   4070   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 3994   4071   
            };
 3995   4072   
            output.extract::<crate::output::HttpPrefixHeadersInResponseOutput>()
 3996   4073   
        })
 3997   4074   
    };
 3998   4075   
    // Catch and record a Python traceback.
 3999   4076   
    result.map_err(|e| {
 4000   4077   
        let rich_py_err =
 4001   4078   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 4002   4079   
                e.clone_ref(py)
 4003   4080   
            }));
 4004   4081   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 4005   4082   
        e.into()
 4006   4083   
    })
 4007   4084   
}
 4008   4085   
        4086  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 4009   4087   
/// Python handler for operation `HttpPrefixHeaders`.
 4010   4088   
pub(crate) async fn http_prefix_headers(
 4011   4089   
    input: crate::input::HttpPrefixHeadersInput,
 4012   4090   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 4013   4091   
    handler: ::aws_smithy_http_server_python::PyHandler,
 4014   4092   
) -> std::result::Result<crate::output::HttpPrefixHeadersOutput, crate::error::HttpPrefixHeadersError>
 4015   4093   
{
 4016   4094   
    // Async block used to run the handler and catch any Python error.
 4017   4095   
    let result = if handler.is_coroutine {
 4018   4096   
        ::tracing::trace!(
 4019   4097   
            name = "http_prefix_headers",
 4020   4098   
            "executing python handler coroutine"
 4021   4099   
        );
 4022   4100   
        let result = ::pyo3::Python::with_gil(|py| {
 4023   4101   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4024   4102   
            let coroutine = if handler.args == 1 {
 4025   4103   
                pyhandler.call1((input,))?
 4026   4104   
            } else {
 4027   4105   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4028   4106   
            };
 4029   4107   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 4030   4108   
        })?;
 4031   4109   
        result.await.and_then(|r| {
 4032   4110   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::HttpPrefixHeadersOutput>(py))
 4033   4111   
        })
 4034   4112   
    } else {
 4035   4113   
        ::tracing::trace!(
 4036   4114   
            name = "http_prefix_headers",
 4037   4115   
            "executing python handler function"
 4038   4116   
        );
 4039   4117   
        ::pyo3::Python::with_gil(|py| {
 4040   4118   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4041   4119   
            let output = if handler.args == 1 {
 4042   4120   
                pyhandler.call1((input,))?
 4043   4121   
            } else {
 4044   4122   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4045   4123   
            };
 4046   4124   
            output.extract::<crate::output::HttpPrefixHeadersOutput>()
 4047   4125   
        })
 4048   4126   
    };
 4049   4127   
    // Catch and record a Python traceback.
 4050   4128   
    result.map_err(|e| {
 4051   4129   
        let rich_py_err =
 4052   4130   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 4053   4131   
                e.clone_ref(py)
 4054   4132   
            }));
 4055   4133   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 4056   4134   
        e.into()
 4057   4135   
    })
 4058   4136   
}
 4059   4137   
        4138  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 4060   4139   
/// Python handler for operation `QueryParamsAsStringListMap`.
 4061   4140   
pub(crate) async fn query_params_as_string_list_map(
 4062   4141   
    input: crate::input::QueryParamsAsStringListMapInput,
 4063   4142   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 4064   4143   
    handler: ::aws_smithy_http_server_python::PyHandler,
 4065   4144   
) -> std::result::Result<
 4066   4145   
    crate::output::QueryParamsAsStringListMapOutput,
 4067   4146   
    crate::error::QueryParamsAsStringListMapError,
 4068   4147   
> {
 4069   4148   
    // Async block used to run the handler and catch any Python error.
 4070   4149   
    let result = if handler.is_coroutine {
 4071   4150   
        ::tracing::trace!(
 4072   4151   
            name = "query_params_as_string_list_map",
 4073   4152   
            "executing python handler coroutine"
 4074   4153   
        );
 4075   4154   
        let result = ::pyo3::Python::with_gil(|py| {
 4076   4155   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4077   4156   
            let coroutine = if handler.args == 1 {
 4078   4157   
                pyhandler.call1((input,))?
 4079   4158   
            } else {
 4080   4159   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4081   4160   
            };
 4082   4161   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 4083   4162   
        })?;
 4084   4163   
        result.await.and_then(|r| {
 4085   4164   
            ::pyo3::Python::with_gil(|py| {
 4086   4165   
                r.extract::<crate::output::QueryParamsAsStringListMapOutput>(py)
 4087   4166   
            })
 4088   4167   
        })
 4089   4168   
    } else {
 4090   4169   
        ::tracing::trace!(
 4091   4170   
            name = "query_params_as_string_list_map",
 4092   4171   
            "executing python handler function"
 4093   4172   
        );
 4094   4173   
        ::pyo3::Python::with_gil(|py| {
 4095   4174   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4096   4175   
            let output = if handler.args == 1 {
 4097   4176   
                pyhandler.call1((input,))?
 4098   4177   
            } else {
 4099   4178   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4100   4179   
            };
 4101   4180   
            output.extract::<crate::output::QueryParamsAsStringListMapOutput>()
 4102   4181   
        })
 4103   4182   
    };
 4104   4183   
    // Catch and record a Python traceback.
 4105   4184   
    result.map_err(|e| {
 4106   4185   
        let rich_py_err =
 4107   4186   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 4108   4187   
                e.clone_ref(py)
 4109   4188   
            }));
 4110   4189   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 4111   4190   
        e.into()
 4112   4191   
    })
 4113   4192   
}
 4114   4193   
        4194  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 4115   4195   
/// Python handler for operation `QueryPrecedence`.
 4116   4196   
pub(crate) async fn query_precedence(
 4117   4197   
    input: crate::input::QueryPrecedenceInput,
 4118   4198   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 4119   4199   
    handler: ::aws_smithy_http_server_python::PyHandler,
 4120   4200   
) -> std::result::Result<crate::output::QueryPrecedenceOutput, crate::error::QueryPrecedenceError> {
 4121   4201   
    // Async block used to run the handler and catch any Python error.
 4122   4202   
    let result = if handler.is_coroutine {
 4123   4203   
        ::tracing::trace!(
 4124   4204   
            name = "query_precedence",
 4125   4205   
            "executing python handler coroutine"
 4126   4206   
        );
 4127   4207   
        let result = ::pyo3::Python::with_gil(|py| {
 4128   4208   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4129   4209   
            let coroutine = if handler.args == 1 {
 4130   4210   
                pyhandler.call1((input,))?
 4131   4211   
            } else {
 4132   4212   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4133   4213   
            };
 4134   4214   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 4135   4215   
        })?;
 4136   4216   
        result.await.and_then(|r| {
 4137   4217   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::QueryPrecedenceOutput>(py))
 4138   4218   
        })
 4139   4219   
    } else {
 4140   4220   
        ::tracing::trace!(
 4141   4221   
            name = "query_precedence",
 4142   4222   
            "executing python handler function"
 4143   4223   
        );
 4144   4224   
        ::pyo3::Python::with_gil(|py| {
 4145   4225   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4146   4226   
            let output = if handler.args == 1 {
 4147   4227   
                pyhandler.call1((input,))?
 4148   4228   
            } else {
 4149   4229   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4150   4230   
            };
 4151   4231   
            output.extract::<crate::output::QueryPrecedenceOutput>()
 4152   4232   
        })
 4153   4233   
    };
 4154   4234   
    // Catch and record a Python traceback.
 4155   4235   
    result.map_err(|e| {
 4156   4236   
        let rich_py_err =
 4157   4237   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 4158   4238   
                e.clone_ref(py)
 4159   4239   
            }));
 4160   4240   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 4161   4241   
        e.into()
 4162   4242   
    })
 4163   4243   
}
 4164   4244   
        4245  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 4165   4246   
/// Python handler for operation `QueryIdempotencyTokenAutoFill`.
 4166   4247   
pub(crate) async fn query_idempotency_token_auto_fill(
 4167   4248   
    input: crate::input::QueryIdempotencyTokenAutoFillInput,
 4168   4249   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 4169   4250   
    handler: ::aws_smithy_http_server_python::PyHandler,
 4170   4251   
) -> std::result::Result<
 4171   4252   
    crate::output::QueryIdempotencyTokenAutoFillOutput,
 4172   4253   
    crate::error::QueryIdempotencyTokenAutoFillError,
 4173   4254   
> {
 4174   4255   
    // Async block used to run the handler and catch any Python error.
 4175   4256   
    let result = if handler.is_coroutine {
 4176   4257   
        ::tracing::trace!(
 4177   4258   
            name = "query_idempotency_token_auto_fill",
 4178   4259   
            "executing python handler coroutine"
 4179   4260   
        );
 4180   4261   
        let result = ::pyo3::Python::with_gil(|py| {
 4181   4262   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4182   4263   
            let coroutine = if handler.args == 1 {
 4183   4264   
                pyhandler.call1((input,))?
 4184   4265   
            } else {
 4185   4266   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4186   4267   
            };
 4187   4268   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 4188   4269   
        })?;
 4189   4270   
        result.await.and_then(|r| {
 4190   4271   
            ::pyo3::Python::with_gil(|py| {
 4191   4272   
                r.extract::<crate::output::QueryIdempotencyTokenAutoFillOutput>(py)
 4192   4273   
            })
 4193   4274   
        })
 4194   4275   
    } else {
 4195   4276   
        ::tracing::trace!(
 4196   4277   
            name = "query_idempotency_token_auto_fill",
 4197   4278   
            "executing python handler function"
 4198   4279   
        );
 4199   4280   
        ::pyo3::Python::with_gil(|py| {
 4200   4281   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4201   4282   
            let output = if handler.args == 1 {
 4202   4283   
                pyhandler.call1((input,))?
 4203   4284   
            } else {
 4204   4285   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4205   4286   
            };
 4206   4287   
            output.extract::<crate::output::QueryIdempotencyTokenAutoFillOutput>()
 4207   4288   
        })
 4208   4289   
    };
 4209   4290   
    // Catch and record a Python traceback.
 4210   4291   
    result.map_err(|e| {
 4211   4292   
        let rich_py_err =
 4212   4293   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 4213   4294   
                e.clone_ref(py)
 4214   4295   
            }));
 4215   4296   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 4216   4297   
        e.into()
 4217   4298   
    })
 4218   4299   
}
 4219   4300   
        4301  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 4220   4302   
/// Python handler for operation `OmitsSerializingEmptyLists`.
 4221   4303   
pub(crate) async fn omits_serializing_empty_lists(
 4222   4304   
    input: crate::input::OmitsSerializingEmptyListsInput,
 4223   4305   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 4224   4306   
    handler: ::aws_smithy_http_server_python::PyHandler,
 4225   4307   
) -> std::result::Result<
 4226   4308   
    crate::output::OmitsSerializingEmptyListsOutput,
 4227   4309   
    crate::error::OmitsSerializingEmptyListsError,
 4228   4310   
> {
 4229   4311   
    // Async block used to run the handler and catch any Python error.
 4230   4312   
    let result = if handler.is_coroutine {
 4231   4313   
        ::tracing::trace!(
 4232   4314   
            name = "omits_serializing_empty_lists",
 4233   4315   
            "executing python handler coroutine"
 4234   4316   
        );
 4235   4317   
        let result = ::pyo3::Python::with_gil(|py| {
 4236   4318   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4237   4319   
            let coroutine = if handler.args == 1 {
 4238   4320   
                pyhandler.call1((input,))?
 4239   4321   
            } else {
 4240   4322   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4241   4323   
            };
 4242   4324   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 4243   4325   
        })?;
 4244   4326   
        result.await.and_then(|r| {
 4245   4327   
            ::pyo3::Python::with_gil(|py| {
 4246   4328   
                r.extract::<crate::output::OmitsSerializingEmptyListsOutput>(py)
 4247   4329   
            })
 4248   4330   
        })
 4249   4331   
    } else {
 4250   4332   
        ::tracing::trace!(
 4251   4333   
            name = "omits_serializing_empty_lists",
 4252   4334   
            "executing python handler function"
 4253   4335   
        );
 4254   4336   
        ::pyo3::Python::with_gil(|py| {
 4255   4337   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4256   4338   
            let output = if handler.args == 1 {
 4257   4339   
                pyhandler.call1((input,))?
 4258   4340   
            } else {
 4259   4341   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4260   4342   
            };
 4261   4343   
            output.extract::<crate::output::OmitsSerializingEmptyListsOutput>()
 4262   4344   
        })
 4263   4345   
    };
 4264   4346   
    // Catch and record a Python traceback.
 4265   4347   
    result.map_err(|e| {
 4266   4348   
        let rich_py_err =
 4267   4349   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 4268   4350   
                e.clone_ref(py)
 4269   4351   
            }));
 4270   4352   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 4271   4353   
        e.into()
 4272   4354   
    })
 4273   4355   
}
 4274   4356   
        4357  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 4275   4358   
/// Python handler for operation `OmitsNullSerializesEmptyString`.
 4276   4359   
pub(crate) async fn omits_null_serializes_empty_string(
 4277   4360   
    input: crate::input::OmitsNullSerializesEmptyStringInput,
 4278   4361   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 4279   4362   
    handler: ::aws_smithy_http_server_python::PyHandler,
 4280   4363   
) -> std::result::Result<
 4281   4364   
    crate::output::OmitsNullSerializesEmptyStringOutput,
 4282   4365   
    crate::error::OmitsNullSerializesEmptyStringError,
 4283   4366   
> {
 4284   4367   
    // Async block used to run the handler and catch any Python error.
 4285   4368   
    let result = if handler.is_coroutine {
 4286   4369   
        ::tracing::trace!(
 4287   4370   
            name = "omits_null_serializes_empty_string",
 4288   4371   
            "executing python handler coroutine"
 4289   4372   
        );
 4290   4373   
        let result = ::pyo3::Python::with_gil(|py| {
 4291   4374   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4292   4375   
            let coroutine = if handler.args == 1 {
 4293   4376   
                pyhandler.call1((input,))?
 4294   4377   
            } else {
 4295   4378   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4296   4379   
            };
 4297   4380   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 4298   4381   
        })?;
 4299   4382   
        result.await.and_then(|r| {
 4300   4383   
            ::pyo3::Python::with_gil(|py| {
 4301   4384   
                r.extract::<crate::output::OmitsNullSerializesEmptyStringOutput>(py)
 4302   4385   
            })
 4303   4386   
        })
 4304   4387   
    } else {
 4305   4388   
        ::tracing::trace!(
 4306   4389   
            name = "omits_null_serializes_empty_string",
 4307   4390   
            "executing python handler function"
 4308   4391   
        );
 4309   4392   
        ::pyo3::Python::with_gil(|py| {
 4310   4393   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4311   4394   
            let output = if handler.args == 1 {
 4312   4395   
                pyhandler.call1((input,))?
 4313   4396   
            } else {
 4314   4397   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4315   4398   
            };
 4316   4399   
            output.extract::<crate::output::OmitsNullSerializesEmptyStringOutput>()
 4317   4400   
        })
 4318   4401   
    };
 4319   4402   
    // Catch and record a Python traceback.
 4320   4403   
    result.map_err(|e| {
 4321   4404   
        let rich_py_err =
 4322   4405   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 4323   4406   
                e.clone_ref(py)
 4324   4407   
            }));
 4325   4408   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 4326   4409   
        e.into()
 4327   4410   
    })
 4328   4411   
}
 4329   4412   
        4413  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 4330   4414   
/// Python handler for operation `IgnoreQueryParamsInResponse`.
 4331   4415   
pub(crate) async fn ignore_query_params_in_response(
 4332   4416   
    input: crate::input::IgnoreQueryParamsInResponseInput,
 4333   4417   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 4334   4418   
    handler: ::aws_smithy_http_server_python::PyHandler,
 4335   4419   
) -> std::result::Result<
 4336   4420   
    crate::output::IgnoreQueryParamsInResponseOutput,
 4337   4421   
    crate::error::IgnoreQueryParamsInResponseError,
 4338   4422   
> {
 4339   4423   
    // Async block used to run the handler and catch any Python error.
 4340   4424   
    let result = if handler.is_coroutine {
 4341   4425   
        ::tracing::trace!(
 4342   4426   
            name = "ignore_query_params_in_response",
 4343   4427   
            "executing python handler coroutine"
 4344   4428   
        );
 4345   4429   
        let result = ::pyo3::Python::with_gil(|py| {
 4346   4430   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4347   4431   
            let coroutine = if handler.args == 1 {
 4348   4432   
                pyhandler.call1((input,))?
 4349   4433   
            } else {
 4350   4434   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4351   4435   
            };
 4352   4436   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 4353   4437   
        })?;
 4354   4438   
        result.await.and_then(|r| {
 4355   4439   
            ::pyo3::Python::with_gil(|py| {
 4356   4440   
                r.extract::<crate::output::IgnoreQueryParamsInResponseOutput>(py)
 4357   4441   
            })
 4358   4442   
        })
 4359   4443   
    } else {
 4360   4444   
        ::tracing::trace!(
 4361   4445   
            name = "ignore_query_params_in_response",
 4362   4446   
            "executing python handler function"
 4363   4447   
        );
 4364   4448   
        ::pyo3::Python::with_gil(|py| {
 4365   4449   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4366   4450   
            let output = if handler.args == 1 {
 4367   4451   
                pyhandler.call1((input,))?
 4368   4452   
            } else {
 4369   4453   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4370   4454   
            };
 4371   4455   
            output.extract::<crate::output::IgnoreQueryParamsInResponseOutput>()
 4372   4456   
        })
 4373   4457   
    };
 4374   4458   
    // Catch and record a Python traceback.
 4375   4459   
    result.map_err(|e| {
 4376   4460   
        let rich_py_err =
 4377   4461   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 4378   4462   
                e.clone_ref(py)
 4379   4463   
            }));
 4380   4464   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 4381   4465   
        e.into()
 4382   4466   
    })
 4383   4467   
}
 4384   4468   
        4469  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 4385   4470   
/// Python handler for operation `ConstantAndVariableQueryString`.
 4386   4471   
pub(crate) async fn constant_and_variable_query_string(
 4387   4472   
    input: crate::input::ConstantAndVariableQueryStringInput,
 4388   4473   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 4389   4474   
    handler: ::aws_smithy_http_server_python::PyHandler,
 4390   4475   
) -> std::result::Result<
 4391   4476   
    crate::output::ConstantAndVariableQueryStringOutput,
 4392   4477   
    crate::error::ConstantAndVariableQueryStringError,
 4393   4478   
> {
 4394   4479   
    // Async block used to run the handler and catch any Python error.
 4395   4480   
    let result = if handler.is_coroutine {
 4396   4481   
        ::tracing::trace!(
 4397   4482   
            name = "constant_and_variable_query_string",
 4398   4483   
            "executing python handler coroutine"
 4399   4484   
        );
 4400   4485   
        let result = ::pyo3::Python::with_gil(|py| {
 4401   4486   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4402   4487   
            let coroutine = if handler.args == 1 {
 4403   4488   
                pyhandler.call1((input,))?
 4404   4489   
            } else {
 4405   4490   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4406   4491   
            };
 4407   4492   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 4408   4493   
        })?;
 4409   4494   
        result.await.and_then(|r| {
 4410   4495   
            ::pyo3::Python::with_gil(|py| {
 4411   4496   
                r.extract::<crate::output::ConstantAndVariableQueryStringOutput>(py)
 4412   4497   
            })
 4413   4498   
        })
 4414   4499   
    } else {
 4415   4500   
        ::tracing::trace!(
 4416   4501   
            name = "constant_and_variable_query_string",
 4417   4502   
            "executing python handler function"
 4418   4503   
        );
 4419   4504   
        ::pyo3::Python::with_gil(|py| {
 4420   4505   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4421   4506   
            let output = if handler.args == 1 {
 4422   4507   
                pyhandler.call1((input,))?
 4423   4508   
            } else {
 4424   4509   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4425   4510   
            };
 4426   4511   
            output.extract::<crate::output::ConstantAndVariableQueryStringOutput>()
 4427   4512   
        })
 4428   4513   
    };
 4429   4514   
    // Catch and record a Python traceback.
 4430   4515   
    result.map_err(|e| {
 4431   4516   
        let rich_py_err =
 4432   4517   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 4433   4518   
                e.clone_ref(py)
 4434   4519   
            }));
 4435   4520   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 4436   4521   
        e.into()
 4437   4522   
    })
 4438   4523   
}
 4439   4524   
        4525  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 4440   4526   
/// Python handler for operation `ConstantQueryString`.
 4441   4527   
pub(crate) async fn constant_query_string(
 4442   4528   
    input: crate::input::ConstantQueryStringInput,
 4443   4529   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 4444   4530   
    handler: ::aws_smithy_http_server_python::PyHandler,
 4445   4531   
) -> std::result::Result<
 4446   4532   
    crate::output::ConstantQueryStringOutput,
 4447   4533   
    crate::error::ConstantQueryStringError,
 4448   4534   
> {
 4449   4535   
    // Async block used to run the handler and catch any Python error.
 4450   4536   
    let result = if handler.is_coroutine {
 4451   4537   
        ::tracing::trace!(
 4452   4538   
            name = "constant_query_string",
 4453   4539   
            "executing python handler coroutine"
 4454   4540   
        );
 4455   4541   
        let result = ::pyo3::Python::with_gil(|py| {
 4456   4542   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4457   4543   
            let coroutine = if handler.args == 1 {
 4458   4544   
                pyhandler.call1((input,))?
 4459   4545   
            } else {
 4460   4546   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4461   4547   
            };
 4462   4548   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 4463   4549   
        })?;
 4464   4550   
        result.await.and_then(|r| {
 4465   4551   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::ConstantQueryStringOutput>(py))
 4466   4552   
        })
 4467   4553   
    } else {
 4468   4554   
        ::tracing::trace!(
 4469   4555   
            name = "constant_query_string",
 4470   4556   
            "executing python handler function"
 4471   4557   
        );
 4472   4558   
        ::pyo3::Python::with_gil(|py| {
 4473   4559   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4474   4560   
            let output = if handler.args == 1 {
 4475   4561   
                pyhandler.call1((input,))?
 4476   4562   
            } else {
 4477   4563   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4478   4564   
            };
 4479   4565   
            output.extract::<crate::output::ConstantQueryStringOutput>()
 4480   4566   
        })
 4481   4567   
    };
 4482   4568   
    // Catch and record a Python traceback.
 4483   4569   
    result.map_err(|e| {
 4484   4570   
        let rich_py_err =
 4485   4571   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 4486   4572   
                e.clone_ref(py)
 4487   4573   
            }));
 4488   4574   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 4489   4575   
        e.into()
 4490   4576   
    })
 4491   4577   
}
 4492   4578   
        4579  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 4493   4580   
/// Python handler for operation `AllQueryStringTypes`.
 4494   4581   
pub(crate) async fn all_query_string_types(
 4495   4582   
    input: crate::input::AllQueryStringTypesInput,
 4496   4583   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 4497   4584   
    handler: ::aws_smithy_http_server_python::PyHandler,
 4498   4585   
) -> std::result::Result<
 4499   4586   
    crate::output::AllQueryStringTypesOutput,
 4500   4587   
    crate::error::AllQueryStringTypesError,
 4501   4588   
> {
 4502   4589   
    // Async block used to run the handler and catch any Python error.
 4503   4590   
    let result = if handler.is_coroutine {
 4504   4591   
        ::tracing::trace!(
 4505   4592   
            name = "all_query_string_types",
 4506   4593   
            "executing python handler coroutine"
 4507   4594   
        );
 4508   4595   
        let result = ::pyo3::Python::with_gil(|py| {
 4509   4596   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4510   4597   
            let coroutine = if handler.args == 1 {
 4511   4598   
                pyhandler.call1((input,))?
 4512   4599   
            } else {
 4513   4600   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4514   4601   
            };
 4515   4602   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 4516   4603   
        })?;
 4517   4604   
        result.await.and_then(|r| {
 4518   4605   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::AllQueryStringTypesOutput>(py))
 4519   4606   
        })
 4520   4607   
    } else {
 4521   4608   
        ::tracing::trace!(
 4522   4609   
            name = "all_query_string_types",
 4523   4610   
            "executing python handler function"
 4524   4611   
        );
 4525   4612   
        ::pyo3::Python::with_gil(|py| {
 4526   4613   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4527   4614   
            let output = if handler.args == 1 {
 4528   4615   
                pyhandler.call1((input,))?
 4529   4616   
            } else {
 4530   4617   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4531   4618   
            };
 4532   4619   
            output.extract::<crate::output::AllQueryStringTypesOutput>()
 4533   4620   
        })
 4534   4621   
    };
 4535   4622   
    // Catch and record a Python traceback.
 4536   4623   
    result.map_err(|e| {
 4537   4624   
        let rich_py_err =
 4538   4625   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 4539   4626   
                e.clone_ref(py)
 4540   4627   
            }));
 4541   4628   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 4542   4629   
        e.into()
 4543   4630   
    })
 4544   4631   
}
 4545   4632   
        4633  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 4546   4634   
/// Python handler for operation `HttpRequestWithRegexLiteral`.
 4547   4635   
pub(crate) async fn http_request_with_regex_literal(
 4548   4636   
    input: crate::input::HttpRequestWithRegexLiteralInput,
 4549   4637   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 4550   4638   
    handler: ::aws_smithy_http_server_python::PyHandler,
 4551   4639   
) -> std::result::Result<
 4552   4640   
    crate::output::HttpRequestWithRegexLiteralOutput,
 4553   4641   
    crate::error::HttpRequestWithRegexLiteralError,
 4554   4642   
> {
 4555   4643   
    // Async block used to run the handler and catch any Python error.
 4556   4644   
    let result = if handler.is_coroutine {
 4557   4645   
        ::tracing::trace!(
 4558   4646   
            name = "http_request_with_regex_literal",
 4559   4647   
            "executing python handler coroutine"
 4560   4648   
        );
 4561   4649   
        let result = ::pyo3::Python::with_gil(|py| {
 4562   4650   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4563   4651   
            let coroutine = if handler.args == 1 {
 4564   4652   
                pyhandler.call1((input,))?
 4565   4653   
            } else {
 4566   4654   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4567   4655   
            };
 4568   4656   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 4569   4657   
        })?;
 4570   4658   
        result.await.and_then(|r| {
 4571   4659   
            ::pyo3::Python::with_gil(|py| {
 4572   4660   
                r.extract::<crate::output::HttpRequestWithRegexLiteralOutput>(py)
 4573   4661   
            })
 4574   4662   
        })
 4575   4663   
    } else {
 4576   4664   
        ::tracing::trace!(
 4577   4665   
            name = "http_request_with_regex_literal",
 4578   4666   
            "executing python handler function"
 4579   4667   
        );
 4580   4668   
        ::pyo3::Python::with_gil(|py| {
 4581   4669   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4582   4670   
            let output = if handler.args == 1 {
 4583   4671   
                pyhandler.call1((input,))?
 4584   4672   
            } else {
 4585   4673   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4586   4674   
            };
 4587   4675   
            output.extract::<crate::output::HttpRequestWithRegexLiteralOutput>()
 4588   4676   
        })
 4589   4677   
    };
 4590   4678   
    // Catch and record a Python traceback.
 4591   4679   
    result.map_err(|e| {
 4592   4680   
        let rich_py_err =
 4593   4681   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 4594   4682   
                e.clone_ref(py)
 4595   4683   
            }));
 4596   4684   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 4597   4685   
        e.into()
 4598   4686   
    })
 4599   4687   
}
 4600   4688   
        4689  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 4601   4690   
/// Python handler for operation `HttpRequestWithFloatLabels`.
 4602   4691   
pub(crate) async fn http_request_with_float_labels(
 4603   4692   
    input: crate::input::HttpRequestWithFloatLabelsInput,
 4604   4693   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 4605   4694   
    handler: ::aws_smithy_http_server_python::PyHandler,
 4606   4695   
) -> std::result::Result<
 4607   4696   
    crate::output::HttpRequestWithFloatLabelsOutput,
 4608   4697   
    crate::error::HttpRequestWithFloatLabelsError,
 4609   4698   
> {
 4610   4699   
    // Async block used to run the handler and catch any Python error.
 4611   4700   
    let result = if handler.is_coroutine {
 4612   4701   
        ::tracing::trace!(
 4613   4702   
            name = "http_request_with_float_labels",
 4614   4703   
            "executing python handler coroutine"
 4615   4704   
        );
 4616   4705   
        let result = ::pyo3::Python::with_gil(|py| {
 4617   4706   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4618   4707   
            let coroutine = if handler.args == 1 {
 4619   4708   
                pyhandler.call1((input,))?
 4620   4709   
            } else {
 4621   4710   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4622   4711   
            };
 4623   4712   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 4624   4713   
        })?;
 4625   4714   
        result.await.and_then(|r| {
 4626   4715   
            ::pyo3::Python::with_gil(|py| {
 4627   4716   
                r.extract::<crate::output::HttpRequestWithFloatLabelsOutput>(py)
 4628   4717   
            })
 4629   4718   
        })
 4630   4719   
    } else {
 4631   4720   
        ::tracing::trace!(
 4632   4721   
            name = "http_request_with_float_labels",
 4633   4722   
            "executing python handler function"
 4634   4723   
        );
 4635   4724   
        ::pyo3::Python::with_gil(|py| {
 4636   4725   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4637   4726   
            let output = if handler.args == 1 {
 4638   4727   
                pyhandler.call1((input,))?
 4639   4728   
            } else {
 4640   4729   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4641   4730   
            };
 4642   4731   
            output.extract::<crate::output::HttpRequestWithFloatLabelsOutput>()
 4643   4732   
        })
 4644   4733   
    };
 4645   4734   
    // Catch and record a Python traceback.
 4646   4735   
    result.map_err(|e| {
 4647   4736   
        let rich_py_err =
 4648   4737   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 4649   4738   
                e.clone_ref(py)
 4650   4739   
            }));
 4651   4740   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 4652   4741   
        e.into()
 4653   4742   
    })
 4654   4743   
}
 4655   4744   
        4745  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 4656   4746   
/// Python handler for operation `HttpRequestWithGreedyLabelInPath`.
 4657   4747   
pub(crate) async fn http_request_with_greedy_label_in_path(
 4658   4748   
    input: crate::input::HttpRequestWithGreedyLabelInPathInput,
 4659   4749   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 4660   4750   
    handler: ::aws_smithy_http_server_python::PyHandler,
 4661   4751   
) -> std::result::Result<
 4662   4752   
    crate::output::HttpRequestWithGreedyLabelInPathOutput,
 4663   4753   
    crate::error::HttpRequestWithGreedyLabelInPathError,
 4664   4754   
> {
 4665   4755   
    // Async block used to run the handler and catch any Python error.
 4666   4756   
    let result = if handler.is_coroutine {
 4667   4757   
        ::tracing::trace!(
 4668   4758   
            name = "http_request_with_greedy_label_in_path",
 4669   4759   
            "executing python handler coroutine"
 4670   4760   
        );
 4671   4761   
        let result = ::pyo3::Python::with_gil(|py| {
 4672   4762   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4673   4763   
            let coroutine = if handler.args == 1 {
 4674   4764   
                pyhandler.call1((input,))?
 4675   4765   
            } else {
 4676   4766   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4677   4767   
            };
 4678   4768   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 4679   4769   
        })?;
 4680   4770   
        result.await.and_then(|r| {
 4681   4771   
            ::pyo3::Python::with_gil(|py| {
 4682   4772   
                r.extract::<crate::output::HttpRequestWithGreedyLabelInPathOutput>(py)
 4683   4773   
            })
 4684   4774   
        })
 4685   4775   
    } else {
 4686   4776   
        ::tracing::trace!(
 4687   4777   
            name = "http_request_with_greedy_label_in_path",
 4688   4778   
            "executing python handler function"
 4689   4779   
        );
 4690   4780   
        ::pyo3::Python::with_gil(|py| {
 4691   4781   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4692   4782   
            let output = if handler.args == 1 {
 4693   4783   
                pyhandler.call1((input,))?
 4694   4784   
            } else {
 4695   4785   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4696   4786   
            };
 4697   4787   
            output.extract::<crate::output::HttpRequestWithGreedyLabelInPathOutput>()
 4698   4788   
        })
 4699   4789   
    };
 4700   4790   
    // Catch and record a Python traceback.
 4701   4791   
    result.map_err(|e| {
 4702   4792   
        let rich_py_err =
 4703   4793   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 4704   4794   
                e.clone_ref(py)
 4705   4795   
            }));
 4706   4796   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 4707   4797   
        e.into()
 4708   4798   
    })
 4709   4799   
}
 4710   4800   
        4801  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 4711   4802   
/// Python handler for operation `HttpRequestWithLabelsAndTimestampFormat`.
 4712   4803   
pub(crate) async fn http_request_with_labels_and_timestamp_format(
 4713   4804   
    input: crate::input::HttpRequestWithLabelsAndTimestampFormatInput,
 4714   4805   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 4715   4806   
    handler: ::aws_smithy_http_server_python::PyHandler,
 4716   4807   
) -> std::result::Result<
 4717   4808   
    crate::output::HttpRequestWithLabelsAndTimestampFormatOutput,
 4718   4809   
    crate::error::HttpRequestWithLabelsAndTimestampFormatError,
 4719   4810   
> {
 4720   4811   
    // Async block used to run the handler and catch any Python error.
 4721   4812   
    let result = if handler.is_coroutine {
 4722   4813   
        ::tracing::trace!(
 4723   4814   
            name = "http_request_with_labels_and_timestamp_format",
 4724   4815   
            "executing python handler coroutine"
 4725   4816   
        );
 4726   4817   
        let result = ::pyo3::Python::with_gil(|py| {
 4727   4818   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4728   4819   
            let coroutine = if handler.args == 1 {
 4729   4820   
                pyhandler.call1((input,))?
 4730   4821   
            } else {
 4731   4822   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4732   4823   
            };
 4733   4824   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 4734   4825   
        })?;
 4735   4826   
        result.await.and_then(|r| {
 4736   4827   
            ::pyo3::Python::with_gil(|py| {
 4737   4828   
                r.extract::<crate::output::HttpRequestWithLabelsAndTimestampFormatOutput>(py)
 4738   4829   
            })
 4739   4830   
        })
 4740   4831   
    } else {
 4741   4832   
        ::tracing::trace!(
 4742   4833   
            name = "http_request_with_labels_and_timestamp_format",
 4743   4834   
            "executing python handler function"
 4744   4835   
        );
 4745   4836   
        ::pyo3::Python::with_gil(|py| {
 4746   4837   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4747   4838   
            let output = if handler.args == 1 {
 4748   4839   
                pyhandler.call1((input,))?
 4749   4840   
            } else {
 4750   4841   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4751   4842   
            };
 4752   4843   
            output.extract::<crate::output::HttpRequestWithLabelsAndTimestampFormatOutput>()
 4753   4844   
        })
 4754   4845   
    };
 4755   4846   
    // Catch and record a Python traceback.
 4756   4847   
    result.map_err(|e| {
 4757   4848   
        let rich_py_err =
 4758   4849   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 4759   4850   
                e.clone_ref(py)
 4760   4851   
            }));
 4761   4852   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 4762   4853   
        e.into()
 4763   4854   
    })
 4764   4855   
}
 4765   4856   
        4857  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 4766   4858   
/// Python handler for operation `HttpRequestWithLabels`.
 4767   4859   
pub(crate) async fn http_request_with_labels(
 4768   4860   
    input: crate::input::HttpRequestWithLabelsInput,
 4769   4861   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 4770   4862   
    handler: ::aws_smithy_http_server_python::PyHandler,
 4771   4863   
) -> std::result::Result<
 4772   4864   
    crate::output::HttpRequestWithLabelsOutput,
 4773   4865   
    crate::error::HttpRequestWithLabelsError,
 4774   4866   
> {
 4775   4867   
    // Async block used to run the handler and catch any Python error.
 4776   4868   
    let result = if handler.is_coroutine {
 4777   4869   
        ::tracing::trace!(
 4778   4870   
            name = "http_request_with_labels",
 4779   4871   
            "executing python handler coroutine"
 4780   4872   
        );
 4781   4873   
        let result = ::pyo3::Python::with_gil(|py| {
 4782   4874   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4783   4875   
            let coroutine = if handler.args == 1 {
 4784   4876   
                pyhandler.call1((input,))?
 4785   4877   
            } else {
 4786   4878   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4787   4879   
            };
 4788   4880   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 4789   4881   
        })?;
 4790   4882   
        result.await.and_then(|r| {
 4791   4883   
            ::pyo3::Python::with_gil(|py| {
 4792   4884   
                r.extract::<crate::output::HttpRequestWithLabelsOutput>(py)
 4793   4885   
            })
 4794   4886   
        })
 4795   4887   
    } else {
 4796   4888   
        ::tracing::trace!(
 4797   4889   
            name = "http_request_with_labels",
 4798   4890   
            "executing python handler function"
 4799   4891   
        );
 4800   4892   
        ::pyo3::Python::with_gil(|py| {
 4801   4893   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4802   4894   
            let output = if handler.args == 1 {
 4803   4895   
                pyhandler.call1((input,))?
 4804   4896   
            } else {
 4805   4897   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4806   4898   
            };
 4807   4899   
            output.extract::<crate::output::HttpRequestWithLabelsOutput>()
 4808   4900   
        })
 4809   4901   
    };
 4810   4902   
    // Catch and record a Python traceback.
 4811   4903   
    result.map_err(|e| {
 4812   4904   
        let rich_py_err =
 4813   4905   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 4814   4906   
                e.clone_ref(py)
 4815   4907   
            }));
 4816   4908   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 4817   4909   
        e.into()
 4818   4910   
    })
 4819   4911   
}
 4820   4912   
        4913  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 4821   4914   
/// Python handler for operation `MediaTypeHeader`.
 4822   4915   
pub(crate) async fn media_type_header(
 4823   4916   
    input: crate::input::MediaTypeHeaderInput,
 4824   4917   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 4825   4918   
    handler: ::aws_smithy_http_server_python::PyHandler,
 4826   4919   
) -> std::result::Result<crate::output::MediaTypeHeaderOutput, crate::error::MediaTypeHeaderError> {
 4827   4920   
    // Async block used to run the handler and catch any Python error.
 4828   4921   
    let result = if handler.is_coroutine {
 4829   4922   
        ::tracing::trace!(
 4830   4923   
            name = "media_type_header",
 4831   4924   
            "executing python handler coroutine"
 4832   4925   
        );
 4833   4926   
        let result = ::pyo3::Python::with_gil(|py| {
 4834   4927   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4835   4928   
            let coroutine = if handler.args == 1 {
 4836   4929   
                pyhandler.call1((input,))?
 4837   4930   
            } else {
 4838   4931   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4839   4932   
            };
 4840   4933   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 4841   4934   
        })?;
 4842   4935   
        result.await.and_then(|r| {
 4843   4936   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::MediaTypeHeaderOutput>(py))
 4844   4937   
        })
 4845   4938   
    } else {
 4846   4939   
        ::tracing::trace!(
 4847   4940   
            name = "media_type_header",
 4848   4941   
            "executing python handler function"
 4849   4942   
        );
 4850   4943   
        ::pyo3::Python::with_gil(|py| {
 4851   4944   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4852   4945   
            let output = if handler.args == 1 {
 4853   4946   
                pyhandler.call1((input,))?
 4854   4947   
            } else {
 4855   4948   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4856   4949   
            };
 4857   4950   
            output.extract::<crate::output::MediaTypeHeaderOutput>()
 4858   4951   
        })
 4859   4952   
    };
 4860   4953   
    // Catch and record a Python traceback.
 4861   4954   
    result.map_err(|e| {
 4862   4955   
        let rich_py_err =
 4863   4956   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 4864   4957   
                e.clone_ref(py)
 4865   4958   
            }));
 4866   4959   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 4867   4960   
        e.into()
 4868   4961   
    })
 4869   4962   
}
 4870   4963   
        4964  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 4871   4965   
/// Python handler for operation `TimestampFormatHeaders`.
 4872   4966   
pub(crate) async fn timestamp_format_headers(
 4873   4967   
    input: crate::input::TimestampFormatHeadersInput,
 4874   4968   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 4875   4969   
    handler: ::aws_smithy_http_server_python::PyHandler,
 4876   4970   
) -> std::result::Result<
 4877   4971   
    crate::output::TimestampFormatHeadersOutput,
 4878   4972   
    crate::error::TimestampFormatHeadersError,
 4879   4973   
> {
 4880   4974   
    // Async block used to run the handler and catch any Python error.
 4881   4975   
    let result = if handler.is_coroutine {
 4882   4976   
        ::tracing::trace!(
 4883   4977   
            name = "timestamp_format_headers",
 4884   4978   
            "executing python handler coroutine"
 4885   4979   
        );
 4886   4980   
        let result = ::pyo3::Python::with_gil(|py| {
 4887   4981   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4888   4982   
            let coroutine = if handler.args == 1 {
 4889   4983   
                pyhandler.call1((input,))?
 4890   4984   
            } else {
 4891   4985   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4892   4986   
            };
 4893   4987   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 4894   4988   
        })?;
 4895   4989   
        result.await.and_then(|r| {
 4896   4990   
            ::pyo3::Python::with_gil(|py| {
 4897   4991   
                r.extract::<crate::output::TimestampFormatHeadersOutput>(py)
 4898   4992   
            })
 4899   4993   
        })
 4900   4994   
    } else {
 4901   4995   
        ::tracing::trace!(
 4902   4996   
            name = "timestamp_format_headers",
 4903   4997   
            "executing python handler function"
 4904   4998   
        );
 4905   4999   
        ::pyo3::Python::with_gil(|py| {
 4906   5000   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4907   5001   
            let output = if handler.args == 1 {
 4908   5002   
                pyhandler.call1((input,))?
 4909   5003   
            } else {
 4910   5004   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4911   5005   
            };
 4912   5006   
            output.extract::<crate::output::TimestampFormatHeadersOutput>()
 4913   5007   
        })
 4914   5008   
    };
 4915   5009   
    // Catch and record a Python traceback.
 4916   5010   
    result.map_err(|e| {
 4917   5011   
        let rich_py_err =
 4918   5012   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 4919   5013   
                e.clone_ref(py)
 4920   5014   
            }));
 4921   5015   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 4922   5016   
        e.into()
 4923   5017   
    })
 4924   5018   
}
 4925   5019   
        5020  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 4926   5021   
/// Python handler for operation `NullAndEmptyHeadersServer`.
 4927   5022   
pub(crate) async fn null_and_empty_headers_server(
 4928   5023   
    input: crate::input::NullAndEmptyHeadersServerInput,
 4929   5024   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 4930   5025   
    handler: ::aws_smithy_http_server_python::PyHandler,
 4931   5026   
) -> std::result::Result<
 4932   5027   
    crate::output::NullAndEmptyHeadersServerOutput,
 4933   5028   
    crate::error::NullAndEmptyHeadersServerError,
 4934   5029   
> {
 4935   5030   
    // Async block used to run the handler and catch any Python error.
 4936   5031   
    let result = if handler.is_coroutine {
 4937   5032   
        ::tracing::trace!(
 4938   5033   
            name = "null_and_empty_headers_server",
 4939   5034   
            "executing python handler coroutine"
 4940   5035   
        );
 4941   5036   
        let result = ::pyo3::Python::with_gil(|py| {
 4942   5037   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4943   5038   
            let coroutine = if handler.args == 1 {
 4944   5039   
                pyhandler.call1((input,))?
 4945   5040   
            } else {
 4946   5041   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4947   5042   
            };
 4948   5043   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 4949   5044   
        })?;
 4950   5045   
        result.await.and_then(|r| {
 4951   5046   
            ::pyo3::Python::with_gil(|py| {
 4952   5047   
                r.extract::<crate::output::NullAndEmptyHeadersServerOutput>(py)
 4953   5048   
            })
 4954   5049   
        })
 4955   5050   
    } else {
 4956   5051   
        ::tracing::trace!(
 4957   5052   
            name = "null_and_empty_headers_server",
 4958   5053   
            "executing python handler function"
 4959   5054   
        );
 4960   5055   
        ::pyo3::Python::with_gil(|py| {
 4961   5056   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4962   5057   
            let output = if handler.args == 1 {
 4963   5058   
                pyhandler.call1((input,))?
 4964   5059   
            } else {
 4965   5060   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 4966   5061   
            };
 4967   5062   
            output.extract::<crate::output::NullAndEmptyHeadersServerOutput>()
 4968   5063   
        })
 4969   5064   
    };
 4970   5065   
    // Catch and record a Python traceback.
 4971   5066   
    result.map_err(|e| {
 4972   5067   
        let rich_py_err =
 4973   5068   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 4974   5069   
                e.clone_ref(py)
 4975   5070   
            }));
 4976   5071   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 4977   5072   
        e.into()
 4978   5073   
    })
 4979   5074   
}
 4980   5075   
        5076  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 4981   5077   
/// Python handler for operation `NullAndEmptyHeadersClient`.
 4982   5078   
pub(crate) async fn null_and_empty_headers_client(
 4983   5079   
    input: crate::input::NullAndEmptyHeadersClientInput,
 4984   5080   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 4985   5081   
    handler: ::aws_smithy_http_server_python::PyHandler,
 4986   5082   
) -> std::result::Result<
 4987   5083   
    crate::output::NullAndEmptyHeadersClientOutput,
 4988   5084   
    crate::error::NullAndEmptyHeadersClientError,
 4989   5085   
> {
 4990   5086   
    // Async block used to run the handler and catch any Python error.
 4991   5087   
    let result = if handler.is_coroutine {
 4992   5088   
        ::tracing::trace!(
 4993   5089   
            name = "null_and_empty_headers_client",
 4994   5090   
            "executing python handler coroutine"
 4995   5091   
        );
 4996   5092   
        let result = ::pyo3::Python::with_gil(|py| {
 4997   5093   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 4998   5094   
            let coroutine = if handler.args == 1 {
 4999   5095   
                pyhandler.call1((input,))?
 5000   5096   
            } else {
 5001   5097   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 5002   5098   
            };
 5003   5099   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 5004   5100   
        })?;
 5005   5101   
        result.await.and_then(|r| {
 5006   5102   
            ::pyo3::Python::with_gil(|py| {
 5007   5103   
                r.extract::<crate::output::NullAndEmptyHeadersClientOutput>(py)
 5008   5104   
            })
 5009   5105   
        })
 5010   5106   
    } else {
 5011   5107   
        ::tracing::trace!(
 5012   5108   
            name = "null_and_empty_headers_client",
 5013   5109   
            "executing python handler function"
 5014   5110   
        );
 5015   5111   
        ::pyo3::Python::with_gil(|py| {
 5016   5112   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 5017   5113   
            let output = if handler.args == 1 {
 5018   5114   
                pyhandler.call1((input,))?
 5019   5115   
            } else {
 5020   5116   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 5021   5117   
            };
 5022   5118   
            output.extract::<crate::output::NullAndEmptyHeadersClientOutput>()
 5023   5119   
        })
 5024   5120   
    };
 5025   5121   
    // Catch and record a Python traceback.
 5026   5122   
    result.map_err(|e| {
 5027   5123   
        let rich_py_err =
 5028   5124   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 5029   5125   
                e.clone_ref(py)
 5030   5126   
            }));
 5031   5127   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 5032   5128   
        e.into()
 5033   5129   
    })
 5034   5130   
}
 5035   5131   
        5132  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 5036   5133   
/// Python handler for operation `InputAndOutputWithHeaders`.
 5037   5134   
pub(crate) async fn input_and_output_with_headers(
 5038   5135   
    input: crate::input::InputAndOutputWithHeadersInput,
 5039   5136   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 5040   5137   
    handler: ::aws_smithy_http_server_python::PyHandler,
 5041   5138   
) -> std::result::Result<
 5042   5139   
    crate::output::InputAndOutputWithHeadersOutput,
 5043   5140   
    crate::error::InputAndOutputWithHeadersError,
 5044   5141   
> {
 5045   5142   
    // Async block used to run the handler and catch any Python error.
 5046   5143   
    let result = if handler.is_coroutine {
 5047   5144   
        ::tracing::trace!(
 5048   5145   
            name = "input_and_output_with_headers",
 5049   5146   
            "executing python handler coroutine"
 5050   5147   
        );
 5051   5148   
        let result = ::pyo3::Python::with_gil(|py| {
 5052   5149   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 5053   5150   
            let coroutine = if handler.args == 1 {
 5054   5151   
                pyhandler.call1((input,))?
 5055   5152   
            } else {
 5056   5153   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 5057   5154   
            };
 5058   5155   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 5059   5156   
        })?;
 5060   5157   
        result.await.and_then(|r| {
 5061   5158   
            ::pyo3::Python::with_gil(|py| {
 5062   5159   
                r.extract::<crate::output::InputAndOutputWithHeadersOutput>(py)
 5063   5160   
            })
 5064   5161   
        })
 5065   5162   
    } else {
 5066   5163   
        ::tracing::trace!(
 5067   5164   
            name = "input_and_output_with_headers",
 5068   5165   
            "executing python handler function"
 5069   5166   
        );
 5070   5167   
        ::pyo3::Python::with_gil(|py| {
 5071   5168   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 5072   5169   
            let output = if handler.args == 1 {
 5073   5170   
                pyhandler.call1((input,))?
 5074   5171   
            } else {
 5075   5172   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 5076   5173   
            };
 5077   5174   
            output.extract::<crate::output::InputAndOutputWithHeadersOutput>()
 5078   5175   
        })
 5079   5176   
    };
 5080   5177   
    // Catch and record a Python traceback.
 5081   5178   
    result.map_err(|e| {
 5082   5179   
        let rich_py_err =
 5083   5180   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 5084   5181   
                e.clone_ref(py)
 5085   5182   
            }));
 5086   5183   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 5087   5184   
        e.into()
 5088   5185   
    })
 5089   5186   
}
 5090   5187   
        5188  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 5091   5189   
/// Python handler for operation `UnitInputAndOutput`.
 5092   5190   
pub(crate) async fn unit_input_and_output(
 5093   5191   
    input: crate::input::UnitInputAndOutputInput,
 5094   5192   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 5095   5193   
    handler: ::aws_smithy_http_server_python::PyHandler,
 5096   5194   
) -> std::result::Result<
 5097   5195   
    crate::output::UnitInputAndOutputOutput,
 5098   5196   
    crate::error::UnitInputAndOutputError,
 5099   5197   
> {
 5100   5198   
    // Async block used to run the handler and catch any Python error.
 5101   5199   
    let result = if handler.is_coroutine {
 5102   5200   
        ::tracing::trace!(
 5103   5201   
            name = "unit_input_and_output",
 5104   5202   
            "executing python handler coroutine"
 5105   5203   
        );
 5106   5204   
        let result = ::pyo3::Python::with_gil(|py| {
 5107   5205   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 5108   5206   
            let coroutine = if handler.args == 1 {
 5109   5207   
                pyhandler.call1((input,))?
 5110   5208   
            } else {
 5111   5209   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 5112   5210   
            };
 5113   5211   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 5114   5212   
        })?;
 5115   5213   
        result.await.and_then(|r| {
 5116   5214   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::UnitInputAndOutputOutput>(py))
 5117   5215   
        })
 5118   5216   
    } else {
 5119   5217   
        ::tracing::trace!(
 5120   5218   
            name = "unit_input_and_output",
 5121   5219   
            "executing python handler function"
 5122   5220   
        );
 5123   5221   
        ::pyo3::Python::with_gil(|py| {
 5124   5222   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 5125   5223   
            let output = if handler.args == 1 {
 5126   5224   
                pyhandler.call1((input,))?
 5127   5225   
            } else {
 5128   5226   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 5129   5227   
            };
 5130   5228   
            output.extract::<crate::output::UnitInputAndOutputOutput>()
 5131   5229   
        })
 5132   5230   
    };
 5133   5231   
    // Catch and record a Python traceback.
 5134   5232   
    result.map_err(|e| {
 5135   5233   
        let rich_py_err =
 5136   5234   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 5137   5235   
                e.clone_ref(py)
 5138   5236   
            }));
 5139   5237   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 5140   5238   
        e.into()
 5141   5239   
    })
 5142   5240   
}
 5143   5241   
        5242  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 5144   5243   
/// Python handler for operation `EmptyInputAndEmptyOutput`.
 5145   5244   
pub(crate) async fn empty_input_and_empty_output(
 5146   5245   
    input: crate::input::EmptyInputAndEmptyOutputInput,
 5147   5246   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 5148   5247   
    handler: ::aws_smithy_http_server_python::PyHandler,
 5149   5248   
) -> std::result::Result<
 5150   5249   
    crate::output::EmptyInputAndEmptyOutputOutput,
 5151   5250   
    crate::error::EmptyInputAndEmptyOutputError,
 5152   5251   
> {
 5153   5252   
    // Async block used to run the handler and catch any Python error.
 5154   5253   
    let result = if handler.is_coroutine {
 5155   5254   
        ::tracing::trace!(
 5156   5255   
            name = "empty_input_and_empty_output",
 5157   5256   
            "executing python handler coroutine"
 5158   5257   
        );
 5159   5258   
        let result = ::pyo3::Python::with_gil(|py| {
 5160   5259   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 5161   5260   
            let coroutine = if handler.args == 1 {
 5162   5261   
                pyhandler.call1((input,))?
 5163   5262   
            } else {
 5164   5263   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 5165   5264   
            };
 5166   5265   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 5167   5266   
        })?;
 5168   5267   
        result.await.and_then(|r| {
 5169   5268   
            ::pyo3::Python::with_gil(|py| {
 5170   5269   
                r.extract::<crate::output::EmptyInputAndEmptyOutputOutput>(py)
 5171   5270   
            })
 5172   5271   
        })
 5173   5272   
    } else {
 5174   5273   
        ::tracing::trace!(
 5175   5274   
            name = "empty_input_and_empty_output",
 5176   5275   
            "executing python handler function"
 5177   5276   
        );
 5178   5277   
        ::pyo3::Python::with_gil(|py| {
 5179   5278   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 5180   5279   
            let output = if handler.args == 1 {
 5181   5280   
                pyhandler.call1((input,))?
 5182   5281   
            } else {
 5183   5282   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 5184   5283   
            };
 5185   5284   
            output.extract::<crate::output::EmptyInputAndEmptyOutputOutput>()
 5186   5285   
        })
 5187   5286   
    };
 5188   5287   
    // Catch and record a Python traceback.
 5189   5288   
    result.map_err(|e| {
 5190   5289   
        let rich_py_err =
 5191   5290   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 5192   5291   
                e.clone_ref(py)
 5193   5292   
            }));
 5194   5293   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 5195   5294   
        e.into()
 5196   5295   
    })
 5197   5296   
}
 5198   5297   
        5298  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 5199   5299   
/// Python handler for operation `NoInputAndOutput`.
 5200   5300   
pub(crate) async fn no_input_and_output(
 5201   5301   
    input: crate::input::NoInputAndOutputInput,
 5202   5302   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 5203   5303   
    handler: ::aws_smithy_http_server_python::PyHandler,
 5204   5304   
) -> std::result::Result<crate::output::NoInputAndOutputOutput, crate::error::NoInputAndOutputError>
 5205   5305   
{
 5206   5306   
    // Async block used to run the handler and catch any Python error.
 5207   5307   
    let result = if handler.is_coroutine {
 5208   5308   
        ::tracing::trace!(
 5209   5309   
            name = "no_input_and_output",
 5210   5310   
            "executing python handler coroutine"
 5211   5311   
        );
 5212   5312   
        let result = ::pyo3::Python::with_gil(|py| {
 5213   5313   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 5214   5314   
            let coroutine = if handler.args == 1 {
 5215   5315   
                pyhandler.call1((input,))?
 5216   5316   
            } else {
 5217   5317   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 5218   5318   
            };
 5219   5319   
            ::pyo3_asyncio::tokio::into_future(coroutine)
 5220   5320   
        })?;
 5221   5321   
        result.await.and_then(|r| {
 5222   5322   
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::NoInputAndOutputOutput>(py))
 5223   5323   
        })
 5224   5324   
    } else {
 5225   5325   
        ::tracing::trace!(
 5226   5326   
            name = "no_input_and_output",
 5227   5327   
            "executing python handler function"
 5228   5328   
        );
 5229   5329   
        ::pyo3::Python::with_gil(|py| {
 5230   5330   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
 5231   5331   
            let output = if handler.args == 1 {
 5232   5332   
                pyhandler.call1((input,))?
 5233   5333   
            } else {
 5234   5334   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
 5235   5335   
            };
 5236   5336   
            output.extract::<crate::output::NoInputAndOutputOutput>()
 5237   5337   
        })
 5238   5338   
    };
 5239   5339   
    // Catch and record a Python traceback.
 5240   5340   
    result.map_err(|e| {
 5241   5341   
        let rich_py_err =
 5242   5342   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
 5243   5343   
                e.clone_ref(py)
 5244   5344   
            }));
 5245   5345   
        ::tracing::error!(error = ?rich_py_err, "handler error");
 5246   5346   
        e.into()
 5247   5347   
    })
 5248   5348   
}
 5249   5349   
        5350  +
/* PythonServerOperationHandlerGenerator.kt:61 */
 5250   5351   
/// Python handler for operation `NoInputAndNoOutput`.
 5251   5352   
pub(crate) async fn no_input_and_no_output(
 5252   5353   
    input: crate::input::NoInputAndNoOutputInput,
 5253   5354   
    state: ::aws_smithy_http_server::Extension<::aws_smithy_http_server_python::context::PyContext>,
 5254   5355   
    handler: ::aws_smithy_http_server_python::PyHandler,
 5255   5356   
) -> std::result::Result<
 5256   5357   
    crate::output::NoInputAndNoOutputOutput,
 5257   5358   
    crate::error::NoInputAndNoOutputError,
 5258   5359   
> {
 5259   5360   
    // Async block used to run the handler and catch any Python error.

tmp-codegen-diff/codegen-server-test-python/rest_json/rust-server-codegen-python/src/python_server_application.rs

@@ -1,1 +58,63 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* PythonApplicationGenerator.kt:386 */
    2      3   
#[allow(clippy::tabs_in_doc_comments)]
    3      4   
/// Main Python application, used to register operations and context and start multiple
    4      5   
/// workers on the same shared socket.
    5      6   
///
    6      7   
/// Operations can be registered using the application object as a decorator (`@app.operation_name`).
    7      8   
///
    8      9   
/// Here's a full example to get you started:
    9     10   
///
   10     11   
/// ```python
          12  +
/* PythonApplicationGenerator.kt:399 */
   11     13   
/// from rest_json import input
   12     14   
/// from rest_json import output
          15  +
/* PythonApplicationGenerator.kt:406 */
   13     16   
/// from rest_json import error
          17  +
/* PythonApplicationGenerator.kt:408 */
   14     18   
/// from rest_json import middleware
   15     19   
/// from rest_json import App
   16     20   
///
   17     21   
/// @dataclass
   18     22   
/// class Context:
   19     23   
///     counter: int = 0
   20     24   
///
   21     25   
/// app = App()
   22     26   
/// app.context(Context())
   23     27   
///
   24     28   
/// @app.request_middleware
   25     29   
/// def request_middleware(request: middleware::Request):
   26     30   
///     if request.get_header("x-amzn-id") != "secret":
   27     31   
///         raise middleware.MiddlewareException("Unsupported `x-amz-id` header", 401)
   28     32   
///
          33  +
/* PythonApplicationGenerator.kt:441 */
   29     34   
/// # This example uses all query string types.
   30     35   
/// @app.all_query_string_types
   31     36   
/// def all_query_string_types(input: input::AllQueryStringTypesInput, ctx: Context) -> output::AllQueryStringTypesOutput:
   32     37   
///     raise NotImplementedError
   33     38   
///
   34     39   
/// # This example uses fixed query string params and variable query string params.
   35     40   
/// # The fixed query string parameters and variable parameters must both be
   36     41   
/// # serialized (implementations may need to merge them together).
   37     42   
/// @app.constant_and_variable_query_string
   38     43   
/// def constant_and_variable_query_string(input: input::ConstantAndVariableQueryStringInput, ctx: Context) -> output::ConstantAndVariableQueryStringOutput:
@@ -542,547 +2146,2265 @@
  562    567   
///
  563    568   
/// # This example tests how timestamp request and response headers are serialized.
  564    569   
/// @app.timestamp_format_headers
  565    570   
/// def timestamp_format_headers(input: input::TimestampFormatHeadersInput, ctx: Context) -> output::TimestampFormatHeadersOutput:
  566    571   
///     raise NotImplementedError
  567    572   
///
  568    573   
/// # This test is similar to NoInputAndNoOutput, but uses explicit Unit types.
  569    574   
/// @app.unit_input_and_output
  570    575   
/// def unit_input_and_output(input: input::UnitInputAndOutputInput, ctx: Context) -> output::UnitInputAndOutputOutput:
  571    576   
///     raise NotImplementedError
         577  +
/* PythonApplicationGenerator.kt:428 */
  572    578   
///
  573    579   
/// app.run()
  574    580   
/// ```
  575    581   
///
  576    582   
/// Any of operations above can be written as well prepending the `async` keyword and
  577    583   
/// the Python application will automatically handle it and schedule it on the event loop for you.
         584  +
/* PythonApplicationGenerator.kt:112 */
  578    585   
#[::pyo3::pyclass]
  579    586   
#[derive(Debug)]
  580    587   
/// :generic Ctx:
  581    588   
/// :extends typing.Generic\[Ctx\]:
  582    589   
/// :rtype None:
  583    590   
pub struct App {
  584    591   
    handlers: ::std::collections::HashMap<String, ::aws_smithy_http_server_python::PyHandler>,
  585    592   
    middlewares: Vec<::aws_smithy_http_server_python::PyMiddlewareHandler>,
  586    593   
    context: Option<::pyo3::PyObject>,
  587    594   
    workers: ::parking_lot::Mutex<Vec<::pyo3::PyObject>>,
  588    595   
}
         596  +
/* PythonApplicationGenerator.kt:149 */
  589    597   
impl Default for App {
  590    598   
    fn default() -> Self {
  591    599   
        Self {
  592    600   
            handlers: Default::default(),
  593    601   
            middlewares: vec![],
  594    602   
            context: None,
  595    603   
            workers: ::parking_lot::Mutex::new(vec![]),
  596    604   
        }
  597    605   
    }
  598    606   
}
         607  +
/* PythonApplicationGenerator.kt:131 */
  599    608   
impl Clone for App {
  600    609   
    fn clone(&self) -> Self {
  601    610   
        Self {
  602    611   
            handlers: self.handlers.clone(),
  603    612   
            middlewares: self.middlewares.clone(),
  604    613   
            context: self.context.clone(),
  605    614   
            workers: ::parking_lot::Mutex::new(vec![]),
  606    615   
        }
  607    616   
    }
  608    617   
}
         618  +
/* PythonApplicationGenerator.kt:168 */
  609    619   
impl ::aws_smithy_http_server_python::PyApp for App {
         620  +
    /* PythonApplicationGenerator.kt:174 */
  610    621   
    fn workers(&self) -> &::parking_lot::Mutex<Vec<::pyo3::PyObject>> {
  611    622   
        &self.workers
  612    623   
    }
  613    624   
    fn context(&self) -> &Option<::pyo3::PyObject> {
  614    625   
        &self.context
  615    626   
    }
  616    627   
    fn handlers(
  617    628   
        &mut self,
  618    629   
    ) -> &mut ::std::collections::HashMap<String, ::aws_smithy_http_server_python::PyHandler> {
  619    630   
        &mut self.handlers
  620    631   
    }
         632  +
    /* PythonApplicationGenerator.kt:189 */
  621    633   
    fn build_service(
  622    634   
        &mut self,
  623    635   
        event_loop: &::pyo3::PyAny,
  624    636   
    ) -> ::pyo3::PyResult<
  625    637   
        ::tower::util::BoxCloneService<
  626    638   
            ::http::Request<::aws_smithy_http_server::body::Body>,
  627    639   
            ::http::Response<::aws_smithy_http_server::body::BoxBody>,
  628    640   
            std::convert::Infallible,
  629    641   
        >,
  630    642   
    > {
         643  +
        /* PythonApplicationGenerator.kt:201 */
  631    644   
        let builder = crate::service::RestJson::builder_without_plugins();
         645  +
        /* PythonApplicationGenerator.kt:209 */
  632    646   
        let all_query_string_types_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  633    647   
        let handler = self
  634    648   
            .handlers
  635    649   
            .get("all_query_string_types")
  636    650   
            .expect("Python handler for operation `all_query_string_types` not found")
  637    651   
            .clone();
  638    652   
        let builder = builder.all_query_string_types(move |input, state| {
  639    653   
            ::pyo3_asyncio::tokio::scope(
  640    654   
                all_query_string_types_locals.clone(),
  641    655   
                crate::python_operation_adaptor::all_query_string_types(
  642    656   
                    input,
  643    657   
                    state,
  644    658   
                    handler.clone(),
  645    659   
                ),
  646    660   
            )
  647    661   
        });
         662  +
        /* PythonApplicationGenerator.kt:209 */
  648    663   
        let constant_and_variable_query_string_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  649    664   
        let handler = self
  650    665   
            .handlers
  651    666   
            .get("constant_and_variable_query_string")
  652    667   
            .expect("Python handler for operation `constant_and_variable_query_string` not found")
  653    668   
            .clone();
  654    669   
        let builder = builder.constant_and_variable_query_string(move |input, state| {
  655    670   
            ::pyo3_asyncio::tokio::scope(
  656    671   
                constant_and_variable_query_string_locals.clone(),
  657    672   
                crate::python_operation_adaptor::constant_and_variable_query_string(
  658    673   
                    input,
  659    674   
                    state,
  660    675   
                    handler.clone(),
  661    676   
                ),
  662    677   
            )
  663    678   
        });
         679  +
        /* PythonApplicationGenerator.kt:209 */
  664    680   
        let constant_query_string_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  665    681   
        let handler = self
  666    682   
            .handlers
  667    683   
            .get("constant_query_string")
  668    684   
            .expect("Python handler for operation `constant_query_string` not found")
  669    685   
            .clone();
  670    686   
        let builder = builder.constant_query_string(move |input, state| {
  671    687   
            ::pyo3_asyncio::tokio::scope(
  672    688   
                constant_query_string_locals.clone(),
  673    689   
                crate::python_operation_adaptor::constant_query_string(
  674    690   
                    input,
  675    691   
                    state,
  676    692   
                    handler.clone(),
  677    693   
                ),
  678    694   
            )
  679    695   
        });
         696  +
        /* PythonApplicationGenerator.kt:209 */
  680    697   
        let content_type_parameters_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  681    698   
        let handler = self
  682    699   
            .handlers
  683    700   
            .get("content_type_parameters")
  684    701   
            .expect("Python handler for operation `content_type_parameters` not found")
  685    702   
            .clone();
  686    703   
        let builder = builder.content_type_parameters(move |input, state| {
  687    704   
            ::pyo3_asyncio::tokio::scope(
  688    705   
                content_type_parameters_locals.clone(),
  689    706   
                crate::python_operation_adaptor::content_type_parameters(
  690    707   
                    input,
  691    708   
                    state,
  692    709   
                    handler.clone(),
  693    710   
                ),
  694    711   
            )
  695    712   
        });
         713  +
        /* PythonApplicationGenerator.kt:209 */
  696    714   
        let datetime_offsets_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  697    715   
        let handler = self
  698    716   
            .handlers
  699    717   
            .get("datetime_offsets")
  700    718   
            .expect("Python handler for operation `datetime_offsets` not found")
  701    719   
            .clone();
  702    720   
        let builder = builder.datetime_offsets(move |input, state| {
  703    721   
            ::pyo3_asyncio::tokio::scope(
  704    722   
                datetime_offsets_locals.clone(),
  705    723   
                crate::python_operation_adaptor::datetime_offsets(input, state, handler.clone()),
  706    724   
            )
  707    725   
        });
         726  +
        /* PythonApplicationGenerator.kt:209 */
  708    727   
        let document_type_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  709    728   
        let handler = self
  710    729   
            .handlers
  711    730   
            .get("document_type")
  712    731   
            .expect("Python handler for operation `document_type` not found")
  713    732   
            .clone();
  714    733   
        let builder = builder.document_type(move |input, state| {
  715    734   
            ::pyo3_asyncio::tokio::scope(
  716    735   
                document_type_locals.clone(),
  717    736   
                crate::python_operation_adaptor::document_type(input, state, handler.clone()),
  718    737   
            )
  719    738   
        });
         739  +
        /* PythonApplicationGenerator.kt:209 */
  720    740   
        let document_type_as_map_value_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  721    741   
        let handler = self
  722    742   
            .handlers
  723    743   
            .get("document_type_as_map_value")
  724    744   
            .expect("Python handler for operation `document_type_as_map_value` not found")
  725    745   
            .clone();
  726    746   
        let builder = builder.document_type_as_map_value(move |input, state| {
  727    747   
            ::pyo3_asyncio::tokio::scope(
  728    748   
                document_type_as_map_value_locals.clone(),
  729    749   
                crate::python_operation_adaptor::document_type_as_map_value(
  730    750   
                    input,
  731    751   
                    state,
  732    752   
                    handler.clone(),
  733    753   
                ),
  734    754   
            )
  735    755   
        });
         756  +
        /* PythonApplicationGenerator.kt:209 */
  736    757   
        let document_type_as_payload_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  737    758   
        let handler = self
  738    759   
            .handlers
  739    760   
            .get("document_type_as_payload")
  740    761   
            .expect("Python handler for operation `document_type_as_payload` not found")
  741    762   
            .clone();
  742    763   
        let builder = builder.document_type_as_payload(move |input, state| {
  743    764   
            ::pyo3_asyncio::tokio::scope(
  744    765   
                document_type_as_payload_locals.clone(),
  745    766   
                crate::python_operation_adaptor::document_type_as_payload(
  746    767   
                    input,
  747    768   
                    state,
  748    769   
                    handler.clone(),
  749    770   
                ),
  750    771   
            )
  751    772   
        });
         773  +
        /* PythonApplicationGenerator.kt:209 */
  752    774   
        let empty_input_and_empty_output_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  753    775   
        let handler = self
  754    776   
            .handlers
  755    777   
            .get("empty_input_and_empty_output")
  756    778   
            .expect("Python handler for operation `empty_input_and_empty_output` not found")
  757    779   
            .clone();
  758    780   
        let builder = builder.empty_input_and_empty_output(move |input, state| {
  759    781   
            ::pyo3_asyncio::tokio::scope(
  760    782   
                empty_input_and_empty_output_locals.clone(),
  761    783   
                crate::python_operation_adaptor::empty_input_and_empty_output(
  762    784   
                    input,
  763    785   
                    state,
  764    786   
                    handler.clone(),
  765    787   
                ),
  766    788   
            )
  767    789   
        });
         790  +
        /* PythonApplicationGenerator.kt:209 */
  768    791   
        let endpoint_operation_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  769    792   
        let handler = self
  770    793   
            .handlers
  771    794   
            .get("endpoint_operation")
  772    795   
            .expect("Python handler for operation `endpoint_operation` not found")
  773    796   
            .clone();
  774    797   
        let builder = builder.endpoint_operation(move |input, state| {
  775    798   
            ::pyo3_asyncio::tokio::scope(
  776    799   
                endpoint_operation_locals.clone(),
  777    800   
                crate::python_operation_adaptor::endpoint_operation(input, state, handler.clone()),
  778    801   
            )
  779    802   
        });
         803  +
        /* PythonApplicationGenerator.kt:209 */
  780    804   
        let endpoint_with_host_label_operation_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  781    805   
        let handler = self
  782    806   
            .handlers
  783    807   
            .get("endpoint_with_host_label_operation")
  784    808   
            .expect("Python handler for operation `endpoint_with_host_label_operation` not found")
  785    809   
            .clone();
  786    810   
        let builder = builder.endpoint_with_host_label_operation(move |input, state| {
  787    811   
            ::pyo3_asyncio::tokio::scope(
  788    812   
                endpoint_with_host_label_operation_locals.clone(),
  789    813   
                crate::python_operation_adaptor::endpoint_with_host_label_operation(
  790    814   
                    input,
  791    815   
                    state,
  792    816   
                    handler.clone(),
  793    817   
                ),
  794    818   
            )
  795    819   
        });
         820  +
        /* PythonApplicationGenerator.kt:209 */
  796    821   
        let fractional_seconds_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  797    822   
        let handler = self
  798    823   
            .handlers
  799    824   
            .get("fractional_seconds")
  800    825   
            .expect("Python handler for operation `fractional_seconds` not found")
  801    826   
            .clone();
  802    827   
        let builder = builder.fractional_seconds(move |input, state| {
  803    828   
            ::pyo3_asyncio::tokio::scope(
  804    829   
                fractional_seconds_locals.clone(),
  805    830   
                crate::python_operation_adaptor::fractional_seconds(input, state, handler.clone()),
  806    831   
            )
  807    832   
        });
         833  +
        /* PythonApplicationGenerator.kt:209 */
  808    834   
        let greeting_with_errors_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  809    835   
        let handler = self
  810    836   
            .handlers
  811    837   
            .get("greeting_with_errors")
  812    838   
            .expect("Python handler for operation `greeting_with_errors` not found")
  813    839   
            .clone();
  814    840   
        let builder = builder.greeting_with_errors(move |input, state| {
  815    841   
            ::pyo3_asyncio::tokio::scope(
  816    842   
                greeting_with_errors_locals.clone(),
  817    843   
                crate::python_operation_adaptor::greeting_with_errors(
  818    844   
                    input,
  819    845   
                    state,
  820    846   
                    handler.clone(),
  821    847   
                ),
  822    848   
            )
  823    849   
        });
         850  +
        /* PythonApplicationGenerator.kt:209 */
  824    851   
        let host_with_path_operation_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  825    852   
        let handler = self
  826    853   
            .handlers
  827    854   
            .get("host_with_path_operation")
  828    855   
            .expect("Python handler for operation `host_with_path_operation` not found")
  829    856   
            .clone();
  830    857   
        let builder = builder.host_with_path_operation(move |input, state| {
  831    858   
            ::pyo3_asyncio::tokio::scope(
  832    859   
                host_with_path_operation_locals.clone(),
  833    860   
                crate::python_operation_adaptor::host_with_path_operation(
  834    861   
                    input,
  835    862   
                    state,
  836    863   
                    handler.clone(),
  837    864   
                ),
  838    865   
            )
  839    866   
        });
         867  +
        /* PythonApplicationGenerator.kt:209 */
  840    868   
        let http_checksum_required_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  841    869   
        let handler = self
  842    870   
            .handlers
  843    871   
            .get("http_checksum_required")
  844    872   
            .expect("Python handler for operation `http_checksum_required` not found")
  845    873   
            .clone();
  846    874   
        let builder = builder.http_checksum_required(move |input, state| {
  847    875   
            ::pyo3_asyncio::tokio::scope(
  848    876   
                http_checksum_required_locals.clone(),
  849    877   
                crate::python_operation_adaptor::http_checksum_required(
  850    878   
                    input,
  851    879   
                    state,
  852    880   
                    handler.clone(),
  853    881   
                ),
  854    882   
            )
  855    883   
        });
         884  +
        /* PythonApplicationGenerator.kt:209 */
  856    885   
        let http_enum_payload_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  857    886   
        let handler = self
  858    887   
            .handlers
  859    888   
            .get("http_enum_payload")
  860    889   
            .expect("Python handler for operation `http_enum_payload` not found")
  861    890   
            .clone();
  862    891   
        let builder = builder.http_enum_payload(move |input, state| {
  863    892   
            ::pyo3_asyncio::tokio::scope(
  864    893   
                http_enum_payload_locals.clone(),
  865    894   
                crate::python_operation_adaptor::http_enum_payload(input, state, handler.clone()),
  866    895   
            )
  867    896   
        });
         897  +
        /* PythonApplicationGenerator.kt:209 */
  868    898   
        let http_payload_traits_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  869    899   
        let handler = self
  870    900   
            .handlers
  871    901   
            .get("http_payload_traits")
  872    902   
            .expect("Python handler for operation `http_payload_traits` not found")
  873    903   
            .clone();
  874    904   
        let builder = builder.http_payload_traits(move |input, state| {
  875    905   
            ::pyo3_asyncio::tokio::scope(
  876    906   
                http_payload_traits_locals.clone(),
  877    907   
                crate::python_operation_adaptor::http_payload_traits(input, state, handler.clone()),
  878    908   
            )
  879    909   
        });
         910  +
        /* PythonApplicationGenerator.kt:209 */
  880    911   
        let http_payload_traits_with_media_type_locals =
  881    912   
            ::pyo3_asyncio::TaskLocals::new(event_loop);
  882    913   
        let handler = self
  883    914   
            .handlers
  884    915   
            .get("http_payload_traits_with_media_type")
  885    916   
            .expect("Python handler for operation `http_payload_traits_with_media_type` not found")
  886    917   
            .clone();
  887    918   
        let builder = builder.http_payload_traits_with_media_type(move |input, state| {
  888    919   
            ::pyo3_asyncio::tokio::scope(
  889    920   
                http_payload_traits_with_media_type_locals.clone(),
  890    921   
                crate::python_operation_adaptor::http_payload_traits_with_media_type(
  891    922   
                    input,
  892    923   
                    state,
  893    924   
                    handler.clone(),
  894    925   
                ),
  895    926   
            )
  896    927   
        });
         928  +
        /* PythonApplicationGenerator.kt:209 */
  897    929   
        let http_payload_with_structure_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  898    930   
        let handler = self
  899    931   
            .handlers
  900    932   
            .get("http_payload_with_structure")
  901    933   
            .expect("Python handler for operation `http_payload_with_structure` not found")
  902    934   
            .clone();
  903    935   
        let builder = builder.http_payload_with_structure(move |input, state| {
  904    936   
            ::pyo3_asyncio::tokio::scope(
  905    937   
                http_payload_with_structure_locals.clone(),
  906    938   
                crate::python_operation_adaptor::http_payload_with_structure(
  907    939   
                    input,
  908    940   
                    state,
  909    941   
                    handler.clone(),
  910    942   
                ),
  911    943   
            )
  912    944   
        });
         945  +
        /* PythonApplicationGenerator.kt:209 */
  913    946   
        let http_payload_with_union_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  914    947   
        let handler = self
  915    948   
            .handlers
  916    949   
            .get("http_payload_with_union")
  917    950   
            .expect("Python handler for operation `http_payload_with_union` not found")
  918    951   
            .clone();
  919    952   
        let builder = builder.http_payload_with_union(move |input, state| {
  920    953   
            ::pyo3_asyncio::tokio::scope(
  921    954   
                http_payload_with_union_locals.clone(),
  922    955   
                crate::python_operation_adaptor::http_payload_with_union(
  923    956   
                    input,
  924    957   
                    state,
  925    958   
                    handler.clone(),
  926    959   
                ),
  927    960   
            )
  928    961   
        });
         962  +
        /* PythonApplicationGenerator.kt:209 */
  929    963   
        let http_prefix_headers_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  930    964   
        let handler = self
  931    965   
            .handlers
  932    966   
            .get("http_prefix_headers")
  933    967   
            .expect("Python handler for operation `http_prefix_headers` not found")
  934    968   
            .clone();
  935    969   
        let builder = builder.http_prefix_headers(move |input, state| {
  936    970   
            ::pyo3_asyncio::tokio::scope(
  937    971   
                http_prefix_headers_locals.clone(),
  938    972   
                crate::python_operation_adaptor::http_prefix_headers(input, state, handler.clone()),
  939    973   
            )
  940    974   
        });
         975  +
        /* PythonApplicationGenerator.kt:209 */
  941    976   
        let http_prefix_headers_in_response_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  942    977   
        let handler = self
  943    978   
            .handlers
  944    979   
            .get("http_prefix_headers_in_response")
  945    980   
            .expect("Python handler for operation `http_prefix_headers_in_response` not found")
  946    981   
            .clone();
  947    982   
        let builder = builder.http_prefix_headers_in_response(move |input, state| {
  948    983   
            ::pyo3_asyncio::tokio::scope(
  949    984   
                http_prefix_headers_in_response_locals.clone(),
  950    985   
                crate::python_operation_adaptor::http_prefix_headers_in_response(
  951    986   
                    input,
  952    987   
                    state,
  953    988   
                    handler.clone(),
  954    989   
                ),
  955    990   
            )
  956    991   
        });
         992  +
        /* PythonApplicationGenerator.kt:209 */
  957    993   
        let http_request_with_float_labels_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  958    994   
        let handler = self
  959    995   
            .handlers
  960    996   
            .get("http_request_with_float_labels")
  961    997   
            .expect("Python handler for operation `http_request_with_float_labels` not found")
  962    998   
            .clone();
  963    999   
        let builder = builder.http_request_with_float_labels(move |input, state| {
  964   1000   
            ::pyo3_asyncio::tokio::scope(
  965   1001   
                http_request_with_float_labels_locals.clone(),
  966   1002   
                crate::python_operation_adaptor::http_request_with_float_labels(
  967   1003   
                    input,
  968   1004   
                    state,
  969   1005   
                    handler.clone(),
  970   1006   
                ),
  971   1007   
            )
  972   1008   
        });
        1009  +
        /* PythonApplicationGenerator.kt:209 */
  973   1010   
        let http_request_with_greedy_label_in_path_locals =
  974   1011   
            ::pyo3_asyncio::TaskLocals::new(event_loop);
  975   1012   
        let handler = self
  976   1013   
            .handlers
  977   1014   
            .get("http_request_with_greedy_label_in_path")
  978   1015   
            .expect(
  979   1016   
                "Python handler for operation `http_request_with_greedy_label_in_path` not found",
  980   1017   
            )
  981   1018   
            .clone();
  982   1019   
        let builder = builder.http_request_with_greedy_label_in_path(move |input, state| {
  983   1020   
            ::pyo3_asyncio::tokio::scope(
  984   1021   
                http_request_with_greedy_label_in_path_locals.clone(),
  985   1022   
                crate::python_operation_adaptor::http_request_with_greedy_label_in_path(
  986   1023   
                    input,
  987   1024   
                    state,
  988   1025   
                    handler.clone(),
  989   1026   
                ),
  990   1027   
            )
  991   1028   
        });
        1029  +
        /* PythonApplicationGenerator.kt:209 */
  992   1030   
        let http_request_with_labels_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
  993   1031   
        let handler = self
  994   1032   
            .handlers
  995   1033   
            .get("http_request_with_labels")
  996   1034   
            .expect("Python handler for operation `http_request_with_labels` not found")
  997   1035   
            .clone();
  998   1036   
        let builder = builder.http_request_with_labels(move |input, state| {
  999   1037   
            ::pyo3_asyncio::tokio::scope(
 1000   1038   
                http_request_with_labels_locals.clone(),
 1001   1039   
                crate::python_operation_adaptor::http_request_with_labels(
 1002   1040   
                    input,
 1003   1041   
                    state,
 1004   1042   
                    handler.clone(),
 1005   1043   
                ),
 1006   1044   
            )
 1007   1045   
        });
        1046  +
        /* PythonApplicationGenerator.kt:209 */
 1008   1047   
        let http_request_with_labels_and_timestamp_format_locals =
 1009   1048   
            ::pyo3_asyncio::TaskLocals::new(event_loop);
 1010   1049   
        let handler = self.handlers.get("http_request_with_labels_and_timestamp_format").expect("Python handler for operation `http_request_with_labels_and_timestamp_format` not found").clone();
 1011   1050   
        let builder = builder.http_request_with_labels_and_timestamp_format(move |input, state| {
 1012   1051   
            ::pyo3_asyncio::tokio::scope(
 1013   1052   
                http_request_with_labels_and_timestamp_format_locals.clone(),
 1014   1053   
                crate::python_operation_adaptor::http_request_with_labels_and_timestamp_format(
 1015   1054   
                    input,
 1016   1055   
                    state,
 1017   1056   
                    handler.clone(),
 1018   1057   
                ),
 1019   1058   
            )
 1020   1059   
        });
        1060  +
        /* PythonApplicationGenerator.kt:209 */
 1021   1061   
        let http_request_with_regex_literal_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1022   1062   
        let handler = self
 1023   1063   
            .handlers
 1024   1064   
            .get("http_request_with_regex_literal")
 1025   1065   
            .expect("Python handler for operation `http_request_with_regex_literal` not found")
 1026   1066   
            .clone();
 1027   1067   
        let builder = builder.http_request_with_regex_literal(move |input, state| {
 1028   1068   
            ::pyo3_asyncio::tokio::scope(
 1029   1069   
                http_request_with_regex_literal_locals.clone(),
 1030   1070   
                crate::python_operation_adaptor::http_request_with_regex_literal(
 1031   1071   
                    input,
 1032   1072   
                    state,
 1033   1073   
                    handler.clone(),
 1034   1074   
                ),
 1035   1075   
            )
 1036   1076   
        });
        1077  +
        /* PythonApplicationGenerator.kt:209 */
 1037   1078   
        let http_response_code_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1038   1079   
        let handler = self
 1039   1080   
            .handlers
 1040   1081   
            .get("http_response_code")
 1041   1082   
            .expect("Python handler for operation `http_response_code` not found")
 1042   1083   
            .clone();
 1043   1084   
        let builder = builder.http_response_code(move |input, state| {
 1044   1085   
            ::pyo3_asyncio::tokio::scope(
 1045   1086   
                http_response_code_locals.clone(),
 1046   1087   
                crate::python_operation_adaptor::http_response_code(input, state, handler.clone()),
 1047   1088   
            )
 1048   1089   
        });
        1090  +
        /* PythonApplicationGenerator.kt:209 */
 1049   1091   
        let http_string_payload_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1050   1092   
        let handler = self
 1051   1093   
            .handlers
 1052   1094   
            .get("http_string_payload")
 1053   1095   
            .expect("Python handler for operation `http_string_payload` not found")
 1054   1096   
            .clone();
 1055   1097   
        let builder = builder.http_string_payload(move |input, state| {
 1056   1098   
            ::pyo3_asyncio::tokio::scope(
 1057   1099   
                http_string_payload_locals.clone(),
 1058   1100   
                crate::python_operation_adaptor::http_string_payload(input, state, handler.clone()),
 1059   1101   
            )
 1060   1102   
        });
        1103  +
        /* PythonApplicationGenerator.kt:209 */
 1061   1104   
        let ignore_query_params_in_response_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1062   1105   
        let handler = self
 1063   1106   
            .handlers
 1064   1107   
            .get("ignore_query_params_in_response")
 1065   1108   
            .expect("Python handler for operation `ignore_query_params_in_response` not found")
 1066   1109   
            .clone();
 1067   1110   
        let builder = builder.ignore_query_params_in_response(move |input, state| {
 1068   1111   
            ::pyo3_asyncio::tokio::scope(
 1069   1112   
                ignore_query_params_in_response_locals.clone(),
 1070   1113   
                crate::python_operation_adaptor::ignore_query_params_in_response(
 1071   1114   
                    input,
 1072   1115   
                    state,
 1073   1116   
                    handler.clone(),
 1074   1117   
                ),
 1075   1118   
            )
 1076   1119   
        });
        1120  +
        /* PythonApplicationGenerator.kt:209 */
 1077   1121   
        let input_and_output_with_headers_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1078   1122   
        let handler = self
 1079   1123   
            .handlers
 1080   1124   
            .get("input_and_output_with_headers")
 1081   1125   
            .expect("Python handler for operation `input_and_output_with_headers` not found")
 1082   1126   
            .clone();
 1083   1127   
        let builder = builder.input_and_output_with_headers(move |input, state| {
 1084   1128   
            ::pyo3_asyncio::tokio::scope(
 1085   1129   
                input_and_output_with_headers_locals.clone(),
 1086   1130   
                crate::python_operation_adaptor::input_and_output_with_headers(
 1087   1131   
                    input,
 1088   1132   
                    state,
 1089   1133   
                    handler.clone(),
 1090   1134   
                ),
 1091   1135   
            )
 1092   1136   
        });
        1137  +
        /* PythonApplicationGenerator.kt:209 */
 1093   1138   
        let json_blobs_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1094   1139   
        let handler = self
 1095   1140   
            .handlers
 1096   1141   
            .get("json_blobs")
 1097   1142   
            .expect("Python handler for operation `json_blobs` not found")
 1098   1143   
            .clone();
 1099   1144   
        let builder = builder.json_blobs(move |input, state| {
 1100   1145   
            ::pyo3_asyncio::tokio::scope(
 1101   1146   
                json_blobs_locals.clone(),
 1102   1147   
                crate::python_operation_adaptor::json_blobs(input, state, handler.clone()),
 1103   1148   
            )
 1104   1149   
        });
        1150  +
        /* PythonApplicationGenerator.kt:209 */
 1105   1151   
        let json_enums_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1106   1152   
        let handler = self
 1107   1153   
            .handlers
 1108   1154   
            .get("json_enums")
 1109   1155   
            .expect("Python handler for operation `json_enums` not found")
 1110   1156   
            .clone();
 1111   1157   
        let builder = builder.json_enums(move |input, state| {
 1112   1158   
            ::pyo3_asyncio::tokio::scope(
 1113   1159   
                json_enums_locals.clone(),
 1114   1160   
                crate::python_operation_adaptor::json_enums(input, state, handler.clone()),
 1115   1161   
            )
 1116   1162   
        });
        1163  +
        /* PythonApplicationGenerator.kt:209 */
 1117   1164   
        let json_int_enums_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1118   1165   
        let handler = self
 1119   1166   
            .handlers
 1120   1167   
            .get("json_int_enums")
 1121   1168   
            .expect("Python handler for operation `json_int_enums` not found")
 1122   1169   
            .clone();
 1123   1170   
        let builder = builder.json_int_enums(move |input, state| {
 1124   1171   
            ::pyo3_asyncio::tokio::scope(
 1125   1172   
                json_int_enums_locals.clone(),
 1126   1173   
                crate::python_operation_adaptor::json_int_enums(input, state, handler.clone()),
 1127   1174   
            )
 1128   1175   
        });
        1176  +
        /* PythonApplicationGenerator.kt:209 */
 1129   1177   
        let json_lists_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1130   1178   
        let handler = self
 1131   1179   
            .handlers
 1132   1180   
            .get("json_lists")
 1133   1181   
            .expect("Python handler for operation `json_lists` not found")
 1134   1182   
            .clone();
 1135   1183   
        let builder = builder.json_lists(move |input, state| {
 1136   1184   
            ::pyo3_asyncio::tokio::scope(
 1137   1185   
                json_lists_locals.clone(),
 1138   1186   
                crate::python_operation_adaptor::json_lists(input, state, handler.clone()),
 1139   1187   
            )
 1140   1188   
        });
        1189  +
        /* PythonApplicationGenerator.kt:209 */
 1141   1190   
        let json_maps_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1142   1191   
        let handler = self
 1143   1192   
            .handlers
 1144   1193   
            .get("json_maps")
 1145   1194   
            .expect("Python handler for operation `json_maps` not found")
 1146   1195   
            .clone();
 1147   1196   
        let builder = builder.json_maps(move |input, state| {
 1148   1197   
            ::pyo3_asyncio::tokio::scope(
 1149   1198   
                json_maps_locals.clone(),
 1150   1199   
                crate::python_operation_adaptor::json_maps(input, state, handler.clone()),
 1151   1200   
            )
 1152   1201   
        });
        1202  +
        /* PythonApplicationGenerator.kt:209 */
 1153   1203   
        let json_timestamps_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1154   1204   
        let handler = self
 1155   1205   
            .handlers
 1156   1206   
            .get("json_timestamps")
 1157   1207   
            .expect("Python handler for operation `json_timestamps` not found")
 1158   1208   
            .clone();
 1159   1209   
        let builder = builder.json_timestamps(move |input, state| {
 1160   1210   
            ::pyo3_asyncio::tokio::scope(
 1161   1211   
                json_timestamps_locals.clone(),
 1162   1212   
                crate::python_operation_adaptor::json_timestamps(input, state, handler.clone()),
 1163   1213   
            )
 1164   1214   
        });
        1215  +
        /* PythonApplicationGenerator.kt:209 */
 1165   1216   
        let json_unions_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1166   1217   
        let handler = self
 1167   1218   
            .handlers
 1168   1219   
            .get("json_unions")
 1169   1220   
            .expect("Python handler for operation `json_unions` not found")
 1170   1221   
            .clone();
 1171   1222   
        let builder = builder.json_unions(move |input, state| {
 1172   1223   
            ::pyo3_asyncio::tokio::scope(
 1173   1224   
                json_unions_locals.clone(),
 1174   1225   
                crate::python_operation_adaptor::json_unions(input, state, handler.clone()),
 1175   1226   
            )
 1176   1227   
        });
        1228  +
        /* PythonApplicationGenerator.kt:209 */
 1177   1229   
        let malformed_accept_with_body_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1178   1230   
        let handler = self
 1179   1231   
            .handlers
 1180   1232   
            .get("malformed_accept_with_body")
 1181   1233   
            .expect("Python handler for operation `malformed_accept_with_body` not found")
 1182   1234   
            .clone();
 1183   1235   
        let builder = builder.malformed_accept_with_body(move |input, state| {
 1184   1236   
            ::pyo3_asyncio::tokio::scope(
 1185   1237   
                malformed_accept_with_body_locals.clone(),
 1186   1238   
                crate::python_operation_adaptor::malformed_accept_with_body(
 1187   1239   
                    input,
 1188   1240   
                    state,
 1189   1241   
                    handler.clone(),
 1190   1242   
                ),
 1191   1243   
            )
 1192   1244   
        });
        1245  +
        /* PythonApplicationGenerator.kt:209 */
 1193   1246   
        let malformed_accept_with_generic_string_locals =
 1194   1247   
            ::pyo3_asyncio::TaskLocals::new(event_loop);
 1195   1248   
        let handler = self
 1196   1249   
            .handlers
 1197   1250   
            .get("malformed_accept_with_generic_string")
 1198   1251   
            .expect("Python handler for operation `malformed_accept_with_generic_string` not found")
 1199   1252   
            .clone();
 1200   1253   
        let builder = builder.malformed_accept_with_generic_string(move |input, state| {
 1201   1254   
            ::pyo3_asyncio::tokio::scope(
 1202   1255   
                malformed_accept_with_generic_string_locals.clone(),
 1203   1256   
                crate::python_operation_adaptor::malformed_accept_with_generic_string(
 1204   1257   
                    input,
 1205   1258   
                    state,
 1206   1259   
                    handler.clone(),
 1207   1260   
                ),
 1208   1261   
            )
 1209   1262   
        });
        1263  +
        /* PythonApplicationGenerator.kt:209 */
 1210   1264   
        let malformed_accept_with_payload_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1211   1265   
        let handler = self
 1212   1266   
            .handlers
 1213   1267   
            .get("malformed_accept_with_payload")
 1214   1268   
            .expect("Python handler for operation `malformed_accept_with_payload` not found")
 1215   1269   
            .clone();
 1216   1270   
        let builder = builder.malformed_accept_with_payload(move |input, state| {
 1217   1271   
            ::pyo3_asyncio::tokio::scope(
 1218   1272   
                malformed_accept_with_payload_locals.clone(),
 1219   1273   
                crate::python_operation_adaptor::malformed_accept_with_payload(
 1220   1274   
                    input,
 1221   1275   
                    state,
 1222   1276   
                    handler.clone(),
 1223   1277   
                ),
 1224   1278   
            )
 1225   1279   
        });
        1280  +
        /* PythonApplicationGenerator.kt:209 */
 1226   1281   
        let malformed_blob_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1227   1282   
        let handler = self
 1228   1283   
            .handlers
 1229   1284   
            .get("malformed_blob")
 1230   1285   
            .expect("Python handler for operation `malformed_blob` not found")
 1231   1286   
            .clone();
 1232   1287   
        let builder = builder.malformed_blob(move |input, state| {
 1233   1288   
            ::pyo3_asyncio::tokio::scope(
 1234   1289   
                malformed_blob_locals.clone(),
 1235   1290   
                crate::python_operation_adaptor::malformed_blob(input, state, handler.clone()),
 1236   1291   
            )
 1237   1292   
        });
        1293  +
        /* PythonApplicationGenerator.kt:209 */
 1238   1294   
        let malformed_boolean_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1239   1295   
        let handler = self
 1240   1296   
            .handlers
 1241   1297   
            .get("malformed_boolean")
 1242   1298   
            .expect("Python handler for operation `malformed_boolean` not found")
 1243   1299   
            .clone();
 1244   1300   
        let builder = builder.malformed_boolean(move |input, state| {
 1245   1301   
            ::pyo3_asyncio::tokio::scope(
 1246   1302   
                malformed_boolean_locals.clone(),
 1247   1303   
                crate::python_operation_adaptor::malformed_boolean(input, state, handler.clone()),
 1248   1304   
            )
 1249   1305   
        });
        1306  +
        /* PythonApplicationGenerator.kt:209 */
 1250   1307   
        let malformed_byte_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1251   1308   
        let handler = self
 1252   1309   
            .handlers
 1253   1310   
            .get("malformed_byte")
 1254   1311   
            .expect("Python handler for operation `malformed_byte` not found")
 1255   1312   
            .clone();
 1256   1313   
        let builder = builder.malformed_byte(move |input, state| {
 1257   1314   
            ::pyo3_asyncio::tokio::scope(
 1258   1315   
                malformed_byte_locals.clone(),
 1259   1316   
                crate::python_operation_adaptor::malformed_byte(input, state, handler.clone()),
 1260   1317   
            )
 1261   1318   
        });
        1319  +
        /* PythonApplicationGenerator.kt:209 */
 1262   1320   
        let malformed_content_type_with_body_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1263   1321   
        let handler = self
 1264   1322   
            .handlers
 1265   1323   
            .get("malformed_content_type_with_body")
 1266   1324   
            .expect("Python handler for operation `malformed_content_type_with_body` not found")
 1267   1325   
            .clone();
 1268   1326   
        let builder = builder.malformed_content_type_with_body(move |input, state| {
 1269   1327   
            ::pyo3_asyncio::tokio::scope(
 1270   1328   
                malformed_content_type_with_body_locals.clone(),
 1271   1329   
                crate::python_operation_adaptor::malformed_content_type_with_body(
 1272   1330   
                    input,
 1273   1331   
                    state,
 1274   1332   
                    handler.clone(),
 1275   1333   
                ),
 1276   1334   
            )
 1277   1335   
        });
        1336  +
        /* PythonApplicationGenerator.kt:209 */
 1278   1337   
        let malformed_content_type_with_generic_string_locals =
 1279   1338   
            ::pyo3_asyncio::TaskLocals::new(event_loop);
 1280   1339   
        let handler = self.handlers.get("malformed_content_type_with_generic_string").expect("Python handler for operation `malformed_content_type_with_generic_string` not found").clone();
 1281   1340   
        let builder = builder.malformed_content_type_with_generic_string(move |input, state| {
 1282   1341   
            ::pyo3_asyncio::tokio::scope(
 1283   1342   
                malformed_content_type_with_generic_string_locals.clone(),
 1284   1343   
                crate::python_operation_adaptor::malformed_content_type_with_generic_string(
 1285   1344   
                    input,
 1286   1345   
                    state,
 1287   1346   
                    handler.clone(),
 1288   1347   
                ),
 1289   1348   
            )
 1290   1349   
        });
        1350  +
        /* PythonApplicationGenerator.kt:209 */
 1291   1351   
        let malformed_content_type_without_body_locals =
 1292   1352   
            ::pyo3_asyncio::TaskLocals::new(event_loop);
 1293   1353   
        let handler = self
 1294   1354   
            .handlers
 1295   1355   
            .get("malformed_content_type_without_body")
 1296   1356   
            .expect("Python handler for operation `malformed_content_type_without_body` not found")
 1297   1357   
            .clone();
 1298   1358   
        let builder = builder.malformed_content_type_without_body(move |input, state| {
 1299   1359   
            ::pyo3_asyncio::tokio::scope(
 1300   1360   
                malformed_content_type_without_body_locals.clone(),
 1301   1361   
                crate::python_operation_adaptor::malformed_content_type_without_body(
 1302   1362   
                    input,
 1303   1363   
                    state,
 1304   1364   
                    handler.clone(),
 1305   1365   
                ),
 1306   1366   
            )
 1307   1367   
        });
        1368  +
        /* PythonApplicationGenerator.kt:209 */
 1308   1369   
        let malformed_content_type_with_payload_locals =
 1309   1370   
            ::pyo3_asyncio::TaskLocals::new(event_loop);
 1310   1371   
        let handler = self
 1311   1372   
            .handlers
 1312   1373   
            .get("malformed_content_type_with_payload")
 1313   1374   
            .expect("Python handler for operation `malformed_content_type_with_payload` not found")
 1314   1375   
            .clone();
 1315   1376   
        let builder = builder.malformed_content_type_with_payload(move |input, state| {
 1316   1377   
            ::pyo3_asyncio::tokio::scope(
 1317   1378   
                malformed_content_type_with_payload_locals.clone(),
 1318   1379   
                crate::python_operation_adaptor::malformed_content_type_with_payload(
 1319   1380   
                    input,
 1320   1381   
                    state,
 1321   1382   
                    handler.clone(),
 1322   1383   
                ),
 1323   1384   
            )
 1324   1385   
        });
        1386  +
        /* PythonApplicationGenerator.kt:209 */
 1325   1387   
        let malformed_double_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1326   1388   
        let handler = self
 1327   1389   
            .handlers
 1328   1390   
            .get("malformed_double")
 1329   1391   
            .expect("Python handler for operation `malformed_double` not found")
 1330   1392   
            .clone();
 1331   1393   
        let builder = builder.malformed_double(move |input, state| {
 1332   1394   
            ::pyo3_asyncio::tokio::scope(
 1333   1395   
                malformed_double_locals.clone(),
 1334   1396   
                crate::python_operation_adaptor::malformed_double(input, state, handler.clone()),
 1335   1397   
            )
 1336   1398   
        });
        1399  +
        /* PythonApplicationGenerator.kt:209 */
 1337   1400   
        let malformed_float_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1338   1401   
        let handler = self
 1339   1402   
            .handlers
 1340   1403   
            .get("malformed_float")
 1341   1404   
            .expect("Python handler for operation `malformed_float` not found")
 1342   1405   
            .clone();
 1343   1406   
        let builder = builder.malformed_float(move |input, state| {
 1344   1407   
            ::pyo3_asyncio::tokio::scope(
 1345   1408   
                malformed_float_locals.clone(),
 1346   1409   
                crate::python_operation_adaptor::malformed_float(input, state, handler.clone()),
 1347   1410   
            )
 1348   1411   
        });
        1412  +
        /* PythonApplicationGenerator.kt:209 */
 1349   1413   
        let malformed_integer_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1350   1414   
        let handler = self
 1351   1415   
            .handlers
 1352   1416   
            .get("malformed_integer")
 1353   1417   
            .expect("Python handler for operation `malformed_integer` not found")
 1354   1418   
            .clone();
 1355   1419   
        let builder = builder.malformed_integer(move |input, state| {
 1356   1420   
            ::pyo3_asyncio::tokio::scope(
 1357   1421   
                malformed_integer_locals.clone(),
 1358   1422   
                crate::python_operation_adaptor::malformed_integer(input, state, handler.clone()),
 1359   1423   
            )
 1360   1424   
        });
        1425  +
        /* PythonApplicationGenerator.kt:209 */
 1361   1426   
        let malformed_list_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1362   1427   
        let handler = self
 1363   1428   
            .handlers
 1364   1429   
            .get("malformed_list")
 1365   1430   
            .expect("Python handler for operation `malformed_list` not found")
 1366   1431   
            .clone();
 1367   1432   
        let builder = builder.malformed_list(move |input, state| {
 1368   1433   
            ::pyo3_asyncio::tokio::scope(
 1369   1434   
                malformed_list_locals.clone(),
 1370   1435   
                crate::python_operation_adaptor::malformed_list(input, state, handler.clone()),
 1371   1436   
            )
 1372   1437   
        });
        1438  +
        /* PythonApplicationGenerator.kt:209 */
 1373   1439   
        let malformed_long_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1374   1440   
        let handler = self
 1375   1441   
            .handlers
 1376   1442   
            .get("malformed_long")
 1377   1443   
            .expect("Python handler for operation `malformed_long` not found")
 1378   1444   
            .clone();
 1379   1445   
        let builder = builder.malformed_long(move |input, state| {
 1380   1446   
            ::pyo3_asyncio::tokio::scope(
 1381   1447   
                malformed_long_locals.clone(),
 1382   1448   
                crate::python_operation_adaptor::malformed_long(input, state, handler.clone()),
 1383   1449   
            )
 1384   1450   
        });
        1451  +
        /* PythonApplicationGenerator.kt:209 */
 1385   1452   
        let malformed_map_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1386   1453   
        let handler = self
 1387   1454   
            .handlers
 1388   1455   
            .get("malformed_map")
 1389   1456   
            .expect("Python handler for operation `malformed_map` not found")
 1390   1457   
            .clone();
 1391   1458   
        let builder = builder.malformed_map(move |input, state| {
 1392   1459   
            ::pyo3_asyncio::tokio::scope(
 1393   1460   
                malformed_map_locals.clone(),
 1394   1461   
                crate::python_operation_adaptor::malformed_map(input, state, handler.clone()),
 1395   1462   
            )
 1396   1463   
        });
        1464  +
        /* PythonApplicationGenerator.kt:209 */
 1397   1465   
        let malformed_request_body_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1398   1466   
        let handler = self
 1399   1467   
            .handlers
 1400   1468   
            .get("malformed_request_body")
 1401   1469   
            .expect("Python handler for operation `malformed_request_body` not found")
 1402   1470   
            .clone();
 1403   1471   
        let builder = builder.malformed_request_body(move |input, state| {
 1404   1472   
            ::pyo3_asyncio::tokio::scope(
 1405   1473   
                malformed_request_body_locals.clone(),
 1406   1474   
                crate::python_operation_adaptor::malformed_request_body(
 1407   1475   
                    input,
 1408   1476   
                    state,
 1409   1477   
                    handler.clone(),
 1410   1478   
                ),
 1411   1479   
            )
 1412   1480   
        });
        1481  +
        /* PythonApplicationGenerator.kt:209 */
 1413   1482   
        let malformed_short_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1414   1483   
        let handler = self
 1415   1484   
            .handlers
 1416   1485   
            .get("malformed_short")
 1417   1486   
            .expect("Python handler for operation `malformed_short` not found")
 1418   1487   
            .clone();
 1419   1488   
        let builder = builder.malformed_short(move |input, state| {
 1420   1489   
            ::pyo3_asyncio::tokio::scope(
 1421   1490   
                malformed_short_locals.clone(),
 1422   1491   
                crate::python_operation_adaptor::malformed_short(input, state, handler.clone()),
 1423   1492   
            )
 1424   1493   
        });
        1494  +
        /* PythonApplicationGenerator.kt:209 */
 1425   1495   
        let malformed_string_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1426   1496   
        let handler = self
 1427   1497   
            .handlers
 1428   1498   
            .get("malformed_string")
 1429   1499   
            .expect("Python handler for operation `malformed_string` not found")
 1430   1500   
            .clone();
 1431   1501   
        let builder = builder.malformed_string(move |input, state| {
 1432   1502   
            ::pyo3_asyncio::tokio::scope(
 1433   1503   
                malformed_string_locals.clone(),
 1434   1504   
                crate::python_operation_adaptor::malformed_string(input, state, handler.clone()),
 1435   1505   
            )
 1436   1506   
        });
        1507  +
        /* PythonApplicationGenerator.kt:209 */
 1437   1508   
        let malformed_timestamp_body_date_time_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1438   1509   
        let handler = self
 1439   1510   
            .handlers
 1440   1511   
            .get("malformed_timestamp_body_date_time")
 1441   1512   
            .expect("Python handler for operation `malformed_timestamp_body_date_time` not found")
 1442   1513   
            .clone();
 1443   1514   
        let builder = builder.malformed_timestamp_body_date_time(move |input, state| {
 1444   1515   
            ::pyo3_asyncio::tokio::scope(
 1445   1516   
                malformed_timestamp_body_date_time_locals.clone(),
 1446   1517   
                crate::python_operation_adaptor::malformed_timestamp_body_date_time(
 1447   1518   
                    input,
 1448   1519   
                    state,
 1449   1520   
                    handler.clone(),
 1450   1521   
                ),
 1451   1522   
            )
 1452   1523   
        });
        1524  +
        /* PythonApplicationGenerator.kt:209 */
 1453   1525   
        let malformed_timestamp_body_default_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1454   1526   
        let handler = self
 1455   1527   
            .handlers
 1456   1528   
            .get("malformed_timestamp_body_default")
 1457   1529   
            .expect("Python handler for operation `malformed_timestamp_body_default` not found")
 1458   1530   
            .clone();
 1459   1531   
        let builder = builder.malformed_timestamp_body_default(move |input, state| {
 1460   1532   
            ::pyo3_asyncio::tokio::scope(
 1461   1533   
                malformed_timestamp_body_default_locals.clone(),
 1462   1534   
                crate::python_operation_adaptor::malformed_timestamp_body_default(
 1463   1535   
                    input,
 1464   1536   
                    state,
 1465   1537   
                    handler.clone(),
 1466   1538   
                ),
 1467   1539   
            )
 1468   1540   
        });
        1541  +
        /* PythonApplicationGenerator.kt:209 */
 1469   1542   
        let malformed_timestamp_body_http_date_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1470   1543   
        let handler = self
 1471   1544   
            .handlers
 1472   1545   
            .get("malformed_timestamp_body_http_date")
 1473   1546   
            .expect("Python handler for operation `malformed_timestamp_body_http_date` not found")
 1474   1547   
            .clone();
 1475   1548   
        let builder = builder.malformed_timestamp_body_http_date(move |input, state| {
 1476   1549   
            ::pyo3_asyncio::tokio::scope(
 1477   1550   
                malformed_timestamp_body_http_date_locals.clone(),
 1478   1551   
                crate::python_operation_adaptor::malformed_timestamp_body_http_date(
 1479   1552   
                    input,
 1480   1553   
                    state,
 1481   1554   
                    handler.clone(),
 1482   1555   
                ),
 1483   1556   
            )
 1484   1557   
        });
        1558  +
        /* PythonApplicationGenerator.kt:209 */
 1485   1559   
        let malformed_timestamp_header_date_time_locals =
 1486   1560   
            ::pyo3_asyncio::TaskLocals::new(event_loop);
 1487   1561   
        let handler = self
 1488   1562   
            .handlers
 1489   1563   
            .get("malformed_timestamp_header_date_time")
 1490   1564   
            .expect("Python handler for operation `malformed_timestamp_header_date_time` not found")
 1491   1565   
            .clone();
 1492   1566   
        let builder = builder.malformed_timestamp_header_date_time(move |input, state| {
 1493   1567   
            ::pyo3_asyncio::tokio::scope(
 1494   1568   
                malformed_timestamp_header_date_time_locals.clone(),
 1495   1569   
                crate::python_operation_adaptor::malformed_timestamp_header_date_time(
 1496   1570   
                    input,
 1497   1571   
                    state,
 1498   1572   
                    handler.clone(),
 1499   1573   
                ),
 1500   1574   
            )
 1501   1575   
        });
        1576  +
        /* PythonApplicationGenerator.kt:209 */
 1502   1577   
        let malformed_timestamp_header_default_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1503   1578   
        let handler = self
 1504   1579   
            .handlers
 1505   1580   
            .get("malformed_timestamp_header_default")
 1506   1581   
            .expect("Python handler for operation `malformed_timestamp_header_default` not found")
 1507   1582   
            .clone();
 1508   1583   
        let builder = builder.malformed_timestamp_header_default(move |input, state| {
 1509   1584   
            ::pyo3_asyncio::tokio::scope(
 1510   1585   
                malformed_timestamp_header_default_locals.clone(),
 1511   1586   
                crate::python_operation_adaptor::malformed_timestamp_header_default(
 1512   1587   
                    input,
 1513   1588   
                    state,
 1514   1589   
                    handler.clone(),
 1515   1590   
                ),
 1516   1591   
            )
 1517   1592   
        });
        1593  +
        /* PythonApplicationGenerator.kt:209 */
 1518   1594   
        let malformed_timestamp_header_epoch_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1519   1595   
        let handler = self
 1520   1596   
            .handlers
 1521   1597   
            .get("malformed_timestamp_header_epoch")
 1522   1598   
            .expect("Python handler for operation `malformed_timestamp_header_epoch` not found")
 1523   1599   
            .clone();
 1524   1600   
        let builder = builder.malformed_timestamp_header_epoch(move |input, state| {
 1525   1601   
            ::pyo3_asyncio::tokio::scope(
 1526   1602   
                malformed_timestamp_header_epoch_locals.clone(),
 1527   1603   
                crate::python_operation_adaptor::malformed_timestamp_header_epoch(
 1528   1604   
                    input,
 1529   1605   
                    state,
 1530   1606   
                    handler.clone(),
 1531   1607   
                ),
 1532   1608   
            )
 1533   1609   
        });
        1610  +
        /* PythonApplicationGenerator.kt:209 */
 1534   1611   
        let malformed_timestamp_path_default_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1535   1612   
        let handler = self
 1536   1613   
            .handlers
 1537   1614   
            .get("malformed_timestamp_path_default")
 1538   1615   
            .expect("Python handler for operation `malformed_timestamp_path_default` not found")
 1539   1616   
            .clone();
 1540   1617   
        let builder = builder.malformed_timestamp_path_default(move |input, state| {
 1541   1618   
            ::pyo3_asyncio::tokio::scope(
 1542   1619   
                malformed_timestamp_path_default_locals.clone(),
 1543   1620   
                crate::python_operation_adaptor::malformed_timestamp_path_default(
 1544   1621   
                    input,
 1545   1622   
                    state,
 1546   1623   
                    handler.clone(),
 1547   1624   
                ),
 1548   1625   
            )
 1549   1626   
        });
        1627  +
        /* PythonApplicationGenerator.kt:209 */
 1550   1628   
        let malformed_timestamp_path_epoch_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1551   1629   
        let handler = self
 1552   1630   
            .handlers
 1553   1631   
            .get("malformed_timestamp_path_epoch")
 1554   1632   
            .expect("Python handler for operation `malformed_timestamp_path_epoch` not found")
 1555   1633   
            .clone();
 1556   1634   
        let builder = builder.malformed_timestamp_path_epoch(move |input, state| {
 1557   1635   
            ::pyo3_asyncio::tokio::scope(
 1558   1636   
                malformed_timestamp_path_epoch_locals.clone(),
 1559   1637   
                crate::python_operation_adaptor::malformed_timestamp_path_epoch(
 1560   1638   
                    input,
 1561   1639   
                    state,
 1562   1640   
                    handler.clone(),
 1563   1641   
                ),
 1564   1642   
            )
 1565   1643   
        });
        1644  +
        /* PythonApplicationGenerator.kt:209 */
 1566   1645   
        let malformed_timestamp_path_http_date_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1567   1646   
        let handler = self
 1568   1647   
            .handlers
 1569   1648   
            .get("malformed_timestamp_path_http_date")
 1570   1649   
            .expect("Python handler for operation `malformed_timestamp_path_http_date` not found")
 1571   1650   
            .clone();
 1572   1651   
        let builder = builder.malformed_timestamp_path_http_date(move |input, state| {
 1573   1652   
            ::pyo3_asyncio::tokio::scope(
 1574   1653   
                malformed_timestamp_path_http_date_locals.clone(),
 1575   1654   
                crate::python_operation_adaptor::malformed_timestamp_path_http_date(
 1576   1655   
                    input,
 1577   1656   
                    state,
 1578   1657   
                    handler.clone(),
 1579   1658   
                ),
 1580   1659   
            )
 1581   1660   
        });
        1661  +
        /* PythonApplicationGenerator.kt:209 */
 1582   1662   
        let malformed_timestamp_query_default_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1583   1663   
        let handler = self
 1584   1664   
            .handlers
 1585   1665   
            .get("malformed_timestamp_query_default")
 1586   1666   
            .expect("Python handler for operation `malformed_timestamp_query_default` not found")
 1587   1667   
            .clone();
 1588   1668   
        let builder = builder.malformed_timestamp_query_default(move |input, state| {
 1589   1669   
            ::pyo3_asyncio::tokio::scope(
 1590   1670   
                malformed_timestamp_query_default_locals.clone(),
 1591   1671   
                crate::python_operation_adaptor::malformed_timestamp_query_default(
 1592   1672   
                    input,
 1593   1673   
                    state,
 1594   1674   
                    handler.clone(),
 1595   1675   
                ),
 1596   1676   
            )
 1597   1677   
        });
        1678  +
        /* PythonApplicationGenerator.kt:209 */
 1598   1679   
        let malformed_timestamp_query_epoch_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1599   1680   
        let handler = self
 1600   1681   
            .handlers
 1601   1682   
            .get("malformed_timestamp_query_epoch")
 1602   1683   
            .expect("Python handler for operation `malformed_timestamp_query_epoch` not found")
 1603   1684   
            .clone();
 1604   1685   
        let builder = builder.malformed_timestamp_query_epoch(move |input, state| {
 1605   1686   
            ::pyo3_asyncio::tokio::scope(
 1606   1687   
                malformed_timestamp_query_epoch_locals.clone(),
 1607   1688   
                crate::python_operation_adaptor::malformed_timestamp_query_epoch(
 1608   1689   
                    input,
 1609   1690   
                    state,
 1610   1691   
                    handler.clone(),
 1611   1692   
                ),
 1612   1693   
            )
 1613   1694   
        });
        1695  +
        /* PythonApplicationGenerator.kt:209 */
 1614   1696   
        let malformed_timestamp_query_http_date_locals =
 1615   1697   
            ::pyo3_asyncio::TaskLocals::new(event_loop);
 1616   1698   
        let handler = self
 1617   1699   
            .handlers
 1618   1700   
            .get("malformed_timestamp_query_http_date")
 1619   1701   
            .expect("Python handler for operation `malformed_timestamp_query_http_date` not found")
 1620   1702   
            .clone();
 1621   1703   
        let builder = builder.malformed_timestamp_query_http_date(move |input, state| {
 1622   1704   
            ::pyo3_asyncio::tokio::scope(
 1623   1705   
                malformed_timestamp_query_http_date_locals.clone(),
 1624   1706   
                crate::python_operation_adaptor::malformed_timestamp_query_http_date(
 1625   1707   
                    input,
 1626   1708   
                    state,
 1627   1709   
                    handler.clone(),
 1628   1710   
                ),
 1629   1711   
            )
 1630   1712   
        });
        1713  +
        /* PythonApplicationGenerator.kt:209 */
 1631   1714   
        let malformed_union_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1632   1715   
        let handler = self
 1633   1716   
            .handlers
 1634   1717   
            .get("malformed_union")
 1635   1718   
            .expect("Python handler for operation `malformed_union` not found")
 1636   1719   
            .clone();
 1637   1720   
        let builder = builder.malformed_union(move |input, state| {
 1638   1721   
            ::pyo3_asyncio::tokio::scope(
 1639   1722   
                malformed_union_locals.clone(),
 1640   1723   
                crate::python_operation_adaptor::malformed_union(input, state, handler.clone()),
 1641   1724   
            )
 1642   1725   
        });
        1726  +
        /* PythonApplicationGenerator.kt:209 */
 1643   1727   
        let media_type_header_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1644   1728   
        let handler = self
 1645   1729   
            .handlers
 1646   1730   
            .get("media_type_header")
 1647   1731   
            .expect("Python handler for operation `media_type_header` not found")
 1648   1732   
            .clone();
 1649   1733   
        let builder = builder.media_type_header(move |input, state| {
 1650   1734   
            ::pyo3_asyncio::tokio::scope(
 1651   1735   
                media_type_header_locals.clone(),
 1652   1736   
                crate::python_operation_adaptor::media_type_header(input, state, handler.clone()),
 1653   1737   
            )
 1654   1738   
        });
        1739  +
        /* PythonApplicationGenerator.kt:209 */
 1655   1740   
        let no_input_and_no_output_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1656   1741   
        let handler = self
 1657   1742   
            .handlers
 1658   1743   
            .get("no_input_and_no_output")
 1659   1744   
            .expect("Python handler for operation `no_input_and_no_output` not found")
 1660   1745   
            .clone();
 1661   1746   
        let builder = builder.no_input_and_no_output(move |input, state| {
 1662   1747   
            ::pyo3_asyncio::tokio::scope(
 1663   1748   
                no_input_and_no_output_locals.clone(),
 1664   1749   
                crate::python_operation_adaptor::no_input_and_no_output(
 1665   1750   
                    input,
 1666   1751   
                    state,
 1667   1752   
                    handler.clone(),
 1668   1753   
                ),
 1669   1754   
            )
 1670   1755   
        });
        1756  +
        /* PythonApplicationGenerator.kt:209 */
 1671   1757   
        let no_input_and_output_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1672   1758   
        let handler = self
 1673   1759   
            .handlers
 1674   1760   
            .get("no_input_and_output")
 1675   1761   
            .expect("Python handler for operation `no_input_and_output` not found")
 1676   1762   
            .clone();
 1677   1763   
        let builder = builder.no_input_and_output(move |input, state| {
 1678   1764   
            ::pyo3_asyncio::tokio::scope(
 1679   1765   
                no_input_and_output_locals.clone(),
 1680   1766   
                crate::python_operation_adaptor::no_input_and_output(input, state, handler.clone()),
 1681   1767   
            )
 1682   1768   
        });
        1769  +
        /* PythonApplicationGenerator.kt:209 */
 1683   1770   
        let null_and_empty_headers_client_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1684   1771   
        let handler = self
 1685   1772   
            .handlers
 1686   1773   
            .get("null_and_empty_headers_client")
 1687   1774   
            .expect("Python handler for operation `null_and_empty_headers_client` not found")
 1688   1775   
            .clone();
 1689   1776   
        let builder = builder.null_and_empty_headers_client(move |input, state| {
 1690   1777   
            ::pyo3_asyncio::tokio::scope(
 1691   1778   
                null_and_empty_headers_client_locals.clone(),
 1692   1779   
                crate::python_operation_adaptor::null_and_empty_headers_client(
 1693   1780   
                    input,
 1694   1781   
                    state,
 1695   1782   
                    handler.clone(),
 1696   1783   
                ),
 1697   1784   
            )
 1698   1785   
        });
        1786  +
        /* PythonApplicationGenerator.kt:209 */
 1699   1787   
        let null_and_empty_headers_server_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1700   1788   
        let handler = self
 1701   1789   
            .handlers
 1702   1790   
            .get("null_and_empty_headers_server")
 1703   1791   
            .expect("Python handler for operation `null_and_empty_headers_server` not found")
 1704   1792   
            .clone();
 1705   1793   
        let builder = builder.null_and_empty_headers_server(move |input, state| {
 1706   1794   
            ::pyo3_asyncio::tokio::scope(
 1707   1795   
                null_and_empty_headers_server_locals.clone(),
 1708   1796   
                crate::python_operation_adaptor::null_and_empty_headers_server(
 1709   1797   
                    input,
 1710   1798   
                    state,
 1711   1799   
                    handler.clone(),
 1712   1800   
                ),
 1713   1801   
            )
 1714   1802   
        });
        1803  +
        /* PythonApplicationGenerator.kt:209 */
 1715   1804   
        let omits_null_serializes_empty_string_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1716   1805   
        let handler = self
 1717   1806   
            .handlers
 1718   1807   
            .get("omits_null_serializes_empty_string")
 1719   1808   
            .expect("Python handler for operation `omits_null_serializes_empty_string` not found")
 1720   1809   
            .clone();
 1721   1810   
        let builder = builder.omits_null_serializes_empty_string(move |input, state| {
 1722   1811   
            ::pyo3_asyncio::tokio::scope(
 1723   1812   
                omits_null_serializes_empty_string_locals.clone(),
 1724   1813   
                crate::python_operation_adaptor::omits_null_serializes_empty_string(
 1725   1814   
                    input,
 1726   1815   
                    state,
 1727   1816   
                    handler.clone(),
 1728   1817   
                ),
 1729   1818   
            )
 1730   1819   
        });
        1820  +
        /* PythonApplicationGenerator.kt:209 */
 1731   1821   
        let omits_serializing_empty_lists_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1732   1822   
        let handler = self
 1733   1823   
            .handlers
 1734   1824   
            .get("omits_serializing_empty_lists")
 1735   1825   
            .expect("Python handler for operation `omits_serializing_empty_lists` not found")
 1736   1826   
            .clone();
 1737   1827   
        let builder = builder.omits_serializing_empty_lists(move |input, state| {
 1738   1828   
            ::pyo3_asyncio::tokio::scope(
 1739   1829   
                omits_serializing_empty_lists_locals.clone(),
 1740   1830   
                crate::python_operation_adaptor::omits_serializing_empty_lists(
 1741   1831   
                    input,
 1742   1832   
                    state,
 1743   1833   
                    handler.clone(),
 1744   1834   
                ),
 1745   1835   
            )
 1746   1836   
        });
        1837  +
        /* PythonApplicationGenerator.kt:209 */
 1747   1838   
        let operation_with_defaults_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1748   1839   
        let handler = self
 1749   1840   
            .handlers
 1750   1841   
            .get("operation_with_defaults")
 1751   1842   
            .expect("Python handler for operation `operation_with_defaults` not found")
 1752   1843   
            .clone();
 1753   1844   
        let builder = builder.operation_with_defaults(move |input, state| {
 1754   1845   
            ::pyo3_asyncio::tokio::scope(
 1755   1846   
                operation_with_defaults_locals.clone(),
 1756   1847   
                crate::python_operation_adaptor::operation_with_defaults(
 1757   1848   
                    input,
 1758   1849   
                    state,
 1759   1850   
                    handler.clone(),
 1760   1851   
                ),
 1761   1852   
            )
 1762   1853   
        });
        1854  +
        /* PythonApplicationGenerator.kt:209 */
 1763   1855   
        let operation_with_nested_structure_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1764   1856   
        let handler = self
 1765   1857   
            .handlers
 1766   1858   
            .get("operation_with_nested_structure")
 1767   1859   
            .expect("Python handler for operation `operation_with_nested_structure` not found")
 1768   1860   
            .clone();
 1769   1861   
        let builder = builder.operation_with_nested_structure(move |input, state| {
 1770   1862   
            ::pyo3_asyncio::tokio::scope(
 1771   1863   
                operation_with_nested_structure_locals.clone(),
 1772   1864   
                crate::python_operation_adaptor::operation_with_nested_structure(
 1773   1865   
                    input,
 1774   1866   
                    state,
 1775   1867   
                    handler.clone(),
 1776   1868   
                ),
 1777   1869   
            )
 1778   1870   
        });
        1871  +
        /* PythonApplicationGenerator.kt:209 */
 1779   1872   
        let post_player_action_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1780   1873   
        let handler = self
 1781   1874   
            .handlers
 1782   1875   
            .get("post_player_action")
 1783   1876   
            .expect("Python handler for operation `post_player_action` not found")
 1784   1877   
            .clone();
 1785   1878   
        let builder = builder.post_player_action(move |input, state| {
 1786   1879   
            ::pyo3_asyncio::tokio::scope(
 1787   1880   
                post_player_action_locals.clone(),
 1788   1881   
                crate::python_operation_adaptor::post_player_action(input, state, handler.clone()),
 1789   1882   
            )
 1790   1883   
        });
        1884  +
        /* PythonApplicationGenerator.kt:209 */
 1791   1885   
        let post_union_with_json_name_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1792   1886   
        let handler = self
 1793   1887   
            .handlers
 1794   1888   
            .get("post_union_with_json_name")
 1795   1889   
            .expect("Python handler for operation `post_union_with_json_name` not found")
 1796   1890   
            .clone();
 1797   1891   
        let builder = builder.post_union_with_json_name(move |input, state| {
 1798   1892   
            ::pyo3_asyncio::tokio::scope(
 1799   1893   
                post_union_with_json_name_locals.clone(),
 1800   1894   
                crate::python_operation_adaptor::post_union_with_json_name(
 1801   1895   
                    input,
 1802   1896   
                    state,
 1803   1897   
                    handler.clone(),
 1804   1898   
                ),
 1805   1899   
            )
 1806   1900   
        });
        1901  +
        /* PythonApplicationGenerator.kt:209 */
 1807   1902   
        let put_with_content_encoding_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1808   1903   
        let handler = self
 1809   1904   
            .handlers
 1810   1905   
            .get("put_with_content_encoding")
 1811   1906   
            .expect("Python handler for operation `put_with_content_encoding` not found")
 1812   1907   
            .clone();
 1813   1908   
        let builder = builder.put_with_content_encoding(move |input, state| {
 1814   1909   
            ::pyo3_asyncio::tokio::scope(
 1815   1910   
                put_with_content_encoding_locals.clone(),
 1816   1911   
                crate::python_operation_adaptor::put_with_content_encoding(
 1817   1912   
                    input,
 1818   1913   
                    state,
 1819   1914   
                    handler.clone(),
 1820   1915   
                ),
 1821   1916   
            )
 1822   1917   
        });
        1918  +
        /* PythonApplicationGenerator.kt:209 */
 1823   1919   
        let query_idempotency_token_auto_fill_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1824   1920   
        let handler = self
 1825   1921   
            .handlers
 1826   1922   
            .get("query_idempotency_token_auto_fill")
 1827   1923   
            .expect("Python handler for operation `query_idempotency_token_auto_fill` not found")
 1828   1924   
            .clone();
 1829   1925   
        let builder = builder.query_idempotency_token_auto_fill(move |input, state| {
 1830   1926   
            ::pyo3_asyncio::tokio::scope(
 1831   1927   
                query_idempotency_token_auto_fill_locals.clone(),
 1832   1928   
                crate::python_operation_adaptor::query_idempotency_token_auto_fill(
 1833   1929   
                    input,
 1834   1930   
                    state,
 1835   1931   
                    handler.clone(),
 1836   1932   
                ),
 1837   1933   
            )
 1838   1934   
        });
        1935  +
        /* PythonApplicationGenerator.kt:209 */
 1839   1936   
        let query_params_as_string_list_map_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1840   1937   
        let handler = self
 1841   1938   
            .handlers
 1842   1939   
            .get("query_params_as_string_list_map")
 1843   1940   
            .expect("Python handler for operation `query_params_as_string_list_map` not found")
 1844   1941   
            .clone();
 1845   1942   
        let builder = builder.query_params_as_string_list_map(move |input, state| {
 1846   1943   
            ::pyo3_asyncio::tokio::scope(
 1847   1944   
                query_params_as_string_list_map_locals.clone(),
 1848   1945   
                crate::python_operation_adaptor::query_params_as_string_list_map(
 1849   1946   
                    input,
 1850   1947   
                    state,
 1851   1948   
                    handler.clone(),
 1852   1949   
                ),
 1853   1950   
            )
 1854   1951   
        });
        1952  +
        /* PythonApplicationGenerator.kt:209 */
 1855   1953   
        let query_precedence_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1856   1954   
        let handler = self
 1857   1955   
            .handlers
 1858   1956   
            .get("query_precedence")
 1859   1957   
            .expect("Python handler for operation `query_precedence` not found")
 1860   1958   
            .clone();
 1861   1959   
        let builder = builder.query_precedence(move |input, state| {
 1862   1960   
            ::pyo3_asyncio::tokio::scope(
 1863   1961   
                query_precedence_locals.clone(),
 1864   1962   
                crate::python_operation_adaptor::query_precedence(input, state, handler.clone()),
 1865   1963   
            )
 1866   1964   
        });
        1965  +
        /* PythonApplicationGenerator.kt:209 */
 1867   1966   
        let recursive_shapes_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1868   1967   
        let handler = self
 1869   1968   
            .handlers
 1870   1969   
            .get("recursive_shapes")
 1871   1970   
            .expect("Python handler for operation `recursive_shapes` not found")
 1872   1971   
            .clone();
 1873   1972   
        let builder = builder.recursive_shapes(move |input, state| {
 1874   1973   
            ::pyo3_asyncio::tokio::scope(
 1875   1974   
                recursive_shapes_locals.clone(),
 1876   1975   
                crate::python_operation_adaptor::recursive_shapes(input, state, handler.clone()),
 1877   1976   
            )
 1878   1977   
        });
        1978  +
        /* PythonApplicationGenerator.kt:209 */
 1879   1979   
        let simple_scalar_properties_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1880   1980   
        let handler = self
 1881   1981   
            .handlers
 1882   1982   
            .get("simple_scalar_properties")
 1883   1983   
            .expect("Python handler for operation `simple_scalar_properties` not found")
 1884   1984   
            .clone();
 1885   1985   
        let builder = builder.simple_scalar_properties(move |input, state| {
 1886   1986   
            ::pyo3_asyncio::tokio::scope(
 1887   1987   
                simple_scalar_properties_locals.clone(),
 1888   1988   
                crate::python_operation_adaptor::simple_scalar_properties(
 1889   1989   
                    input,
 1890   1990   
                    state,
 1891   1991   
                    handler.clone(),
 1892   1992   
                ),
 1893   1993   
            )
 1894   1994   
        });
        1995  +
        /* PythonApplicationGenerator.kt:209 */
 1895   1996   
        let sparse_json_lists_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1896   1997   
        let handler = self
 1897   1998   
            .handlers
 1898   1999   
            .get("sparse_json_lists")
 1899   2000   
            .expect("Python handler for operation `sparse_json_lists` not found")
 1900   2001   
            .clone();
 1901   2002   
        let builder = builder.sparse_json_lists(move |input, state| {
 1902   2003   
            ::pyo3_asyncio::tokio::scope(
 1903   2004   
                sparse_json_lists_locals.clone(),
 1904   2005   
                crate::python_operation_adaptor::sparse_json_lists(input, state, handler.clone()),
 1905   2006   
            )
 1906   2007   
        });
        2008  +
        /* PythonApplicationGenerator.kt:209 */
 1907   2009   
        let sparse_json_maps_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1908   2010   
        let handler = self
 1909   2011   
            .handlers
 1910   2012   
            .get("sparse_json_maps")
 1911   2013   
            .expect("Python handler for operation `sparse_json_maps` not found")
 1912   2014   
            .clone();
 1913   2015   
        let builder = builder.sparse_json_maps(move |input, state| {
 1914   2016   
            ::pyo3_asyncio::tokio::scope(
 1915   2017   
                sparse_json_maps_locals.clone(),
 1916   2018   
                crate::python_operation_adaptor::sparse_json_maps(input, state, handler.clone()),
 1917   2019   
            )
 1918   2020   
        });
        2021  +
        /* PythonApplicationGenerator.kt:209 */
 1919   2022   
        let streaming_traits_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1920   2023   
        let handler = self
 1921   2024   
            .handlers
 1922   2025   
            .get("streaming_traits")
 1923   2026   
            .expect("Python handler for operation `streaming_traits` not found")
 1924   2027   
            .clone();
 1925   2028   
        let builder = builder.streaming_traits(move |input, state| {
 1926   2029   
            ::pyo3_asyncio::tokio::scope(
 1927   2030   
                streaming_traits_locals.clone(),
 1928   2031   
                crate::python_operation_adaptor::streaming_traits(input, state, handler.clone()),
 1929   2032   
            )
 1930   2033   
        });
        2034  +
        /* PythonApplicationGenerator.kt:209 */
 1931   2035   
        let streaming_traits_require_length_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1932   2036   
        let handler = self
 1933   2037   
            .handlers
 1934   2038   
            .get("streaming_traits_require_length")
 1935   2039   
            .expect("Python handler for operation `streaming_traits_require_length` not found")
 1936   2040   
            .clone();
 1937   2041   
        let builder = builder.streaming_traits_require_length(move |input, state| {
 1938   2042   
            ::pyo3_asyncio::tokio::scope(
 1939   2043   
                streaming_traits_require_length_locals.clone(),
 1940   2044   
                crate::python_operation_adaptor::streaming_traits_require_length(
 1941   2045   
                    input,
 1942   2046   
                    state,
 1943   2047   
                    handler.clone(),
 1944   2048   
                ),
 1945   2049   
            )
 1946   2050   
        });
        2051  +
        /* PythonApplicationGenerator.kt:209 */
 1947   2052   
        let streaming_traits_with_media_type_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1948   2053   
        let handler = self
 1949   2054   
            .handlers
 1950   2055   
            .get("streaming_traits_with_media_type")
 1951   2056   
            .expect("Python handler for operation `streaming_traits_with_media_type` not found")
 1952   2057   
            .clone();
 1953   2058   
        let builder = builder.streaming_traits_with_media_type(move |input, state| {
 1954   2059   
            ::pyo3_asyncio::tokio::scope(
 1955   2060   
                streaming_traits_with_media_type_locals.clone(),
 1956   2061   
                crate::python_operation_adaptor::streaming_traits_with_media_type(
 1957   2062   
                    input,
 1958   2063   
                    state,
 1959   2064   
                    handler.clone(),
 1960   2065   
                ),
 1961   2066   
            )
 1962   2067   
        });
        2068  +
        /* PythonApplicationGenerator.kt:209 */
 1963   2069   
        let test_body_structure_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1964   2070   
        let handler = self
 1965   2071   
            .handlers
 1966   2072   
            .get("test_body_structure")
 1967   2073   
            .expect("Python handler for operation `test_body_structure` not found")
 1968   2074   
            .clone();
 1969   2075   
        let builder = builder.test_body_structure(move |input, state| {
 1970   2076   
            ::pyo3_asyncio::tokio::scope(
 1971   2077   
                test_body_structure_locals.clone(),
 1972   2078   
                crate::python_operation_adaptor::test_body_structure(input, state, handler.clone()),
 1973   2079   
            )
 1974   2080   
        });
        2081  +
        /* PythonApplicationGenerator.kt:209 */
 1975   2082   
        let test_get_no_input_no_payload_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1976   2083   
        let handler = self
 1977   2084   
            .handlers
 1978   2085   
            .get("test_get_no_input_no_payload")
 1979   2086   
            .expect("Python handler for operation `test_get_no_input_no_payload` not found")
 1980   2087   
            .clone();
 1981   2088   
        let builder = builder.test_get_no_input_no_payload(move |input, state| {
 1982   2089   
            ::pyo3_asyncio::tokio::scope(
 1983   2090   
                test_get_no_input_no_payload_locals.clone(),
 1984   2091   
                crate::python_operation_adaptor::test_get_no_input_no_payload(
 1985   2092   
                    input,
 1986   2093   
                    state,
 1987   2094   
                    handler.clone(),
 1988   2095   
                ),
 1989   2096   
            )
 1990   2097   
        });
        2098  +
        /* PythonApplicationGenerator.kt:209 */
 1991   2099   
        let test_get_no_payload_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 1992   2100   
        let handler = self
 1993   2101   
            .handlers
 1994   2102   
            .get("test_get_no_payload")
 1995   2103   
            .expect("Python handler for operation `test_get_no_payload` not found")
 1996   2104   
            .clone();
 1997   2105   
        let builder = builder.test_get_no_payload(move |input, state| {
 1998   2106   
            ::pyo3_asyncio::tokio::scope(
 1999   2107   
                test_get_no_payload_locals.clone(),
 2000   2108   
                crate::python_operation_adaptor::test_get_no_payload(input, state, handler.clone()),
 2001   2109   
            )
 2002   2110   
        });
        2111  +
        /* PythonApplicationGenerator.kt:209 */
 2003   2112   
        let test_payload_blob_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 2004   2113   
        let handler = self
 2005   2114   
            .handlers
 2006   2115   
            .get("test_payload_blob")
 2007   2116   
            .expect("Python handler for operation `test_payload_blob` not found")
 2008   2117   
            .clone();
 2009   2118   
        let builder = builder.test_payload_blob(move |input, state| {
 2010   2119   
            ::pyo3_asyncio::tokio::scope(
 2011   2120   
                test_payload_blob_locals.clone(),
 2012   2121   
                crate::python_operation_adaptor::test_payload_blob(input, state, handler.clone()),
 2013   2122   
            )
 2014   2123   
        });
        2124  +
        /* PythonApplicationGenerator.kt:209 */
 2015   2125   
        let test_payload_structure_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 2016   2126   
        let handler = self
 2017   2127   
            .handlers
 2018   2128   
            .get("test_payload_structure")
 2019   2129   
            .expect("Python handler for operation `test_payload_structure` not found")
 2020   2130   
            .clone();
 2021   2131   
        let builder = builder.test_payload_structure(move |input, state| {
 2022   2132   
            ::pyo3_asyncio::tokio::scope(
 2023   2133   
                test_payload_structure_locals.clone(),
 2024   2134   
                crate::python_operation_adaptor::test_payload_structure(
 2025   2135   
                    input,
 2026   2136   
                    state,
 2027   2137   
                    handler.clone(),
 2028   2138   
                ),
 2029   2139   
            )
 2030   2140   
        });
        2141  +
        /* PythonApplicationGenerator.kt:209 */
 2031   2142   
        let test_post_no_input_no_payload_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 2032   2143   
        let handler = self
 2033   2144   
            .handlers
 2034   2145   
            .get("test_post_no_input_no_payload")
 2035   2146   
            .expect("Python handler for operation `test_post_no_input_no_payload` not found")
 2036   2147   
            .clone();
 2037   2148   
        let builder = builder.test_post_no_input_no_payload(move |input, state| {
 2038   2149   
            ::pyo3_asyncio::tokio::scope(
 2039   2150   
                test_post_no_input_no_payload_locals.clone(),
 2040   2151   
                crate::python_operation_adaptor::test_post_no_input_no_payload(
 2041   2152   
                    input,
 2042   2153   
                    state,
 2043   2154   
                    handler.clone(),
 2044   2155   
                ),
 2045   2156   
            )
 2046   2157   
        });
        2158  +
        /* PythonApplicationGenerator.kt:209 */
 2047   2159   
        let test_post_no_payload_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 2048   2160   
        let handler = self
 2049   2161   
            .handlers
 2050   2162   
            .get("test_post_no_payload")
 2051   2163   
            .expect("Python handler for operation `test_post_no_payload` not found")
 2052   2164   
            .clone();
 2053   2165   
        let builder = builder.test_post_no_payload(move |input, state| {
 2054   2166   
            ::pyo3_asyncio::tokio::scope(
 2055   2167   
                test_post_no_payload_locals.clone(),
 2056   2168   
                crate::python_operation_adaptor::test_post_no_payload(
 2057   2169   
                    input,
 2058   2170   
                    state,
 2059   2171   
                    handler.clone(),
 2060   2172   
                ),
 2061   2173   
            )
 2062   2174   
        });
        2175  +
        /* PythonApplicationGenerator.kt:209 */
 2063   2176   
        let timestamp_format_headers_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 2064   2177   
        let handler = self
 2065   2178   
            .handlers
 2066   2179   
            .get("timestamp_format_headers")
 2067   2180   
            .expect("Python handler for operation `timestamp_format_headers` not found")
 2068   2181   
            .clone();
 2069   2182   
        let builder = builder.timestamp_format_headers(move |input, state| {
 2070   2183   
            ::pyo3_asyncio::tokio::scope(
 2071   2184   
                timestamp_format_headers_locals.clone(),
 2072   2185   
                crate::python_operation_adaptor::timestamp_format_headers(
 2073   2186   
                    input,
 2074   2187   
                    state,
 2075   2188   
                    handler.clone(),
 2076   2189   
                ),
 2077   2190   
            )
 2078   2191   
        });
        2192  +
        /* PythonApplicationGenerator.kt:209 */
 2079   2193   
        let unit_input_and_output_locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 2080   2194   
        let handler = self
 2081   2195   
            .handlers
 2082   2196   
            .get("unit_input_and_output")
 2083   2197   
            .expect("Python handler for operation `unit_input_and_output` not found")
 2084   2198   
            .clone();
 2085   2199   
        let builder = builder.unit_input_and_output(move |input, state| {
 2086   2200   
            ::pyo3_asyncio::tokio::scope(
 2087   2201   
                unit_input_and_output_locals.clone(),
 2088   2202   
                crate::python_operation_adaptor::unit_input_and_output(
 2089   2203   
                    input,
 2090   2204   
                    state,
 2091   2205   
                    handler.clone(),
 2092   2206   
                ),
 2093   2207   
            )
 2094   2208   
        });
        2209  +
        /* PythonApplicationGenerator.kt:220 */
 2095   2210   
        let mut service = ::tower::util::BoxCloneService::new(builder.build().expect("one or more operations do not have a registered handler; this is a bug in the Python code generator, please file a bug report under https://github.com/smithy-lang/smithy-rs/issues"));
 2096   2211   
 2097   2212   
        {
 2098   2213   
            use ::tower::Layer;
 2099   2214   
            ::tracing::trace!("adding middlewares to rust python router");
 2100   2215   
            let mut middlewares = self.middlewares.clone();
 2101   2216   
            // Reverse the middlewares, so they run with same order as they defined
 2102   2217   
            middlewares.reverse();
 2103   2218   
            for handler in middlewares {
 2104   2219   
                ::tracing::trace!(name = &handler.name, "adding python middleware");
 2105   2220   
                let locals = ::pyo3_asyncio::TaskLocals::new(event_loop);
 2106   2221   
                let layer = ::aws_smithy_http_server_python::PyMiddlewareLayer::<
 2107   2222   
                    ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
 2108   2223   
                >::new(handler, locals);
 2109   2224   
                service = ::tower::util::BoxCloneService::new(layer.layer(service));
 2110   2225   
            }
 2111   2226   
        }
 2112   2227   
        Ok(service)
        2228  +
        /* PythonApplicationGenerator.kt:189 */
 2113   2229   
    }
        2230  +
    /* PythonApplicationGenerator.kt:168 */
 2114   2231   
}
        2232  +
/* PythonApplicationGenerator.kt:247 */
 2115   2233   
#[::pyo3::pymethods]
 2116   2234   
impl App {
        2235  +
    /* PythonApplicationGenerator.kt:260 */
 2117   2236   
    /// Create a new [App].
 2118   2237   
    #[new]
 2119   2238   
    pub fn new() -> Self {
 2120   2239   
        Self::default()
 2121   2240   
    }
 2122   2241   
 2123   2242   
    /// Register a context object that will be shared between handlers.
 2124   2243   
    ///
 2125   2244   
    /// :param context Ctx:
 2126   2245   
    /// :rtype None:
@@ -2169,2288 +3613,3834 @@
 2189   2308   
        py: pyo3::Python,
 2190   2309   
        socket: &pyo3::PyCell<::aws_smithy_http_server_python::PySocket>,
 2191   2310   
        worker_number: isize,
 2192   2311   
        tls: Option<::aws_smithy_http_server_python::tls::PyTlsConfig>,
 2193   2312   
    ) -> pyo3::PyResult<()> {
 2194   2313   
        use ::aws_smithy_http_server_python::PyApp;
 2195   2314   
        let event_loop = self.configure_python_event_loop(py)?;
 2196   2315   
        let service = self.build_and_configure_service(py, event_loop)?;
 2197   2316   
        self.start_hyper_worker(py, socket, event_loop, service, worker_number, tls)
 2198   2317   
    }
        2318  +
    /* PythonApplicationGenerator.kt:366 */
 2199   2319   
    /// Method to register `all_query_string_types` Python implementation inside the handlers map.
 2200   2320   
    /// It can be used as a function decorator in Python.
 2201   2321   
    ///
 2202   2322   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.AllQueryStringTypesInput, Ctx\], typing.Union\[rest_json.output.AllQueryStringTypesOutput, typing.Awaitable\[rest_json.output.AllQueryStringTypesOutput\]\]\], typing.Callable\[\[rest_json.input.AllQueryStringTypesInput\], typing.Union\[rest_json.output.AllQueryStringTypesOutput, typing.Awaitable\[rest_json.output.AllQueryStringTypesOutput\]\]\]\]:
 2203   2323   
    /// :rtype None:
 2204   2324   
    #[pyo3(text_signature = "($self, func)")]
 2205   2325   
    pub fn all_query_string_types(
 2206   2326   
        &mut self,
 2207   2327   
        py: ::pyo3::Python,
 2208   2328   
        func: ::pyo3::PyObject,
 2209   2329   
    ) -> ::pyo3::PyResult<()> {
 2210   2330   
        use ::aws_smithy_http_server_python::PyApp;
 2211   2331   
        self.register_operation(py, "all_query_string_types", func)
 2212   2332   
    }
        2333  +
    /* PythonApplicationGenerator.kt:366 */
 2213   2334   
    /// Method to register `constant_and_variable_query_string` Python implementation inside the handlers map.
 2214   2335   
    /// It can be used as a function decorator in Python.
 2215   2336   
    ///
 2216   2337   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.ConstantAndVariableQueryStringInput, Ctx\], typing.Union\[rest_json.output.ConstantAndVariableQueryStringOutput, typing.Awaitable\[rest_json.output.ConstantAndVariableQueryStringOutput\]\]\], typing.Callable\[\[rest_json.input.ConstantAndVariableQueryStringInput\], typing.Union\[rest_json.output.ConstantAndVariableQueryStringOutput, typing.Awaitable\[rest_json.output.ConstantAndVariableQueryStringOutput\]\]\]\]:
 2217   2338   
    /// :rtype None:
 2218   2339   
    #[pyo3(text_signature = "($self, func)")]
 2219   2340   
    pub fn constant_and_variable_query_string(
 2220   2341   
        &mut self,
 2221   2342   
        py: ::pyo3::Python,
 2222   2343   
        func: ::pyo3::PyObject,
 2223   2344   
    ) -> ::pyo3::PyResult<()> {
 2224   2345   
        use ::aws_smithy_http_server_python::PyApp;
 2225   2346   
        self.register_operation(py, "constant_and_variable_query_string", func)
 2226   2347   
    }
        2348  +
    /* PythonApplicationGenerator.kt:366 */
 2227   2349   
    /// Method to register `constant_query_string` Python implementation inside the handlers map.
 2228   2350   
    /// It can be used as a function decorator in Python.
 2229   2351   
    ///
 2230   2352   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.ConstantQueryStringInput, Ctx\], typing.Union\[rest_json.output.ConstantQueryStringOutput, typing.Awaitable\[rest_json.output.ConstantQueryStringOutput\]\]\], typing.Callable\[\[rest_json.input.ConstantQueryStringInput\], typing.Union\[rest_json.output.ConstantQueryStringOutput, typing.Awaitable\[rest_json.output.ConstantQueryStringOutput\]\]\]\]:
 2231   2353   
    /// :rtype None:
 2232   2354   
    #[pyo3(text_signature = "($self, func)")]
 2233   2355   
    pub fn constant_query_string(
 2234   2356   
        &mut self,
 2235   2357   
        py: ::pyo3::Python,
 2236   2358   
        func: ::pyo3::PyObject,
 2237   2359   
    ) -> ::pyo3::PyResult<()> {
 2238   2360   
        use ::aws_smithy_http_server_python::PyApp;
 2239   2361   
        self.register_operation(py, "constant_query_string", func)
 2240   2362   
    }
        2363  +
    /* PythonApplicationGenerator.kt:366 */
 2241   2364   
    /// Method to register `content_type_parameters` Python implementation inside the handlers map.
 2242   2365   
    /// It can be used as a function decorator in Python.
 2243   2366   
    ///
 2244   2367   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.ContentTypeParametersInput, Ctx\], typing.Union\[rest_json.output.ContentTypeParametersOutput, typing.Awaitable\[rest_json.output.ContentTypeParametersOutput\]\]\], typing.Callable\[\[rest_json.input.ContentTypeParametersInput\], typing.Union\[rest_json.output.ContentTypeParametersOutput, typing.Awaitable\[rest_json.output.ContentTypeParametersOutput\]\]\]\]:
 2245   2368   
    /// :rtype None:
 2246   2369   
    #[pyo3(text_signature = "($self, func)")]
 2247   2370   
    pub fn content_type_parameters(
 2248   2371   
        &mut self,
 2249   2372   
        py: ::pyo3::Python,
 2250   2373   
        func: ::pyo3::PyObject,
 2251   2374   
    ) -> ::pyo3::PyResult<()> {
 2252   2375   
        use ::aws_smithy_http_server_python::PyApp;
 2253   2376   
        self.register_operation(py, "content_type_parameters", func)
 2254   2377   
    }
        2378  +
    /* PythonApplicationGenerator.kt:366 */
 2255   2379   
    /// Method to register `datetime_offsets` Python implementation inside the handlers map.
 2256   2380   
    /// It can be used as a function decorator in Python.
 2257   2381   
    ///
 2258   2382   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.DatetimeOffsetsInput, Ctx\], typing.Union\[rest_json.output.DatetimeOffsetsOutput, typing.Awaitable\[rest_json.output.DatetimeOffsetsOutput\]\]\], typing.Callable\[\[rest_json.input.DatetimeOffsetsInput\], typing.Union\[rest_json.output.DatetimeOffsetsOutput, typing.Awaitable\[rest_json.output.DatetimeOffsetsOutput\]\]\]\]:
 2259   2383   
    /// :rtype None:
 2260   2384   
    #[pyo3(text_signature = "($self, func)")]
 2261   2385   
    pub fn datetime_offsets(
 2262   2386   
        &mut self,
 2263   2387   
        py: ::pyo3::Python,
 2264   2388   
        func: ::pyo3::PyObject,
 2265   2389   
    ) -> ::pyo3::PyResult<()> {
 2266   2390   
        use ::aws_smithy_http_server_python::PyApp;
 2267   2391   
        self.register_operation(py, "datetime_offsets", func)
 2268   2392   
    }
        2393  +
    /* PythonApplicationGenerator.kt:366 */
 2269   2394   
    /// Method to register `document_type` Python implementation inside the handlers map.
 2270   2395   
    /// It can be used as a function decorator in Python.
 2271   2396   
    ///
 2272   2397   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.DocumentTypeInput, Ctx\], typing.Union\[rest_json.output.DocumentTypeOutput, typing.Awaitable\[rest_json.output.DocumentTypeOutput\]\]\], typing.Callable\[\[rest_json.input.DocumentTypeInput\], typing.Union\[rest_json.output.DocumentTypeOutput, typing.Awaitable\[rest_json.output.DocumentTypeOutput\]\]\]\]:
 2273   2398   
    /// :rtype None:
 2274   2399   
    #[pyo3(text_signature = "($self, func)")]
 2275   2400   
    pub fn document_type(
 2276   2401   
        &mut self,
 2277   2402   
        py: ::pyo3::Python,
 2278   2403   
        func: ::pyo3::PyObject,
 2279   2404   
    ) -> ::pyo3::PyResult<()> {
 2280   2405   
        use ::aws_smithy_http_server_python::PyApp;
 2281   2406   
        self.register_operation(py, "document_type", func)
 2282   2407   
    }
        2408  +
    /* PythonApplicationGenerator.kt:366 */
 2283   2409   
    /// Method to register `document_type_as_map_value` Python implementation inside the handlers map.
 2284   2410   
    /// It can be used as a function decorator in Python.
 2285   2411   
    ///
 2286   2412   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.DocumentTypeAsMapValueInput, Ctx\], typing.Union\[rest_json.output.DocumentTypeAsMapValueOutput, typing.Awaitable\[rest_json.output.DocumentTypeAsMapValueOutput\]\]\], typing.Callable\[\[rest_json.input.DocumentTypeAsMapValueInput\], typing.Union\[rest_json.output.DocumentTypeAsMapValueOutput, typing.Awaitable\[rest_json.output.DocumentTypeAsMapValueOutput\]\]\]\]:
 2287   2413   
    /// :rtype None:
 2288   2414   
    #[pyo3(text_signature = "($self, func)")]
 2289   2415   
    pub fn document_type_as_map_value(
 2290   2416   
        &mut self,
 2291   2417   
        py: ::pyo3::Python,
 2292   2418   
        func: ::pyo3::PyObject,
 2293   2419   
    ) -> ::pyo3::PyResult<()> {
 2294   2420   
        use ::aws_smithy_http_server_python::PyApp;
 2295   2421   
        self.register_operation(py, "document_type_as_map_value", func)
 2296   2422   
    }
        2423  +
    /* PythonApplicationGenerator.kt:366 */
 2297   2424   
    /// Method to register `document_type_as_payload` Python implementation inside the handlers map.
 2298   2425   
    /// It can be used as a function decorator in Python.
 2299   2426   
    ///
 2300   2427   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.DocumentTypeAsPayloadInput, Ctx\], typing.Union\[rest_json.output.DocumentTypeAsPayloadOutput, typing.Awaitable\[rest_json.output.DocumentTypeAsPayloadOutput\]\]\], typing.Callable\[\[rest_json.input.DocumentTypeAsPayloadInput\], typing.Union\[rest_json.output.DocumentTypeAsPayloadOutput, typing.Awaitable\[rest_json.output.DocumentTypeAsPayloadOutput\]\]\]\]:
 2301   2428   
    /// :rtype None:
 2302   2429   
    #[pyo3(text_signature = "($self, func)")]
 2303   2430   
    pub fn document_type_as_payload(
 2304   2431   
        &mut self,
 2305   2432   
        py: ::pyo3::Python,
 2306   2433   
        func: ::pyo3::PyObject,
 2307   2434   
    ) -> ::pyo3::PyResult<()> {
 2308   2435   
        use ::aws_smithy_http_server_python::PyApp;
 2309   2436   
        self.register_operation(py, "document_type_as_payload", func)
 2310   2437   
    }
        2438  +
    /* PythonApplicationGenerator.kt:366 */
 2311   2439   
    /// Method to register `empty_input_and_empty_output` Python implementation inside the handlers map.
 2312   2440   
    /// It can be used as a function decorator in Python.
 2313   2441   
    ///
 2314   2442   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.EmptyInputAndEmptyOutputInput, Ctx\], typing.Union\[rest_json.output.EmptyInputAndEmptyOutputOutput, typing.Awaitable\[rest_json.output.EmptyInputAndEmptyOutputOutput\]\]\], typing.Callable\[\[rest_json.input.EmptyInputAndEmptyOutputInput\], typing.Union\[rest_json.output.EmptyInputAndEmptyOutputOutput, typing.Awaitable\[rest_json.output.EmptyInputAndEmptyOutputOutput\]\]\]\]:
 2315   2443   
    /// :rtype None:
 2316   2444   
    #[pyo3(text_signature = "($self, func)")]
 2317   2445   
    pub fn empty_input_and_empty_output(
 2318   2446   
        &mut self,
 2319   2447   
        py: ::pyo3::Python,
 2320   2448   
        func: ::pyo3::PyObject,
 2321   2449   
    ) -> ::pyo3::PyResult<()> {
 2322   2450   
        use ::aws_smithy_http_server_python::PyApp;
 2323   2451   
        self.register_operation(py, "empty_input_and_empty_output", func)
 2324   2452   
    }
        2453  +
    /* PythonApplicationGenerator.kt:366 */
 2325   2454   
    /// Method to register `endpoint_operation` Python implementation inside the handlers map.
 2326   2455   
    /// It can be used as a function decorator in Python.
 2327   2456   
    ///
 2328   2457   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.EndpointOperationInput, Ctx\], typing.Union\[rest_json.output.EndpointOperationOutput, typing.Awaitable\[rest_json.output.EndpointOperationOutput\]\]\], typing.Callable\[\[rest_json.input.EndpointOperationInput\], typing.Union\[rest_json.output.EndpointOperationOutput, typing.Awaitable\[rest_json.output.EndpointOperationOutput\]\]\]\]:
 2329   2458   
    /// :rtype None:
 2330   2459   
    #[pyo3(text_signature = "($self, func)")]
 2331   2460   
    pub fn endpoint_operation(
 2332   2461   
        &mut self,
 2333   2462   
        py: ::pyo3::Python,
 2334   2463   
        func: ::pyo3::PyObject,
 2335   2464   
    ) -> ::pyo3::PyResult<()> {
 2336   2465   
        use ::aws_smithy_http_server_python::PyApp;
 2337   2466   
        self.register_operation(py, "endpoint_operation", func)
 2338   2467   
    }
        2468  +
    /* PythonApplicationGenerator.kt:366 */
 2339   2469   
    /// Method to register `endpoint_with_host_label_operation` Python implementation inside the handlers map.
 2340   2470   
    /// It can be used as a function decorator in Python.
 2341   2471   
    ///
 2342   2472   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.EndpointWithHostLabelOperationInput, Ctx\], typing.Union\[rest_json.output.EndpointWithHostLabelOperationOutput, typing.Awaitable\[rest_json.output.EndpointWithHostLabelOperationOutput\]\]\], typing.Callable\[\[rest_json.input.EndpointWithHostLabelOperationInput\], typing.Union\[rest_json.output.EndpointWithHostLabelOperationOutput, typing.Awaitable\[rest_json.output.EndpointWithHostLabelOperationOutput\]\]\]\]:
 2343   2473   
    /// :rtype None:
 2344   2474   
    #[pyo3(text_signature = "($self, func)")]
 2345   2475   
    pub fn endpoint_with_host_label_operation(
 2346   2476   
        &mut self,
 2347   2477   
        py: ::pyo3::Python,
 2348   2478   
        func: ::pyo3::PyObject,
 2349   2479   
    ) -> ::pyo3::PyResult<()> {
 2350   2480   
        use ::aws_smithy_http_server_python::PyApp;
 2351   2481   
        self.register_operation(py, "endpoint_with_host_label_operation", func)
 2352   2482   
    }
        2483  +
    /* PythonApplicationGenerator.kt:366 */
 2353   2484   
    /// Method to register `fractional_seconds` Python implementation inside the handlers map.
 2354   2485   
    /// It can be used as a function decorator in Python.
 2355   2486   
    ///
 2356   2487   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.FractionalSecondsInput, Ctx\], typing.Union\[rest_json.output.FractionalSecondsOutput, typing.Awaitable\[rest_json.output.FractionalSecondsOutput\]\]\], typing.Callable\[\[rest_json.input.FractionalSecondsInput\], typing.Union\[rest_json.output.FractionalSecondsOutput, typing.Awaitable\[rest_json.output.FractionalSecondsOutput\]\]\]\]:
 2357   2488   
    /// :rtype None:
 2358   2489   
    #[pyo3(text_signature = "($self, func)")]
 2359   2490   
    pub fn fractional_seconds(
 2360   2491   
        &mut self,
 2361   2492   
        py: ::pyo3::Python,
 2362   2493   
        func: ::pyo3::PyObject,
 2363   2494   
    ) -> ::pyo3::PyResult<()> {
 2364   2495   
        use ::aws_smithy_http_server_python::PyApp;
 2365   2496   
        self.register_operation(py, "fractional_seconds", func)
 2366   2497   
    }
        2498  +
    /* PythonApplicationGenerator.kt:366 */
 2367   2499   
    /// Method to register `greeting_with_errors` Python implementation inside the handlers map.
 2368   2500   
    /// It can be used as a function decorator in Python.
 2369   2501   
    ///
 2370   2502   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.GreetingWithErrorsInput, Ctx\], typing.Union\[rest_json.output.GreetingWithErrorsOutput, typing.Awaitable\[rest_json.output.GreetingWithErrorsOutput\]\]\], typing.Callable\[\[rest_json.input.GreetingWithErrorsInput\], typing.Union\[rest_json.output.GreetingWithErrorsOutput, typing.Awaitable\[rest_json.output.GreetingWithErrorsOutput\]\]\]\]:
 2371   2503   
    /// :rtype None:
 2372   2504   
    #[pyo3(text_signature = "($self, func)")]
 2373   2505   
    pub fn greeting_with_errors(
 2374   2506   
        &mut self,
 2375   2507   
        py: ::pyo3::Python,
 2376   2508   
        func: ::pyo3::PyObject,
 2377   2509   
    ) -> ::pyo3::PyResult<()> {
 2378   2510   
        use ::aws_smithy_http_server_python::PyApp;
 2379   2511   
        self.register_operation(py, "greeting_with_errors", func)
 2380   2512   
    }
        2513  +
    /* PythonApplicationGenerator.kt:366 */
 2381   2514   
    /// Method to register `host_with_path_operation` Python implementation inside the handlers map.
 2382   2515   
    /// It can be used as a function decorator in Python.
 2383   2516   
    ///
 2384   2517   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.HostWithPathOperationInput, Ctx\], typing.Union\[rest_json.output.HostWithPathOperationOutput, typing.Awaitable\[rest_json.output.HostWithPathOperationOutput\]\]\], typing.Callable\[\[rest_json.input.HostWithPathOperationInput\], typing.Union\[rest_json.output.HostWithPathOperationOutput, typing.Awaitable\[rest_json.output.HostWithPathOperationOutput\]\]\]\]:
 2385   2518   
    /// :rtype None:
 2386   2519   
    #[pyo3(text_signature = "($self, func)")]
 2387   2520   
    pub fn host_with_path_operation(
 2388   2521   
        &mut self,
 2389   2522   
        py: ::pyo3::Python,
 2390   2523   
        func: ::pyo3::PyObject,
 2391   2524   
    ) -> ::pyo3::PyResult<()> {
 2392   2525   
        use ::aws_smithy_http_server_python::PyApp;
 2393   2526   
        self.register_operation(py, "host_with_path_operation", func)
 2394   2527   
    }
        2528  +
    /* PythonApplicationGenerator.kt:366 */
 2395   2529   
    /// Method to register `http_checksum_required` Python implementation inside the handlers map.
 2396   2530   
    /// It can be used as a function decorator in Python.
 2397   2531   
    ///
 2398   2532   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.HttpChecksumRequiredInput, Ctx\], typing.Union\[rest_json.output.HttpChecksumRequiredOutput, typing.Awaitable\[rest_json.output.HttpChecksumRequiredOutput\]\]\], typing.Callable\[\[rest_json.input.HttpChecksumRequiredInput\], typing.Union\[rest_json.output.HttpChecksumRequiredOutput, typing.Awaitable\[rest_json.output.HttpChecksumRequiredOutput\]\]\]\]:
 2399   2533   
    /// :rtype None:
 2400   2534   
    #[pyo3(text_signature = "($self, func)")]
 2401   2535   
    pub fn http_checksum_required(
 2402   2536   
        &mut self,
 2403   2537   
        py: ::pyo3::Python,
 2404   2538   
        func: ::pyo3::PyObject,
 2405   2539   
    ) -> ::pyo3::PyResult<()> {
 2406   2540   
        use ::aws_smithy_http_server_python::PyApp;
 2407   2541   
        self.register_operation(py, "http_checksum_required", func)
 2408   2542   
    }
        2543  +
    /* PythonApplicationGenerator.kt:366 */
 2409   2544   
    /// Method to register `http_enum_payload` Python implementation inside the handlers map.
 2410   2545   
    /// It can be used as a function decorator in Python.
 2411   2546   
    ///
 2412   2547   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.HttpEnumPayloadInput, Ctx\], typing.Union\[rest_json.output.HttpEnumPayloadOutput, typing.Awaitable\[rest_json.output.HttpEnumPayloadOutput\]\]\], typing.Callable\[\[rest_json.input.HttpEnumPayloadInput\], typing.Union\[rest_json.output.HttpEnumPayloadOutput, typing.Awaitable\[rest_json.output.HttpEnumPayloadOutput\]\]\]\]:
 2413   2548   
    /// :rtype None:
 2414   2549   
    #[pyo3(text_signature = "($self, func)")]
 2415   2550   
    pub fn http_enum_payload(
 2416   2551   
        &mut self,
 2417   2552   
        py: ::pyo3::Python,
 2418   2553   
        func: ::pyo3::PyObject,
 2419   2554   
    ) -> ::pyo3::PyResult<()> {
 2420   2555   
        use ::aws_smithy_http_server_python::PyApp;
 2421   2556   
        self.register_operation(py, "http_enum_payload", func)
 2422   2557   
    }
        2558  +
    /* PythonApplicationGenerator.kt:366 */
 2423   2559   
    /// Method to register `http_payload_traits` Python implementation inside the handlers map.
 2424   2560   
    /// It can be used as a function decorator in Python.
 2425   2561   
    ///
 2426   2562   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.HttpPayloadTraitsInput, Ctx\], typing.Union\[rest_json.output.HttpPayloadTraitsOutput, typing.Awaitable\[rest_json.output.HttpPayloadTraitsOutput\]\]\], typing.Callable\[\[rest_json.input.HttpPayloadTraitsInput\], typing.Union\[rest_json.output.HttpPayloadTraitsOutput, typing.Awaitable\[rest_json.output.HttpPayloadTraitsOutput\]\]\]\]:
 2427   2563   
    /// :rtype None:
 2428   2564   
    #[pyo3(text_signature = "($self, func)")]
 2429   2565   
    pub fn http_payload_traits(
 2430   2566   
        &mut self,
 2431   2567   
        py: ::pyo3::Python,
 2432   2568   
        func: ::pyo3::PyObject,
 2433   2569   
    ) -> ::pyo3::PyResult<()> {
 2434   2570   
        use ::aws_smithy_http_server_python::PyApp;
 2435   2571   
        self.register_operation(py, "http_payload_traits", func)
 2436   2572   
    }
        2573  +
    /* PythonApplicationGenerator.kt:366 */
 2437   2574   
    /// Method to register `http_payload_traits_with_media_type` Python implementation inside the handlers map.
 2438   2575   
    /// It can be used as a function decorator in Python.
 2439   2576   
    ///
 2440   2577   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.HttpPayloadTraitsWithMediaTypeInput, Ctx\], typing.Union\[rest_json.output.HttpPayloadTraitsWithMediaTypeOutput, typing.Awaitable\[rest_json.output.HttpPayloadTraitsWithMediaTypeOutput\]\]\], typing.Callable\[\[rest_json.input.HttpPayloadTraitsWithMediaTypeInput\], typing.Union\[rest_json.output.HttpPayloadTraitsWithMediaTypeOutput, typing.Awaitable\[rest_json.output.HttpPayloadTraitsWithMediaTypeOutput\]\]\]\]:
 2441   2578   
    /// :rtype None:
 2442   2579   
    #[pyo3(text_signature = "($self, func)")]
 2443   2580   
    pub fn http_payload_traits_with_media_type(
 2444   2581   
        &mut self,
 2445   2582   
        py: ::pyo3::Python,
 2446   2583   
        func: ::pyo3::PyObject,
 2447   2584   
    ) -> ::pyo3::PyResult<()> {
 2448   2585   
        use ::aws_smithy_http_server_python::PyApp;
 2449   2586   
        self.register_operation(py, "http_payload_traits_with_media_type", func)
 2450   2587   
    }
        2588  +
    /* PythonApplicationGenerator.kt:366 */
 2451   2589   
    /// Method to register `http_payload_with_structure` Python implementation inside the handlers map.
 2452   2590   
    /// It can be used as a function decorator in Python.
 2453   2591   
    ///
 2454   2592   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.HttpPayloadWithStructureInput, Ctx\], typing.Union\[rest_json.output.HttpPayloadWithStructureOutput, typing.Awaitable\[rest_json.output.HttpPayloadWithStructureOutput\]\]\], typing.Callable\[\[rest_json.input.HttpPayloadWithStructureInput\], typing.Union\[rest_json.output.HttpPayloadWithStructureOutput, typing.Awaitable\[rest_json.output.HttpPayloadWithStructureOutput\]\]\]\]:
 2455   2593   
    /// :rtype None:
 2456   2594   
    #[pyo3(text_signature = "($self, func)")]
 2457   2595   
    pub fn http_payload_with_structure(
 2458   2596   
        &mut self,
 2459   2597   
        py: ::pyo3::Python,
 2460   2598   
        func: ::pyo3::PyObject,
 2461   2599   
    ) -> ::pyo3::PyResult<()> {
 2462   2600   
        use ::aws_smithy_http_server_python::PyApp;
 2463   2601   
        self.register_operation(py, "http_payload_with_structure", func)
 2464   2602   
    }
        2603  +
    /* PythonApplicationGenerator.kt:366 */
 2465   2604   
    /// Method to register `http_payload_with_union` Python implementation inside the handlers map.
 2466   2605   
    /// It can be used as a function decorator in Python.
 2467   2606   
    ///
 2468   2607   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.HttpPayloadWithUnionInput, Ctx\], typing.Union\[rest_json.output.HttpPayloadWithUnionOutput, typing.Awaitable\[rest_json.output.HttpPayloadWithUnionOutput\]\]\], typing.Callable\[\[rest_json.input.HttpPayloadWithUnionInput\], typing.Union\[rest_json.output.HttpPayloadWithUnionOutput, typing.Awaitable\[rest_json.output.HttpPayloadWithUnionOutput\]\]\]\]:
 2469   2608   
    /// :rtype None:
 2470   2609   
    #[pyo3(text_signature = "($self, func)")]
 2471   2610   
    pub fn http_payload_with_union(
 2472   2611   
        &mut self,
 2473   2612   
        py: ::pyo3::Python,
 2474   2613   
        func: ::pyo3::PyObject,
 2475   2614   
    ) -> ::pyo3::PyResult<()> {
 2476   2615   
        use ::aws_smithy_http_server_python::PyApp;
 2477   2616   
        self.register_operation(py, "http_payload_with_union", func)
 2478   2617   
    }
        2618  +
    /* PythonApplicationGenerator.kt:366 */
 2479   2619   
    /// Method to register `http_prefix_headers` Python implementation inside the handlers map.
 2480   2620   
    /// It can be used as a function decorator in Python.
 2481   2621   
    ///
 2482   2622   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.HttpPrefixHeadersInput, Ctx\], typing.Union\[rest_json.output.HttpPrefixHeadersOutput, typing.Awaitable\[rest_json.output.HttpPrefixHeadersOutput\]\]\], typing.Callable\[\[rest_json.input.HttpPrefixHeadersInput\], typing.Union\[rest_json.output.HttpPrefixHeadersOutput, typing.Awaitable\[rest_json.output.HttpPrefixHeadersOutput\]\]\]\]:
 2483   2623   
    /// :rtype None:
 2484   2624   
    #[pyo3(text_signature = "($self, func)")]
 2485   2625   
    pub fn http_prefix_headers(
 2486   2626   
        &mut self,
 2487   2627   
        py: ::pyo3::Python,
 2488   2628   
        func: ::pyo3::PyObject,
 2489   2629   
    ) -> ::pyo3::PyResult<()> {
 2490   2630   
        use ::aws_smithy_http_server_python::PyApp;
 2491   2631   
        self.register_operation(py, "http_prefix_headers", func)
 2492   2632   
    }
        2633  +
    /* PythonApplicationGenerator.kt:366 */
 2493   2634   
    /// Method to register `http_prefix_headers_in_response` Python implementation inside the handlers map.
 2494   2635   
    /// It can be used as a function decorator in Python.
 2495   2636   
    ///
 2496   2637   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.HttpPrefixHeadersInResponseInput, Ctx\], typing.Union\[rest_json.output.HttpPrefixHeadersInResponseOutput, typing.Awaitable\[rest_json.output.HttpPrefixHeadersInResponseOutput\]\]\], typing.Callable\[\[rest_json.input.HttpPrefixHeadersInResponseInput\], typing.Union\[rest_json.output.HttpPrefixHeadersInResponseOutput, typing.Awaitable\[rest_json.output.HttpPrefixHeadersInResponseOutput\]\]\]\]:
 2497   2638   
    /// :rtype None:
 2498   2639   
    #[pyo3(text_signature = "($self, func)")]
 2499   2640   
    pub fn http_prefix_headers_in_response(
 2500   2641   
        &mut self,
 2501   2642   
        py: ::pyo3::Python,
 2502   2643   
        func: ::pyo3::PyObject,
 2503   2644   
    ) -> ::pyo3::PyResult<()> {
 2504   2645   
        use ::aws_smithy_http_server_python::PyApp;
 2505   2646   
        self.register_operation(py, "http_prefix_headers_in_response", func)
 2506   2647   
    }
        2648  +
    /* PythonApplicationGenerator.kt:366 */
 2507   2649   
    /// Method to register `http_request_with_float_labels` Python implementation inside the handlers map.
 2508   2650   
    /// It can be used as a function decorator in Python.
 2509   2651   
    ///
 2510   2652   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.HttpRequestWithFloatLabelsInput, Ctx\], typing.Union\[rest_json.output.HttpRequestWithFloatLabelsOutput, typing.Awaitable\[rest_json.output.HttpRequestWithFloatLabelsOutput\]\]\], typing.Callable\[\[rest_json.input.HttpRequestWithFloatLabelsInput\], typing.Union\[rest_json.output.HttpRequestWithFloatLabelsOutput, typing.Awaitable\[rest_json.output.HttpRequestWithFloatLabelsOutput\]\]\]\]:
 2511   2653   
    /// :rtype None:
 2512   2654   
    #[pyo3(text_signature = "($self, func)")]
 2513   2655   
    pub fn http_request_with_float_labels(
 2514   2656   
        &mut self,
 2515   2657   
        py: ::pyo3::Python,
 2516   2658   
        func: ::pyo3::PyObject,
 2517   2659   
    ) -> ::pyo3::PyResult<()> {
 2518   2660   
        use ::aws_smithy_http_server_python::PyApp;
 2519   2661   
        self.register_operation(py, "http_request_with_float_labels", func)
 2520   2662   
    }
        2663  +
    /* PythonApplicationGenerator.kt:366 */
 2521   2664   
    /// Method to register `http_request_with_greedy_label_in_path` Python implementation inside the handlers map.
 2522   2665   
    /// It can be used as a function decorator in Python.
 2523   2666   
    ///
 2524   2667   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.HttpRequestWithGreedyLabelInPathInput, Ctx\], typing.Union\[rest_json.output.HttpRequestWithGreedyLabelInPathOutput, typing.Awaitable\[rest_json.output.HttpRequestWithGreedyLabelInPathOutput\]\]\], typing.Callable\[\[rest_json.input.HttpRequestWithGreedyLabelInPathInput\], typing.Union\[rest_json.output.HttpRequestWithGreedyLabelInPathOutput, typing.Awaitable\[rest_json.output.HttpRequestWithGreedyLabelInPathOutput\]\]\]\]:
 2525   2668   
    /// :rtype None:
 2526   2669   
    #[pyo3(text_signature = "($self, func)")]
 2527   2670   
    pub fn http_request_with_greedy_label_in_path(
 2528   2671   
        &mut self,
 2529   2672   
        py: ::pyo3::Python,
 2530   2673   
        func: ::pyo3::PyObject,
 2531   2674   
    ) -> ::pyo3::PyResult<()> {
 2532   2675   
        use ::aws_smithy_http_server_python::PyApp;
 2533   2676   
        self.register_operation(py, "http_request_with_greedy_label_in_path", func)
 2534   2677   
    }
        2678  +
    /* PythonApplicationGenerator.kt:366 */
 2535   2679   
    /// Method to register `http_request_with_labels` Python implementation inside the handlers map.
 2536   2680   
    /// It can be used as a function decorator in Python.
 2537   2681   
    ///
 2538   2682   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.HttpRequestWithLabelsInput, Ctx\], typing.Union\[rest_json.output.HttpRequestWithLabelsOutput, typing.Awaitable\[rest_json.output.HttpRequestWithLabelsOutput\]\]\], typing.Callable\[\[rest_json.input.HttpRequestWithLabelsInput\], typing.Union\[rest_json.output.HttpRequestWithLabelsOutput, typing.Awaitable\[rest_json.output.HttpRequestWithLabelsOutput\]\]\]\]:
 2539   2683   
    /// :rtype None:
 2540   2684   
    #[pyo3(text_signature = "($self, func)")]
 2541   2685   
    pub fn http_request_with_labels(
 2542   2686   
        &mut self,
 2543   2687   
        py: ::pyo3::Python,
 2544   2688   
        func: ::pyo3::PyObject,
 2545   2689   
    ) -> ::pyo3::PyResult<()> {
 2546   2690   
        use ::aws_smithy_http_server_python::PyApp;
 2547   2691   
        self.register_operation(py, "http_request_with_labels", func)
 2548   2692   
    }
        2693  +
    /* PythonApplicationGenerator.kt:366 */
 2549   2694   
    /// Method to register `http_request_with_labels_and_timestamp_format` Python implementation inside the handlers map.
 2550   2695   
    /// It can be used as a function decorator in Python.
 2551   2696   
    ///
 2552   2697   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.HttpRequestWithLabelsAndTimestampFormatInput, Ctx\], typing.Union\[rest_json.output.HttpRequestWithLabelsAndTimestampFormatOutput, typing.Awaitable\[rest_json.output.HttpRequestWithLabelsAndTimestampFormatOutput\]\]\], typing.Callable\[\[rest_json.input.HttpRequestWithLabelsAndTimestampFormatInput\], typing.Union\[rest_json.output.HttpRequestWithLabelsAndTimestampFormatOutput, typing.Awaitable\[rest_json.output.HttpRequestWithLabelsAndTimestampFormatOutput\]\]\]\]:
 2553   2698   
    /// :rtype None:
 2554   2699   
    #[pyo3(text_signature = "($self, func)")]
 2555   2700   
    pub fn http_request_with_labels_and_timestamp_format(
 2556   2701   
        &mut self,
 2557   2702   
        py: ::pyo3::Python,
 2558   2703   
        func: ::pyo3::PyObject,
 2559   2704   
    ) -> ::pyo3::PyResult<()> {
 2560   2705   
        use ::aws_smithy_http_server_python::PyApp;
 2561   2706   
        self.register_operation(py, "http_request_with_labels_and_timestamp_format", func)
 2562   2707   
    }
        2708  +
    /* PythonApplicationGenerator.kt:366 */
 2563   2709   
    /// Method to register `http_request_with_regex_literal` Python implementation inside the handlers map.
 2564   2710   
    /// It can be used as a function decorator in Python.
 2565   2711   
    ///
 2566   2712   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.HttpRequestWithRegexLiteralInput, Ctx\], typing.Union\[rest_json.output.HttpRequestWithRegexLiteralOutput, typing.Awaitable\[rest_json.output.HttpRequestWithRegexLiteralOutput\]\]\], typing.Callable\[\[rest_json.input.HttpRequestWithRegexLiteralInput\], typing.Union\[rest_json.output.HttpRequestWithRegexLiteralOutput, typing.Awaitable\[rest_json.output.HttpRequestWithRegexLiteralOutput\]\]\]\]:
 2567   2713   
    /// :rtype None:
 2568   2714   
    #[pyo3(text_signature = "($self, func)")]
 2569   2715   
    pub fn http_request_with_regex_literal(
 2570   2716   
        &mut self,
 2571   2717   
        py: ::pyo3::Python,
 2572   2718   
        func: ::pyo3::PyObject,
 2573   2719   
    ) -> ::pyo3::PyResult<()> {
 2574   2720   
        use ::aws_smithy_http_server_python::PyApp;
 2575   2721   
        self.register_operation(py, "http_request_with_regex_literal", func)
 2576   2722   
    }
        2723  +
    /* PythonApplicationGenerator.kt:366 */
 2577   2724   
    /// Method to register `http_response_code` Python implementation inside the handlers map.
 2578   2725   
    /// It can be used as a function decorator in Python.
 2579   2726   
    ///
 2580   2727   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.HttpResponseCodeInput, Ctx\], typing.Union\[rest_json.output.HttpResponseCodeOutput, typing.Awaitable\[rest_json.output.HttpResponseCodeOutput\]\]\], typing.Callable\[\[rest_json.input.HttpResponseCodeInput\], typing.Union\[rest_json.output.HttpResponseCodeOutput, typing.Awaitable\[rest_json.output.HttpResponseCodeOutput\]\]\]\]:
 2581   2728   
    /// :rtype None:
 2582   2729   
    #[pyo3(text_signature = "($self, func)")]
 2583   2730   
    pub fn http_response_code(
 2584   2731   
        &mut self,
 2585   2732   
        py: ::pyo3::Python,
 2586   2733   
        func: ::pyo3::PyObject,
 2587   2734   
    ) -> ::pyo3::PyResult<()> {
 2588   2735   
        use ::aws_smithy_http_server_python::PyApp;
 2589   2736   
        self.register_operation(py, "http_response_code", func)
 2590   2737   
    }
        2738  +
    /* PythonApplicationGenerator.kt:366 */
 2591   2739   
    /// Method to register `http_string_payload` Python implementation inside the handlers map.
 2592   2740   
    /// It can be used as a function decorator in Python.
 2593   2741   
    ///
 2594   2742   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.HttpStringPayloadInput, Ctx\], typing.Union\[rest_json.output.HttpStringPayloadOutput, typing.Awaitable\[rest_json.output.HttpStringPayloadOutput\]\]\], typing.Callable\[\[rest_json.input.HttpStringPayloadInput\], typing.Union\[rest_json.output.HttpStringPayloadOutput, typing.Awaitable\[rest_json.output.HttpStringPayloadOutput\]\]\]\]:
 2595   2743   
    /// :rtype None:
 2596   2744   
    #[pyo3(text_signature = "($self, func)")]
 2597   2745   
    pub fn http_string_payload(
 2598   2746   
        &mut self,
 2599   2747   
        py: ::pyo3::Python,
 2600   2748   
        func: ::pyo3::PyObject,
 2601   2749   
    ) -> ::pyo3::PyResult<()> {
 2602   2750   
        use ::aws_smithy_http_server_python::PyApp;
 2603   2751   
        self.register_operation(py, "http_string_payload", func)
 2604   2752   
    }
        2753  +
    /* PythonApplicationGenerator.kt:366 */
 2605   2754   
    /// Method to register `ignore_query_params_in_response` Python implementation inside the handlers map.
 2606   2755   
    /// It can be used as a function decorator in Python.
 2607   2756   
    ///
 2608   2757   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.IgnoreQueryParamsInResponseInput, Ctx\], typing.Union\[rest_json.output.IgnoreQueryParamsInResponseOutput, typing.Awaitable\[rest_json.output.IgnoreQueryParamsInResponseOutput\]\]\], typing.Callable\[\[rest_json.input.IgnoreQueryParamsInResponseInput\], typing.Union\[rest_json.output.IgnoreQueryParamsInResponseOutput, typing.Awaitable\[rest_json.output.IgnoreQueryParamsInResponseOutput\]\]\]\]:
 2609   2758   
    /// :rtype None:
 2610   2759   
    #[pyo3(text_signature = "($self, func)")]
 2611   2760   
    pub fn ignore_query_params_in_response(
 2612   2761   
        &mut self,
 2613   2762   
        py: ::pyo3::Python,
 2614   2763   
        func: ::pyo3::PyObject,
 2615   2764   
    ) -> ::pyo3::PyResult<()> {
 2616   2765   
        use ::aws_smithy_http_server_python::PyApp;
 2617   2766   
        self.register_operation(py, "ignore_query_params_in_response", func)
 2618   2767   
    }
        2768  +
    /* PythonApplicationGenerator.kt:366 */
 2619   2769   
    /// Method to register `input_and_output_with_headers` Python implementation inside the handlers map.
 2620   2770   
    /// It can be used as a function decorator in Python.
 2621   2771   
    ///
 2622   2772   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.InputAndOutputWithHeadersInput, Ctx\], typing.Union\[rest_json.output.InputAndOutputWithHeadersOutput, typing.Awaitable\[rest_json.output.InputAndOutputWithHeadersOutput\]\]\], typing.Callable\[\[rest_json.input.InputAndOutputWithHeadersInput\], typing.Union\[rest_json.output.InputAndOutputWithHeadersOutput, typing.Awaitable\[rest_json.output.InputAndOutputWithHeadersOutput\]\]\]\]:
 2623   2773   
    /// :rtype None:
 2624   2774   
    #[pyo3(text_signature = "($self, func)")]
 2625   2775   
    pub fn input_and_output_with_headers(
 2626   2776   
        &mut self,
 2627   2777   
        py: ::pyo3::Python,
 2628   2778   
        func: ::pyo3::PyObject,
 2629   2779   
    ) -> ::pyo3::PyResult<()> {
 2630   2780   
        use ::aws_smithy_http_server_python::PyApp;
 2631   2781   
        self.register_operation(py, "input_and_output_with_headers", func)
 2632   2782   
    }
        2783  +
    /* PythonApplicationGenerator.kt:366 */
 2633   2784   
    /// Method to register `json_blobs` Python implementation inside the handlers map.
 2634   2785   
    /// It can be used as a function decorator in Python.
 2635   2786   
    ///
 2636   2787   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.JsonBlobsInput, Ctx\], typing.Union\[rest_json.output.JsonBlobsOutput, typing.Awaitable\[rest_json.output.JsonBlobsOutput\]\]\], typing.Callable\[\[rest_json.input.JsonBlobsInput\], typing.Union\[rest_json.output.JsonBlobsOutput, typing.Awaitable\[rest_json.output.JsonBlobsOutput\]\]\]\]:
 2637   2788   
    /// :rtype None:
 2638   2789   
    #[pyo3(text_signature = "($self, func)")]
 2639   2790   
    pub fn json_blobs(
 2640   2791   
        &mut self,
 2641   2792   
        py: ::pyo3::Python,
 2642   2793   
        func: ::pyo3::PyObject,
 2643   2794   
    ) -> ::pyo3::PyResult<()> {
 2644   2795   
        use ::aws_smithy_http_server_python::PyApp;
 2645   2796   
        self.register_operation(py, "json_blobs", func)
 2646   2797   
    }
        2798  +
    /* PythonApplicationGenerator.kt:366 */
 2647   2799   
    /// Method to register `json_enums` Python implementation inside the handlers map.
 2648   2800   
    /// It can be used as a function decorator in Python.
 2649   2801   
    ///
 2650   2802   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.JsonEnumsInput, Ctx\], typing.Union\[rest_json.output.JsonEnumsOutput, typing.Awaitable\[rest_json.output.JsonEnumsOutput\]\]\], typing.Callable\[\[rest_json.input.JsonEnumsInput\], typing.Union\[rest_json.output.JsonEnumsOutput, typing.Awaitable\[rest_json.output.JsonEnumsOutput\]\]\]\]:
 2651   2803   
    /// :rtype None:
 2652   2804   
    #[pyo3(text_signature = "($self, func)")]
 2653   2805   
    pub fn json_enums(
 2654   2806   
        &mut self,
 2655   2807   
        py: ::pyo3::Python,
 2656   2808   
        func: ::pyo3::PyObject,
 2657   2809   
    ) -> ::pyo3::PyResult<()> {
 2658   2810   
        use ::aws_smithy_http_server_python::PyApp;
 2659   2811   
        self.register_operation(py, "json_enums", func)
 2660   2812   
    }
        2813  +
    /* PythonApplicationGenerator.kt:366 */
 2661   2814   
    /// Method to register `json_int_enums` Python implementation inside the handlers map.
 2662   2815   
    /// It can be used as a function decorator in Python.
 2663   2816   
    ///
 2664   2817   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.JsonIntEnumsInput, Ctx\], typing.Union\[rest_json.output.JsonIntEnumsOutput, typing.Awaitable\[rest_json.output.JsonIntEnumsOutput\]\]\], typing.Callable\[\[rest_json.input.JsonIntEnumsInput\], typing.Union\[rest_json.output.JsonIntEnumsOutput, typing.Awaitable\[rest_json.output.JsonIntEnumsOutput\]\]\]\]:
 2665   2818   
    /// :rtype None:
 2666   2819   
    #[pyo3(text_signature = "($self, func)")]
 2667   2820   
    pub fn json_int_enums(
 2668   2821   
        &mut self,
 2669   2822   
        py: ::pyo3::Python,
 2670   2823   
        func: ::pyo3::PyObject,
 2671   2824   
    ) -> ::pyo3::PyResult<()> {
 2672   2825   
        use ::aws_smithy_http_server_python::PyApp;
 2673   2826   
        self.register_operation(py, "json_int_enums", func)
 2674   2827   
    }
        2828  +
    /* PythonApplicationGenerator.kt:366 */
 2675   2829   
    /// Method to register `json_lists` Python implementation inside the handlers map.
 2676   2830   
    /// It can be used as a function decorator in Python.
 2677   2831   
    ///
 2678   2832   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.JsonListsInput, Ctx\], typing.Union\[rest_json.output.JsonListsOutput, typing.Awaitable\[rest_json.output.JsonListsOutput\]\]\], typing.Callable\[\[rest_json.input.JsonListsInput\], typing.Union\[rest_json.output.JsonListsOutput, typing.Awaitable\[rest_json.output.JsonListsOutput\]\]\]\]:
 2679   2833   
    /// :rtype None:
 2680   2834   
    #[pyo3(text_signature = "($self, func)")]
 2681   2835   
    pub fn json_lists(
 2682   2836   
        &mut self,
 2683   2837   
        py: ::pyo3::Python,
 2684   2838   
        func: ::pyo3::PyObject,
 2685   2839   
    ) -> ::pyo3::PyResult<()> {
 2686   2840   
        use ::aws_smithy_http_server_python::PyApp;
 2687   2841   
        self.register_operation(py, "json_lists", func)
 2688   2842   
    }
        2843  +
    /* PythonApplicationGenerator.kt:366 */
 2689   2844   
    /// Method to register `json_maps` Python implementation inside the handlers map.
 2690   2845   
    /// It can be used as a function decorator in Python.
 2691   2846   
    ///
 2692   2847   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.JsonMapsInput, Ctx\], typing.Union\[rest_json.output.JsonMapsOutput, typing.Awaitable\[rest_json.output.JsonMapsOutput\]\]\], typing.Callable\[\[rest_json.input.JsonMapsInput\], typing.Union\[rest_json.output.JsonMapsOutput, typing.Awaitable\[rest_json.output.JsonMapsOutput\]\]\]\]:
 2693   2848   
    /// :rtype None:
 2694   2849   
    #[pyo3(text_signature = "($self, func)")]
 2695   2850   
    pub fn json_maps(
 2696   2851   
        &mut self,
 2697   2852   
        py: ::pyo3::Python,
 2698   2853   
        func: ::pyo3::PyObject,
 2699   2854   
    ) -> ::pyo3::PyResult<()> {
 2700   2855   
        use ::aws_smithy_http_server_python::PyApp;
 2701   2856   
        self.register_operation(py, "json_maps", func)
 2702   2857   
    }
        2858  +
    /* PythonApplicationGenerator.kt:366 */
 2703   2859   
    /// Method to register `json_timestamps` Python implementation inside the handlers map.
 2704   2860   
    /// It can be used as a function decorator in Python.
 2705   2861   
    ///
 2706   2862   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.JsonTimestampsInput, Ctx\], typing.Union\[rest_json.output.JsonTimestampsOutput, typing.Awaitable\[rest_json.output.JsonTimestampsOutput\]\]\], typing.Callable\[\[rest_json.input.JsonTimestampsInput\], typing.Union\[rest_json.output.JsonTimestampsOutput, typing.Awaitable\[rest_json.output.JsonTimestampsOutput\]\]\]\]:
 2707   2863   
    /// :rtype None:
 2708   2864   
    #[pyo3(text_signature = "($self, func)")]
 2709   2865   
    pub fn json_timestamps(
 2710   2866   
        &mut self,
 2711   2867   
        py: ::pyo3::Python,
 2712   2868   
        func: ::pyo3::PyObject,
 2713   2869   
    ) -> ::pyo3::PyResult<()> {
 2714   2870   
        use ::aws_smithy_http_server_python::PyApp;
 2715   2871   
        self.register_operation(py, "json_timestamps", func)
 2716   2872   
    }
        2873  +
    /* PythonApplicationGenerator.kt:366 */
 2717   2874   
    /// Method to register `json_unions` Python implementation inside the handlers map.
 2718   2875   
    /// It can be used as a function decorator in Python.
 2719   2876   
    ///
 2720   2877   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.JsonUnionsInput, Ctx\], typing.Union\[rest_json.output.JsonUnionsOutput, typing.Awaitable\[rest_json.output.JsonUnionsOutput\]\]\], typing.Callable\[\[rest_json.input.JsonUnionsInput\], typing.Union\[rest_json.output.JsonUnionsOutput, typing.Awaitable\[rest_json.output.JsonUnionsOutput\]\]\]\]:
 2721   2878   
    /// :rtype None:
 2722   2879   
    #[pyo3(text_signature = "($self, func)")]
 2723   2880   
    pub fn json_unions(
 2724   2881   
        &mut self,
 2725   2882   
        py: ::pyo3::Python,
 2726   2883   
        func: ::pyo3::PyObject,
 2727   2884   
    ) -> ::pyo3::PyResult<()> {
 2728   2885   
        use ::aws_smithy_http_server_python::PyApp;
 2729   2886   
        self.register_operation(py, "json_unions", func)
 2730   2887   
    }
        2888  +
    /* PythonApplicationGenerator.kt:366 */
 2731   2889   
    /// Method to register `malformed_accept_with_body` Python implementation inside the handlers map.
 2732   2890   
    /// It can be used as a function decorator in Python.
 2733   2891   
    ///
 2734   2892   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedAcceptWithBodyInput, Ctx\], typing.Union\[rest_json.output.MalformedAcceptWithBodyOutput, typing.Awaitable\[rest_json.output.MalformedAcceptWithBodyOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedAcceptWithBodyInput\], typing.Union\[rest_json.output.MalformedAcceptWithBodyOutput, typing.Awaitable\[rest_json.output.MalformedAcceptWithBodyOutput\]\]\]\]:
 2735   2893   
    /// :rtype None:
 2736   2894   
    #[pyo3(text_signature = "($self, func)")]
 2737   2895   
    pub fn malformed_accept_with_body(
 2738   2896   
        &mut self,
 2739   2897   
        py: ::pyo3::Python,
 2740   2898   
        func: ::pyo3::PyObject,
 2741   2899   
    ) -> ::pyo3::PyResult<()> {
 2742   2900   
        use ::aws_smithy_http_server_python::PyApp;
 2743   2901   
        self.register_operation(py, "malformed_accept_with_body", func)
 2744   2902   
    }
        2903  +
    /* PythonApplicationGenerator.kt:366 */
 2745   2904   
    /// Method to register `malformed_accept_with_generic_string` Python implementation inside the handlers map.
 2746   2905   
    /// It can be used as a function decorator in Python.
 2747   2906   
    ///
 2748   2907   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedAcceptWithGenericStringInput, Ctx\], typing.Union\[rest_json.output.MalformedAcceptWithGenericStringOutput, typing.Awaitable\[rest_json.output.MalformedAcceptWithGenericStringOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedAcceptWithGenericStringInput\], typing.Union\[rest_json.output.MalformedAcceptWithGenericStringOutput, typing.Awaitable\[rest_json.output.MalformedAcceptWithGenericStringOutput\]\]\]\]:
 2749   2908   
    /// :rtype None:
 2750   2909   
    #[pyo3(text_signature = "($self, func)")]
 2751   2910   
    pub fn malformed_accept_with_generic_string(
 2752   2911   
        &mut self,
 2753   2912   
        py: ::pyo3::Python,
 2754   2913   
        func: ::pyo3::PyObject,
 2755   2914   
    ) -> ::pyo3::PyResult<()> {
 2756   2915   
        use ::aws_smithy_http_server_python::PyApp;
 2757   2916   
        self.register_operation(py, "malformed_accept_with_generic_string", func)
 2758   2917   
    }
        2918  +
    /* PythonApplicationGenerator.kt:366 */
 2759   2919   
    /// Method to register `malformed_accept_with_payload` Python implementation inside the handlers map.
 2760   2920   
    /// It can be used as a function decorator in Python.
 2761   2921   
    ///
 2762   2922   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedAcceptWithPayloadInput, Ctx\], typing.Union\[rest_json.output.MalformedAcceptWithPayloadOutput, typing.Awaitable\[rest_json.output.MalformedAcceptWithPayloadOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedAcceptWithPayloadInput\], typing.Union\[rest_json.output.MalformedAcceptWithPayloadOutput, typing.Awaitable\[rest_json.output.MalformedAcceptWithPayloadOutput\]\]\]\]:
 2763   2923   
    /// :rtype None:
 2764   2924   
    #[pyo3(text_signature = "($self, func)")]
 2765   2925   
    pub fn malformed_accept_with_payload(
 2766   2926   
        &mut self,
 2767   2927   
        py: ::pyo3::Python,
 2768   2928   
        func: ::pyo3::PyObject,
 2769   2929   
    ) -> ::pyo3::PyResult<()> {
 2770   2930   
        use ::aws_smithy_http_server_python::PyApp;
 2771   2931   
        self.register_operation(py, "malformed_accept_with_payload", func)
 2772   2932   
    }
        2933  +
    /* PythonApplicationGenerator.kt:366 */
 2773   2934   
    /// Method to register `malformed_blob` Python implementation inside the handlers map.
 2774   2935   
    /// It can be used as a function decorator in Python.
 2775   2936   
    ///
 2776   2937   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedBlobInput, Ctx\], typing.Union\[rest_json.output.MalformedBlobOutput, typing.Awaitable\[rest_json.output.MalformedBlobOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedBlobInput\], typing.Union\[rest_json.output.MalformedBlobOutput, typing.Awaitable\[rest_json.output.MalformedBlobOutput\]\]\]\]:
 2777   2938   
    /// :rtype None:
 2778   2939   
    #[pyo3(text_signature = "($self, func)")]
 2779   2940   
    pub fn malformed_blob(
 2780   2941   
        &mut self,
 2781   2942   
        py: ::pyo3::Python,
 2782   2943   
        func: ::pyo3::PyObject,
 2783   2944   
    ) -> ::pyo3::PyResult<()> {
 2784   2945   
        use ::aws_smithy_http_server_python::PyApp;
 2785   2946   
        self.register_operation(py, "malformed_blob", func)
 2786   2947   
    }
        2948  +
    /* PythonApplicationGenerator.kt:366 */
 2787   2949   
    /// Method to register `malformed_boolean` Python implementation inside the handlers map.
 2788   2950   
    /// It can be used as a function decorator in Python.
 2789   2951   
    ///
 2790   2952   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedBooleanInput, Ctx\], typing.Union\[rest_json.output.MalformedBooleanOutput, typing.Awaitable\[rest_json.output.MalformedBooleanOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedBooleanInput\], typing.Union\[rest_json.output.MalformedBooleanOutput, typing.Awaitable\[rest_json.output.MalformedBooleanOutput\]\]\]\]:
 2791   2953   
    /// :rtype None:
 2792   2954   
    #[pyo3(text_signature = "($self, func)")]
 2793   2955   
    pub fn malformed_boolean(
 2794   2956   
        &mut self,
 2795   2957   
        py: ::pyo3::Python,
 2796   2958   
        func: ::pyo3::PyObject,
 2797   2959   
    ) -> ::pyo3::PyResult<()> {
 2798   2960   
        use ::aws_smithy_http_server_python::PyApp;
 2799   2961   
        self.register_operation(py, "malformed_boolean", func)
 2800   2962   
    }
        2963  +
    /* PythonApplicationGenerator.kt:366 */
 2801   2964   
    /// Method to register `malformed_byte` Python implementation inside the handlers map.
 2802   2965   
    /// It can be used as a function decorator in Python.
 2803   2966   
    ///
 2804   2967   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedByteInput, Ctx\], typing.Union\[rest_json.output.MalformedByteOutput, typing.Awaitable\[rest_json.output.MalformedByteOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedByteInput\], typing.Union\[rest_json.output.MalformedByteOutput, typing.Awaitable\[rest_json.output.MalformedByteOutput\]\]\]\]:
 2805   2968   
    /// :rtype None:
 2806   2969   
    #[pyo3(text_signature = "($self, func)")]
 2807   2970   
    pub fn malformed_byte(
 2808   2971   
        &mut self,
 2809   2972   
        py: ::pyo3::Python,
 2810   2973   
        func: ::pyo3::PyObject,
 2811   2974   
    ) -> ::pyo3::PyResult<()> {
 2812   2975   
        use ::aws_smithy_http_server_python::PyApp;
 2813   2976   
        self.register_operation(py, "malformed_byte", func)
 2814   2977   
    }
        2978  +
    /* PythonApplicationGenerator.kt:366 */
 2815   2979   
    /// Method to register `malformed_content_type_with_body` Python implementation inside the handlers map.
 2816   2980   
    /// It can be used as a function decorator in Python.
 2817   2981   
    ///
 2818   2982   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedContentTypeWithBodyInput, Ctx\], typing.Union\[rest_json.output.MalformedContentTypeWithBodyOutput, typing.Awaitable\[rest_json.output.MalformedContentTypeWithBodyOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedContentTypeWithBodyInput\], typing.Union\[rest_json.output.MalformedContentTypeWithBodyOutput, typing.Awaitable\[rest_json.output.MalformedContentTypeWithBodyOutput\]\]\]\]:
 2819   2983   
    /// :rtype None:
 2820   2984   
    #[pyo3(text_signature = "($self, func)")]
 2821   2985   
    pub fn malformed_content_type_with_body(
 2822   2986   
        &mut self,
 2823   2987   
        py: ::pyo3::Python,
 2824   2988   
        func: ::pyo3::PyObject,
 2825   2989   
    ) -> ::pyo3::PyResult<()> {
 2826   2990   
        use ::aws_smithy_http_server_python::PyApp;
 2827   2991   
        self.register_operation(py, "malformed_content_type_with_body", func)
 2828   2992   
    }
        2993  +
    /* PythonApplicationGenerator.kt:366 */
 2829   2994   
    /// Method to register `malformed_content_type_with_generic_string` Python implementation inside the handlers map.
 2830   2995   
    /// It can be used as a function decorator in Python.
 2831   2996   
    ///
 2832   2997   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedContentTypeWithGenericStringInput, Ctx\], typing.Union\[rest_json.output.MalformedContentTypeWithGenericStringOutput, typing.Awaitable\[rest_json.output.MalformedContentTypeWithGenericStringOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedContentTypeWithGenericStringInput\], typing.Union\[rest_json.output.MalformedContentTypeWithGenericStringOutput, typing.Awaitable\[rest_json.output.MalformedContentTypeWithGenericStringOutput\]\]\]\]:
 2833   2998   
    /// :rtype None:
 2834   2999   
    #[pyo3(text_signature = "($self, func)")]
 2835   3000   
    pub fn malformed_content_type_with_generic_string(
 2836   3001   
        &mut self,
 2837   3002   
        py: ::pyo3::Python,
 2838   3003   
        func: ::pyo3::PyObject,
 2839   3004   
    ) -> ::pyo3::PyResult<()> {
 2840   3005   
        use ::aws_smithy_http_server_python::PyApp;
 2841   3006   
        self.register_operation(py, "malformed_content_type_with_generic_string", func)
 2842   3007   
    }
        3008  +
    /* PythonApplicationGenerator.kt:366 */
 2843   3009   
    /// Method to register `malformed_content_type_without_body` Python implementation inside the handlers map.
 2844   3010   
    /// It can be used as a function decorator in Python.
 2845   3011   
    ///
 2846   3012   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedContentTypeWithoutBodyInput, Ctx\], typing.Union\[rest_json.output.MalformedContentTypeWithoutBodyOutput, typing.Awaitable\[rest_json.output.MalformedContentTypeWithoutBodyOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedContentTypeWithoutBodyInput\], typing.Union\[rest_json.output.MalformedContentTypeWithoutBodyOutput, typing.Awaitable\[rest_json.output.MalformedContentTypeWithoutBodyOutput\]\]\]\]:
 2847   3013   
    /// :rtype None:
 2848   3014   
    #[pyo3(text_signature = "($self, func)")]
 2849   3015   
    pub fn malformed_content_type_without_body(
 2850   3016   
        &mut self,
 2851   3017   
        py: ::pyo3::Python,
 2852   3018   
        func: ::pyo3::PyObject,
 2853   3019   
    ) -> ::pyo3::PyResult<()> {
 2854   3020   
        use ::aws_smithy_http_server_python::PyApp;
 2855   3021   
        self.register_operation(py, "malformed_content_type_without_body", func)
 2856   3022   
    }
        3023  +
    /* PythonApplicationGenerator.kt:366 */
 2857   3024   
    /// Method to register `malformed_content_type_with_payload` Python implementation inside the handlers map.
 2858   3025   
    /// It can be used as a function decorator in Python.
 2859   3026   
    ///
 2860   3027   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedContentTypeWithPayloadInput, Ctx\], typing.Union\[rest_json.output.MalformedContentTypeWithPayloadOutput, typing.Awaitable\[rest_json.output.MalformedContentTypeWithPayloadOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedContentTypeWithPayloadInput\], typing.Union\[rest_json.output.MalformedContentTypeWithPayloadOutput, typing.Awaitable\[rest_json.output.MalformedContentTypeWithPayloadOutput\]\]\]\]:
 2861   3028   
    /// :rtype None:
 2862   3029   
    #[pyo3(text_signature = "($self, func)")]
 2863   3030   
    pub fn malformed_content_type_with_payload(
 2864   3031   
        &mut self,
 2865   3032   
        py: ::pyo3::Python,
 2866   3033   
        func: ::pyo3::PyObject,
 2867   3034   
    ) -> ::pyo3::PyResult<()> {
 2868   3035   
        use ::aws_smithy_http_server_python::PyApp;
 2869   3036   
        self.register_operation(py, "malformed_content_type_with_payload", func)
 2870   3037   
    }
        3038  +
    /* PythonApplicationGenerator.kt:366 */
 2871   3039   
    /// Method to register `malformed_double` Python implementation inside the handlers map.
 2872   3040   
    /// It can be used as a function decorator in Python.
 2873   3041   
    ///
 2874   3042   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedDoubleInput, Ctx\], typing.Union\[rest_json.output.MalformedDoubleOutput, typing.Awaitable\[rest_json.output.MalformedDoubleOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedDoubleInput\], typing.Union\[rest_json.output.MalformedDoubleOutput, typing.Awaitable\[rest_json.output.MalformedDoubleOutput\]\]\]\]:
 2875   3043   
    /// :rtype None:
 2876   3044   
    #[pyo3(text_signature = "($self, func)")]
 2877   3045   
    pub fn malformed_double(
 2878   3046   
        &mut self,
 2879   3047   
        py: ::pyo3::Python,
 2880   3048   
        func: ::pyo3::PyObject,
 2881   3049   
    ) -> ::pyo3::PyResult<()> {
 2882   3050   
        use ::aws_smithy_http_server_python::PyApp;
 2883   3051   
        self.register_operation(py, "malformed_double", func)
 2884   3052   
    }
        3053  +
    /* PythonApplicationGenerator.kt:366 */
 2885   3054   
    /// Method to register `malformed_float` Python implementation inside the handlers map.
 2886   3055   
    /// It can be used as a function decorator in Python.
 2887   3056   
    ///
 2888   3057   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedFloatInput, Ctx\], typing.Union\[rest_json.output.MalformedFloatOutput, typing.Awaitable\[rest_json.output.MalformedFloatOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedFloatInput\], typing.Union\[rest_json.output.MalformedFloatOutput, typing.Awaitable\[rest_json.output.MalformedFloatOutput\]\]\]\]:
 2889   3058   
    /// :rtype None:
 2890   3059   
    #[pyo3(text_signature = "($self, func)")]
 2891   3060   
    pub fn malformed_float(
 2892   3061   
        &mut self,
 2893   3062   
        py: ::pyo3::Python,
 2894   3063   
        func: ::pyo3::PyObject,
 2895   3064   
    ) -> ::pyo3::PyResult<()> {
 2896   3065   
        use ::aws_smithy_http_server_python::PyApp;
 2897   3066   
        self.register_operation(py, "malformed_float", func)
 2898   3067   
    }
        3068  +
    /* PythonApplicationGenerator.kt:366 */
 2899   3069   
    /// Method to register `malformed_integer` Python implementation inside the handlers map.
 2900   3070   
    /// It can be used as a function decorator in Python.
 2901   3071   
    ///
 2902   3072   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedIntegerInput, Ctx\], typing.Union\[rest_json.output.MalformedIntegerOutput, typing.Awaitable\[rest_json.output.MalformedIntegerOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedIntegerInput\], typing.Union\[rest_json.output.MalformedIntegerOutput, typing.Awaitable\[rest_json.output.MalformedIntegerOutput\]\]\]\]:
 2903   3073   
    /// :rtype None:
 2904   3074   
    #[pyo3(text_signature = "($self, func)")]
 2905   3075   
    pub fn malformed_integer(
 2906   3076   
        &mut self,
 2907   3077   
        py: ::pyo3::Python,
 2908   3078   
        func: ::pyo3::PyObject,
 2909   3079   
    ) -> ::pyo3::PyResult<()> {
 2910   3080   
        use ::aws_smithy_http_server_python::PyApp;
 2911   3081   
        self.register_operation(py, "malformed_integer", func)
 2912   3082   
    }
        3083  +
    /* PythonApplicationGenerator.kt:366 */
 2913   3084   
    /// Method to register `malformed_list` Python implementation inside the handlers map.
 2914   3085   
    /// It can be used as a function decorator in Python.
 2915   3086   
    ///
 2916   3087   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedListInput, Ctx\], typing.Union\[rest_json.output.MalformedListOutput, typing.Awaitable\[rest_json.output.MalformedListOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedListInput\], typing.Union\[rest_json.output.MalformedListOutput, typing.Awaitable\[rest_json.output.MalformedListOutput\]\]\]\]:
 2917   3088   
    /// :rtype None:
 2918   3089   
    #[pyo3(text_signature = "($self, func)")]
 2919   3090   
    pub fn malformed_list(
 2920   3091   
        &mut self,
 2921   3092   
        py: ::pyo3::Python,
 2922   3093   
        func: ::pyo3::PyObject,
 2923   3094   
    ) -> ::pyo3::PyResult<()> {
 2924   3095   
        use ::aws_smithy_http_server_python::PyApp;
 2925   3096   
        self.register_operation(py, "malformed_list", func)
 2926   3097   
    }
        3098  +
    /* PythonApplicationGenerator.kt:366 */
 2927   3099   
    /// Method to register `malformed_long` Python implementation inside the handlers map.
 2928   3100   
    /// It can be used as a function decorator in Python.
 2929   3101   
    ///
 2930   3102   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedLongInput, Ctx\], typing.Union\[rest_json.output.MalformedLongOutput, typing.Awaitable\[rest_json.output.MalformedLongOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedLongInput\], typing.Union\[rest_json.output.MalformedLongOutput, typing.Awaitable\[rest_json.output.MalformedLongOutput\]\]\]\]:
 2931   3103   
    /// :rtype None:
 2932   3104   
    #[pyo3(text_signature = "($self, func)")]
 2933   3105   
    pub fn malformed_long(
 2934   3106   
        &mut self,
 2935   3107   
        py: ::pyo3::Python,
 2936   3108   
        func: ::pyo3::PyObject,
 2937   3109   
    ) -> ::pyo3::PyResult<()> {
 2938   3110   
        use ::aws_smithy_http_server_python::PyApp;
 2939   3111   
        self.register_operation(py, "malformed_long", func)
 2940   3112   
    }
        3113  +
    /* PythonApplicationGenerator.kt:366 */
 2941   3114   
    /// Method to register `malformed_map` Python implementation inside the handlers map.
 2942   3115   
    /// It can be used as a function decorator in Python.
 2943   3116   
    ///
 2944   3117   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedMapInput, Ctx\], typing.Union\[rest_json.output.MalformedMapOutput, typing.Awaitable\[rest_json.output.MalformedMapOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedMapInput\], typing.Union\[rest_json.output.MalformedMapOutput, typing.Awaitable\[rest_json.output.MalformedMapOutput\]\]\]\]:
 2945   3118   
    /// :rtype None:
 2946   3119   
    #[pyo3(text_signature = "($self, func)")]
 2947   3120   
    pub fn malformed_map(
 2948   3121   
        &mut self,
 2949   3122   
        py: ::pyo3::Python,
 2950   3123   
        func: ::pyo3::PyObject,
 2951   3124   
    ) -> ::pyo3::PyResult<()> {
 2952   3125   
        use ::aws_smithy_http_server_python::PyApp;
 2953   3126   
        self.register_operation(py, "malformed_map", func)
 2954   3127   
    }
        3128  +
    /* PythonApplicationGenerator.kt:366 */
 2955   3129   
    /// Method to register `malformed_request_body` Python implementation inside the handlers map.
 2956   3130   
    /// It can be used as a function decorator in Python.
 2957   3131   
    ///
 2958   3132   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedRequestBodyInput, Ctx\], typing.Union\[rest_json.output.MalformedRequestBodyOutput, typing.Awaitable\[rest_json.output.MalformedRequestBodyOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedRequestBodyInput\], typing.Union\[rest_json.output.MalformedRequestBodyOutput, typing.Awaitable\[rest_json.output.MalformedRequestBodyOutput\]\]\]\]:
 2959   3133   
    /// :rtype None:
 2960   3134   
    #[pyo3(text_signature = "($self, func)")]
 2961   3135   
    pub fn malformed_request_body(
 2962   3136   
        &mut self,
 2963   3137   
        py: ::pyo3::Python,
 2964   3138   
        func: ::pyo3::PyObject,
 2965   3139   
    ) -> ::pyo3::PyResult<()> {
 2966   3140   
        use ::aws_smithy_http_server_python::PyApp;
 2967   3141   
        self.register_operation(py, "malformed_request_body", func)
 2968   3142   
    }
        3143  +
    /* PythonApplicationGenerator.kt:366 */
 2969   3144   
    /// Method to register `malformed_short` Python implementation inside the handlers map.
 2970   3145   
    /// It can be used as a function decorator in Python.
 2971   3146   
    ///
 2972   3147   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedShortInput, Ctx\], typing.Union\[rest_json.output.MalformedShortOutput, typing.Awaitable\[rest_json.output.MalformedShortOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedShortInput\], typing.Union\[rest_json.output.MalformedShortOutput, typing.Awaitable\[rest_json.output.MalformedShortOutput\]\]\]\]:
 2973   3148   
    /// :rtype None:
 2974   3149   
    #[pyo3(text_signature = "($self, func)")]
 2975   3150   
    pub fn malformed_short(
 2976   3151   
        &mut self,
 2977   3152   
        py: ::pyo3::Python,
 2978   3153   
        func: ::pyo3::PyObject,
 2979   3154   
    ) -> ::pyo3::PyResult<()> {
 2980   3155   
        use ::aws_smithy_http_server_python::PyApp;
 2981   3156   
        self.register_operation(py, "malformed_short", func)
 2982   3157   
    }
        3158  +
    /* PythonApplicationGenerator.kt:366 */
 2983   3159   
    /// Method to register `malformed_string` Python implementation inside the handlers map.
 2984   3160   
    /// It can be used as a function decorator in Python.
 2985   3161   
    ///
 2986   3162   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedStringInput, Ctx\], typing.Union\[rest_json.output.MalformedStringOutput, typing.Awaitable\[rest_json.output.MalformedStringOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedStringInput\], typing.Union\[rest_json.output.MalformedStringOutput, typing.Awaitable\[rest_json.output.MalformedStringOutput\]\]\]\]:
 2987   3163   
    /// :rtype None:
 2988   3164   
    #[pyo3(text_signature = "($self, func)")]
 2989   3165   
    pub fn malformed_string(
 2990   3166   
        &mut self,
 2991   3167   
        py: ::pyo3::Python,
 2992   3168   
        func: ::pyo3::PyObject,
 2993   3169   
    ) -> ::pyo3::PyResult<()> {
 2994   3170   
        use ::aws_smithy_http_server_python::PyApp;
 2995   3171   
        self.register_operation(py, "malformed_string", func)
 2996   3172   
    }
        3173  +
    /* PythonApplicationGenerator.kt:366 */
 2997   3174   
    /// Method to register `malformed_timestamp_body_date_time` Python implementation inside the handlers map.
 2998   3175   
    /// It can be used as a function decorator in Python.
 2999   3176   
    ///
 3000   3177   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedTimestampBodyDateTimeInput, Ctx\], typing.Union\[rest_json.output.MalformedTimestampBodyDateTimeOutput, typing.Awaitable\[rest_json.output.MalformedTimestampBodyDateTimeOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedTimestampBodyDateTimeInput\], typing.Union\[rest_json.output.MalformedTimestampBodyDateTimeOutput, typing.Awaitable\[rest_json.output.MalformedTimestampBodyDateTimeOutput\]\]\]\]:
 3001   3178   
    /// :rtype None:
 3002   3179   
    #[pyo3(text_signature = "($self, func)")]
 3003   3180   
    pub fn malformed_timestamp_body_date_time(
 3004   3181   
        &mut self,
 3005   3182   
        py: ::pyo3::Python,
 3006   3183   
        func: ::pyo3::PyObject,
 3007   3184   
    ) -> ::pyo3::PyResult<()> {
 3008   3185   
        use ::aws_smithy_http_server_python::PyApp;
 3009   3186   
        self.register_operation(py, "malformed_timestamp_body_date_time", func)
 3010   3187   
    }
        3188  +
    /* PythonApplicationGenerator.kt:366 */
 3011   3189   
    /// Method to register `malformed_timestamp_body_default` Python implementation inside the handlers map.
 3012   3190   
    /// It can be used as a function decorator in Python.
 3013   3191   
    ///
 3014   3192   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedTimestampBodyDefaultInput, Ctx\], typing.Union\[rest_json.output.MalformedTimestampBodyDefaultOutput, typing.Awaitable\[rest_json.output.MalformedTimestampBodyDefaultOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedTimestampBodyDefaultInput\], typing.Union\[rest_json.output.MalformedTimestampBodyDefaultOutput, typing.Awaitable\[rest_json.output.MalformedTimestampBodyDefaultOutput\]\]\]\]:
 3015   3193   
    /// :rtype None:
 3016   3194   
    #[pyo3(text_signature = "($self, func)")]
 3017   3195   
    pub fn malformed_timestamp_body_default(
 3018   3196   
        &mut self,
 3019   3197   
        py: ::pyo3::Python,
 3020   3198   
        func: ::pyo3::PyObject,
 3021   3199   
    ) -> ::pyo3::PyResult<()> {
 3022   3200   
        use ::aws_smithy_http_server_python::PyApp;
 3023   3201   
        self.register_operation(py, "malformed_timestamp_body_default", func)
 3024   3202   
    }
        3203  +
    /* PythonApplicationGenerator.kt:366 */
 3025   3204   
    /// Method to register `malformed_timestamp_body_http_date` Python implementation inside the handlers map.
 3026   3205   
    /// It can be used as a function decorator in Python.
 3027   3206   
    ///
 3028   3207   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedTimestampBodyHttpDateInput, Ctx\], typing.Union\[rest_json.output.MalformedTimestampBodyHttpDateOutput, typing.Awaitable\[rest_json.output.MalformedTimestampBodyHttpDateOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedTimestampBodyHttpDateInput\], typing.Union\[rest_json.output.MalformedTimestampBodyHttpDateOutput, typing.Awaitable\[rest_json.output.MalformedTimestampBodyHttpDateOutput\]\]\]\]:
 3029   3208   
    /// :rtype None:
 3030   3209   
    #[pyo3(text_signature = "($self, func)")]
 3031   3210   
    pub fn malformed_timestamp_body_http_date(
 3032   3211   
        &mut self,
 3033   3212   
        py: ::pyo3::Python,
 3034   3213   
        func: ::pyo3::PyObject,
 3035   3214   
    ) -> ::pyo3::PyResult<()> {
 3036   3215   
        use ::aws_smithy_http_server_python::PyApp;
 3037   3216   
        self.register_operation(py, "malformed_timestamp_body_http_date", func)
 3038   3217   
    }
        3218  +
    /* PythonApplicationGenerator.kt:366 */
 3039   3219   
    /// Method to register `malformed_timestamp_header_date_time` Python implementation inside the handlers map.
 3040   3220   
    /// It can be used as a function decorator in Python.
 3041   3221   
    ///
 3042   3222   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedTimestampHeaderDateTimeInput, Ctx\], typing.Union\[rest_json.output.MalformedTimestampHeaderDateTimeOutput, typing.Awaitable\[rest_json.output.MalformedTimestampHeaderDateTimeOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedTimestampHeaderDateTimeInput\], typing.Union\[rest_json.output.MalformedTimestampHeaderDateTimeOutput, typing.Awaitable\[rest_json.output.MalformedTimestampHeaderDateTimeOutput\]\]\]\]:
 3043   3223   
    /// :rtype None:
 3044   3224   
    #[pyo3(text_signature = "($self, func)")]
 3045   3225   
    pub fn malformed_timestamp_header_date_time(
 3046   3226   
        &mut self,
 3047   3227   
        py: ::pyo3::Python,
 3048   3228   
        func: ::pyo3::PyObject,
 3049   3229   
    ) -> ::pyo3::PyResult<()> {
 3050   3230   
        use ::aws_smithy_http_server_python::PyApp;
 3051   3231   
        self.register_operation(py, "malformed_timestamp_header_date_time", func)
 3052   3232   
    }
        3233  +
    /* PythonApplicationGenerator.kt:366 */
 3053   3234   
    /// Method to register `malformed_timestamp_header_default` Python implementation inside the handlers map.
 3054   3235   
    /// It can be used as a function decorator in Python.
 3055   3236   
    ///
 3056   3237   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedTimestampHeaderDefaultInput, Ctx\], typing.Union\[rest_json.output.MalformedTimestampHeaderDefaultOutput, typing.Awaitable\[rest_json.output.MalformedTimestampHeaderDefaultOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedTimestampHeaderDefaultInput\], typing.Union\[rest_json.output.MalformedTimestampHeaderDefaultOutput, typing.Awaitable\[rest_json.output.MalformedTimestampHeaderDefaultOutput\]\]\]\]:
 3057   3238   
    /// :rtype None:
 3058   3239   
    #[pyo3(text_signature = "($self, func)")]
 3059   3240   
    pub fn malformed_timestamp_header_default(
 3060   3241   
        &mut self,
 3061   3242   
        py: ::pyo3::Python,
 3062   3243   
        func: ::pyo3::PyObject,
 3063   3244   
    ) -> ::pyo3::PyResult<()> {
 3064   3245   
        use ::aws_smithy_http_server_python::PyApp;
 3065   3246   
        self.register_operation(py, "malformed_timestamp_header_default", func)
 3066   3247   
    }
        3248  +
    /* PythonApplicationGenerator.kt:366 */
 3067   3249   
    /// Method to register `malformed_timestamp_header_epoch` Python implementation inside the handlers map.
 3068   3250   
    /// It can be used as a function decorator in Python.
 3069   3251   
    ///
 3070   3252   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedTimestampHeaderEpochInput, Ctx\], typing.Union\[rest_json.output.MalformedTimestampHeaderEpochOutput, typing.Awaitable\[rest_json.output.MalformedTimestampHeaderEpochOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedTimestampHeaderEpochInput\], typing.Union\[rest_json.output.MalformedTimestampHeaderEpochOutput, typing.Awaitable\[rest_json.output.MalformedTimestampHeaderEpochOutput\]\]\]\]:
 3071   3253   
    /// :rtype None:
 3072   3254   
    #[pyo3(text_signature = "($self, func)")]
 3073   3255   
    pub fn malformed_timestamp_header_epoch(
 3074   3256   
        &mut self,
 3075   3257   
        py: ::pyo3::Python,
 3076   3258   
        func: ::pyo3::PyObject,
 3077   3259   
    ) -> ::pyo3::PyResult<()> {
 3078   3260   
        use ::aws_smithy_http_server_python::PyApp;
 3079   3261   
        self.register_operation(py, "malformed_timestamp_header_epoch", func)
 3080   3262   
    }
        3263  +
    /* PythonApplicationGenerator.kt:366 */
 3081   3264   
    /// Method to register `malformed_timestamp_path_default` Python implementation inside the handlers map.
 3082   3265   
    /// It can be used as a function decorator in Python.
 3083   3266   
    ///
 3084   3267   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedTimestampPathDefaultInput, Ctx\], typing.Union\[rest_json.output.MalformedTimestampPathDefaultOutput, typing.Awaitable\[rest_json.output.MalformedTimestampPathDefaultOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedTimestampPathDefaultInput\], typing.Union\[rest_json.output.MalformedTimestampPathDefaultOutput, typing.Awaitable\[rest_json.output.MalformedTimestampPathDefaultOutput\]\]\]\]:
 3085   3268   
    /// :rtype None:
 3086   3269   
    #[pyo3(text_signature = "($self, func)")]
 3087   3270   
    pub fn malformed_timestamp_path_default(
 3088   3271   
        &mut self,
 3089   3272   
        py: ::pyo3::Python,
 3090   3273   
        func: ::pyo3::PyObject,
 3091   3274   
    ) -> ::pyo3::PyResult<()> {
 3092   3275   
        use ::aws_smithy_http_server_python::PyApp;
 3093   3276   
        self.register_operation(py, "malformed_timestamp_path_default", func)
 3094   3277   
    }
        3278  +
    /* PythonApplicationGenerator.kt:366 */
 3095   3279   
    /// Method to register `malformed_timestamp_path_epoch` Python implementation inside the handlers map.
 3096   3280   
    /// It can be used as a function decorator in Python.
 3097   3281   
    ///
 3098   3282   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedTimestampPathEpochInput, Ctx\], typing.Union\[rest_json.output.MalformedTimestampPathEpochOutput, typing.Awaitable\[rest_json.output.MalformedTimestampPathEpochOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedTimestampPathEpochInput\], typing.Union\[rest_json.output.MalformedTimestampPathEpochOutput, typing.Awaitable\[rest_json.output.MalformedTimestampPathEpochOutput\]\]\]\]:
 3099   3283   
    /// :rtype None:
 3100   3284   
    #[pyo3(text_signature = "($self, func)")]
 3101   3285   
    pub fn malformed_timestamp_path_epoch(
 3102   3286   
        &mut self,
 3103   3287   
        py: ::pyo3::Python,
 3104   3288   
        func: ::pyo3::PyObject,
 3105   3289   
    ) -> ::pyo3::PyResult<()> {
 3106   3290   
        use ::aws_smithy_http_server_python::PyApp;
 3107   3291   
        self.register_operation(py, "malformed_timestamp_path_epoch", func)
 3108   3292   
    }
        3293  +
    /* PythonApplicationGenerator.kt:366 */
 3109   3294   
    /// Method to register `malformed_timestamp_path_http_date` Python implementation inside the handlers map.
 3110   3295   
    /// It can be used as a function decorator in Python.
 3111   3296   
    ///
 3112   3297   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedTimestampPathHttpDateInput, Ctx\], typing.Union\[rest_json.output.MalformedTimestampPathHttpDateOutput, typing.Awaitable\[rest_json.output.MalformedTimestampPathHttpDateOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedTimestampPathHttpDateInput\], typing.Union\[rest_json.output.MalformedTimestampPathHttpDateOutput, typing.Awaitable\[rest_json.output.MalformedTimestampPathHttpDateOutput\]\]\]\]:
 3113   3298   
    /// :rtype None:
 3114   3299   
    #[pyo3(text_signature = "($self, func)")]
 3115   3300   
    pub fn malformed_timestamp_path_http_date(
 3116   3301   
        &mut self,
 3117   3302   
        py: ::pyo3::Python,
 3118   3303   
        func: ::pyo3::PyObject,
 3119   3304   
    ) -> ::pyo3::PyResult<()> {
 3120   3305   
        use ::aws_smithy_http_server_python::PyApp;
 3121   3306   
        self.register_operation(py, "malformed_timestamp_path_http_date", func)
 3122   3307   
    }
        3308  +
    /* PythonApplicationGenerator.kt:366 */
 3123   3309   
    /// Method to register `malformed_timestamp_query_default` Python implementation inside the handlers map.
 3124   3310   
    /// It can be used as a function decorator in Python.
 3125   3311   
    ///
 3126   3312   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedTimestampQueryDefaultInput, Ctx\], typing.Union\[rest_json.output.MalformedTimestampQueryDefaultOutput, typing.Awaitable\[rest_json.output.MalformedTimestampQueryDefaultOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedTimestampQueryDefaultInput\], typing.Union\[rest_json.output.MalformedTimestampQueryDefaultOutput, typing.Awaitable\[rest_json.output.MalformedTimestampQueryDefaultOutput\]\]\]\]:
 3127   3313   
    /// :rtype None:
 3128   3314   
    #[pyo3(text_signature = "($self, func)")]
 3129   3315   
    pub fn malformed_timestamp_query_default(
 3130   3316   
        &mut self,
 3131   3317   
        py: ::pyo3::Python,
 3132   3318   
        func: ::pyo3::PyObject,
 3133   3319   
    ) -> ::pyo3::PyResult<()> {
 3134   3320   
        use ::aws_smithy_http_server_python::PyApp;
 3135   3321   
        self.register_operation(py, "malformed_timestamp_query_default", func)
 3136   3322   
    }
        3323  +
    /* PythonApplicationGenerator.kt:366 */
 3137   3324   
    /// Method to register `malformed_timestamp_query_epoch` Python implementation inside the handlers map.
 3138   3325   
    /// It can be used as a function decorator in Python.
 3139   3326   
    ///
 3140   3327   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedTimestampQueryEpochInput, Ctx\], typing.Union\[rest_json.output.MalformedTimestampQueryEpochOutput, typing.Awaitable\[rest_json.output.MalformedTimestampQueryEpochOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedTimestampQueryEpochInput\], typing.Union\[rest_json.output.MalformedTimestampQueryEpochOutput, typing.Awaitable\[rest_json.output.MalformedTimestampQueryEpochOutput\]\]\]\]:
 3141   3328   
    /// :rtype None:
 3142   3329   
    #[pyo3(text_signature = "($self, func)")]
 3143   3330   
    pub fn malformed_timestamp_query_epoch(
 3144   3331   
        &mut self,
 3145   3332   
        py: ::pyo3::Python,
 3146   3333   
        func: ::pyo3::PyObject,
 3147   3334   
    ) -> ::pyo3::PyResult<()> {
 3148   3335   
        use ::aws_smithy_http_server_python::PyApp;
 3149   3336   
        self.register_operation(py, "malformed_timestamp_query_epoch", func)
 3150   3337   
    }
        3338  +
    /* PythonApplicationGenerator.kt:366 */
 3151   3339   
    /// Method to register `malformed_timestamp_query_http_date` Python implementation inside the handlers map.
 3152   3340   
    /// It can be used as a function decorator in Python.
 3153   3341   
    ///
 3154   3342   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedTimestampQueryHttpDateInput, Ctx\], typing.Union\[rest_json.output.MalformedTimestampQueryHttpDateOutput, typing.Awaitable\[rest_json.output.MalformedTimestampQueryHttpDateOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedTimestampQueryHttpDateInput\], typing.Union\[rest_json.output.MalformedTimestampQueryHttpDateOutput, typing.Awaitable\[rest_json.output.MalformedTimestampQueryHttpDateOutput\]\]\]\]:
 3155   3343   
    /// :rtype None:
 3156   3344   
    #[pyo3(text_signature = "($self, func)")]
 3157   3345   
    pub fn malformed_timestamp_query_http_date(
 3158   3346   
        &mut self,
 3159   3347   
        py: ::pyo3::Python,
 3160   3348   
        func: ::pyo3::PyObject,
 3161   3349   
    ) -> ::pyo3::PyResult<()> {
 3162   3350   
        use ::aws_smithy_http_server_python::PyApp;
 3163   3351   
        self.register_operation(py, "malformed_timestamp_query_http_date", func)
 3164   3352   
    }
        3353  +
    /* PythonApplicationGenerator.kt:366 */
 3165   3354   
    /// Method to register `malformed_union` Python implementation inside the handlers map.
 3166   3355   
    /// It can be used as a function decorator in Python.
 3167   3356   
    ///
 3168   3357   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MalformedUnionInput, Ctx\], typing.Union\[rest_json.output.MalformedUnionOutput, typing.Awaitable\[rest_json.output.MalformedUnionOutput\]\]\], typing.Callable\[\[rest_json.input.MalformedUnionInput\], typing.Union\[rest_json.output.MalformedUnionOutput, typing.Awaitable\[rest_json.output.MalformedUnionOutput\]\]\]\]:
 3169   3358   
    /// :rtype None:
 3170   3359   
    #[pyo3(text_signature = "($self, func)")]
 3171   3360   
    pub fn malformed_union(
 3172   3361   
        &mut self,
 3173   3362   
        py: ::pyo3::Python,
 3174   3363   
        func: ::pyo3::PyObject,
 3175   3364   
    ) -> ::pyo3::PyResult<()> {
 3176   3365   
        use ::aws_smithy_http_server_python::PyApp;
 3177   3366   
        self.register_operation(py, "malformed_union", func)
 3178   3367   
    }
        3368  +
    /* PythonApplicationGenerator.kt:366 */
 3179   3369   
    /// Method to register `media_type_header` Python implementation inside the handlers map.
 3180   3370   
    /// It can be used as a function decorator in Python.
 3181   3371   
    ///
 3182   3372   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.MediaTypeHeaderInput, Ctx\], typing.Union\[rest_json.output.MediaTypeHeaderOutput, typing.Awaitable\[rest_json.output.MediaTypeHeaderOutput\]\]\], typing.Callable\[\[rest_json.input.MediaTypeHeaderInput\], typing.Union\[rest_json.output.MediaTypeHeaderOutput, typing.Awaitable\[rest_json.output.MediaTypeHeaderOutput\]\]\]\]:
 3183   3373   
    /// :rtype None:
 3184   3374   
    #[pyo3(text_signature = "($self, func)")]
 3185   3375   
    pub fn media_type_header(
 3186   3376   
        &mut self,
 3187   3377   
        py: ::pyo3::Python,
 3188   3378   
        func: ::pyo3::PyObject,
 3189   3379   
    ) -> ::pyo3::PyResult<()> {
 3190   3380   
        use ::aws_smithy_http_server_python::PyApp;
 3191   3381   
        self.register_operation(py, "media_type_header", func)
 3192   3382   
    }
        3383  +
    /* PythonApplicationGenerator.kt:366 */
 3193   3384   
    /// Method to register `no_input_and_no_output` Python implementation inside the handlers map.
 3194   3385   
    /// It can be used as a function decorator in Python.
 3195   3386   
    ///
 3196   3387   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.NoInputAndNoOutputInput, Ctx\], typing.Union\[rest_json.output.NoInputAndNoOutputOutput, typing.Awaitable\[rest_json.output.NoInputAndNoOutputOutput\]\]\], typing.Callable\[\[rest_json.input.NoInputAndNoOutputInput\], typing.Union\[rest_json.output.NoInputAndNoOutputOutput, typing.Awaitable\[rest_json.output.NoInputAndNoOutputOutput\]\]\]\]:
 3197   3388   
    /// :rtype None:
 3198   3389   
    #[pyo3(text_signature = "($self, func)")]
 3199   3390   
    pub fn no_input_and_no_output(
 3200   3391   
        &mut self,
 3201   3392   
        py: ::pyo3::Python,
 3202   3393   
        func: ::pyo3::PyObject,
 3203   3394   
    ) -> ::pyo3::PyResult<()> {
 3204   3395   
        use ::aws_smithy_http_server_python::PyApp;
 3205   3396   
        self.register_operation(py, "no_input_and_no_output", func)
 3206   3397   
    }
        3398  +
    /* PythonApplicationGenerator.kt:366 */
 3207   3399   
    /// Method to register `no_input_and_output` Python implementation inside the handlers map.
 3208   3400   
    /// It can be used as a function decorator in Python.
 3209   3401   
    ///
 3210   3402   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.NoInputAndOutputInput, Ctx\], typing.Union\[rest_json.output.NoInputAndOutputOutput, typing.Awaitable\[rest_json.output.NoInputAndOutputOutput\]\]\], typing.Callable\[\[rest_json.input.NoInputAndOutputInput\], typing.Union\[rest_json.output.NoInputAndOutputOutput, typing.Awaitable\[rest_json.output.NoInputAndOutputOutput\]\]\]\]:
 3211   3403   
    /// :rtype None:
 3212   3404   
    #[pyo3(text_signature = "($self, func)")]
 3213   3405   
    pub fn no_input_and_output(
 3214   3406   
        &mut self,
 3215   3407   
        py: ::pyo3::Python,
 3216   3408   
        func: ::pyo3::PyObject,
 3217   3409   
    ) -> ::pyo3::PyResult<()> {
 3218   3410   
        use ::aws_smithy_http_server_python::PyApp;
 3219   3411   
        self.register_operation(py, "no_input_and_output", func)
 3220   3412   
    }
        3413  +
    /* PythonApplicationGenerator.kt:366 */
 3221   3414   
    /// Method to register `null_and_empty_headers_client` Python implementation inside the handlers map.
 3222   3415   
    /// It can be used as a function decorator in Python.
 3223   3416   
    ///
 3224   3417   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.NullAndEmptyHeadersClientInput, Ctx\], typing.Union\[rest_json.output.NullAndEmptyHeadersClientOutput, typing.Awaitable\[rest_json.output.NullAndEmptyHeadersClientOutput\]\]\], typing.Callable\[\[rest_json.input.NullAndEmptyHeadersClientInput\], typing.Union\[rest_json.output.NullAndEmptyHeadersClientOutput, typing.Awaitable\[rest_json.output.NullAndEmptyHeadersClientOutput\]\]\]\]:
 3225   3418   
    /// :rtype None:
 3226   3419   
    #[pyo3(text_signature = "($self, func)")]
 3227   3420   
    pub fn null_and_empty_headers_client(
 3228   3421   
        &mut self,
 3229   3422   
        py: ::pyo3::Python,
 3230   3423   
        func: ::pyo3::PyObject,
 3231   3424   
    ) -> ::pyo3::PyResult<()> {
 3232   3425   
        use ::aws_smithy_http_server_python::PyApp;
 3233   3426   
        self.register_operation(py, "null_and_empty_headers_client", func)
 3234   3427   
    }
        3428  +
    /* PythonApplicationGenerator.kt:366 */
 3235   3429   
    /// Method to register `null_and_empty_headers_server` Python implementation inside the handlers map.
 3236   3430   
    /// It can be used as a function decorator in Python.
 3237   3431   
    ///
 3238   3432   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.NullAndEmptyHeadersServerInput, Ctx\], typing.Union\[rest_json.output.NullAndEmptyHeadersServerOutput, typing.Awaitable\[rest_json.output.NullAndEmptyHeadersServerOutput\]\]\], typing.Callable\[\[rest_json.input.NullAndEmptyHeadersServerInput\], typing.Union\[rest_json.output.NullAndEmptyHeadersServerOutput, typing.Awaitable\[rest_json.output.NullAndEmptyHeadersServerOutput\]\]\]\]:
 3239   3433   
    /// :rtype None:
 3240   3434   
    #[pyo3(text_signature = "($self, func)")]
 3241   3435   
    pub fn null_and_empty_headers_server(
 3242   3436   
        &mut self,
 3243   3437   
        py: ::pyo3::Python,
 3244   3438   
        func: ::pyo3::PyObject,
 3245   3439   
    ) -> ::pyo3::PyResult<()> {
 3246   3440   
        use ::aws_smithy_http_server_python::PyApp;
 3247   3441   
        self.register_operation(py, "null_and_empty_headers_server", func)
 3248   3442   
    }
        3443  +
    /* PythonApplicationGenerator.kt:366 */
 3249   3444   
    /// Method to register `omits_null_serializes_empty_string` Python implementation inside the handlers map.
 3250   3445   
    /// It can be used as a function decorator in Python.
 3251   3446   
    ///
 3252   3447   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.OmitsNullSerializesEmptyStringInput, Ctx\], typing.Union\[rest_json.output.OmitsNullSerializesEmptyStringOutput, typing.Awaitable\[rest_json.output.OmitsNullSerializesEmptyStringOutput\]\]\], typing.Callable\[\[rest_json.input.OmitsNullSerializesEmptyStringInput\], typing.Union\[rest_json.output.OmitsNullSerializesEmptyStringOutput, typing.Awaitable\[rest_json.output.OmitsNullSerializesEmptyStringOutput\]\]\]\]:
 3253   3448   
    /// :rtype None:
 3254   3449   
    #[pyo3(text_signature = "($self, func)")]
 3255   3450   
    pub fn omits_null_serializes_empty_string(
 3256   3451   
        &mut self,
 3257   3452   
        py: ::pyo3::Python,
 3258   3453   
        func: ::pyo3::PyObject,
 3259   3454   
    ) -> ::pyo3::PyResult<()> {
 3260   3455   
        use ::aws_smithy_http_server_python::PyApp;
 3261   3456   
        self.register_operation(py, "omits_null_serializes_empty_string", func)
 3262   3457   
    }
        3458  +
    /* PythonApplicationGenerator.kt:366 */
 3263   3459   
    /// Method to register `omits_serializing_empty_lists` Python implementation inside the handlers map.
 3264   3460   
    /// It can be used as a function decorator in Python.
 3265   3461   
    ///
 3266   3462   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.OmitsSerializingEmptyListsInput, Ctx\], typing.Union\[rest_json.output.OmitsSerializingEmptyListsOutput, typing.Awaitable\[rest_json.output.OmitsSerializingEmptyListsOutput\]\]\], typing.Callable\[\[rest_json.input.OmitsSerializingEmptyListsInput\], typing.Union\[rest_json.output.OmitsSerializingEmptyListsOutput, typing.Awaitable\[rest_json.output.OmitsSerializingEmptyListsOutput\]\]\]\]:
 3267   3463   
    /// :rtype None:
 3268   3464   
    #[pyo3(text_signature = "($self, func)")]
 3269   3465   
    pub fn omits_serializing_empty_lists(
 3270   3466   
        &mut self,
 3271   3467   
        py: ::pyo3::Python,
 3272   3468   
        func: ::pyo3::PyObject,
 3273   3469   
    ) -> ::pyo3::PyResult<()> {
 3274   3470   
        use ::aws_smithy_http_server_python::PyApp;
 3275   3471   
        self.register_operation(py, "omits_serializing_empty_lists", func)
 3276   3472   
    }
        3473  +
    /* PythonApplicationGenerator.kt:366 */
 3277   3474   
    /// Method to register `operation_with_defaults` Python implementation inside the handlers map.
 3278   3475   
    /// It can be used as a function decorator in Python.
 3279   3476   
    ///
 3280   3477   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.OperationWithDefaultsInput, Ctx\], typing.Union\[rest_json.output.OperationWithDefaultsOutput, typing.Awaitable\[rest_json.output.OperationWithDefaultsOutput\]\]\], typing.Callable\[\[rest_json.input.OperationWithDefaultsInput\], typing.Union\[rest_json.output.OperationWithDefaultsOutput, typing.Awaitable\[rest_json.output.OperationWithDefaultsOutput\]\]\]\]:
 3281   3478   
    /// :rtype None:
 3282   3479   
    #[pyo3(text_signature = "($self, func)")]
 3283   3480   
    pub fn operation_with_defaults(
 3284   3481   
        &mut self,
 3285   3482   
        py: ::pyo3::Python,
 3286   3483   
        func: ::pyo3::PyObject,
 3287   3484   
    ) -> ::pyo3::PyResult<()> {
 3288   3485   
        use ::aws_smithy_http_server_python::PyApp;
 3289   3486   
        self.register_operation(py, "operation_with_defaults", func)
 3290   3487   
    }
        3488  +
    /* PythonApplicationGenerator.kt:366 */
 3291   3489   
    /// Method to register `operation_with_nested_structure` Python implementation inside the handlers map.
 3292   3490   
    /// It can be used as a function decorator in Python.
 3293   3491   
    ///
 3294   3492   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.OperationWithNestedStructureInput, Ctx\], typing.Union\[rest_json.output.OperationWithNestedStructureOutput, typing.Awaitable\[rest_json.output.OperationWithNestedStructureOutput\]\]\], typing.Callable\[\[rest_json.input.OperationWithNestedStructureInput\], typing.Union\[rest_json.output.OperationWithNestedStructureOutput, typing.Awaitable\[rest_json.output.OperationWithNestedStructureOutput\]\]\]\]:
 3295   3493   
    /// :rtype None:
 3296   3494   
    #[pyo3(text_signature = "($self, func)")]
 3297   3495   
    pub fn operation_with_nested_structure(
 3298   3496   
        &mut self,
 3299   3497   
        py: ::pyo3::Python,
 3300   3498   
        func: ::pyo3::PyObject,
 3301   3499   
    ) -> ::pyo3::PyResult<()> {
 3302   3500   
        use ::aws_smithy_http_server_python::PyApp;
 3303   3501   
        self.register_operation(py, "operation_with_nested_structure", func)
 3304   3502   
    }
        3503  +
    /* PythonApplicationGenerator.kt:366 */
 3305   3504   
    /// Method to register `post_player_action` Python implementation inside the handlers map.
 3306   3505   
    /// It can be used as a function decorator in Python.
 3307   3506   
    ///
 3308   3507   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.PostPlayerActionInput, Ctx\], typing.Union\[rest_json.output.PostPlayerActionOutput, typing.Awaitable\[rest_json.output.PostPlayerActionOutput\]\]\], typing.Callable\[\[rest_json.input.PostPlayerActionInput\], typing.Union\[rest_json.output.PostPlayerActionOutput, typing.Awaitable\[rest_json.output.PostPlayerActionOutput\]\]\]\]:
 3309   3508   
    /// :rtype None:
 3310   3509   
    #[pyo3(text_signature = "($self, func)")]
 3311   3510   
    pub fn post_player_action(
 3312   3511   
        &mut self,
 3313   3512   
        py: ::pyo3::Python,
 3314   3513   
        func: ::pyo3::PyObject,
 3315   3514   
    ) -> ::pyo3::PyResult<()> {
 3316   3515   
        use ::aws_smithy_http_server_python::PyApp;
 3317   3516   
        self.register_operation(py, "post_player_action", func)
 3318   3517   
    }
        3518  +
    /* PythonApplicationGenerator.kt:366 */
 3319   3519   
    /// Method to register `post_union_with_json_name` Python implementation inside the handlers map.
 3320   3520   
    /// It can be used as a function decorator in Python.
 3321   3521   
    ///
 3322   3522   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.PostUnionWithJsonNameInput, Ctx\], typing.Union\[rest_json.output.PostUnionWithJsonNameOutput, typing.Awaitable\[rest_json.output.PostUnionWithJsonNameOutput\]\]\], typing.Callable\[\[rest_json.input.PostUnionWithJsonNameInput\], typing.Union\[rest_json.output.PostUnionWithJsonNameOutput, typing.Awaitable\[rest_json.output.PostUnionWithJsonNameOutput\]\]\]\]:
 3323   3523   
    /// :rtype None:
 3324   3524   
    #[pyo3(text_signature = "($self, func)")]
 3325   3525   
    pub fn post_union_with_json_name(
 3326   3526   
        &mut self,
 3327   3527   
        py: ::pyo3::Python,
 3328   3528   
        func: ::pyo3::PyObject,
 3329   3529   
    ) -> ::pyo3::PyResult<()> {
 3330   3530   
        use ::aws_smithy_http_server_python::PyApp;
 3331   3531   
        self.register_operation(py, "post_union_with_json_name", func)
 3332   3532   
    }
        3533  +
    /* PythonApplicationGenerator.kt:366 */
 3333   3534   
    /// Method to register `put_with_content_encoding` Python implementation inside the handlers map.
 3334   3535   
    /// It can be used as a function decorator in Python.
 3335   3536   
    ///
 3336   3537   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.PutWithContentEncodingInput, Ctx\], typing.Union\[rest_json.output.PutWithContentEncodingOutput, typing.Awaitable\[rest_json.output.PutWithContentEncodingOutput\]\]\], typing.Callable\[\[rest_json.input.PutWithContentEncodingInput\], typing.Union\[rest_json.output.PutWithContentEncodingOutput, typing.Awaitable\[rest_json.output.PutWithContentEncodingOutput\]\]\]\]:
 3337   3538   
    /// :rtype None:
 3338   3539   
    #[pyo3(text_signature = "($self, func)")]
 3339   3540   
    pub fn put_with_content_encoding(
 3340   3541   
        &mut self,
 3341   3542   
        py: ::pyo3::Python,
 3342   3543   
        func: ::pyo3::PyObject,
 3343   3544   
    ) -> ::pyo3::PyResult<()> {
 3344   3545   
        use ::aws_smithy_http_server_python::PyApp;
 3345   3546   
        self.register_operation(py, "put_with_content_encoding", func)
 3346   3547   
    }
        3548  +
    /* PythonApplicationGenerator.kt:366 */
 3347   3549   
    /// Method to register `query_idempotency_token_auto_fill` Python implementation inside the handlers map.
 3348   3550   
    /// It can be used as a function decorator in Python.
 3349   3551   
    ///
 3350   3552   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.QueryIdempotencyTokenAutoFillInput, Ctx\], typing.Union\[rest_json.output.QueryIdempotencyTokenAutoFillOutput, typing.Awaitable\[rest_json.output.QueryIdempotencyTokenAutoFillOutput\]\]\], typing.Callable\[\[rest_json.input.QueryIdempotencyTokenAutoFillInput\], typing.Union\[rest_json.output.QueryIdempotencyTokenAutoFillOutput, typing.Awaitable\[rest_json.output.QueryIdempotencyTokenAutoFillOutput\]\]\]\]:
 3351   3553   
    /// :rtype None:
 3352   3554   
    #[pyo3(text_signature = "($self, func)")]
 3353   3555   
    pub fn query_idempotency_token_auto_fill(
 3354   3556   
        &mut self,
 3355   3557   
        py: ::pyo3::Python,
 3356   3558   
        func: ::pyo3::PyObject,
 3357   3559   
    ) -> ::pyo3::PyResult<()> {
 3358   3560   
        use ::aws_smithy_http_server_python::PyApp;
 3359   3561   
        self.register_operation(py, "query_idempotency_token_auto_fill", func)
 3360   3562   
    }
        3563  +
    /* PythonApplicationGenerator.kt:366 */
 3361   3564   
    /// Method to register `query_params_as_string_list_map` Python implementation inside the handlers map.
 3362   3565   
    /// It can be used as a function decorator in Python.
 3363   3566   
    ///
 3364   3567   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.QueryParamsAsStringListMapInput, Ctx\], typing.Union\[rest_json.output.QueryParamsAsStringListMapOutput, typing.Awaitable\[rest_json.output.QueryParamsAsStringListMapOutput\]\]\], typing.Callable\[\[rest_json.input.QueryParamsAsStringListMapInput\], typing.Union\[rest_json.output.QueryParamsAsStringListMapOutput, typing.Awaitable\[rest_json.output.QueryParamsAsStringListMapOutput\]\]\]\]:
 3365   3568   
    /// :rtype None:
 3366   3569   
    #[pyo3(text_signature = "($self, func)")]
 3367   3570   
    pub fn query_params_as_string_list_map(
 3368   3571   
        &mut self,
 3369   3572   
        py: ::pyo3::Python,
 3370   3573   
        func: ::pyo3::PyObject,
 3371   3574   
    ) -> ::pyo3::PyResult<()> {
 3372   3575   
        use ::aws_smithy_http_server_python::PyApp;
 3373   3576   
        self.register_operation(py, "query_params_as_string_list_map", func)
 3374   3577   
    }
        3578  +
    /* PythonApplicationGenerator.kt:366 */
 3375   3579   
    /// Method to register `query_precedence` Python implementation inside the handlers map.
 3376   3580   
    /// It can be used as a function decorator in Python.
 3377   3581   
    ///
 3378   3582   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.QueryPrecedenceInput, Ctx\], typing.Union\[rest_json.output.QueryPrecedenceOutput, typing.Awaitable\[rest_json.output.QueryPrecedenceOutput\]\]\], typing.Callable\[\[rest_json.input.QueryPrecedenceInput\], typing.Union\[rest_json.output.QueryPrecedenceOutput, typing.Awaitable\[rest_json.output.QueryPrecedenceOutput\]\]\]\]:
 3379   3583   
    /// :rtype None:
 3380   3584   
    #[pyo3(text_signature = "($self, func)")]
 3381   3585   
    pub fn query_precedence(
 3382   3586   
        &mut self,
 3383   3587   
        py: ::pyo3::Python,
 3384   3588   
        func: ::pyo3::PyObject,
 3385   3589   
    ) -> ::pyo3::PyResult<()> {
 3386   3590   
        use ::aws_smithy_http_server_python::PyApp;
 3387   3591   
        self.register_operation(py, "query_precedence", func)
 3388   3592   
    }
        3593  +
    /* PythonApplicationGenerator.kt:366 */
 3389   3594   
    /// Method to register `recursive_shapes` Python implementation inside the handlers map.
 3390   3595   
    /// It can be used as a function decorator in Python.
 3391   3596   
    ///
 3392   3597   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.RecursiveShapesInput, Ctx\], typing.Union\[rest_json.output.RecursiveShapesOutput, typing.Awaitable\[rest_json.output.RecursiveShapesOutput\]\]\], typing.Callable\[\[rest_json.input.RecursiveShapesInput\], typing.Union\[rest_json.output.RecursiveShapesOutput, typing.Awaitable\[rest_json.output.RecursiveShapesOutput\]\]\]\]:
 3393   3598   
    /// :rtype None:
 3394   3599   
    #[pyo3(text_signature = "($self, func)")]
 3395   3600   
    pub fn recursive_shapes(
 3396   3601   
        &mut self,
 3397   3602   
        py: ::pyo3::Python,
 3398   3603   
        func: ::pyo3::PyObject,
 3399   3604   
    ) -> ::pyo3::PyResult<()> {
 3400   3605   
        use ::aws_smithy_http_server_python::PyApp;
 3401   3606   
        self.register_operation(py, "recursive_shapes", func)
 3402   3607   
    }
        3608  +
    /* PythonApplicationGenerator.kt:366 */
 3403   3609   
    /// Method to register `simple_scalar_properties` Python implementation inside the handlers map.
 3404   3610   
    /// It can be used as a function decorator in Python.
 3405   3611   
    ///
 3406   3612   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.SimpleScalarPropertiesInput, Ctx\], typing.Union\[rest_json.output.SimpleScalarPropertiesOutput, typing.Awaitable\[rest_json.output.SimpleScalarPropertiesOutput\]\]\], typing.Callable\[\[rest_json.input.SimpleScalarPropertiesInput\], typing.Union\[rest_json.output.SimpleScalarPropertiesOutput, typing.Awaitable\[rest_json.output.SimpleScalarPropertiesOutput\]\]\]\]:
 3407   3613   
    /// :rtype None:
 3408   3614   
    #[pyo3(text_signature = "($self, func)")]
 3409   3615   
    pub fn simple_scalar_properties(
 3410   3616   
        &mut self,
 3411   3617   
        py: ::pyo3::Python,
 3412   3618   
        func: ::pyo3::PyObject,
 3413   3619   
    ) -> ::pyo3::PyResult<()> {
 3414   3620   
        use ::aws_smithy_http_server_python::PyApp;
 3415   3621   
        self.register_operation(py, "simple_scalar_properties", func)
 3416   3622   
    }
        3623  +
    /* PythonApplicationGenerator.kt:366 */
 3417   3624   
    /// Method to register `sparse_json_lists` Python implementation inside the handlers map.
 3418   3625   
    /// It can be used as a function decorator in Python.
 3419   3626   
    ///
 3420   3627   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.SparseJsonListsInput, Ctx\], typing.Union\[rest_json.output.SparseJsonListsOutput, typing.Awaitable\[rest_json.output.SparseJsonListsOutput\]\]\], typing.Callable\[\[rest_json.input.SparseJsonListsInput\], typing.Union\[rest_json.output.SparseJsonListsOutput, typing.Awaitable\[rest_json.output.SparseJsonListsOutput\]\]\]\]:
 3421   3628   
    /// :rtype None:
 3422   3629   
    #[pyo3(text_signature = "($self, func)")]
 3423   3630   
    pub fn sparse_json_lists(
 3424   3631   
        &mut self,
 3425   3632   
        py: ::pyo3::Python,
 3426   3633   
        func: ::pyo3::PyObject,
 3427   3634   
    ) -> ::pyo3::PyResult<()> {
 3428   3635   
        use ::aws_smithy_http_server_python::PyApp;
 3429   3636   
        self.register_operation(py, "sparse_json_lists", func)
 3430   3637   
    }
        3638  +
    /* PythonApplicationGenerator.kt:366 */
 3431   3639   
    /// Method to register `sparse_json_maps` Python implementation inside the handlers map.
 3432   3640   
    /// It can be used as a function decorator in Python.
 3433   3641   
    ///
 3434   3642   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.SparseJsonMapsInput, Ctx\], typing.Union\[rest_json.output.SparseJsonMapsOutput, typing.Awaitable\[rest_json.output.SparseJsonMapsOutput\]\]\], typing.Callable\[\[rest_json.input.SparseJsonMapsInput\], typing.Union\[rest_json.output.SparseJsonMapsOutput, typing.Awaitable\[rest_json.output.SparseJsonMapsOutput\]\]\]\]:
 3435   3643   
    /// :rtype None:
 3436   3644   
    #[pyo3(text_signature = "($self, func)")]
 3437   3645   
    pub fn sparse_json_maps(
 3438   3646   
        &mut self,
 3439   3647   
        py: ::pyo3::Python,
 3440   3648   
        func: ::pyo3::PyObject,
 3441   3649   
    ) -> ::pyo3::PyResult<()> {
 3442   3650   
        use ::aws_smithy_http_server_python::PyApp;
 3443   3651   
        self.register_operation(py, "sparse_json_maps", func)
 3444   3652   
    }
        3653  +
    /* PythonApplicationGenerator.kt:366 */
 3445   3654   
    /// Method to register `streaming_traits` Python implementation inside the handlers map.
 3446   3655   
    /// It can be used as a function decorator in Python.
 3447   3656   
    ///
 3448   3657   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.StreamingTraitsInput, Ctx\], typing.Union\[rest_json.output.StreamingTraitsOutput, typing.Awaitable\[rest_json.output.StreamingTraitsOutput\]\]\], typing.Callable\[\[rest_json.input.StreamingTraitsInput\], typing.Union\[rest_json.output.StreamingTraitsOutput, typing.Awaitable\[rest_json.output.StreamingTraitsOutput\]\]\]\]:
 3449   3658   
    /// :rtype None:
 3450   3659   
    #[pyo3(text_signature = "($self, func)")]
 3451   3660   
    pub fn streaming_traits(
 3452   3661   
        &mut self,
 3453   3662   
        py: ::pyo3::Python,
 3454   3663   
        func: ::pyo3::PyObject,
 3455   3664   
    ) -> ::pyo3::PyResult<()> {
 3456   3665   
        use ::aws_smithy_http_server_python::PyApp;
 3457   3666   
        self.register_operation(py, "streaming_traits", func)
 3458   3667   
    }
        3668  +
    /* PythonApplicationGenerator.kt:366 */
 3459   3669   
    /// Method to register `streaming_traits_require_length` Python implementation inside the handlers map.
 3460   3670   
    /// It can be used as a function decorator in Python.
 3461   3671   
    ///
 3462   3672   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.StreamingTraitsRequireLengthInput, Ctx\], typing.Union\[rest_json.output.StreamingTraitsRequireLengthOutput, typing.Awaitable\[rest_json.output.StreamingTraitsRequireLengthOutput\]\]\], typing.Callable\[\[rest_json.input.StreamingTraitsRequireLengthInput\], typing.Union\[rest_json.output.StreamingTraitsRequireLengthOutput, typing.Awaitable\[rest_json.output.StreamingTraitsRequireLengthOutput\]\]\]\]:
 3463   3673   
    /// :rtype None:
 3464   3674   
    #[pyo3(text_signature = "($self, func)")]
 3465   3675   
    pub fn streaming_traits_require_length(
 3466   3676   
        &mut self,
 3467   3677   
        py: ::pyo3::Python,
 3468   3678   
        func: ::pyo3::PyObject,
 3469   3679   
    ) -> ::pyo3::PyResult<()> {
 3470   3680   
        use ::aws_smithy_http_server_python::PyApp;
 3471   3681   
        self.register_operation(py, "streaming_traits_require_length", func)
 3472   3682   
    }
        3683  +
    /* PythonApplicationGenerator.kt:366 */
 3473   3684   
    /// Method to register `streaming_traits_with_media_type` Python implementation inside the handlers map.
 3474   3685   
    /// It can be used as a function decorator in Python.
 3475   3686   
    ///
 3476   3687   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.StreamingTraitsWithMediaTypeInput, Ctx\], typing.Union\[rest_json.output.StreamingTraitsWithMediaTypeOutput, typing.Awaitable\[rest_json.output.StreamingTraitsWithMediaTypeOutput\]\]\], typing.Callable\[\[rest_json.input.StreamingTraitsWithMediaTypeInput\], typing.Union\[rest_json.output.StreamingTraitsWithMediaTypeOutput, typing.Awaitable\[rest_json.output.StreamingTraitsWithMediaTypeOutput\]\]\]\]:
 3477   3688   
    /// :rtype None:
 3478   3689   
    #[pyo3(text_signature = "($self, func)")]
 3479   3690   
    pub fn streaming_traits_with_media_type(
 3480   3691   
        &mut self,
 3481   3692   
        py: ::pyo3::Python,
 3482   3693   
        func: ::pyo3::PyObject,
 3483   3694   
    ) -> ::pyo3::PyResult<()> {
 3484   3695   
        use ::aws_smithy_http_server_python::PyApp;
 3485   3696   
        self.register_operation(py, "streaming_traits_with_media_type", func)
 3486   3697   
    }
        3698  +
    /* PythonApplicationGenerator.kt:366 */
 3487   3699   
    /// Method to register `test_body_structure` Python implementation inside the handlers map.
 3488   3700   
    /// It can be used as a function decorator in Python.
 3489   3701   
    ///
 3490   3702   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.TestBodyStructureInput, Ctx\], typing.Union\[rest_json.output.TestBodyStructureOutput, typing.Awaitable\[rest_json.output.TestBodyStructureOutput\]\]\], typing.Callable\[\[rest_json.input.TestBodyStructureInput\], typing.Union\[rest_json.output.TestBodyStructureOutput, typing.Awaitable\[rest_json.output.TestBodyStructureOutput\]\]\]\]:
 3491   3703   
    /// :rtype None:
 3492   3704   
    #[pyo3(text_signature = "($self, func)")]
 3493   3705   
    pub fn test_body_structure(
 3494   3706   
        &mut self,
 3495   3707   
        py: ::pyo3::Python,
 3496   3708   
        func: ::pyo3::PyObject,
 3497   3709   
    ) -> ::pyo3::PyResult<()> {
 3498   3710   
        use ::aws_smithy_http_server_python::PyApp;
 3499   3711   
        self.register_operation(py, "test_body_structure", func)
 3500   3712   
    }
        3713  +
    /* PythonApplicationGenerator.kt:366 */
 3501   3714   
    /// Method to register `test_get_no_input_no_payload` Python implementation inside the handlers map.
 3502   3715   
    /// It can be used as a function decorator in Python.
 3503   3716   
    ///
 3504   3717   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.TestGetNoInputNoPayloadInput, Ctx\], typing.Union\[rest_json.output.TestGetNoInputNoPayloadOutput, typing.Awaitable\[rest_json.output.TestGetNoInputNoPayloadOutput\]\]\], typing.Callable\[\[rest_json.input.TestGetNoInputNoPayloadInput\], typing.Union\[rest_json.output.TestGetNoInputNoPayloadOutput, typing.Awaitable\[rest_json.output.TestGetNoInputNoPayloadOutput\]\]\]\]:
 3505   3718   
    /// :rtype None:
 3506   3719   
    #[pyo3(text_signature = "($self, func)")]
 3507   3720   
    pub fn test_get_no_input_no_payload(
 3508   3721   
        &mut self,
 3509   3722   
        py: ::pyo3::Python,
 3510   3723   
        func: ::pyo3::PyObject,
 3511   3724   
    ) -> ::pyo3::PyResult<()> {
 3512   3725   
        use ::aws_smithy_http_server_python::PyApp;
 3513   3726   
        self.register_operation(py, "test_get_no_input_no_payload", func)
 3514   3727   
    }
        3728  +
    /* PythonApplicationGenerator.kt:366 */
 3515   3729   
    /// Method to register `test_get_no_payload` Python implementation inside the handlers map.
 3516   3730   
    /// It can be used as a function decorator in Python.
 3517   3731   
    ///
 3518   3732   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.TestGetNoPayloadInput, Ctx\], typing.Union\[rest_json.output.TestGetNoPayloadOutput, typing.Awaitable\[rest_json.output.TestGetNoPayloadOutput\]\]\], typing.Callable\[\[rest_json.input.TestGetNoPayloadInput\], typing.Union\[rest_json.output.TestGetNoPayloadOutput, typing.Awaitable\[rest_json.output.TestGetNoPayloadOutput\]\]\]\]:
 3519   3733   
    /// :rtype None:
 3520   3734   
    #[pyo3(text_signature = "($self, func)")]
 3521   3735   
    pub fn test_get_no_payload(
 3522   3736   
        &mut self,
 3523   3737   
        py: ::pyo3::Python,
 3524   3738   
        func: ::pyo3::PyObject,
 3525   3739   
    ) -> ::pyo3::PyResult<()> {
 3526   3740   
        use ::aws_smithy_http_server_python::PyApp;
 3527   3741   
        self.register_operation(py, "test_get_no_payload", func)
 3528   3742   
    }
        3743  +
    /* PythonApplicationGenerator.kt:366 */
 3529   3744   
    /// Method to register `test_payload_blob` Python implementation inside the handlers map.
 3530   3745   
    /// It can be used as a function decorator in Python.
 3531   3746   
    ///
 3532   3747   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.TestPayloadBlobInput, Ctx\], typing.Union\[rest_json.output.TestPayloadBlobOutput, typing.Awaitable\[rest_json.output.TestPayloadBlobOutput\]\]\], typing.Callable\[\[rest_json.input.TestPayloadBlobInput\], typing.Union\[rest_json.output.TestPayloadBlobOutput, typing.Awaitable\[rest_json.output.TestPayloadBlobOutput\]\]\]\]:
 3533   3748   
    /// :rtype None:
 3534   3749   
    #[pyo3(text_signature = "($self, func)")]
 3535   3750   
    pub fn test_payload_blob(
 3536   3751   
        &mut self,
 3537   3752   
        py: ::pyo3::Python,
 3538   3753   
        func: ::pyo3::PyObject,
 3539   3754   
    ) -> ::pyo3::PyResult<()> {
 3540   3755   
        use ::aws_smithy_http_server_python::PyApp;
 3541   3756   
        self.register_operation(py, "test_payload_blob", func)
 3542   3757   
    }
        3758  +
    /* PythonApplicationGenerator.kt:366 */
 3543   3759   
    /// Method to register `test_payload_structure` Python implementation inside the handlers map.
 3544   3760   
    /// It can be used as a function decorator in Python.
 3545   3761   
    ///
 3546   3762   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.TestPayloadStructureInput, Ctx\], typing.Union\[rest_json.output.TestPayloadStructureOutput, typing.Awaitable\[rest_json.output.TestPayloadStructureOutput\]\]\], typing.Callable\[\[rest_json.input.TestPayloadStructureInput\], typing.Union\[rest_json.output.TestPayloadStructureOutput, typing.Awaitable\[rest_json.output.TestPayloadStructureOutput\]\]\]\]:
 3547   3763   
    /// :rtype None:
 3548   3764   
    #[pyo3(text_signature = "($self, func)")]
 3549   3765   
    pub fn test_payload_structure(
 3550   3766   
        &mut self,
 3551   3767   
        py: ::pyo3::Python,
 3552   3768   
        func: ::pyo3::PyObject,
 3553   3769   
    ) -> ::pyo3::PyResult<()> {
 3554   3770   
        use ::aws_smithy_http_server_python::PyApp;
 3555   3771   
        self.register_operation(py, "test_payload_structure", func)
 3556   3772   
    }
        3773  +
    /* PythonApplicationGenerator.kt:366 */
 3557   3774   
    /// Method to register `test_post_no_input_no_payload` Python implementation inside the handlers map.
 3558   3775   
    /// It can be used as a function decorator in Python.
 3559   3776   
    ///
 3560   3777   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.TestPostNoInputNoPayloadInput, Ctx\], typing.Union\[rest_json.output.TestPostNoInputNoPayloadOutput, typing.Awaitable\[rest_json.output.TestPostNoInputNoPayloadOutput\]\]\], typing.Callable\[\[rest_json.input.TestPostNoInputNoPayloadInput\], typing.Union\[rest_json.output.TestPostNoInputNoPayloadOutput, typing.Awaitable\[rest_json.output.TestPostNoInputNoPayloadOutput\]\]\]\]:
 3561   3778   
    /// :rtype None:
 3562   3779   
    #[pyo3(text_signature = "($self, func)")]
 3563   3780   
    pub fn test_post_no_input_no_payload(
 3564   3781   
        &mut self,
 3565   3782   
        py: ::pyo3::Python,
 3566   3783   
        func: ::pyo3::PyObject,
 3567   3784   
    ) -> ::pyo3::PyResult<()> {
 3568   3785   
        use ::aws_smithy_http_server_python::PyApp;
 3569   3786   
        self.register_operation(py, "test_post_no_input_no_payload", func)
 3570   3787   
    }
        3788  +
    /* PythonApplicationGenerator.kt:366 */
 3571   3789   
    /// Method to register `test_post_no_payload` Python implementation inside the handlers map.
 3572   3790   
    /// It can be used as a function decorator in Python.
 3573   3791   
    ///
 3574   3792   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.TestPostNoPayloadInput, Ctx\], typing.Union\[rest_json.output.TestPostNoPayloadOutput, typing.Awaitable\[rest_json.output.TestPostNoPayloadOutput\]\]\], typing.Callable\[\[rest_json.input.TestPostNoPayloadInput\], typing.Union\[rest_json.output.TestPostNoPayloadOutput, typing.Awaitable\[rest_json.output.TestPostNoPayloadOutput\]\]\]\]:
 3575   3793   
    /// :rtype None:
 3576   3794   
    #[pyo3(text_signature = "($self, func)")]
 3577   3795   
    pub fn test_post_no_payload(
 3578   3796   
        &mut self,
 3579   3797   
        py: ::pyo3::Python,
 3580   3798   
        func: ::pyo3::PyObject,
 3581   3799   
    ) -> ::pyo3::PyResult<()> {
 3582   3800   
        use ::aws_smithy_http_server_python::PyApp;
 3583   3801   
        self.register_operation(py, "test_post_no_payload", func)
 3584   3802   
    }
        3803  +
    /* PythonApplicationGenerator.kt:366 */
 3585   3804   
    /// Method to register `timestamp_format_headers` Python implementation inside the handlers map.
 3586   3805   
    /// It can be used as a function decorator in Python.
 3587   3806   
    ///
 3588   3807   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.TimestampFormatHeadersInput, Ctx\], typing.Union\[rest_json.output.TimestampFormatHeadersOutput, typing.Awaitable\[rest_json.output.TimestampFormatHeadersOutput\]\]\], typing.Callable\[\[rest_json.input.TimestampFormatHeadersInput\], typing.Union\[rest_json.output.TimestampFormatHeadersOutput, typing.Awaitable\[rest_json.output.TimestampFormatHeadersOutput\]\]\]\]:
 3589   3808   
    /// :rtype None:
 3590   3809   
    #[pyo3(text_signature = "($self, func)")]
 3591   3810   
    pub fn timestamp_format_headers(
 3592   3811   
        &mut self,
 3593   3812   
        py: ::pyo3::Python,
 3594   3813   
        func: ::pyo3::PyObject,
 3595   3814   
    ) -> ::pyo3::PyResult<()> {
 3596   3815   
        use ::aws_smithy_http_server_python::PyApp;
 3597   3816   
        self.register_operation(py, "timestamp_format_headers", func)
 3598   3817   
    }
        3818  +
    /* PythonApplicationGenerator.kt:366 */
 3599   3819   
    /// Method to register `unit_input_and_output` Python implementation inside the handlers map.
 3600   3820   
    /// It can be used as a function decorator in Python.
 3601   3821   
    ///
 3602   3822   
    /// :param func typing.Union\[typing.Callable\[\[rest_json.input.UnitInputAndOutputInput, Ctx\], typing.Union\[rest_json.output.UnitInputAndOutputOutput, typing.Awaitable\[rest_json.output.UnitInputAndOutputOutput\]\]\], typing.Callable\[\[rest_json.input.UnitInputAndOutputInput\], typing.Union\[rest_json.output.UnitInputAndOutputOutput, typing.Awaitable\[rest_json.output.UnitInputAndOutputOutput\]\]\]\]:
 3603   3823   
    /// :rtype None:
 3604   3824   
    #[pyo3(text_signature = "($self, func)")]
 3605   3825   
    pub fn unit_input_and_output(
 3606   3826   
        &mut self,
 3607   3827   
        py: ::pyo3::Python,
 3608   3828   
        func: ::pyo3::PyObject,
 3609   3829   
    ) -> ::pyo3::PyResult<()> {
 3610   3830   
        use ::aws_smithy_http_server_python::PyApp;
 3611   3831   
        self.register_operation(py, "unit_input_and_output", func)
 3612   3832   
    }
        3833  +
    /* PythonApplicationGenerator.kt:247 */
 3613   3834   
}

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

@@ -1,1 +31,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ServerServiceGenerator.kt:795 */
    2      3   
/// The service builder for [`RestJson`].
    3      4   
///
    4      5   
/// Constructed via [`RestJson::builder`].
    5      6   
pub struct RestJsonBuilder<Body, L, HttpPl, ModelPl> {
    6      7   
    all_query_string_types: Option<::aws_smithy_http_server::routing::Route<Body>>,
    7      8   
    constant_and_variable_query_string: Option<::aws_smithy_http_server::routing::Route<Body>>,
    8      9   
    constant_query_string: Option<::aws_smithy_http_server::routing::Route<Body>>,
    9     10   
    content_type_parameters: Option<::aws_smithy_http_server::routing::Route<Body>>,
   10     11   
    datetime_offsets: Option<::aws_smithy_http_server::routing::Route<Body>>,
   11     12   
    document_type: Option<::aws_smithy_http_server::routing::Route<Body>>,
@@ -20611,20612 +20670,20672 @@
20631  20632   
            "aws.protocoltests.restjson",
20632  20633   
            "RestJson",
20633  20634   
        );
20634  20635   
20635  20636   
    const VERSION: Option<&'static str> = Some("2019-12-16");
20636  20637   
20637  20638   
    type Protocol = ::aws_smithy_http_server::protocol::rest_json_1::RestJson1;
20638  20639   
20639  20640   
    type Operations = Operation;
20640  20641   
}
       20642  +
/* ServiceConfigGenerator.kt:178 */
20641  20643   
/// Configuration for the [`RestJson`]. This is the central place where to register and
20642  20644   
/// configure [`::tower::Layer`]s, HTTP plugins, and model plugins.
20643  20645   
///
20644  20646   
/// ```rust,no_run
20645  20647   
/// # use rest_json::RestJsonConfig;
20646  20648   
/// # use ::aws_smithy_http_server::plugin::IdentityPlugin;
20647  20649   
/// # use ::tower::layer::util::Identity;
20648  20650   
/// # let authentication_plugin = IdentityPlugin;
20649  20651   
/// # let authorization_plugin = IdentityPlugin;
20650  20652   
/// # let server_request_id_provider_layer = Identity::new();
@@ -20726,20728 +20785,20788 @@
20746  20748   
20747  20749   
    /// Build the configuration.
20748  20750   
    pub fn build(self) -> super::RestJsonConfig<L, H, M> {
20749  20751   
        super::RestJsonConfig {
20750  20752   
            layers: self.layers,
20751  20753   
            http_plugins: self.http_plugins,
20752  20754   
            model_plugins: self.model_plugins,
20753  20755   
        }
20754  20756   
    }
20755  20757   
}
       20758  +
/* ScopeMacroGenerator.kt:81 */
20756  20759   
/// A macro to help with scoping [plugins](crate::server::plugin) to a subset of all operations.
20757  20760   
///
20758  20761   
/// In contrast to [`crate::server::scope`](crate::server::scope), this macro has knowledge
20759  20762   
/// of the service and any operations _not_ specified will be placed in the opposing group.
20760  20763   
///
20761  20764   
/// # Example
20762  20765   
///
20763  20766   
/// ```rust
20764  20767   
/// scope! {
20765  20768   
///     /// Includes [`AllQueryStringTypes`], excluding all other operations.

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

@@ -1,1 +0,15 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* SmithyTypesPubUseExtra.kt:66 */
    2      3   
pub use ::aws_smithy_types::body::SdkBody;
    3      4   
pub use ::aws_smithy_types::byte_stream::error::Error as ByteStreamError;
    4      5   
pub use ::aws_smithy_types::byte_stream::AggregatedBytes;
    5         -
pub use ::aws_smithy_types::byte_stream::ByteStream;
           6  +
/* SmithyTypesPubUseExtra.kt:86 */ pub use ::aws_smithy_types::byte_stream::ByteStream;
    6      7   
#[cfg(feature = "rt-tokio")]
    7      8   
pub use ::aws_smithy_types::byte_stream::FsBuilder;
    8      9   
#[cfg(feature = "rt-tokio")]
    9     10   
pub use ::aws_smithy_types::byte_stream::Length;
   10     11   
pub use ::aws_smithy_types::date_time::Format as DateTimeFormat;
          12  +
/* ServerRequiredCustomizations.kt:69 */
   11     13   
pub use ::aws_smithy_types::error::display::DisplayErrorContext;
   12     14   
pub use ::aws_smithy_types::Blob;
   13         -
pub use ::aws_smithy_types::DateTime;
          15  +
/* SmithyTypesPubUseExtra.kt:69 */ pub use ::aws_smithy_types::DateTime;

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

@@ -1,1 +338,430 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
           3  +
/* UnconstrainedUnionGenerator.kt:121 */
    3      4   
impl crate::constrained::Constrained for crate::model::MyUnion {
    4      5   
    type Unconstrained = crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained;
    5      6   
}
    6      7   
    7      8   
impl From<crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained>
    8      9   
    for crate::constrained::MaybeConstrained<crate::model::MyUnion>
    9     10   
{
   10     11   
    fn from(value: crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained) -> Self {
   11     12   
        Self::Unconstrained(value)
   12     13   
    }
   13     14   
}
   14     15   
   15     16   
pub(crate) mod my_union_unconstrained {
   16     17   
          18  +
    /* UnconstrainedUnionGenerator.kt:82 */
   17     19   
    #[allow(clippy::enum_variant_names)]
   18     20   
    #[derive(Debug, Clone)]
   19     21   
    pub(crate) enum MyUnionUnconstrained {
          22  +
        /* UnconstrainedUnionGenerator.kt:95 */
   20     23   
        BlobValue(::aws_smithy_http_server_python::types::Blob),
   21         -
        BooleanValue(bool),
   22         -
        EnumValue(::std::string::String),
          24  +
        /* UnconstrainedUnionGenerator.kt:95 */ BooleanValue(bool),
          25  +
        /* UnconstrainedUnionGenerator.kt:95 */ EnumValue(::std::string::String),
          26  +
        /* UnconstrainedUnionGenerator.kt:95 */
   23     27   
        ListValue(::std::vec::Vec<::std::string::String>),
          28  +
        /* UnconstrainedUnionGenerator.kt:95 */
   24     29   
        MapValue(::std::collections::HashMap<::std::string::String, ::std::string::String>),
   25         -
        NumberValue(i32),
          30  +
        /* UnconstrainedUnionGenerator.kt:95 */ NumberValue(i32),
          31  +
        /* UnconstrainedUnionGenerator.kt:95 */
   26     32   
        RenamedStructureValue(crate::model::RenamedGreeting),
   27         -
        StringValue(::std::string::String),
          33  +
        /* UnconstrainedUnionGenerator.kt:95 */ StringValue(::std::string::String),
          34  +
        /* UnconstrainedUnionGenerator.kt:95 */
   28     35   
        StructureValue(crate::model::GreetingStruct),
          36  +
        /* UnconstrainedUnionGenerator.kt:95 */
   29     37   
        TimestampValue(::aws_smithy_http_server_python::types::DateTime),
          38  +
        /* UnconstrainedUnionGenerator.kt:82 */
   30     39   
    }
          40  +
    /* UnconstrainedUnionGenerator.kt:103 */
   31     41   
    impl ::std::convert::TryFrom<MyUnionUnconstrained> for crate::model::MyUnion {
   32     42   
        type Error = crate::model::my_union_internal::ConstraintViolation;
   33     43   
   34     44   
        fn try_from(value: MyUnionUnconstrained) -> ::std::result::Result<Self, Self::Error> {
   35     45   
            Ok(
   36     46   
        match value {
   37     47   
            crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained::BlobValue(unconstrained) => Self::BlobValue(
   38     48   
                unconstrained
   39     49   
            ),
   40     50   
            crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained::BooleanValue(unconstrained) => Self::BooleanValue(
   41     51   
                unconstrained
   42     52   
            ),
   43     53   
            crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained::EnumValue(unconstrained) => Self::EnumValue(
   44     54   
                unconstrained
   45     55   
                                        .try_into()
   46     56   
                                        
   47     57   
                                        
   48     58   
                                        .map_err(Self::Error::EnumValue)?
   49     59   
            ),
   50     60   
            crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained::ListValue(unconstrained) => Self::ListValue(
   51     61   
                unconstrained
   52     62   
            ),
   53     63   
            crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained::MapValue(unconstrained) => Self::MapValue(
   54     64   
                unconstrained
   55     65   
            ),
   56     66   
            crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained::NumberValue(unconstrained) => Self::NumberValue(
   57     67   
                unconstrained
   58     68   
            ),
   59     69   
            crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained::RenamedStructureValue(unconstrained) => Self::RenamedStructureValue(
   60     70   
                unconstrained
   61     71   
            ),
   62     72   
            crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained::StringValue(unconstrained) => Self::StringValue(
   63     73   
                unconstrained
   64     74   
            ),
   65     75   
            crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained::StructureValue(unconstrained) => Self::StructureValue(
   66     76   
                unconstrained
   67     77   
            ),
   68     78   
            crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained::TimestampValue(unconstrained) => Self::TimestampValue(
   69     79   
                unconstrained
   70     80   
            ),
   71     81   
        }
   72     82   
    )
   73     83   
        }
   74     84   
    }
          85  +
          86  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
   75     87   
}
   76     88   
pub(crate) mod sparse_set_map_unconstrained {
   77     89   
          90  +
    /* UnconstrainedMapGenerator.kt:79 */
   78     91   
    #[derive(Debug, Clone)]
   79     92   
    pub(crate) struct SparseSetMapUnconstrained(
   80     93   
        pub(crate)  std::collections::HashMap<
   81     94   
            ::std::string::String,
   82     95   
            ::std::option::Option<
   83     96   
                crate::unconstrained::string_set_unconstrained::StringSetUnconstrained,
   84     97   
            >,
   85     98   
        >,
   86     99   
    );
   87    100   
   88    101   
    impl From<SparseSetMapUnconstrained>
   89    102   
        for crate::constrained::MaybeConstrained<
   90    103   
            crate::constrained::sparse_set_map_constrained::SparseSetMapConstrained,
   91    104   
        >
   92    105   
    {
   93    106   
        fn from(value: SparseSetMapUnconstrained) -> Self {
   94    107   
            Self::Unconstrained(value)
   95    108   
        }
   96    109   
    }
         110  +
    /* UnconstrainedMapGenerator.kt:101 */
   97    111   
    impl std::convert::TryFrom<SparseSetMapUnconstrained>
   98    112   
        for crate::constrained::sparse_set_map_constrained::SparseSetMapConstrained
   99    113   
    {
         114  +
        /* UnconstrainedMapGenerator.kt:102 */
  100    115   
        type Error = crate::model::sparse_set_map_internal::ConstraintViolation;
         116  +
        /* UnconstrainedMapGenerator.kt:104 */
  101    117   
        fn try_from(value: SparseSetMapUnconstrained) -> std::result::Result<Self, Self::Error> {
         118  +
            /* UnconstrainedMapGenerator.kt:186 */
  102    119   
            let res: ::std::result::Result<
  103    120   
                ::std::collections::HashMap<
  104    121   
                    ::std::string::String,
  105    122   
                    ::std::option::Option<crate::model::StringSet>,
  106    123   
                >,
  107    124   
                Self::Error,
  108    125   
            > = value
  109    126   
                .0
  110    127   
                .into_iter()
  111    128   
                .map(|(k, v)| match v {
  112    129   
                    None => Ok((k, None)),
  113    130   
                    Some(v) => match crate::model::StringSet::try_from(v) {
  114    131   
                        Ok(v) => Ok((k, Some(v))),
  115    132   
                        Err(inner_constraint_violation) => {
  116    133   
                            Err(Self::Error::Value(k, inner_constraint_violation))
  117    134   
                        }
  118    135   
                    },
  119    136   
                })
  120    137   
                .collect();
  121    138   
            let hm = res?;
         139  +
            /* UnconstrainedMapGenerator.kt:247 */
  122    140   
            Ok(Self(hm))
         141  +
            /* UnconstrainedMapGenerator.kt:104 */
  123    142   
        }
         143  +
        /* UnconstrainedMapGenerator.kt:101 */
  124    144   
    }
         145  +
         146  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  125    147   
}
  126    148   
pub(crate) mod string_set_unconstrained {
  127    149   
         150  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  128    151   
    #[derive(Debug, Clone)]
  129    152   
    pub(crate) struct StringSetUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
  130    153   
  131    154   
    impl From<StringSetUnconstrained>
  132    155   
        for crate::constrained::MaybeConstrained<crate::model::StringSet>
  133    156   
    {
  134    157   
        fn from(value: StringSetUnconstrained) -> Self {
  135    158   
            Self::Unconstrained(value)
  136    159   
        }
  137    160   
    }
         161  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  138    162   
    impl std::convert::TryFrom<StringSetUnconstrained> for crate::model::StringSet {
         163  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  139    164   
        type Error = crate::model::string_set_internal::ConstraintViolation;
         165  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  140    166   
        fn try_from(value: StringSetUnconstrained) -> std::result::Result<Self, Self::Error> {
         167  +
            /* UnconstrainedCollectionGenerator.kt:185 */
  141    168   
            let inner = value.0;
         169  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  142    170   
            Self::try_from(inner)
         171  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  143    172   
        }
         173  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  144    174   
    }
         175  +
         176  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  145    177   
}
  146    178   
pub(crate) mod dense_set_map_unconstrained {
  147    179   
         180  +
    /* UnconstrainedMapGenerator.kt:79 */
  148    181   
    #[derive(Debug, Clone)]
  149    182   
    pub(crate) struct DenseSetMapUnconstrained(
  150    183   
        pub(crate)  std::collections::HashMap<
  151    184   
            ::std::string::String,
  152    185   
            crate::unconstrained::string_set_unconstrained::StringSetUnconstrained,
  153    186   
        >,
  154    187   
    );
  155    188   
  156    189   
    impl From<DenseSetMapUnconstrained>
  157    190   
        for crate::constrained::MaybeConstrained<
  158    191   
            crate::constrained::dense_set_map_constrained::DenseSetMapConstrained,
  159    192   
        >
  160    193   
    {
  161    194   
        fn from(value: DenseSetMapUnconstrained) -> Self {
  162    195   
            Self::Unconstrained(value)
  163    196   
        }
  164    197   
    }
         198  +
    /* UnconstrainedMapGenerator.kt:101 */
  165    199   
    impl std::convert::TryFrom<DenseSetMapUnconstrained>
  166    200   
        for crate::constrained::dense_set_map_constrained::DenseSetMapConstrained
  167    201   
    {
         202  +
        /* UnconstrainedMapGenerator.kt:102 */
  168    203   
        type Error = crate::model::dense_set_map_internal::ConstraintViolation;
         204  +
        /* UnconstrainedMapGenerator.kt:104 */
  169    205   
        fn try_from(value: DenseSetMapUnconstrained) -> std::result::Result<Self, Self::Error> {
         206  +
            /* UnconstrainedMapGenerator.kt:186 */
  170    207   
            let res: ::std::result::Result<
  171    208   
                ::std::collections::HashMap<::std::string::String, crate::model::StringSet>,
  172    209   
                Self::Error,
  173    210   
            > = value
  174    211   
                .0
  175    212   
                .into_iter()
  176    213   
                .map(|(k, v)| match crate::model::StringSet::try_from(v) {
  177    214   
                    Ok(v) => Ok((k, v)),
  178    215   
                    Err(inner_constraint_violation) => {
  179    216   
                        Err(Self::Error::Value(k, inner_constraint_violation))
  180    217   
                    }
  181    218   
                })
  182    219   
                .collect();
  183    220   
            let hm = res?;
         221  +
            /* UnconstrainedMapGenerator.kt:247 */
  184    222   
            Ok(Self(hm))
         223  +
            /* UnconstrainedMapGenerator.kt:104 */
  185    224   
        }
         225  +
        /* UnconstrainedMapGenerator.kt:101 */
  186    226   
    }
         227  +
         228  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  187    229   
}
  188    230   
pub(crate) mod foo_enum_list_unconstrained {
  189    231   
         232  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  190    233   
    #[derive(Debug, Clone)]
  191    234   
    pub(crate) struct FooEnumListUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
  192    235   
  193    236   
    impl From<FooEnumListUnconstrained>
  194    237   
        for crate::constrained::MaybeConstrained<
  195    238   
            crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
  196    239   
        >
  197    240   
    {
  198    241   
        fn from(value: FooEnumListUnconstrained) -> Self {
  199    242   
            Self::Unconstrained(value)
  200    243   
        }
  201    244   
    }
         245  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  202    246   
    impl std::convert::TryFrom<FooEnumListUnconstrained>
  203    247   
        for crate::constrained::foo_enum_list_constrained::FooEnumListConstrained
  204    248   
    {
         249  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  205    250   
        type Error = crate::model::foo_enum_list_internal::ConstraintViolation;
         251  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  206    252   
        fn try_from(value: FooEnumListUnconstrained) -> std::result::Result<Self, Self::Error> {
         253  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  207    254   
            let res: ::std::result::Result<
  208    255   
                ::std::vec::Vec<crate::model::FooEnum>,
  209    256   
                (usize, crate::model::foo_enum_internal::ConstraintViolation),
  210    257   
            > = value
  211    258   
                .0
  212    259   
                .into_iter()
  213    260   
                .enumerate()
  214    261   
                .map(|(idx, inner)| {
  215    262   
                    inner
  216    263   
                        .try_into()
  217    264   
                        .map_err(|inner_violation| (idx, inner_violation))
  218    265   
                })
  219    266   
                .collect();
  220    267   
            let inner =
  221    268   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         269  +
            /* UnconstrainedCollectionGenerator.kt:191 */
  222    270   
            Ok(Self(inner))
         271  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  223    272   
        }
         273  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  224    274   
    }
         275  +
         276  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  225    277   
}
  226    278   
pub(crate) mod integer_enum_set_unconstrained {
  227    279   
         280  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  228    281   
    #[derive(Debug, Clone)]
  229    282   
    pub(crate) struct IntegerEnumSetUnconstrained(pub(crate) std::vec::Vec<i32>);
  230    283   
  231    284   
    impl From<IntegerEnumSetUnconstrained>
  232    285   
        for crate::constrained::MaybeConstrained<crate::model::IntegerEnumSet>
  233    286   
    {
  234    287   
        fn from(value: IntegerEnumSetUnconstrained) -> Self {
  235    288   
            Self::Unconstrained(value)
  236    289   
        }
  237    290   
    }
         291  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  238    292   
    impl std::convert::TryFrom<IntegerEnumSetUnconstrained> for crate::model::IntegerEnumSet {
         293  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  239    294   
        type Error = crate::model::integer_enum_set_internal::ConstraintViolation;
         295  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  240    296   
        fn try_from(value: IntegerEnumSetUnconstrained) -> std::result::Result<Self, Self::Error> {
         297  +
            /* UnconstrainedCollectionGenerator.kt:185 */
  241    298   
            let inner = value.0;
         299  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  242    300   
            Self::try_from(inner)
         301  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  243    302   
        }
         303  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  244    304   
    }
         305  +
         306  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  245    307   
}
  246    308   
pub(crate) mod foo_enum_map_unconstrained {
  247    309   
         310  +
    /* UnconstrainedMapGenerator.kt:79 */
  248    311   
    #[derive(Debug, Clone)]
  249    312   
    pub(crate) struct FooEnumMapUnconstrained(
  250    313   
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
  251    314   
    );
  252    315   
  253    316   
    impl From<FooEnumMapUnconstrained>
  254    317   
        for crate::constrained::MaybeConstrained<
  255    318   
            crate::constrained::foo_enum_map_constrained::FooEnumMapConstrained,
  256    319   
        >
  257    320   
    {
  258    321   
        fn from(value: FooEnumMapUnconstrained) -> Self {
  259    322   
            Self::Unconstrained(value)
  260    323   
        }
  261    324   
    }
         325  +
    /* UnconstrainedMapGenerator.kt:101 */
  262    326   
    impl std::convert::TryFrom<FooEnumMapUnconstrained>
  263    327   
        for crate::constrained::foo_enum_map_constrained::FooEnumMapConstrained
  264    328   
    {
         329  +
        /* UnconstrainedMapGenerator.kt:102 */
  265    330   
        type Error = crate::model::foo_enum_map_internal::ConstraintViolation;
         331  +
        /* UnconstrainedMapGenerator.kt:104 */
  266    332   
        fn try_from(value: FooEnumMapUnconstrained) -> std::result::Result<Self, Self::Error> {
         333  +
            /* UnconstrainedMapGenerator.kt:186 */
  267    334   
            let res: ::std::result::Result<
  268    335   
                ::std::collections::HashMap<::std::string::String, crate::model::FooEnum>,
  269    336   
                Self::Error,
  270    337   
            > = value
  271    338   
                .0
  272    339   
                .into_iter()
  273    340   
                .map(|(k, v)| match crate::model::FooEnum::try_from(v) {
  274    341   
                    Ok(v) => Ok((k, v)),
  275    342   
                    Err(inner_constraint_violation) => {
  276    343   
                        Err(Self::Error::Value(k, inner_constraint_violation))
  277    344   
                    }
  278    345   
                })
  279    346   
                .collect();
  280    347   
            let hm = res?;
         348  +
            /* UnconstrainedMapGenerator.kt:247 */
  281    349   
            Ok(Self(hm))
         350  +
            /* UnconstrainedMapGenerator.kt:104 */
  282    351   
        }
         352  +
        /* UnconstrainedMapGenerator.kt:101 */
  283    353   
    }
         354  +
         355  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  284    356   
}
  285    357   
pub(crate) mod foo_enum_set_unconstrained {
  286    358   
         359  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  287    360   
    #[derive(Debug, Clone)]
  288    361   
    pub(crate) struct FooEnumSetUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
  289    362   
  290    363   
    impl From<FooEnumSetUnconstrained>
  291    364   
        for crate::constrained::MaybeConstrained<crate::model::FooEnumSet>
  292    365   
    {
  293    366   
        fn from(value: FooEnumSetUnconstrained) -> Self {
  294    367   
            Self::Unconstrained(value)
  295    368   
        }
  296    369   
    }
         370  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  297    371   
    impl std::convert::TryFrom<FooEnumSetUnconstrained> for crate::model::FooEnumSet {
         372  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  298    373   
        type Error = crate::model::foo_enum_set_internal::ConstraintViolation;
         374  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  299    375   
        fn try_from(value: FooEnumSetUnconstrained) -> std::result::Result<Self, Self::Error> {
         376  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  300    377   
            let res: ::std::result::Result<
  301    378   
                ::std::vec::Vec<crate::model::FooEnum>,
  302    379   
                (usize, crate::model::foo_enum_internal::ConstraintViolation),
  303    380   
            > = value
  304    381   
                .0
  305    382   
                .into_iter()
  306    383   
                .enumerate()
  307    384   
                .map(|(idx, inner)| {
  308    385   
                    inner
  309    386   
                        .try_into()
  310    387   
                        .map_err(|inner_violation| (idx, inner_violation))
  311    388   
                })
  312    389   
                .collect();
  313    390   
            let inner =
  314    391   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         392  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  315    393   
            Self::try_from(inner)
         394  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  316    395   
        }
         396  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  317    397   
    }
         398  +
         399  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  318    400   
}
  319    401   
pub(crate) mod integer_set_unconstrained {
  320    402   
         403  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  321    404   
    #[derive(Debug, Clone)]
  322    405   
    pub(crate) struct IntegerSetUnconstrained(pub(crate) std::vec::Vec<i32>);
  323    406   
  324    407   
    impl From<IntegerSetUnconstrained>
  325    408   
        for crate::constrained::MaybeConstrained<crate::model::IntegerSet>
  326    409   
    {
  327    410   
        fn from(value: IntegerSetUnconstrained) -> Self {
  328    411   
            Self::Unconstrained(value)
  329    412   
        }
  330    413   
    }
         414  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  331    415   
    impl std::convert::TryFrom<IntegerSetUnconstrained> for crate::model::IntegerSet {
         416  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  332    417   
        type Error = crate::model::integer_set_internal::ConstraintViolation;
         418  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  333    419   
        fn try_from(value: IntegerSetUnconstrained) -> std::result::Result<Self, Self::Error> {
         420  +
            /* UnconstrainedCollectionGenerator.kt:185 */
  334    421   
            let inner = value.0;
         422  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  335    423   
            Self::try_from(inner)
         424  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  336    425   
        }
         426  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  337    427   
    }
         428  +
         429  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  338    430   
}

tmp-codegen-diff/codegen-server-test-python/rest_json_extras/rust-server-codegen-python/Cargo.toml

@@ -12,12 +64,64 @@
   32     32   
version = "0.3"
   33     33   
[dependencies.nom]
   34     34   
version = "7"
   35     35   
[dependencies.parking_lot]
   36     36   
version = "0.12"
   37     37   
[dependencies.percent-encoding]
   38     38   
version = "2.0.0"
   39     39   
[dependencies.pin-project-lite]
   40     40   
version = "0.2"
   41     41   
[dependencies.pyo3]
   42         -
version = "0.18"
          42  +
version = "0.20"
   43     43   
[dependencies.pyo3-asyncio]
   44         -
version = "0.18"
          44  +
version = "0.20"
   45     45   
features = ["attributes", "tokio-runtime"]
   46     46   
[dependencies.tower]
   47     47   
version = "0.4"
   48     48   
[dependencies.tracing]
   49     49   
version = "0.1"
   50     50   
[dev-dependencies.hyper]
   51     51   
version = "0.14.12"
   52     52   
[dev-dependencies.tokio]
   53     53   
version = "1.23.1"
   54     54   
[features]

tmp-codegen-diff/codegen-server-test-python/rest_json_extras/rust-server-codegen-python/python/rest_json_extras/error/__init__.pyi

@@ -1,1 +40,40 @@
   15     15   
   16     16   
class InternalServerError(Exception):
   17     17   
    message: str
   18     18   
   19     19   
    def __init__(self, message: str) -> None:
   20     20   
        ...
   21     21   
   22     22   
   23     23   
class ValidationException(Exception):
   24     24   
    """
   25         -
    A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
          25  +
    /* StructureGenerator.kt:197 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
   26     26   
    """
   27     27   
   28     28   
    field_list: typing.Optional[typing.List[rest_json_extras.model.ValidationExceptionField]]
   29     29   
    """
   30         -
    A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
          30  +
    /* StructureGenerator.kt:231 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
   31     31   
    """
   32     32   
   33     33   
    message: str
   34     34   
    """
   35         -
    A summary of the validation failure.
          35  +
    /* StructureGenerator.kt:231 */A summary of the validation failure.
   36     36   
    """
   37     37   
   38     38   
    def __init__(self, message: str, field_list: typing.Optional[typing.List[rest_json_extras.model.ValidationExceptionField]] = ...) -> None:
   39     39   
        ...
   40     40   

tmp-codegen-diff/codegen-server-test-python/rest_json_extras/rust-server-codegen-python/python/rest_json_extras/model/__init__.pyi

@@ -19,19 +64,64 @@
   39     39   
   40     40   
class StringEnum:
   41     41   
    V: StringEnum
   42     42   
   43     43   
    name: typing.Any
   44     44   
   45     45   
    value: typing.Any
   46     46   
   47     47   
class ValidationExceptionField:
   48     48   
    """
   49         -
    Describes one specific validation failure for an input member.
          49  +
    /* StructureGenerator.kt:197 */Describes one specific validation failure for an input member.
   50     50   
    """
   51     51   
   52     52   
    message: str
   53     53   
    """
   54         -
    A detailed description of the validation failure.
          54  +
    /* StructureGenerator.kt:231 */A detailed description of the validation failure.
   55     55   
    """
   56     56   
   57     57   
    path: str
   58     58   
    """
   59         -
    A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
          59  +
    /* StructureGenerator.kt:231 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
   60     60   
    """
   61     61   
   62     62   
    def __init__(self, path: str, message: str) -> None:
   63     63   
        ...
   64     64   

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

@@ -1,1 +37,45 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
    3      3   
pub(crate) mod map_with_enum_key_constrained {
    4      4   
           5  +
    /* PubCrateConstrainedMapGenerator.kt:80 */
    5      6   
    #[derive(Debug, Clone)]
    6      7   
    pub(crate) struct MapWithEnumKeyConstrained(
    7      8   
        pub(crate) std::collections::HashMap<crate::model::StringEnum, ::std::string::String>,
    8      9   
    );
    9     10   
   10     11   
    impl crate::constrained::Constrained for MapWithEnumKeyConstrained {
   11     12   
        type Unconstrained =
   12     13   
            crate::unconstrained::map_with_enum_key_unconstrained::MapWithEnumKeyUnconstrained;
   13     14   
    }
          15  +
    /* PubCrateConstrainedMapGenerator.kt:127 */
   14     16   
    impl ::std::convert::From<MapWithEnumKeyConstrained>
   15     17   
        for ::std::collections::HashMap<crate::model::StringEnum, ::std::string::String>
   16     18   
    {
          19  +
        /* PubCrateConstrainedMapGenerator.kt:128 */
   17     20   
        fn from(v: MapWithEnumKeyConstrained) -> Self {
          21  +
            /* PubCrateConstrainedMapGenerator.kt:144 */
   18     22   
            v.0
          23  +
            /* PubCrateConstrainedMapGenerator.kt:128 */
   19     24   
        }
          25  +
        /* PubCrateConstrainedMapGenerator.kt:127 */
   20     26   
    }
          27  +
          28  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
   21     29   
}
   22     30   
   23     31   
/*
   24     32   
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
   25     33   
 * SPDX-License-Identifier: Apache-2.0
   26     34   
 */
   27     35   
   28     36   
pub(crate) trait Constrained {
   29     37   
    type Unconstrained;
   30     38   
}

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

@@ -1,1 +1274,2522 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* RustType.kt:516 */
    2      3   
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
           4  +
/* PythonServerStructureGenerator.kt:63 */
    3      5   
/// :rtype None:
           6  +
/* StructureGenerator.kt:197 */
    4      7   
#[allow(missing_docs)] // documentation missing in model
           8  +
/* RustType.kt:516 */
    5      9   
#[derive(
    6     10   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
    7     11   
)]
    8         -
pub struct ExtraError {}
          12  +
pub /* StructureGenerator.kt:201 */ struct ExtraError {/* StructureGenerator.kt:201 */}
          13  +
/* RustType.kt:516 */
    9     14   
#[allow(clippy::new_without_default)]
          15  +
/* RustType.kt:516 */
   10     16   
#[allow(clippy::too_many_arguments)]
          17  +
/* RustType.kt:516 */
   11     18   
#[::pyo3::pymethods]
          19  +
/* PythonServerStructureGenerator.kt:88 */
   12     20   
impl ExtraError {
   13     21   
    #[new]
   14     22   
    pub fn new() -> Self {
   15     23   
        Self {}
   16     24   
    }
   17     25   
    fn __repr__(&self) -> String {
   18     26   
        format!("{self:?}")
   19     27   
    }
   20     28   
    fn __str__(&self) -> String {
   21     29   
        format!("{self:?}")
   22     30   
    }
   23     31   
}
          32  +
/* ErrorImplGenerator.kt:99 */
   24     33   
impl ExtraError {
          34  +
    /* ErrorImplGenerator.kt:141 */
   25     35   
    #[doc(hidden)]
   26     36   
    /// Returns the error name.
   27     37   
    pub fn name(&self) -> &'static str {
   28     38   
        "ExtraError"
   29     39   
    }
          40  +
    /* ErrorImplGenerator.kt:99 */
   30     41   
}
          42  +
/* ErrorImplGenerator.kt:153 */
   31     43   
impl ::std::fmt::Display for ExtraError {
          44  +
    /* ErrorImplGenerator.kt:154 */
   32     45   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          46  +
        /* ErrorImplGenerator.kt:161 */
   33     47   
        ::std::write!(f, "ExtraError")?;
          48  +
        /* ErrorImplGenerator.kt:171 */
   34     49   
        Ok(())
          50  +
        /* ErrorImplGenerator.kt:154 */
   35     51   
    }
          52  +
    /* ErrorImplGenerator.kt:153 */
   36     53   
}
          54  +
/* ErrorImplGenerator.kt:175 */
   37     55   
impl ::std::error::Error for ExtraError {}
          56  +
/* ServerCodegenVisitor.kt:370 */
   38     57   
impl ExtraError {
   39         -
    /// Creates a new builder-style object to manufacture [`ExtraError`](crate::error::ExtraError).
          58  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ExtraError`](crate::error::ExtraError).
          59  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
   40     60   
    pub fn builder() -> crate::error::extra_error::Builder {
          61  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
   41     62   
        crate::error::extra_error::Builder::default()
          63  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
   42     64   
    }
          65  +
    /* ServerCodegenVisitor.kt:370 */
   43     66   
}
   44     67   
          68  +
/* ServerOperationErrorGenerator.kt:63 */
   45     69   
/// Error type for the `QueryPrecedence` operation.
          70  +
/* ServerOperationErrorGenerator.kt:64 */
   46     71   
/// Each variant represents an error that can occur for the `QueryPrecedence` operation.
          72  +
/* RustType.kt:516 */
   47     73   
#[derive(::std::fmt::Debug)]
   48         -
pub enum QueryPrecedenceError {
          74  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum QueryPrecedenceError {
          75  +
    /* ServerOperationErrorGenerator.kt:68 */
   49     76   
    #[allow(missing_docs)] // documentation missing in model
          77  +
    /* ServerOperationErrorGenerator.kt:71 */
   50     78   
    ExtraError(crate::error::ExtraError),
          79  +
    /* ServerOperationErrorGenerator.kt:68 */
   51     80   
    #[allow(missing_docs)] // documentation missing in model
          81  +
    /* ServerOperationErrorGenerator.kt:71 */
   52     82   
    InternalServerError(crate::error::InternalServerError),
          83  +
    /* ServerOperationErrorGenerator.kt:66 */
   53     84   
}
          85  +
/* ServerOperationErrorGenerator.kt:75 */
   54     86   
impl ::std::fmt::Display for QueryPrecedenceError {
          87  +
    /* ServerOperationErrorGenerator.kt:76 */
   55     88   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          89  +
        /* ServerOperationErrorGenerator.kt:139 */
   56     90   
        match &self {
   57         -
            QueryPrecedenceError::ExtraError(_inner) => _inner.fmt(f),
   58         -
            QueryPrecedenceError::InternalServerError(_inner) => _inner.fmt(f),
          91  +
            /* ServerOperationErrorGenerator.kt:142 */
          92  +
            QueryPrecedenceError::ExtraError(_inner) =>
          93  +
            /* ServerOperationErrorGenerator.kt:78 */
          94  +
            {
          95  +
                _inner.fmt(f)
          96  +
            }
          97  +
            ,
          98  +
            /* ServerOperationErrorGenerator.kt:142 */
          99  +
            QueryPrecedenceError::InternalServerError(_inner) =>
         100  +
            /* ServerOperationErrorGenerator.kt:78 */
         101  +
            {
         102  +
                _inner.fmt(f)
   59    103   
            }
         104  +
            /* ServerOperationErrorGenerator.kt:139 */
   60    105   
        }
         106  +
        /* ServerOperationErrorGenerator.kt:76 */
         107  +
    }
         108  +
    /* ServerOperationErrorGenerator.kt:75 */
   61    109   
}
         110  +
/* ServerOperationErrorGenerator.kt:83 */
   62    111   
impl QueryPrecedenceError {
         112  +
    /* ServerOperationErrorGenerator.kt:87 */
   63    113   
    /// Returns `true` if the error kind is `QueryPrecedenceError::ExtraError`.
         114  +
    /* ServerOperationErrorGenerator.kt:88 */
   64    115   
    pub fn is_extra_error(&self) -> bool {
         116  +
        /* ServerOperationErrorGenerator.kt:89 */
   65    117   
        matches!(&self, QueryPrecedenceError::ExtraError(_))
         118  +
        /* ServerOperationErrorGenerator.kt:88 */
   66    119   
    }
         120  +
    /* ServerOperationErrorGenerator.kt:87 */
   67    121   
    /// Returns `true` if the error kind is `QueryPrecedenceError::InternalServerError`.
         122  +
    /* ServerOperationErrorGenerator.kt:88 */
   68    123   
    pub fn is_internal_server_error(&self) -> bool {
         124  +
        /* ServerOperationErrorGenerator.kt:89 */
   69    125   
        matches!(&self, QueryPrecedenceError::InternalServerError(_))
         126  +
        /* ServerOperationErrorGenerator.kt:88 */
   70    127   
    }
         128  +
    /* ServerOperationErrorGenerator.kt:92 */
   71    129   
    /// Returns the error name string by matching the correct variant.
         130  +
    /* ServerOperationErrorGenerator.kt:93 */
   72    131   
    pub fn name(&self) -> &'static str {
         132  +
        /* ServerOperationErrorGenerator.kt:139 */
   73    133   
        match &self {
   74         -
            QueryPrecedenceError::ExtraError(_inner) => _inner.name(),
   75         -
            QueryPrecedenceError::InternalServerError(_inner) => _inner.name(),
         134  +
            /* ServerOperationErrorGenerator.kt:142 */
         135  +
            QueryPrecedenceError::ExtraError(_inner) =>
         136  +
            /* ServerOperationErrorGenerator.kt:95 */
         137  +
            {
         138  +
                _inner.name()
         139  +
            }
         140  +
            ,
         141  +
            /* ServerOperationErrorGenerator.kt:142 */
         142  +
            QueryPrecedenceError::InternalServerError(_inner) =>
         143  +
            /* ServerOperationErrorGenerator.kt:95 */
         144  +
            {
         145  +
                _inner.name()
         146  +
            }
         147  +
            /* ServerOperationErrorGenerator.kt:139 */
   76    148   
        }
         149  +
        /* ServerOperationErrorGenerator.kt:93 */
   77    150   
    }
         151  +
    /* ServerOperationErrorGenerator.kt:83 */
   78    152   
}
         153  +
/* ServerOperationErrorGenerator.kt:100 */
   79    154   
impl ::std::error::Error for QueryPrecedenceError {
         155  +
    /* ServerOperationErrorGenerator.kt:101 */
   80    156   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         157  +
        /* ServerOperationErrorGenerator.kt:139 */
   81    158   
        match &self {
   82         -
            QueryPrecedenceError::ExtraError(_inner) => Some(_inner),
   83         -
            QueryPrecedenceError::InternalServerError(_inner) => Some(_inner),
         159  +
            /* ServerOperationErrorGenerator.kt:142 */
         160  +
            QueryPrecedenceError::ExtraError(_inner) =>
         161  +
            /* ServerOperationErrorGenerator.kt:103 */
         162  +
            {
         163  +
                Some(_inner)
         164  +
            }
         165  +
            ,
         166  +
            /* ServerOperationErrorGenerator.kt:142 */
         167  +
            QueryPrecedenceError::InternalServerError(_inner) =>
         168  +
            /* ServerOperationErrorGenerator.kt:103 */
         169  +
            {
         170  +
                Some(_inner)
         171  +
            }
         172  +
            /* ServerOperationErrorGenerator.kt:139 */
   84    173   
        }
         174  +
        /* ServerOperationErrorGenerator.kt:101 */
   85    175   
    }
         176  +
    /* ServerOperationErrorGenerator.kt:100 */
   86    177   
}
         178  +
/* ServerOperationErrorGenerator.kt:110 */
   87    179   
impl ::std::convert::From<crate::error::ExtraError> for crate::error::QueryPrecedenceError {
         180  +
    /* ServerOperationErrorGenerator.kt:111 */
   88    181   
    fn from(variant: crate::error::ExtraError) -> crate::error::QueryPrecedenceError {
         182  +
        /* ServerOperationErrorGenerator.kt:112 */
   89    183   
        Self::ExtraError(variant)
         184  +
        /* ServerOperationErrorGenerator.kt:111 */
   90    185   
    }
         186  +
    /* ServerOperationErrorGenerator.kt:110 */
   91    187   
}
         188  +
/* ServerOperationErrorGenerator.kt:110 */
   92    189   
impl ::std::convert::From<crate::error::InternalServerError>
   93    190   
    for crate::error::QueryPrecedenceError
   94    191   
{
         192  +
    /* ServerOperationErrorGenerator.kt:111 */
   95    193   
    fn from(variant: crate::error::InternalServerError) -> crate::error::QueryPrecedenceError {
         194  +
        /* ServerOperationErrorGenerator.kt:112 */
   96    195   
        Self::InternalServerError(variant)
         196  +
        /* ServerOperationErrorGenerator.kt:111 */
   97    197   
    }
         198  +
    /* ServerOperationErrorGenerator.kt:110 */
   98    199   
}
   99    200   
         201  +
/* PythonServerOperationErrorGenerator.kt:38 */
  100    202   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::QueryPrecedenceError {
  101    203   
    fn from(variant: ::pyo3::PyErr) -> crate::error::QueryPrecedenceError {
  102    204   
        ::pyo3::Python::with_gil(|py| {
  103    205   
            let error = variant.value(py);
  104    206   
            if let Ok(error) = error.extract::<crate::error::ExtraError>() {
  105    207   
                return error.into();
  106    208   
            }
  107    209   
            crate::error::InternalServerError {
  108    210   
                message: error.to_string(),
  109    211   
            }
  110    212   
            .into()
  111    213   
        })
  112    214   
    }
  113    215   
}
  114    216   
         217  +
/* RustType.kt:516 */
  115    218   
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
         219  +
/* PythonServerStructureGenerator.kt:63 */
  116    220   
/// :param message str:
  117    221   
/// :rtype None:
         222  +
/* StructureGenerator.kt:197 */
  118    223   
#[allow(missing_docs)] // documentation missing in model
         224  +
/* RustType.kt:516 */
  119    225   
#[derive(
  120    226   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  121    227   
)]
  122         -
pub struct InternalServerError {
         228  +
pub /* StructureGenerator.kt:201 */ struct InternalServerError {
         229  +
    /* RustType.kt:516 */
  123    230   
    #[pyo3(get, set)]
         231  +
    /* PythonServerStructureGenerator.kt:80 */
  124    232   
    /// :type str:
         233  +
    /* StructureGenerator.kt:231 */
  125    234   
    #[allow(missing_docs)] // documentation missing in model
  126    235   
    pub message: ::std::string::String,
         236  +
    /* StructureGenerator.kt:201 */
  127    237   
}
         238  +
/* RustType.kt:516 */
  128    239   
#[allow(clippy::new_without_default)]
         240  +
/* RustType.kt:516 */
  129    241   
#[allow(clippy::too_many_arguments)]
         242  +
/* RustType.kt:516 */
  130    243   
#[::pyo3::pymethods]
         244  +
/* PythonServerStructureGenerator.kt:88 */
  131    245   
impl InternalServerError {
  132    246   
    #[new]
  133    247   
    pub fn new(message: ::std::string::String) -> Self {
  134    248   
        Self { message }
  135    249   
    }
  136    250   
    fn __repr__(&self) -> String {
  137    251   
        format!("{self:?}")
  138    252   
    }
  139    253   
    fn __str__(&self) -> String {
  140    254   
        format!("{self:?}")
  141    255   
    }
  142    256   
}
         257  +
/* ErrorImplGenerator.kt:99 */
  143    258   
impl InternalServerError {
         259  +
    /* ErrorImplGenerator.kt:128 */
  144    260   
    /// Returns the error message.
  145    261   
    pub fn message(&self) -> &str {
  146    262   
        &self.message
  147    263   
    }
         264  +
    /* ErrorImplGenerator.kt:141 */
  148    265   
    #[doc(hidden)]
  149    266   
    /// Returns the error name.
  150    267   
    pub fn name(&self) -> &'static str {
  151    268   
        "InternalServerError"
  152    269   
    }
         270  +
    /* ErrorImplGenerator.kt:99 */
  153    271   
}
         272  +
/* ErrorImplGenerator.kt:153 */
  154    273   
impl ::std::fmt::Display for InternalServerError {
         274  +
    /* ErrorImplGenerator.kt:154 */
  155    275   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         276  +
        /* ErrorImplGenerator.kt:161 */
  156    277   
        ::std::write!(f, "InternalServerError")?;
         278  +
        /* ErrorImplGenerator.kt:166 */
  157    279   
        {
         280  +
            /* ErrorImplGenerator.kt:167 */
  158    281   
            ::std::write!(f, ": {}", &self.message)?;
         282  +
            /* ErrorImplGenerator.kt:166 */
  159    283   
        }
         284  +
        /* ErrorImplGenerator.kt:171 */
  160    285   
        Ok(())
         286  +
        /* ErrorImplGenerator.kt:154 */
  161    287   
    }
         288  +
    /* ErrorImplGenerator.kt:153 */
  162    289   
}
         290  +
/* ErrorImplGenerator.kt:175 */
  163    291   
impl ::std::error::Error for InternalServerError {}
         292  +
/* ServerCodegenVisitor.kt:370 */
  164    293   
impl InternalServerError {
  165         -
    /// Creates a new builder-style object to manufacture [`InternalServerError`](crate::error::InternalServerError).
         294  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`InternalServerError`](crate::error::InternalServerError).
         295  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  166    296   
    pub fn builder() -> crate::error::internal_server_error::Builder {
         297  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  167    298   
        crate::error::internal_server_error::Builder::default()
         299  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  168    300   
    }
         301  +
    /* ServerCodegenVisitor.kt:370 */
  169    302   
}
  170    303   
         304  +
/* ServerOperationErrorGenerator.kt:63 */
  171    305   
/// Error type for the `EmptyStructWithContentOnWireOp` operation.
         306  +
/* ServerOperationErrorGenerator.kt:64 */
  172    307   
/// Each variant represents an error that can occur for the `EmptyStructWithContentOnWireOp` operation.
         308  +
/* RustType.kt:516 */
  173    309   
#[derive(::std::fmt::Debug)]
  174         -
pub enum EmptyStructWithContentOnWireOpError {
         310  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum EmptyStructWithContentOnWireOpError {
         311  +
    /* ServerOperationErrorGenerator.kt:68 */
  175    312   
    #[allow(missing_docs)] // documentation missing in model
         313  +
    /* ServerOperationErrorGenerator.kt:71 */
  176    314   
    ExtraError(crate::error::ExtraError),
         315  +
    /* ServerOperationErrorGenerator.kt:68 */
  177    316   
    #[allow(missing_docs)] // documentation missing in model
         317  +
    /* ServerOperationErrorGenerator.kt:71 */
  178    318   
    InternalServerError(crate::error::InternalServerError),
         319  +
    /* ServerOperationErrorGenerator.kt:66 */
  179    320   
}
         321  +
/* ServerOperationErrorGenerator.kt:75 */
  180    322   
impl ::std::fmt::Display for EmptyStructWithContentOnWireOpError {
         323  +
    /* ServerOperationErrorGenerator.kt:76 */
  181    324   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         325  +
        /* ServerOperationErrorGenerator.kt:139 */
  182    326   
        match &self {
  183         -
            EmptyStructWithContentOnWireOpError::ExtraError(_inner) => _inner.fmt(f),
  184         -
            EmptyStructWithContentOnWireOpError::InternalServerError(_inner) => _inner.fmt(f),
         327  +
            /* ServerOperationErrorGenerator.kt:142 */
         328  +
            EmptyStructWithContentOnWireOpError::ExtraError(_inner) =>
         329  +
            /* ServerOperationErrorGenerator.kt:78 */
         330  +
            {
         331  +
                _inner.fmt(f)
         332  +
            }
         333  +
            ,
         334  +
            /* ServerOperationErrorGenerator.kt:142 */
         335  +
            EmptyStructWithContentOnWireOpError::InternalServerError(_inner) =>
         336  +
            /* ServerOperationErrorGenerator.kt:78 */
         337  +
            {
         338  +
                _inner.fmt(f)
  185    339   
            }
         340  +
            /* ServerOperationErrorGenerator.kt:139 */
  186    341   
        }
         342  +
        /* ServerOperationErrorGenerator.kt:76 */
         343  +
    }
         344  +
    /* ServerOperationErrorGenerator.kt:75 */
  187    345   
}
         346  +
/* ServerOperationErrorGenerator.kt:83 */
  188    347   
impl EmptyStructWithContentOnWireOpError {
         348  +
    /* ServerOperationErrorGenerator.kt:87 */
  189    349   
    /// Returns `true` if the error kind is `EmptyStructWithContentOnWireOpError::ExtraError`.
         350  +
    /* ServerOperationErrorGenerator.kt:88 */
  190    351   
    pub fn is_extra_error(&self) -> bool {
         352  +
        /* ServerOperationErrorGenerator.kt:89 */
  191    353   
        matches!(&self, EmptyStructWithContentOnWireOpError::ExtraError(_))
         354  +
        /* ServerOperationErrorGenerator.kt:88 */
  192    355   
    }
         356  +
    /* ServerOperationErrorGenerator.kt:87 */
  193    357   
    /// Returns `true` if the error kind is `EmptyStructWithContentOnWireOpError::InternalServerError`.
         358  +
    /* ServerOperationErrorGenerator.kt:88 */
  194    359   
    pub fn is_internal_server_error(&self) -> bool {
         360  +
        /* ServerOperationErrorGenerator.kt:89 */
  195    361   
        matches!(
  196    362   
            &self,
  197    363   
            EmptyStructWithContentOnWireOpError::InternalServerError(_)
  198    364   
        )
         365  +
        /* ServerOperationErrorGenerator.kt:88 */
  199    366   
    }
         367  +
    /* ServerOperationErrorGenerator.kt:92 */
  200    368   
    /// Returns the error name string by matching the correct variant.
         369  +
    /* ServerOperationErrorGenerator.kt:93 */
  201    370   
    pub fn name(&self) -> &'static str {
         371  +
        /* ServerOperationErrorGenerator.kt:139 */
  202    372   
        match &self {
  203         -
            EmptyStructWithContentOnWireOpError::ExtraError(_inner) => _inner.name(),
  204         -
            EmptyStructWithContentOnWireOpError::InternalServerError(_inner) => _inner.name(),
         373  +
            /* ServerOperationErrorGenerator.kt:142 */
         374  +
            EmptyStructWithContentOnWireOpError::ExtraError(_inner) =>
         375  +
            /* ServerOperationErrorGenerator.kt:95 */
         376  +
            {
         377  +
                _inner.name()
  205    378   
            }
         379  +
            ,
         380  +
            /* ServerOperationErrorGenerator.kt:142 */
         381  +
            EmptyStructWithContentOnWireOpError::InternalServerError(_inner) =>
         382  +
            /* ServerOperationErrorGenerator.kt:95 */
         383  +
            {
         384  +
                _inner.name()
  206    385   
            }
         386  +
            /* ServerOperationErrorGenerator.kt:139 */
         387  +
        }
         388  +
        /* ServerOperationErrorGenerator.kt:93 */
         389  +
    }
         390  +
    /* ServerOperationErrorGenerator.kt:83 */
  207    391   
}
         392  +
/* ServerOperationErrorGenerator.kt:100 */
  208    393   
impl ::std::error::Error for EmptyStructWithContentOnWireOpError {
         394  +
    /* ServerOperationErrorGenerator.kt:101 */
  209    395   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         396  +
        /* ServerOperationErrorGenerator.kt:139 */
  210    397   
        match &self {
  211         -
            EmptyStructWithContentOnWireOpError::ExtraError(_inner) => Some(_inner),
  212         -
            EmptyStructWithContentOnWireOpError::InternalServerError(_inner) => Some(_inner),
         398  +
            /* ServerOperationErrorGenerator.kt:142 */
         399  +
            EmptyStructWithContentOnWireOpError::ExtraError(_inner) =>
         400  +
            /* ServerOperationErrorGenerator.kt:103 */
         401  +
            {
         402  +
                Some(_inner)
         403  +
            }
         404  +
            ,
         405  +
            /* ServerOperationErrorGenerator.kt:142 */
         406  +
            EmptyStructWithContentOnWireOpError::InternalServerError(_inner) =>
         407  +
            /* ServerOperationErrorGenerator.kt:103 */
         408  +
            {
         409  +
                Some(_inner)
  213    410   
            }
         411  +
            /* ServerOperationErrorGenerator.kt:139 */
  214    412   
        }
         413  +
        /* ServerOperationErrorGenerator.kt:101 */
         414  +
    }
         415  +
    /* ServerOperationErrorGenerator.kt:100 */
  215    416   
}
         417  +
/* ServerOperationErrorGenerator.kt:110 */
  216    418   
impl ::std::convert::From<crate::error::ExtraError>
  217    419   
    for crate::error::EmptyStructWithContentOnWireOpError
  218    420   
{
         421  +
    /* ServerOperationErrorGenerator.kt:111 */
  219    422   
    fn from(
  220    423   
        variant: crate::error::ExtraError,
  221    424   
    ) -> crate::error::EmptyStructWithContentOnWireOpError {
         425  +
        /* ServerOperationErrorGenerator.kt:112 */
  222    426   
        Self::ExtraError(variant)
         427  +
        /* ServerOperationErrorGenerator.kt:111 */
  223    428   
    }
         429  +
    /* ServerOperationErrorGenerator.kt:110 */
  224    430   
}
         431  +
/* ServerOperationErrorGenerator.kt:110 */
  225    432   
impl ::std::convert::From<crate::error::InternalServerError>
  226    433   
    for crate::error::EmptyStructWithContentOnWireOpError
  227    434   
{
         435  +
    /* ServerOperationErrorGenerator.kt:111 */
  228    436   
    fn from(
  229    437   
        variant: crate::error::InternalServerError,
  230    438   
    ) -> crate::error::EmptyStructWithContentOnWireOpError {
         439  +
        /* ServerOperationErrorGenerator.kt:112 */
  231    440   
        Self::InternalServerError(variant)
         441  +
        /* ServerOperationErrorGenerator.kt:111 */
  232    442   
    }
         443  +
    /* ServerOperationErrorGenerator.kt:110 */
  233    444   
}
  234    445   
         446  +
/* PythonServerOperationErrorGenerator.kt:38 */
  235    447   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::EmptyStructWithContentOnWireOpError {
  236    448   
    fn from(variant: ::pyo3::PyErr) -> crate::error::EmptyStructWithContentOnWireOpError {
  237    449   
        ::pyo3::Python::with_gil(|py| {
  238    450   
            let error = variant.value(py);
  239    451   
            if let Ok(error) = error.extract::<crate::error::ExtraError>() {
  240    452   
                return error.into();
  241    453   
            }
  242    454   
            crate::error::InternalServerError {
  243    455   
                message: error.to_string(),
  244    456   
            }
  245    457   
            .into()
  246    458   
        })
  247    459   
    }
  248    460   
}
  249    461   
         462  +
/* ServerOperationErrorGenerator.kt:63 */
  250    463   
/// Error type for the `CaseInsensitiveErrorOperation` operation.
         464  +
/* ServerOperationErrorGenerator.kt:64 */
  251    465   
/// Each variant represents an error that can occur for the `CaseInsensitiveErrorOperation` operation.
         466  +
/* RustType.kt:516 */
  252    467   
#[derive(::std::fmt::Debug)]
  253         -
pub enum CaseInsensitiveErrorOperationError {
         468  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum CaseInsensitiveErrorOperationError {
         469  +
    /* ServerOperationErrorGenerator.kt:68 */
  254    470   
    #[allow(missing_docs)] // documentation missing in model
         471  +
    /* ServerOperationErrorGenerator.kt:71 */
  255    472   
    CaseInsensitiveError(crate::error::CaseInsensitiveError),
         473  +
    /* ServerOperationErrorGenerator.kt:68 */
  256    474   
    #[allow(missing_docs)] // documentation missing in model
         475  +
    /* ServerOperationErrorGenerator.kt:71 */
  257    476   
    ExtraError(crate::error::ExtraError),
         477  +
    /* ServerOperationErrorGenerator.kt:68 */
  258    478   
    #[allow(missing_docs)] // documentation missing in model
         479  +
    /* ServerOperationErrorGenerator.kt:71 */
  259    480   
    InternalServerError(crate::error::InternalServerError),
         481  +
    /* ServerOperationErrorGenerator.kt:66 */
  260    482   
}
         483  +
/* ServerOperationErrorGenerator.kt:75 */
  261    484   
impl ::std::fmt::Display for CaseInsensitiveErrorOperationError {
         485  +
    /* ServerOperationErrorGenerator.kt:76 */
  262    486   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         487  +
        /* ServerOperationErrorGenerator.kt:139 */
  263    488   
        match &self {
  264         -
            CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) => _inner.fmt(f),
  265         -
            CaseInsensitiveErrorOperationError::ExtraError(_inner) => _inner.fmt(f),
  266         -
            CaseInsensitiveErrorOperationError::InternalServerError(_inner) => _inner.fmt(f),
         489  +
            /* ServerOperationErrorGenerator.kt:142 */
         490  +
            CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) =>
         491  +
            /* ServerOperationErrorGenerator.kt:78 */
         492  +
            {
         493  +
                _inner.fmt(f)
         494  +
            }
         495  +
            ,
         496  +
            /* ServerOperationErrorGenerator.kt:142 */
         497  +
            CaseInsensitiveErrorOperationError::ExtraError(_inner) =>
         498  +
            /* ServerOperationErrorGenerator.kt:78 */
         499  +
            {
         500  +
                _inner.fmt(f)
         501  +
            }
         502  +
            ,
         503  +
            /* ServerOperationErrorGenerator.kt:142 */
         504  +
            CaseInsensitiveErrorOperationError::InternalServerError(_inner) =>
         505  +
            /* ServerOperationErrorGenerator.kt:78 */
         506  +
            {
         507  +
                _inner.fmt(f)
  267    508   
            }
         509  +
            /* ServerOperationErrorGenerator.kt:139 */
  268    510   
        }
         511  +
        /* ServerOperationErrorGenerator.kt:76 */
         512  +
    }
         513  +
    /* ServerOperationErrorGenerator.kt:75 */
  269    514   
}
         515  +
/* ServerOperationErrorGenerator.kt:83 */
  270    516   
impl CaseInsensitiveErrorOperationError {
         517  +
    /* ServerOperationErrorGenerator.kt:87 */
  271    518   
    /// Returns `true` if the error kind is `CaseInsensitiveErrorOperationError::CaseInsensitiveError`.
         519  +
    /* ServerOperationErrorGenerator.kt:88 */
  272    520   
    pub fn is_case_insensitive_error(&self) -> bool {
         521  +
        /* ServerOperationErrorGenerator.kt:89 */
  273    522   
        matches!(
  274    523   
            &self,
  275    524   
            CaseInsensitiveErrorOperationError::CaseInsensitiveError(_)
  276    525   
        )
         526  +
        /* ServerOperationErrorGenerator.kt:88 */
  277    527   
    }
         528  +
    /* ServerOperationErrorGenerator.kt:87 */
  278    529   
    /// Returns `true` if the error kind is `CaseInsensitiveErrorOperationError::ExtraError`.
         530  +
    /* ServerOperationErrorGenerator.kt:88 */
  279    531   
    pub fn is_extra_error(&self) -> bool {
         532  +
        /* ServerOperationErrorGenerator.kt:89 */
  280    533   
        matches!(&self, CaseInsensitiveErrorOperationError::ExtraError(_))
         534  +
        /* ServerOperationErrorGenerator.kt:88 */
  281    535   
    }
         536  +
    /* ServerOperationErrorGenerator.kt:87 */
  282    537   
    /// Returns `true` if the error kind is `CaseInsensitiveErrorOperationError::InternalServerError`.
         538  +
    /* ServerOperationErrorGenerator.kt:88 */
  283    539   
    pub fn is_internal_server_error(&self) -> bool {
         540  +
        /* ServerOperationErrorGenerator.kt:89 */
  284    541   
        matches!(
  285    542   
            &self,
  286    543   
            CaseInsensitiveErrorOperationError::InternalServerError(_)
  287    544   
        )
         545  +
        /* ServerOperationErrorGenerator.kt:88 */
  288    546   
    }
         547  +
    /* ServerOperationErrorGenerator.kt:92 */
  289    548   
    /// Returns the error name string by matching the correct variant.
         549  +
    /* ServerOperationErrorGenerator.kt:93 */
  290    550   
    pub fn name(&self) -> &'static str {
         551  +
        /* ServerOperationErrorGenerator.kt:139 */
  291    552   
        match &self {
  292         -
            CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) => _inner.name(),
  293         -
            CaseInsensitiveErrorOperationError::ExtraError(_inner) => _inner.name(),
  294         -
            CaseInsensitiveErrorOperationError::InternalServerError(_inner) => _inner.name(),
         553  +
            /* ServerOperationErrorGenerator.kt:142 */
         554  +
            CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) =>
         555  +
            /* ServerOperationErrorGenerator.kt:95 */
         556  +
            {
         557  +
                _inner.name()
         558  +
            }
         559  +
            ,
         560  +
            /* ServerOperationErrorGenerator.kt:142 */
         561  +
            CaseInsensitiveErrorOperationError::ExtraError(_inner) =>
         562  +
            /* ServerOperationErrorGenerator.kt:95 */
         563  +
            {
         564  +
                _inner.name()
         565  +
            }
         566  +
            ,
         567  +
            /* ServerOperationErrorGenerator.kt:142 */
         568  +
            CaseInsensitiveErrorOperationError::InternalServerError(_inner) =>
         569  +
            /* ServerOperationErrorGenerator.kt:95 */
         570  +
            {
         571  +
                _inner.name()
         572  +
            }
         573  +
            /* ServerOperationErrorGenerator.kt:139 */
  295    574   
        }
         575  +
        /* ServerOperationErrorGenerator.kt:93 */
  296    576   
    }
         577  +
    /* ServerOperationErrorGenerator.kt:83 */
  297    578   
}
         579  +
/* ServerOperationErrorGenerator.kt:100 */
  298    580   
impl ::std::error::Error for CaseInsensitiveErrorOperationError {
         581  +
    /* ServerOperationErrorGenerator.kt:101 */
  299    582   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         583  +
        /* ServerOperationErrorGenerator.kt:139 */
  300    584   
        match &self {
  301         -
            CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) => Some(_inner),
  302         -
            CaseInsensitiveErrorOperationError::ExtraError(_inner) => Some(_inner),
  303         -
            CaseInsensitiveErrorOperationError::InternalServerError(_inner) => Some(_inner),
         585  +
            /* ServerOperationErrorGenerator.kt:142 */
         586  +
            CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) =>
         587  +
            /* ServerOperationErrorGenerator.kt:103 */
         588  +
            {
         589  +
                Some(_inner)
  304    590   
            }
         591  +
            ,
         592  +
            /* ServerOperationErrorGenerator.kt:142 */
         593  +
            CaseInsensitiveErrorOperationError::ExtraError(_inner) =>
         594  +
            /* ServerOperationErrorGenerator.kt:103 */
         595  +
            {
         596  +
                Some(_inner)
         597  +
            }
         598  +
            ,
         599  +
            /* ServerOperationErrorGenerator.kt:142 */
         600  +
            CaseInsensitiveErrorOperationError::InternalServerError(_inner) =>
         601  +
            /* ServerOperationErrorGenerator.kt:103 */
         602  +
            {
         603  +
                Some(_inner)
  305    604   
            }
         605  +
            /* ServerOperationErrorGenerator.kt:139 */
         606  +
        }
         607  +
        /* ServerOperationErrorGenerator.kt:101 */
         608  +
    }
         609  +
    /* ServerOperationErrorGenerator.kt:100 */
  306    610   
}
         611  +
/* ServerOperationErrorGenerator.kt:110 */
  307    612   
impl ::std::convert::From<crate::error::CaseInsensitiveError>
  308    613   
    for crate::error::CaseInsensitiveErrorOperationError
  309    614   
{
         615  +
    /* ServerOperationErrorGenerator.kt:111 */
  310    616   
    fn from(
  311    617   
        variant: crate::error::CaseInsensitiveError,
  312    618   
    ) -> crate::error::CaseInsensitiveErrorOperationError {
         619  +
        /* ServerOperationErrorGenerator.kt:112 */
  313    620   
        Self::CaseInsensitiveError(variant)
         621  +
        /* ServerOperationErrorGenerator.kt:111 */
  314    622   
    }
         623  +
    /* ServerOperationErrorGenerator.kt:110 */
  315    624   
}
         625  +
/* ServerOperationErrorGenerator.kt:110 */
  316    626   
impl ::std::convert::From<crate::error::ExtraError>
  317    627   
    for crate::error::CaseInsensitiveErrorOperationError
  318    628   
{
         629  +
    /* ServerOperationErrorGenerator.kt:111 */
  319    630   
    fn from(variant: crate::error::ExtraError) -> crate::error::CaseInsensitiveErrorOperationError {
         631  +
        /* ServerOperationErrorGenerator.kt:112 */
  320    632   
        Self::ExtraError(variant)
         633  +
        /* ServerOperationErrorGenerator.kt:111 */
  321    634   
    }
         635  +
    /* ServerOperationErrorGenerator.kt:110 */
  322    636   
}
         637  +
/* ServerOperationErrorGenerator.kt:110 */
  323    638   
impl ::std::convert::From<crate::error::InternalServerError>
  324    639   
    for crate::error::CaseInsensitiveErrorOperationError
  325    640   
{
         641  +
    /* ServerOperationErrorGenerator.kt:111 */
  326    642   
    fn from(
  327    643   
        variant: crate::error::InternalServerError,
  328    644   
    ) -> crate::error::CaseInsensitiveErrorOperationError {
         645  +
        /* ServerOperationErrorGenerator.kt:112 */
  329    646   
        Self::InternalServerError(variant)
         647  +
        /* ServerOperationErrorGenerator.kt:111 */
  330    648   
    }
         649  +
    /* ServerOperationErrorGenerator.kt:110 */
  331    650   
}
  332    651   
         652  +
/* PythonServerOperationErrorGenerator.kt:38 */
  333    653   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::CaseInsensitiveErrorOperationError {
  334    654   
    fn from(variant: ::pyo3::PyErr) -> crate::error::CaseInsensitiveErrorOperationError {
  335    655   
        ::pyo3::Python::with_gil(|py| {
  336    656   
            let error = variant.value(py);
  337    657   
            if let Ok(error) = error.extract::<crate::error::CaseInsensitiveError>() {
  338    658   
                return error.into();
  339    659   
            }
  340    660   
            if let Ok(error) = error.extract::<crate::error::ExtraError>() {
  341    661   
                return error.into();
  342    662   
            }
  343    663   
            crate::error::InternalServerError {
  344    664   
                message: error.to_string(),
  345    665   
            }
  346    666   
            .into()
  347    667   
        })
  348    668   
    }
  349    669   
}
  350    670   
         671  +
/* RustType.kt:516 */
  351    672   
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
         673  +
/* PythonServerStructureGenerator.kt:63 */
  352    674   
/// :param message typing.Optional\[str\]:
  353    675   
/// :rtype None:
         676  +
/* StructureGenerator.kt:197 */
  354    677   
#[allow(missing_docs)] // documentation missing in model
         678  +
/* RustType.kt:516 */
  355    679   
#[derive(
  356    680   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  357    681   
)]
  358         -
pub struct CaseInsensitiveError {
         682  +
pub /* StructureGenerator.kt:201 */ struct CaseInsensitiveError {
         683  +
    /* RustType.kt:516 */
  359    684   
    #[pyo3(get, set)]
         685  +
    /* PythonServerStructureGenerator.kt:80 */
  360    686   
    /// :type typing.Optional\[str\]:
         687  +
    /* StructureGenerator.kt:231 */
  361    688   
    #[allow(missing_docs)] // documentation missing in model
  362    689   
    pub message: ::std::option::Option<::std::string::String>,
         690  +
    /* StructureGenerator.kt:201 */
  363    691   
}
         692  +
/* RustType.kt:516 */
  364    693   
#[allow(clippy::new_without_default)]
         694  +
/* RustType.kt:516 */
  365    695   
#[allow(clippy::too_many_arguments)]
         696  +
/* RustType.kt:516 */
  366    697   
#[::pyo3::pymethods]
         698  +
/* PythonServerStructureGenerator.kt:88 */
  367    699   
impl CaseInsensitiveError {
  368    700   
    #[new]
  369    701   
    pub fn new(message: ::std::option::Option<::std::string::String>) -> Self {
  370    702   
        Self { message }
  371    703   
    }
  372    704   
    fn __repr__(&self) -> String {
  373    705   
        format!("{self:?}")
  374    706   
    }
  375    707   
    fn __str__(&self) -> String {
  376    708   
        format!("{self:?}")
  377    709   
    }
  378    710   
}
         711  +
/* ErrorImplGenerator.kt:99 */
  379    712   
impl CaseInsensitiveError {
         713  +
    /* ErrorImplGenerator.kt:128 */
  380    714   
    /// Returns the error message.
  381    715   
    pub fn message(&self) -> ::std::option::Option<&str> {
  382    716   
        self.message.as_deref()
  383    717   
    }
         718  +
    /* ErrorImplGenerator.kt:141 */
  384    719   
    #[doc(hidden)]
  385    720   
    /// Returns the error name.
  386    721   
    pub fn name(&self) -> &'static str {
  387    722   
        "CaseInsensitiveError"
  388    723   
    }
         724  +
    /* ErrorImplGenerator.kt:99 */
  389    725   
}
         726  +
/* ErrorImplGenerator.kt:153 */
  390    727   
impl ::std::fmt::Display for CaseInsensitiveError {
         728  +
    /* ErrorImplGenerator.kt:154 */
  391    729   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         730  +
        /* ErrorImplGenerator.kt:161 */
  392    731   
        ::std::write!(f, "CaseInsensitiveError")?;
         732  +
        /* ErrorImplGenerator.kt:166 */
  393    733   
        if let ::std::option::Option::Some(inner_1) = &self.message {
         734  +
            /* ErrorImplGenerator.kt:166 */
  394    735   
            {
         736  +
                /* ErrorImplGenerator.kt:167 */
  395    737   
                ::std::write!(f, ": {}", inner_1)?;
         738  +
                /* ErrorImplGenerator.kt:166 */
  396    739   
            }
         740  +
            /* ErrorImplGenerator.kt:166 */
  397    741   
        }
         742  +
        /* ErrorImplGenerator.kt:171 */
  398    743   
        Ok(())
         744  +
        /* ErrorImplGenerator.kt:154 */
  399    745   
    }
         746  +
    /* ErrorImplGenerator.kt:153 */
  400    747   
}
         748  +
/* ErrorImplGenerator.kt:175 */
  401    749   
impl ::std::error::Error for CaseInsensitiveError {}
         750  +
/* ServerCodegenVisitor.kt:370 */
  402    751   
impl CaseInsensitiveError {
  403         -
    /// Creates a new builder-style object to manufacture [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
         752  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
         753  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  404    754   
    pub fn builder() -> crate::error::case_insensitive_error::Builder {
         755  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  405    756   
        crate::error::case_insensitive_error::Builder::default()
         757  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  406    758   
    }
         759  +
    /* ServerCodegenVisitor.kt:370 */
  407    760   
}
  408    761   
         762  +
/* ServerOperationErrorGenerator.kt:63 */
  409    763   
/// Error type for the `NullInNonSparse` operation.
         764  +
/* ServerOperationErrorGenerator.kt:64 */
  410    765   
/// Each variant represents an error that can occur for the `NullInNonSparse` operation.
         766  +
/* RustType.kt:516 */
  411    767   
#[derive(::std::fmt::Debug)]
  412         -
pub enum NullInNonSparseError {
         768  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum NullInNonSparseError {
         769  +
    /* ServerOperationErrorGenerator.kt:68 */
  413    770   
    #[allow(missing_docs)] // documentation missing in model
         771  +
    /* ServerOperationErrorGenerator.kt:71 */
  414    772   
    ExtraError(crate::error::ExtraError),
         773  +
    /* ServerOperationErrorGenerator.kt:68 */
  415    774   
    #[allow(missing_docs)] // documentation missing in model
         775  +
    /* ServerOperationErrorGenerator.kt:71 */
  416    776   
    InternalServerError(crate::error::InternalServerError),
         777  +
    /* ServerOperationErrorGenerator.kt:66 */
  417    778   
}
         779  +
/* ServerOperationErrorGenerator.kt:75 */
  418    780   
impl ::std::fmt::Display for NullInNonSparseError {
         781  +
    /* ServerOperationErrorGenerator.kt:76 */
  419    782   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         783  +
        /* ServerOperationErrorGenerator.kt:139 */
  420    784   
        match &self {
  421         -
            NullInNonSparseError::ExtraError(_inner) => _inner.fmt(f),
  422         -
            NullInNonSparseError::InternalServerError(_inner) => _inner.fmt(f),
         785  +
            /* ServerOperationErrorGenerator.kt:142 */
         786  +
            NullInNonSparseError::ExtraError(_inner) =>
         787  +
            /* ServerOperationErrorGenerator.kt:78 */
         788  +
            {
         789  +
                _inner.fmt(f)
         790  +
            }
         791  +
            ,
         792  +
            /* ServerOperationErrorGenerator.kt:142 */
         793  +
            NullInNonSparseError::InternalServerError(_inner) =>
         794  +
            /* ServerOperationErrorGenerator.kt:78 */
         795  +
            {
         796  +
                _inner.fmt(f)
  423    797   
            }
         798  +
            /* ServerOperationErrorGenerator.kt:139 */
  424    799   
        }
         800  +
        /* ServerOperationErrorGenerator.kt:76 */
         801  +
    }
         802  +
    /* ServerOperationErrorGenerator.kt:75 */
  425    803   
}
         804  +
/* ServerOperationErrorGenerator.kt:83 */
  426    805   
impl NullInNonSparseError {
         806  +
    /* ServerOperationErrorGenerator.kt:87 */
  427    807   
    /// Returns `true` if the error kind is `NullInNonSparseError::ExtraError`.
         808  +
    /* ServerOperationErrorGenerator.kt:88 */
  428    809   
    pub fn is_extra_error(&self) -> bool {
         810  +
        /* ServerOperationErrorGenerator.kt:89 */
  429    811   
        matches!(&self, NullInNonSparseError::ExtraError(_))
         812  +
        /* ServerOperationErrorGenerator.kt:88 */
  430    813   
    }
         814  +
    /* ServerOperationErrorGenerator.kt:87 */
  431    815   
    /// Returns `true` if the error kind is `NullInNonSparseError::InternalServerError`.
         816  +
    /* ServerOperationErrorGenerator.kt:88 */
  432    817   
    pub fn is_internal_server_error(&self) -> bool {
         818  +
        /* ServerOperationErrorGenerator.kt:89 */
  433    819   
        matches!(&self, NullInNonSparseError::InternalServerError(_))
         820  +
        /* ServerOperationErrorGenerator.kt:88 */
  434    821   
    }
         822  +
    /* ServerOperationErrorGenerator.kt:92 */
  435    823   
    /// Returns the error name string by matching the correct variant.
         824  +
    /* ServerOperationErrorGenerator.kt:93 */
  436    825   
    pub fn name(&self) -> &'static str {
         826  +
        /* ServerOperationErrorGenerator.kt:139 */
  437    827   
        match &self {
  438         -
            NullInNonSparseError::ExtraError(_inner) => _inner.name(),
  439         -
            NullInNonSparseError::InternalServerError(_inner) => _inner.name(),
         828  +
            /* ServerOperationErrorGenerator.kt:142 */
         829  +
            NullInNonSparseError::ExtraError(_inner) =>
         830  +
            /* ServerOperationErrorGenerator.kt:95 */
         831  +
            {
         832  +
                _inner.name()
         833  +
            }
         834  +
            ,
         835  +
            /* ServerOperationErrorGenerator.kt:142 */
         836  +
            NullInNonSparseError::InternalServerError(_inner) =>
         837  +
            /* ServerOperationErrorGenerator.kt:95 */
         838  +
            {
         839  +
                _inner.name()
         840  +
            }
         841  +
            /* ServerOperationErrorGenerator.kt:139 */
  440    842   
        }
         843  +
        /* ServerOperationErrorGenerator.kt:93 */
  441    844   
    }
         845  +
    /* ServerOperationErrorGenerator.kt:83 */
  442    846   
}
         847  +
/* ServerOperationErrorGenerator.kt:100 */
  443    848   
impl ::std::error::Error for NullInNonSparseError {
         849  +
    /* ServerOperationErrorGenerator.kt:101 */
  444    850   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         851  +
        /* ServerOperationErrorGenerator.kt:139 */
  445    852   
        match &self {
  446         -
            NullInNonSparseError::ExtraError(_inner) => Some(_inner),
  447         -
            NullInNonSparseError::InternalServerError(_inner) => Some(_inner),
         853  +
            /* ServerOperationErrorGenerator.kt:142 */
         854  +
            NullInNonSparseError::ExtraError(_inner) =>
         855  +
            /* ServerOperationErrorGenerator.kt:103 */
         856  +
            {
         857  +
                Some(_inner)
  448    858   
            }
         859  +
            ,
         860  +
            /* ServerOperationErrorGenerator.kt:142 */
         861  +
            NullInNonSparseError::InternalServerError(_inner) =>
         862  +
            /* ServerOperationErrorGenerator.kt:103 */
         863  +
            {
         864  +
                Some(_inner)
         865  +
            }
         866  +
            /* ServerOperationErrorGenerator.kt:139 */
         867  +
        }
         868  +
        /* ServerOperationErrorGenerator.kt:101 */
  449    869   
    }
         870  +
    /* ServerOperationErrorGenerator.kt:100 */
  450    871   
}
         872  +
/* ServerOperationErrorGenerator.kt:110 */
  451    873   
impl ::std::convert::From<crate::error::ExtraError> for crate::error::NullInNonSparseError {
         874  +
    /* ServerOperationErrorGenerator.kt:111 */
  452    875   
    fn from(variant: crate::error::ExtraError) -> crate::error::NullInNonSparseError {
         876  +
        /* ServerOperationErrorGenerator.kt:112 */
  453    877   
        Self::ExtraError(variant)
         878  +
        /* ServerOperationErrorGenerator.kt:111 */
  454    879   
    }
         880  +
    /* ServerOperationErrorGenerator.kt:110 */
  455    881   
}
         882  +
/* ServerOperationErrorGenerator.kt:110 */
  456    883   
impl ::std::convert::From<crate::error::InternalServerError>
  457    884   
    for crate::error::NullInNonSparseError
  458    885   
{
         886  +
    /* ServerOperationErrorGenerator.kt:111 */
  459    887   
    fn from(variant: crate::error::InternalServerError) -> crate::error::NullInNonSparseError {
         888  +
        /* ServerOperationErrorGenerator.kt:112 */
  460    889   
        Self::InternalServerError(variant)
         890  +
        /* ServerOperationErrorGenerator.kt:111 */
  461    891   
    }
         892  +
    /* ServerOperationErrorGenerator.kt:110 */
  462    893   
}
  463    894   
         895  +
/* PythonServerOperationErrorGenerator.kt:38 */
  464    896   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::NullInNonSparseError {
  465    897   
    fn from(variant: ::pyo3::PyErr) -> crate::error::NullInNonSparseError {
  466    898   
        ::pyo3::Python::with_gil(|py| {
  467    899   
            let error = variant.value(py);
  468    900   
            if let Ok(error) = error.extract::<crate::error::ExtraError>() {
  469    901   
                return error.into();
  470    902   
            }
  471    903   
            crate::error::InternalServerError {
  472    904   
                message: error.to_string(),
  473    905   
            }
  474    906   
            .into()
  475    907   
        })
  476    908   
    }
  477    909   
}
  478    910   
         911  +
/* ServerOperationErrorGenerator.kt:63 */
  479    912   
/// Error type for the `EscapedStringValues` operation.
         913  +
/* ServerOperationErrorGenerator.kt:64 */
  480    914   
/// Each variant represents an error that can occur for the `EscapedStringValues` operation.
         915  +
/* RustType.kt:516 */
  481    916   
#[derive(::std::fmt::Debug)]
  482         -
pub enum EscapedStringValuesError {
  483         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         917  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum EscapedStringValuesError {
         918  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         919  +
    /* ServerOperationErrorGenerator.kt:71 */
  484    920   
    ValidationException(crate::error::ValidationException),
         921  +
    /* ServerOperationErrorGenerator.kt:68 */
  485    922   
    #[allow(missing_docs)] // documentation missing in model
         923  +
    /* ServerOperationErrorGenerator.kt:71 */
  486    924   
    ExtraError(crate::error::ExtraError),
         925  +
    /* ServerOperationErrorGenerator.kt:68 */
  487    926   
    #[allow(missing_docs)] // documentation missing in model
         927  +
    /* ServerOperationErrorGenerator.kt:71 */
  488    928   
    InternalServerError(crate::error::InternalServerError),
         929  +
    /* ServerOperationErrorGenerator.kt:66 */
  489    930   
}
         931  +
/* ServerOperationErrorGenerator.kt:75 */
  490    932   
impl ::std::fmt::Display for EscapedStringValuesError {
         933  +
    /* ServerOperationErrorGenerator.kt:76 */
  491    934   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         935  +
        /* ServerOperationErrorGenerator.kt:139 */
  492    936   
        match &self {
  493         -
            EscapedStringValuesError::ValidationException(_inner) => _inner.fmt(f),
  494         -
            EscapedStringValuesError::ExtraError(_inner) => _inner.fmt(f),
  495         -
            EscapedStringValuesError::InternalServerError(_inner) => _inner.fmt(f),
         937  +
            /* ServerOperationErrorGenerator.kt:142 */
         938  +
            EscapedStringValuesError::ValidationException(_inner) =>
         939  +
            /* ServerOperationErrorGenerator.kt:78 */
         940  +
            {
         941  +
                _inner.fmt(f)
         942  +
            }
         943  +
            ,
         944  +
            /* ServerOperationErrorGenerator.kt:142 */
         945  +
            EscapedStringValuesError::ExtraError(_inner) =>
         946  +
            /* ServerOperationErrorGenerator.kt:78 */
         947  +
            {
         948  +
                _inner.fmt(f)
         949  +
            }
         950  +
            ,
         951  +
            /* ServerOperationErrorGenerator.kt:142 */
         952  +
            EscapedStringValuesError::InternalServerError(_inner) =>
         953  +
            /* ServerOperationErrorGenerator.kt:78 */
         954  +
            {
         955  +
                _inner.fmt(f)
  496    956   
            }
         957  +
            /* ServerOperationErrorGenerator.kt:139 */
  497    958   
        }
         959  +
        /* ServerOperationErrorGenerator.kt:76 */
         960  +
    }
         961  +
    /* ServerOperationErrorGenerator.kt:75 */
  498    962   
}
         963  +
/* ServerOperationErrorGenerator.kt:83 */
  499    964   
impl EscapedStringValuesError {
         965  +
    /* ServerOperationErrorGenerator.kt:87 */
  500    966   
    /// Returns `true` if the error kind is `EscapedStringValuesError::ValidationException`.
         967  +
    /* ServerOperationErrorGenerator.kt:88 */
  501    968   
    pub fn is_validation_exception(&self) -> bool {
         969  +
        /* ServerOperationErrorGenerator.kt:89 */
  502    970   
        matches!(&self, EscapedStringValuesError::ValidationException(_))
         971  +
        /* ServerOperationErrorGenerator.kt:88 */
  503    972   
    }
         973  +
    /* ServerOperationErrorGenerator.kt:87 */
  504    974   
    /// Returns `true` if the error kind is `EscapedStringValuesError::ExtraError`.
         975  +
    /* ServerOperationErrorGenerator.kt:88 */
  505    976   
    pub fn is_extra_error(&self) -> bool {
         977  +
        /* ServerOperationErrorGenerator.kt:89 */
  506    978   
        matches!(&self, EscapedStringValuesError::ExtraError(_))
         979  +
        /* ServerOperationErrorGenerator.kt:88 */
  507    980   
    }
         981  +
    /* ServerOperationErrorGenerator.kt:87 */
  508    982   
    /// Returns `true` if the error kind is `EscapedStringValuesError::InternalServerError`.
         983  +
    /* ServerOperationErrorGenerator.kt:88 */
  509    984   
    pub fn is_internal_server_error(&self) -> bool {
         985  +
        /* ServerOperationErrorGenerator.kt:89 */
  510    986   
        matches!(&self, EscapedStringValuesError::InternalServerError(_))
         987  +
        /* ServerOperationErrorGenerator.kt:88 */
  511    988   
    }
         989  +
    /* ServerOperationErrorGenerator.kt:92 */
  512    990   
    /// Returns the error name string by matching the correct variant.
         991  +
    /* ServerOperationErrorGenerator.kt:93 */
  513    992   
    pub fn name(&self) -> &'static str {
         993  +
        /* ServerOperationErrorGenerator.kt:139 */
  514    994   
        match &self {
  515         -
            EscapedStringValuesError::ValidationException(_inner) => _inner.name(),
  516         -
            EscapedStringValuesError::ExtraError(_inner) => _inner.name(),
  517         -
            EscapedStringValuesError::InternalServerError(_inner) => _inner.name(),
         995  +
            /* ServerOperationErrorGenerator.kt:142 */
         996  +
            EscapedStringValuesError::ValidationException(_inner) =>
         997  +
            /* ServerOperationErrorGenerator.kt:95 */
         998  +
            {
         999  +
                _inner.name()
  518   1000   
            }
        1001  +
            ,
        1002  +
            /* ServerOperationErrorGenerator.kt:142 */
        1003  +
            EscapedStringValuesError::ExtraError(_inner) =>
        1004  +
            /* ServerOperationErrorGenerator.kt:95 */
        1005  +
            {
        1006  +
                _inner.name()
  519   1007   
            }
        1008  +
            ,
        1009  +
            /* ServerOperationErrorGenerator.kt:142 */
        1010  +
            EscapedStringValuesError::InternalServerError(_inner) =>
        1011  +
            /* ServerOperationErrorGenerator.kt:95 */
        1012  +
            {
        1013  +
                _inner.name()
        1014  +
            }
        1015  +
            /* ServerOperationErrorGenerator.kt:139 */
        1016  +
        }
        1017  +
        /* ServerOperationErrorGenerator.kt:93 */
        1018  +
    }
        1019  +
    /* ServerOperationErrorGenerator.kt:83 */
  520   1020   
}
        1021  +
/* ServerOperationErrorGenerator.kt:100 */
  521   1022   
impl ::std::error::Error for EscapedStringValuesError {
        1023  +
    /* ServerOperationErrorGenerator.kt:101 */
  522   1024   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1025  +
        /* ServerOperationErrorGenerator.kt:139 */
  523   1026   
        match &self {
  524         -
            EscapedStringValuesError::ValidationException(_inner) => Some(_inner),
  525         -
            EscapedStringValuesError::ExtraError(_inner) => Some(_inner),
  526         -
            EscapedStringValuesError::InternalServerError(_inner) => Some(_inner),
        1027  +
            /* ServerOperationErrorGenerator.kt:142 */
        1028  +
            EscapedStringValuesError::ValidationException(_inner) =>
        1029  +
            /* ServerOperationErrorGenerator.kt:103 */
        1030  +
            {
        1031  +
                Some(_inner)
  527   1032   
            }
        1033  +
            ,
        1034  +
            /* ServerOperationErrorGenerator.kt:142 */
        1035  +
            EscapedStringValuesError::ExtraError(_inner) =>
        1036  +
            /* ServerOperationErrorGenerator.kt:103 */
        1037  +
            {
        1038  +
                Some(_inner)
        1039  +
            }
        1040  +
            ,
        1041  +
            /* ServerOperationErrorGenerator.kt:142 */
        1042  +
            EscapedStringValuesError::InternalServerError(_inner) =>
        1043  +
            /* ServerOperationErrorGenerator.kt:103 */
        1044  +
            {
        1045  +
                Some(_inner)
  528   1046   
            }
        1047  +
            /* ServerOperationErrorGenerator.kt:139 */
        1048  +
        }
        1049  +
        /* ServerOperationErrorGenerator.kt:101 */
        1050  +
    }
        1051  +
    /* ServerOperationErrorGenerator.kt:100 */
  529   1052   
}
        1053  +
/* ServerOperationErrorGenerator.kt:110 */
  530   1054   
impl ::std::convert::From<crate::error::ValidationException>
  531   1055   
    for crate::error::EscapedStringValuesError
  532   1056   
{
        1057  +
    /* ServerOperationErrorGenerator.kt:111 */
  533   1058   
    fn from(variant: crate::error::ValidationException) -> crate::error::EscapedStringValuesError {
        1059  +
        /* ServerOperationErrorGenerator.kt:112 */
  534   1060   
        Self::ValidationException(variant)
        1061  +
        /* ServerOperationErrorGenerator.kt:111 */
  535   1062   
    }
        1063  +
    /* ServerOperationErrorGenerator.kt:110 */
  536   1064   
}
        1065  +
/* ServerOperationErrorGenerator.kt:110 */
  537   1066   
impl ::std::convert::From<crate::error::ExtraError> for crate::error::EscapedStringValuesError {
        1067  +
    /* ServerOperationErrorGenerator.kt:111 */
  538   1068   
    fn from(variant: crate::error::ExtraError) -> crate::error::EscapedStringValuesError {
        1069  +
        /* ServerOperationErrorGenerator.kt:112 */
  539   1070   
        Self::ExtraError(variant)
        1071  +
        /* ServerOperationErrorGenerator.kt:111 */
  540   1072   
    }
        1073  +
    /* ServerOperationErrorGenerator.kt:110 */
  541   1074   
}
        1075  +
/* ServerOperationErrorGenerator.kt:110 */
  542   1076   
impl ::std::convert::From<crate::error::InternalServerError>
  543   1077   
    for crate::error::EscapedStringValuesError
  544   1078   
{
        1079  +
    /* ServerOperationErrorGenerator.kt:111 */
  545   1080   
    fn from(variant: crate::error::InternalServerError) -> crate::error::EscapedStringValuesError {
        1081  +
        /* ServerOperationErrorGenerator.kt:112 */
  546   1082   
        Self::InternalServerError(variant)
        1083  +
        /* ServerOperationErrorGenerator.kt:111 */
  547   1084   
    }
        1085  +
    /* ServerOperationErrorGenerator.kt:110 */
  548   1086   
}
  549   1087   
        1088  +
/* PythonServerOperationErrorGenerator.kt:38 */
  550   1089   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::EscapedStringValuesError {
  551   1090   
    fn from(variant: ::pyo3::PyErr) -> crate::error::EscapedStringValuesError {
  552   1091   
        ::pyo3::Python::with_gil(|py| {
  553   1092   
            let error = variant.value(py);
  554   1093   
            if let Ok(error) = error.extract::<crate::error::ValidationException>() {
  555   1094   
                return error.into();
  556   1095   
            }
  557   1096   
            if let Ok(error) = error.extract::<crate::error::ExtraError>() {
  558   1097   
                return error.into();
  559   1098   
            }
  560   1099   
            crate::error::InternalServerError {
  561   1100   
                message: error.to_string(),
  562   1101   
            }
  563   1102   
            .into()
  564   1103   
        })
  565   1104   
    }
  566   1105   
}
  567   1106   
        1107  +
/* RustType.kt:516 */
  568   1108   
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
        1109  +
/* PythonServerStructureGenerator.kt:63 */
  569   1110   
/// :param message str:
  570   1111   
/// :param field_list typing.Optional\[typing.List\[rest_json_extras.model.ValidationExceptionField\]\]:
  571   1112   
/// :rtype None:
  572         -
/// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1113  +
/// /* StructureGenerator.kt:197 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1114  +
/* RustType.kt:516 */
  573   1115   
#[derive(
  574   1116   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  575   1117   
)]
  576         -
pub struct ValidationException {
        1118  +
pub /* StructureGenerator.kt:201 */ struct ValidationException {
        1119  +
    /* RustType.kt:516 */
  577   1120   
    #[pyo3(get, set)]
        1121  +
    /* PythonServerStructureGenerator.kt:80 */
  578   1122   
    /// :type str:
  579         -
    /// A summary of the validation failure.
        1123  +
    /// /* StructureGenerator.kt:231 */A summary of the validation failure.
  580   1124   
    pub message: ::std::string::String,
        1125  +
    /* RustType.kt:516 */
  581   1126   
    #[pyo3(get, set)]
        1127  +
    /* PythonServerStructureGenerator.kt:80 */
  582   1128   
    /// :type typing.Optional\[typing.List\[rest_json_extras.model.ValidationExceptionField\]\]:
  583         -
    /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
        1129  +
    /// /* StructureGenerator.kt:231 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
  584   1130   
    pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
        1131  +
    /* StructureGenerator.kt:201 */
  585   1132   
}
        1133  +
/* StructureGenerator.kt:135 */
  586   1134   
impl ValidationException {
  587         -
    /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
        1135  +
    /// /* StructureGenerator.kt:231 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
        1136  +
    /* StructureGenerator.kt:166 */
  588   1137   
    pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
        1138  +
        /* StructureGenerator.kt:169 */
  589   1139   
        self.field_list.as_deref()
        1140  +
        /* StructureGenerator.kt:166 */
  590   1141   
    }
        1142  +
    /* StructureGenerator.kt:135 */
  591   1143   
}
        1144  +
/* RustType.kt:516 */
  592   1145   
#[allow(clippy::new_without_default)]
        1146  +
/* RustType.kt:516 */
  593   1147   
#[allow(clippy::too_many_arguments)]
        1148  +
/* RustType.kt:516 */
  594   1149   
#[::pyo3::pymethods]
        1150  +
/* PythonServerStructureGenerator.kt:88 */
  595   1151   
impl ValidationException {
  596   1152   
    #[new]
  597   1153   
    pub fn new(
  598   1154   
        message: ::std::string::String,
  599   1155   
        field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
  600   1156   
    ) -> Self {
  601   1157   
        Self {
  602   1158   
            message,
  603   1159   
            field_list,
  604   1160   
        }
  605   1161   
    }
  606   1162   
    fn __repr__(&self) -> String {
  607   1163   
        format!("{self:?}")
  608   1164   
    }
  609   1165   
    fn __str__(&self) -> String {
  610   1166   
        format!("{self:?}")
  611   1167   
    }
  612   1168   
}
        1169  +
/* ErrorImplGenerator.kt:99 */
  613   1170   
impl ValidationException {
        1171  +
    /* ErrorImplGenerator.kt:128 */
  614   1172   
    /// Returns the error message.
  615   1173   
    pub fn message(&self) -> &str {
  616   1174   
        &self.message
  617   1175   
    }
        1176  +
    /* ErrorImplGenerator.kt:141 */
  618   1177   
    #[doc(hidden)]
  619   1178   
    /// Returns the error name.
  620   1179   
    pub fn name(&self) -> &'static str {
  621   1180   
        "ValidationException"
  622   1181   
    }
        1182  +
    /* ErrorImplGenerator.kt:99 */
  623   1183   
}
        1184  +
/* ErrorImplGenerator.kt:153 */
  624   1185   
impl ::std::fmt::Display for ValidationException {
        1186  +
    /* ErrorImplGenerator.kt:154 */
  625   1187   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1188  +
        /* ErrorImplGenerator.kt:161 */
  626   1189   
        ::std::write!(f, "ValidationException")?;
        1190  +
        /* ErrorImplGenerator.kt:166 */
  627   1191   
        {
        1192  +
            /* ErrorImplGenerator.kt:167 */
  628   1193   
            ::std::write!(f, ": {}", &self.message)?;
        1194  +
            /* ErrorImplGenerator.kt:166 */
  629   1195   
        }
        1196  +
        /* ErrorImplGenerator.kt:171 */
  630   1197   
        Ok(())
        1198  +
        /* ErrorImplGenerator.kt:154 */
  631   1199   
    }
        1200  +
    /* ErrorImplGenerator.kt:153 */
  632   1201   
}
        1202  +
/* ErrorImplGenerator.kt:175 */
  633   1203   
impl ::std::error::Error for ValidationException {}
        1204  +
/* ServerCodegenVisitor.kt:370 */
  634   1205   
impl ValidationException {
  635         -
    /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
        1206  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
        1207  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  636   1208   
    pub fn builder() -> crate::error::validation_exception::Builder {
        1209  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  637   1210   
        crate::error::validation_exception::Builder::default()
        1211  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  638   1212   
    }
        1213  +
    /* ServerCodegenVisitor.kt:370 */
  639   1214   
}
  640   1215   
        1216  +
/* ServerOperationErrorGenerator.kt:63 */
  641   1217   
/// Error type for the `PrimitiveIntOp` operation.
        1218  +
/* ServerOperationErrorGenerator.kt:64 */
  642   1219   
/// Each variant represents an error that can occur for the `PrimitiveIntOp` operation.
        1220  +
/* RustType.kt:516 */
  643   1221   
#[derive(::std::fmt::Debug)]
  644         -
pub enum PrimitiveIntOpError {
        1222  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum PrimitiveIntOpError {
        1223  +
    /* ServerOperationErrorGenerator.kt:68 */
  645   1224   
    #[allow(missing_docs)] // documentation missing in model
        1225  +
    /* ServerOperationErrorGenerator.kt:71 */
  646   1226   
    ExtraError(crate::error::ExtraError),
        1227  +
    /* ServerOperationErrorGenerator.kt:68 */
  647   1228   
    #[allow(missing_docs)] // documentation missing in model
        1229  +
    /* ServerOperationErrorGenerator.kt:71 */
  648   1230   
    InternalServerError(crate::error::InternalServerError),
        1231  +
    /* ServerOperationErrorGenerator.kt:66 */
  649   1232   
}
        1233  +
/* ServerOperationErrorGenerator.kt:75 */
  650   1234   
impl ::std::fmt::Display for PrimitiveIntOpError {
        1235  +
    /* ServerOperationErrorGenerator.kt:76 */
  651   1236   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1237  +
        /* ServerOperationErrorGenerator.kt:139 */
  652   1238   
        match &self {
  653         -
            PrimitiveIntOpError::ExtraError(_inner) => _inner.fmt(f),
  654         -
            PrimitiveIntOpError::InternalServerError(_inner) => _inner.fmt(f),
        1239  +
            /* ServerOperationErrorGenerator.kt:142 */
        1240  +
            PrimitiveIntOpError::ExtraError(_inner) =>
        1241  +
            /* ServerOperationErrorGenerator.kt:78 */
        1242  +
            {
        1243  +
                _inner.fmt(f)
  655   1244   
            }
        1245  +
            ,
        1246  +
            /* ServerOperationErrorGenerator.kt:142 */
        1247  +
            PrimitiveIntOpError::InternalServerError(_inner) =>
        1248  +
            /* ServerOperationErrorGenerator.kt:78 */
        1249  +
            {
        1250  +
                _inner.fmt(f)
        1251  +
            }
        1252  +
            /* ServerOperationErrorGenerator.kt:139 */
        1253  +
        }
        1254  +
        /* ServerOperationErrorGenerator.kt:76 */
  656   1255   
    }
        1256  +
    /* ServerOperationErrorGenerator.kt:75 */
  657   1257   
}
        1258  +
/* ServerOperationErrorGenerator.kt:83 */
  658   1259   
impl PrimitiveIntOpError {
        1260  +
    /* ServerOperationErrorGenerator.kt:87 */
  659   1261   
    /// Returns `true` if the error kind is `PrimitiveIntOpError::ExtraError`.
        1262  +
    /* ServerOperationErrorGenerator.kt:88 */
  660   1263   
    pub fn is_extra_error(&self) -> bool {
        1264  +
        /* ServerOperationErrorGenerator.kt:89 */
  661   1265   
        matches!(&self, PrimitiveIntOpError::ExtraError(_))
        1266  +
        /* ServerOperationErrorGenerator.kt:88 */
  662   1267   
    }
        1268  +
    /* ServerOperationErrorGenerator.kt:87 */
  663   1269   
    /// Returns `true` if the error kind is `PrimitiveIntOpError::InternalServerError`.
        1270  +
    /* ServerOperationErrorGenerator.kt:88 */
  664   1271   
    pub fn is_internal_server_error(&self) -> bool {
        1272  +
        /* ServerOperationErrorGenerator.kt:89 */
  665   1273   
        matches!(&self, PrimitiveIntOpError::InternalServerError(_))
        1274  +
        /* ServerOperationErrorGenerator.kt:88 */
  666   1275   
    }
        1276  +
    /* ServerOperationErrorGenerator.kt:92 */
  667   1277   
    /// Returns the error name string by matching the correct variant.
        1278  +
    /* ServerOperationErrorGenerator.kt:93 */
  668   1279   
    pub fn name(&self) -> &'static str {
        1280  +
        /* ServerOperationErrorGenerator.kt:139 */
  669   1281   
        match &self {
  670         -
            PrimitiveIntOpError::ExtraError(_inner) => _inner.name(),
  671         -
            PrimitiveIntOpError::InternalServerError(_inner) => _inner.name(),
        1282  +
            /* ServerOperationErrorGenerator.kt:142 */
        1283  +
            PrimitiveIntOpError::ExtraError(_inner) =>
        1284  +
            /* ServerOperationErrorGenerator.kt:95 */
        1285  +
            {
        1286  +
                _inner.name()
        1287  +
            }
        1288  +
            ,
        1289  +
            /* ServerOperationErrorGenerator.kt:142 */
        1290  +
            PrimitiveIntOpError::InternalServerError(_inner) =>
        1291  +
            /* ServerOperationErrorGenerator.kt:95 */
        1292  +
            {
        1293  +
                _inner.name()
        1294  +
            }
        1295  +
            /* ServerOperationErrorGenerator.kt:139 */
  672   1296   
        }
        1297  +
        /* ServerOperationErrorGenerator.kt:93 */
  673   1298   
    }
        1299  +
    /* ServerOperationErrorGenerator.kt:83 */
  674   1300   
}
        1301  +
/* ServerOperationErrorGenerator.kt:100 */
  675   1302   
impl ::std::error::Error for PrimitiveIntOpError {
        1303  +
    /* ServerOperationErrorGenerator.kt:101 */
  676   1304   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1305  +
        /* ServerOperationErrorGenerator.kt:139 */
  677   1306   
        match &self {
  678         -
            PrimitiveIntOpError::ExtraError(_inner) => Some(_inner),
  679         -
            PrimitiveIntOpError::InternalServerError(_inner) => Some(_inner),
        1307  +
            /* ServerOperationErrorGenerator.kt:142 */
        1308  +
            PrimitiveIntOpError::ExtraError(_inner) =>
        1309  +
            /* ServerOperationErrorGenerator.kt:103 */
        1310  +
            {
        1311  +
                Some(_inner)
        1312  +
            }
        1313  +
            ,
        1314  +
            /* ServerOperationErrorGenerator.kt:142 */
        1315  +
            PrimitiveIntOpError::InternalServerError(_inner) =>
        1316  +
            /* ServerOperationErrorGenerator.kt:103 */
        1317  +
            {
        1318  +
                Some(_inner)
        1319  +
            }
        1320  +
            /* ServerOperationErrorGenerator.kt:139 */
  680   1321   
        }
        1322  +
        /* ServerOperationErrorGenerator.kt:101 */
  681   1323   
    }
        1324  +
    /* ServerOperationErrorGenerator.kt:100 */
  682   1325   
}
        1326  +
/* ServerOperationErrorGenerator.kt:110 */
  683   1327   
impl ::std::convert::From<crate::error::ExtraError> for crate::error::PrimitiveIntOpError {
        1328  +
    /* ServerOperationErrorGenerator.kt:111 */
  684   1329   
    fn from(variant: crate::error::ExtraError) -> crate::error::PrimitiveIntOpError {
        1330  +
        /* ServerOperationErrorGenerator.kt:112 */
  685   1331   
        Self::ExtraError(variant)
        1332  +
        /* ServerOperationErrorGenerator.kt:111 */
  686   1333   
    }
        1334  +
    /* ServerOperationErrorGenerator.kt:110 */
  687   1335   
}
        1336  +
/* ServerOperationErrorGenerator.kt:110 */
  688   1337   
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::PrimitiveIntOpError {
        1338  +
    /* ServerOperationErrorGenerator.kt:111 */
  689   1339   
    fn from(variant: crate::error::InternalServerError) -> crate::error::PrimitiveIntOpError {
        1340  +
        /* ServerOperationErrorGenerator.kt:112 */
  690   1341   
        Self::InternalServerError(variant)
        1342  +
        /* ServerOperationErrorGenerator.kt:111 */
  691   1343   
    }
        1344  +
    /* ServerOperationErrorGenerator.kt:110 */
  692   1345   
}
  693   1346   
        1347  +
/* PythonServerOperationErrorGenerator.kt:38 */
  694   1348   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::PrimitiveIntOpError {
  695   1349   
    fn from(variant: ::pyo3::PyErr) -> crate::error::PrimitiveIntOpError {
  696   1350   
        ::pyo3::Python::with_gil(|py| {
  697   1351   
            let error = variant.value(py);
  698   1352   
            if let Ok(error) = error.extract::<crate::error::ExtraError>() {
  699   1353   
                return error.into();
  700   1354   
            }
  701   1355   
            crate::error::InternalServerError {
  702   1356   
                message: error.to_string(),
  703   1357   
            }
  704   1358   
            .into()
  705   1359   
        })
  706   1360   
    }
  707   1361   
}
  708   1362   
        1363  +
/* ServerOperationErrorGenerator.kt:63 */
  709   1364   
/// Error type for the `MapWithEnumKeyOp` operation.
        1365  +
/* ServerOperationErrorGenerator.kt:64 */
  710   1366   
/// Each variant represents an error that can occur for the `MapWithEnumKeyOp` operation.
        1367  +
/* RustType.kt:516 */
  711   1368   
#[derive(::std::fmt::Debug)]
  712         -
pub enum MapWithEnumKeyOpError {
  713         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1369  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum MapWithEnumKeyOpError {
        1370  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1371  +
    /* ServerOperationErrorGenerator.kt:71 */
  714   1372   
    ValidationException(crate::error::ValidationException),
        1373  +
    /* ServerOperationErrorGenerator.kt:68 */
  715   1374   
    #[allow(missing_docs)] // documentation missing in model
        1375  +
    /* ServerOperationErrorGenerator.kt:71 */
  716   1376   
    ExtraError(crate::error::ExtraError),
        1377  +
    /* ServerOperationErrorGenerator.kt:68 */
  717   1378   
    #[allow(missing_docs)] // documentation missing in model
        1379  +
    /* ServerOperationErrorGenerator.kt:71 */
  718   1380   
    InternalServerError(crate::error::InternalServerError),
        1381  +
    /* ServerOperationErrorGenerator.kt:66 */
  719   1382   
}
        1383  +
/* ServerOperationErrorGenerator.kt:75 */
  720   1384   
impl ::std::fmt::Display for MapWithEnumKeyOpError {
        1385  +
    /* ServerOperationErrorGenerator.kt:76 */
  721   1386   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1387  +
        /* ServerOperationErrorGenerator.kt:139 */
  722   1388   
        match &self {
  723         -
            MapWithEnumKeyOpError::ValidationException(_inner) => _inner.fmt(f),
  724         -
            MapWithEnumKeyOpError::ExtraError(_inner) => _inner.fmt(f),
  725         -
            MapWithEnumKeyOpError::InternalServerError(_inner) => _inner.fmt(f),
        1389  +
            /* ServerOperationErrorGenerator.kt:142 */
        1390  +
            MapWithEnumKeyOpError::ValidationException(_inner) =>
        1391  +
            /* ServerOperationErrorGenerator.kt:78 */
        1392  +
            {
        1393  +
                _inner.fmt(f)
        1394  +
            }
        1395  +
            ,
        1396  +
            /* ServerOperationErrorGenerator.kt:142 */
        1397  +
            MapWithEnumKeyOpError::ExtraError(_inner) =>
        1398  +
            /* ServerOperationErrorGenerator.kt:78 */
        1399  +
            {
        1400  +
                _inner.fmt(f)
        1401  +
            }
        1402  +
            ,
        1403  +
            /* ServerOperationErrorGenerator.kt:142 */
        1404  +
            MapWithEnumKeyOpError::InternalServerError(_inner) =>
        1405  +
            /* ServerOperationErrorGenerator.kt:78 */
        1406  +
            {
        1407  +
                _inner.fmt(f)
  726   1408   
            }
        1409  +
            /* ServerOperationErrorGenerator.kt:139 */
  727   1410   
        }
        1411  +
        /* ServerOperationErrorGenerator.kt:76 */
        1412  +
    }
        1413  +
    /* ServerOperationErrorGenerator.kt:75 */
  728   1414   
}
        1415  +
/* ServerOperationErrorGenerator.kt:83 */
  729   1416   
impl MapWithEnumKeyOpError {
        1417  +
    /* ServerOperationErrorGenerator.kt:87 */
  730   1418   
    /// Returns `true` if the error kind is `MapWithEnumKeyOpError::ValidationException`.
        1419  +
    /* ServerOperationErrorGenerator.kt:88 */
  731   1420   
    pub fn is_validation_exception(&self) -> bool {
        1421  +
        /* ServerOperationErrorGenerator.kt:89 */
  732   1422   
        matches!(&self, MapWithEnumKeyOpError::ValidationException(_))
        1423  +
        /* ServerOperationErrorGenerator.kt:88 */
  733   1424   
    }
        1425  +
    /* ServerOperationErrorGenerator.kt:87 */
  734   1426   
    /// Returns `true` if the error kind is `MapWithEnumKeyOpError::ExtraError`.
        1427  +
    /* ServerOperationErrorGenerator.kt:88 */
  735   1428   
    pub fn is_extra_error(&self) -> bool {
        1429  +
        /* ServerOperationErrorGenerator.kt:89 */
  736   1430   
        matches!(&self, MapWithEnumKeyOpError::ExtraError(_))
        1431  +
        /* ServerOperationErrorGenerator.kt:88 */
  737   1432   
    }
        1433  +
    /* ServerOperationErrorGenerator.kt:87 */
  738   1434   
    /// Returns `true` if the error kind is `MapWithEnumKeyOpError::InternalServerError`.
        1435  +
    /* ServerOperationErrorGenerator.kt:88 */
  739   1436   
    pub fn is_internal_server_error(&self) -> bool {
        1437  +
        /* ServerOperationErrorGenerator.kt:89 */
  740   1438   
        matches!(&self, MapWithEnumKeyOpError::InternalServerError(_))
        1439  +
        /* ServerOperationErrorGenerator.kt:88 */
  741   1440   
    }
        1441  +
    /* ServerOperationErrorGenerator.kt:92 */
  742   1442   
    /// Returns the error name string by matching the correct variant.
        1443  +
    /* ServerOperationErrorGenerator.kt:93 */
  743   1444   
    pub fn name(&self) -> &'static str {
        1445  +
        /* ServerOperationErrorGenerator.kt:139 */
  744   1446   
        match &self {
  745         -
            MapWithEnumKeyOpError::ValidationException(_inner) => _inner.name(),
  746         -
            MapWithEnumKeyOpError::ExtraError(_inner) => _inner.name(),
  747         -
            MapWithEnumKeyOpError::InternalServerError(_inner) => _inner.name(),
        1447  +
            /* ServerOperationErrorGenerator.kt:142 */
        1448  +
            MapWithEnumKeyOpError::ValidationException(_inner) =>
        1449  +
            /* ServerOperationErrorGenerator.kt:95 */
        1450  +
            {
        1451  +
                _inner.name()
        1452  +
            }
        1453  +
            ,
        1454  +
            /* ServerOperationErrorGenerator.kt:142 */
        1455  +
            MapWithEnumKeyOpError::ExtraError(_inner) =>
        1456  +
            /* ServerOperationErrorGenerator.kt:95 */
        1457  +
            {
        1458  +
                _inner.name()
        1459  +
            }
        1460  +
            ,
        1461  +
            /* ServerOperationErrorGenerator.kt:142 */
        1462  +
            MapWithEnumKeyOpError::InternalServerError(_inner) =>
        1463  +
            /* ServerOperationErrorGenerator.kt:95 */
        1464  +
            {
        1465  +
                _inner.name()
  748   1466   
            }
        1467  +
            /* ServerOperationErrorGenerator.kt:139 */
  749   1468   
        }
        1469  +
        /* ServerOperationErrorGenerator.kt:93 */
        1470  +
    }
        1471  +
    /* ServerOperationErrorGenerator.kt:83 */
  750   1472   
}
        1473  +
/* ServerOperationErrorGenerator.kt:100 */
  751   1474   
impl ::std::error::Error for MapWithEnumKeyOpError {
        1475  +
    /* ServerOperationErrorGenerator.kt:101 */
  752   1476   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1477  +
        /* ServerOperationErrorGenerator.kt:139 */
  753   1478   
        match &self {
  754         -
            MapWithEnumKeyOpError::ValidationException(_inner) => Some(_inner),
  755         -
            MapWithEnumKeyOpError::ExtraError(_inner) => Some(_inner),
  756         -
            MapWithEnumKeyOpError::InternalServerError(_inner) => Some(_inner),
        1479  +
            /* ServerOperationErrorGenerator.kt:142 */
        1480  +
            MapWithEnumKeyOpError::ValidationException(_inner) =>
        1481  +
            /* ServerOperationErrorGenerator.kt:103 */
        1482  +
            {
        1483  +
                Some(_inner)
        1484  +
            }
        1485  +
            ,
        1486  +
            /* ServerOperationErrorGenerator.kt:142 */
        1487  +
            MapWithEnumKeyOpError::ExtraError(_inner) =>
        1488  +
            /* ServerOperationErrorGenerator.kt:103 */
        1489  +
            {
        1490  +
                Some(_inner)
        1491  +
            }
        1492  +
            ,
        1493  +
            /* ServerOperationErrorGenerator.kt:142 */
        1494  +
            MapWithEnumKeyOpError::InternalServerError(_inner) =>
        1495  +
            /* ServerOperationErrorGenerator.kt:103 */
        1496  +
            {
        1497  +
                Some(_inner)
        1498  +
            }
        1499  +
            /* ServerOperationErrorGenerator.kt:139 */
  757   1500   
        }
        1501  +
        /* ServerOperationErrorGenerator.kt:101 */
  758   1502   
    }
        1503  +
    /* ServerOperationErrorGenerator.kt:100 */
  759   1504   
}
        1505  +
/* ServerOperationErrorGenerator.kt:110 */
  760   1506   
impl ::std::convert::From<crate::error::ValidationException>
  761   1507   
    for crate::error::MapWithEnumKeyOpError
  762   1508   
{
        1509  +
    /* ServerOperationErrorGenerator.kt:111 */
  763   1510   
    fn from(variant: crate::error::ValidationException) -> crate::error::MapWithEnumKeyOpError {
        1511  +
        /* ServerOperationErrorGenerator.kt:112 */
  764   1512   
        Self::ValidationException(variant)
        1513  +
        /* ServerOperationErrorGenerator.kt:111 */
  765   1514   
    }
        1515  +
    /* ServerOperationErrorGenerator.kt:110 */
  766   1516   
}
        1517  +
/* ServerOperationErrorGenerator.kt:110 */
  767   1518   
impl ::std::convert::From<crate::error::ExtraError> for crate::error::MapWithEnumKeyOpError {
        1519  +
    /* ServerOperationErrorGenerator.kt:111 */
  768   1520   
    fn from(variant: crate::error::ExtraError) -> crate::error::MapWithEnumKeyOpError {
        1521  +
        /* ServerOperationErrorGenerator.kt:112 */
  769   1522   
        Self::ExtraError(variant)
        1523  +
        /* ServerOperationErrorGenerator.kt:111 */
  770   1524   
    }
        1525  +
    /* ServerOperationErrorGenerator.kt:110 */
  771   1526   
}
        1527  +
/* ServerOperationErrorGenerator.kt:110 */
  772   1528   
impl ::std::convert::From<crate::error::InternalServerError>
  773   1529   
    for crate::error::MapWithEnumKeyOpError
  774   1530   
{
        1531  +
    /* ServerOperationErrorGenerator.kt:111 */
  775   1532   
    fn from(variant: crate::error::InternalServerError) -> crate::error::MapWithEnumKeyOpError {
        1533  +
        /* ServerOperationErrorGenerator.kt:112 */
  776   1534   
        Self::InternalServerError(variant)
        1535  +
        /* ServerOperationErrorGenerator.kt:111 */
  777   1536   
    }
        1537  +
    /* ServerOperationErrorGenerator.kt:110 */
  778   1538   
}
  779   1539   
        1540  +
/* PythonServerOperationErrorGenerator.kt:38 */
  780   1541   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::MapWithEnumKeyOpError {
  781   1542   
    fn from(variant: ::pyo3::PyErr) -> crate::error::MapWithEnumKeyOpError {
  782   1543   
        ::pyo3::Python::with_gil(|py| {
  783   1544   
            let error = variant.value(py);
  784   1545   
            if let Ok(error) = error.extract::<crate::error::ValidationException>() {
  785   1546   
                return error.into();
  786   1547   
            }
  787   1548   
            if let Ok(error) = error.extract::<crate::error::ExtraError>() {
  788   1549   
                return error.into();
  789   1550   
            }
  790   1551   
            crate::error::InternalServerError {
  791   1552   
                message: error.to_string(),
  792   1553   
            }
  793   1554   
            .into()
  794   1555   
        })
  795   1556   
    }
  796   1557   
}
  797   1558   
        1559  +
/* ServerOperationErrorGenerator.kt:63 */
  798   1560   
/// Error type for the `StatusResponse` operation.
        1561  +
/* ServerOperationErrorGenerator.kt:64 */
  799   1562   
/// Each variant represents an error that can occur for the `StatusResponse` operation.
        1563  +
/* RustType.kt:516 */
  800   1564   
#[derive(::std::fmt::Debug)]
  801         -
pub enum StatusResponseError {
        1565  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum StatusResponseError {
        1566  +
    /* ServerOperationErrorGenerator.kt:68 */
  802   1567   
    #[allow(missing_docs)] // documentation missing in model
        1568  +
    /* ServerOperationErrorGenerator.kt:71 */
  803   1569   
    ExtraError(crate::error::ExtraError),
        1570  +
    /* ServerOperationErrorGenerator.kt:68 */
  804   1571   
    #[allow(missing_docs)] // documentation missing in model
        1572  +
    /* ServerOperationErrorGenerator.kt:71 */
  805   1573   
    InternalServerError(crate::error::InternalServerError),
        1574  +
    /* ServerOperationErrorGenerator.kt:66 */
  806   1575   
}
        1576  +
/* ServerOperationErrorGenerator.kt:75 */
  807   1577   
impl ::std::fmt::Display for StatusResponseError {
        1578  +
    /* ServerOperationErrorGenerator.kt:76 */
  808   1579   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1580  +
        /* ServerOperationErrorGenerator.kt:139 */
  809   1581   
        match &self {
  810         -
            StatusResponseError::ExtraError(_inner) => _inner.fmt(f),
  811         -
            StatusResponseError::InternalServerError(_inner) => _inner.fmt(f),
        1582  +
            /* ServerOperationErrorGenerator.kt:142 */
        1583  +
            StatusResponseError::ExtraError(_inner) =>
        1584  +
            /* ServerOperationErrorGenerator.kt:78 */
        1585  +
            {
        1586  +
                _inner.fmt(f)
        1587  +
            }
        1588  +
            ,
        1589  +
            /* ServerOperationErrorGenerator.kt:142 */
        1590  +
            StatusResponseError::InternalServerError(_inner) =>
        1591  +
            /* ServerOperationErrorGenerator.kt:78 */
        1592  +
            {
        1593  +
                _inner.fmt(f)
        1594  +
            }
        1595  +
            /* ServerOperationErrorGenerator.kt:139 */
  812   1596   
        }
        1597  +
        /* ServerOperationErrorGenerator.kt:76 */
  813   1598   
    }
        1599  +
    /* ServerOperationErrorGenerator.kt:75 */
  814   1600   
}
        1601  +
/* ServerOperationErrorGenerator.kt:83 */
  815   1602   
impl StatusResponseError {
        1603  +
    /* ServerOperationErrorGenerator.kt:87 */
  816   1604   
    /// Returns `true` if the error kind is `StatusResponseError::ExtraError`.
        1605  +
    /* ServerOperationErrorGenerator.kt:88 */
  817   1606   
    pub fn is_extra_error(&self) -> bool {
        1607  +
        /* ServerOperationErrorGenerator.kt:89 */
  818   1608   
        matches!(&self, StatusResponseError::ExtraError(_))
        1609  +
        /* ServerOperationErrorGenerator.kt:88 */
  819   1610   
    }
        1611  +
    /* ServerOperationErrorGenerator.kt:87 */
  820   1612   
    /// Returns `true` if the error kind is `StatusResponseError::InternalServerError`.
        1613  +
    /* ServerOperationErrorGenerator.kt:88 */
  821   1614   
    pub fn is_internal_server_error(&self) -> bool {
        1615  +
        /* ServerOperationErrorGenerator.kt:89 */
  822   1616   
        matches!(&self, StatusResponseError::InternalServerError(_))
        1617  +
        /* ServerOperationErrorGenerator.kt:88 */
  823   1618   
    }
        1619  +
    /* ServerOperationErrorGenerator.kt:92 */
  824   1620   
    /// Returns the error name string by matching the correct variant.
        1621  +
    /* ServerOperationErrorGenerator.kt:93 */
  825   1622   
    pub fn name(&self) -> &'static str {
        1623  +
        /* ServerOperationErrorGenerator.kt:139 */
  826   1624   
        match &self {
  827         -
            StatusResponseError::ExtraError(_inner) => _inner.name(),
  828         -
            StatusResponseError::InternalServerError(_inner) => _inner.name(),
        1625  +
            /* ServerOperationErrorGenerator.kt:142 */
        1626  +
            StatusResponseError::ExtraError(_inner) =>
        1627  +
            /* ServerOperationErrorGenerator.kt:95 */
        1628  +
            {
        1629  +
                _inner.name()
        1630  +
            }
        1631  +
            ,
        1632  +
            /* ServerOperationErrorGenerator.kt:142 */
        1633  +
            StatusResponseError::InternalServerError(_inner) =>
        1634  +
            /* ServerOperationErrorGenerator.kt:95 */
        1635  +
            {
        1636  +
                _inner.name()
  829   1637   
            }
        1638  +
            /* ServerOperationErrorGenerator.kt:139 */
  830   1639   
        }
        1640  +
        /* ServerOperationErrorGenerator.kt:93 */
        1641  +
    }
        1642  +
    /* ServerOperationErrorGenerator.kt:83 */
  831   1643   
}
        1644  +
/* ServerOperationErrorGenerator.kt:100 */
  832   1645   
impl ::std::error::Error for StatusResponseError {
        1646  +
    /* ServerOperationErrorGenerator.kt:101 */
  833   1647   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1648  +
        /* ServerOperationErrorGenerator.kt:139 */
  834   1649   
        match &self {
  835         -
            StatusResponseError::ExtraError(_inner) => Some(_inner),
  836         -
            StatusResponseError::InternalServerError(_inner) => Some(_inner),
        1650  +
            /* ServerOperationErrorGenerator.kt:142 */
        1651  +
            StatusResponseError::ExtraError(_inner) =>
        1652  +
            /* ServerOperationErrorGenerator.kt:103 */
        1653  +
            {
        1654  +
                Some(_inner)
  837   1655   
            }
        1656  +
            ,
        1657  +
            /* ServerOperationErrorGenerator.kt:142 */
        1658  +
            StatusResponseError::InternalServerError(_inner) =>
        1659  +
            /* ServerOperationErrorGenerator.kt:103 */
        1660  +
            {
        1661  +
                Some(_inner)
        1662  +
            }
        1663  +
            /* ServerOperationErrorGenerator.kt:139 */
        1664  +
        }
        1665  +
        /* ServerOperationErrorGenerator.kt:101 */
  838   1666   
    }
        1667  +
    /* ServerOperationErrorGenerator.kt:100 */
  839   1668   
}
        1669  +
/* ServerOperationErrorGenerator.kt:110 */
  840   1670   
impl ::std::convert::From<crate::error::ExtraError> for crate::error::StatusResponseError {
        1671  +
    /* ServerOperationErrorGenerator.kt:111 */
  841   1672   
    fn from(variant: crate::error::ExtraError) -> crate::error::StatusResponseError {
        1673  +
        /* ServerOperationErrorGenerator.kt:112 */
  842   1674   
        Self::ExtraError(variant)
        1675  +
        /* ServerOperationErrorGenerator.kt:111 */
  843   1676   
    }
        1677  +
    /* ServerOperationErrorGenerator.kt:110 */
  844   1678   
}
        1679  +
/* ServerOperationErrorGenerator.kt:110 */
  845   1680   
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::StatusResponseError {
        1681  +
    /* ServerOperationErrorGenerator.kt:111 */
  846   1682   
    fn from(variant: crate::error::InternalServerError) -> crate::error::StatusResponseError {
        1683  +
        /* ServerOperationErrorGenerator.kt:112 */
  847   1684   
        Self::InternalServerError(variant)
        1685  +
        /* ServerOperationErrorGenerator.kt:111 */
  848   1686   
    }
        1687  +
    /* ServerOperationErrorGenerator.kt:110 */
  849   1688   
}
  850   1689   
        1690  +
/* PythonServerOperationErrorGenerator.kt:38 */
  851   1691   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::StatusResponseError {
  852   1692   
    fn from(variant: ::pyo3::PyErr) -> crate::error::StatusResponseError {
  853   1693   
        ::pyo3::Python::with_gil(|py| {
  854   1694   
            let error = variant.value(py);
  855   1695   
            if let Ok(error) = error.extract::<crate::error::ExtraError>() {
  856   1696   
                return error.into();
  857   1697   
            }
  858   1698   
            crate::error::InternalServerError {
  859   1699   
                message: error.to_string(),
  860   1700   
            }
  861   1701   
            .into()
  862   1702   
        })
  863   1703   
    }
  864   1704   
}
  865   1705   
        1706  +
/* ServerOperationErrorGenerator.kt:63 */
  866   1707   
/// Error type for the `EnumQuery` operation.
        1708  +
/* ServerOperationErrorGenerator.kt:64 */
  867   1709   
/// Each variant represents an error that can occur for the `EnumQuery` operation.
        1710  +
/* RustType.kt:516 */
  868   1711   
#[derive(::std::fmt::Debug)]
  869         -
pub enum EnumQueryError {
  870         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1712  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum EnumQueryError {
        1713  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1714  +
    /* ServerOperationErrorGenerator.kt:71 */
  871   1715   
    ValidationException(crate::error::ValidationException),
        1716  +
    /* ServerOperationErrorGenerator.kt:68 */
  872   1717   
    #[allow(missing_docs)] // documentation missing in model
        1718  +
    /* ServerOperationErrorGenerator.kt:71 */
  873   1719   
    ExtraError(crate::error::ExtraError),
        1720  +
    /* ServerOperationErrorGenerator.kt:68 */
  874   1721   
    #[allow(missing_docs)] // documentation missing in model
        1722  +
    /* ServerOperationErrorGenerator.kt:71 */
  875   1723   
    InternalServerError(crate::error::InternalServerError),
        1724  +
    /* ServerOperationErrorGenerator.kt:66 */
  876   1725   
}
        1726  +
/* ServerOperationErrorGenerator.kt:75 */
  877   1727   
impl ::std::fmt::Display for EnumQueryError {
        1728  +
    /* ServerOperationErrorGenerator.kt:76 */
  878   1729   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1730  +
        /* ServerOperationErrorGenerator.kt:139 */
  879   1731   
        match &self {
  880         -
            EnumQueryError::ValidationException(_inner) => _inner.fmt(f),
  881         -
            EnumQueryError::ExtraError(_inner) => _inner.fmt(f),
  882         -
            EnumQueryError::InternalServerError(_inner) => _inner.fmt(f),
        1732  +
            /* ServerOperationErrorGenerator.kt:142 */
        1733  +
            EnumQueryError::ValidationException(_inner) =>
        1734  +
            /* ServerOperationErrorGenerator.kt:78 */
        1735  +
            {
        1736  +
                _inner.fmt(f)
  883   1737   
            }
        1738  +
            ,
        1739  +
            /* ServerOperationErrorGenerator.kt:142 */
        1740  +
            EnumQueryError::ExtraError(_inner) =>
        1741  +
            /* ServerOperationErrorGenerator.kt:78 */
        1742  +
            {
        1743  +
                _inner.fmt(f)
  884   1744   
            }
        1745  +
            ,
        1746  +
            /* ServerOperationErrorGenerator.kt:142 */
        1747  +
            EnumQueryError::InternalServerError(_inner) =>
        1748  +
            /* ServerOperationErrorGenerator.kt:78 */
        1749  +
            {
        1750  +
                _inner.fmt(f)
        1751  +
            }
        1752  +
            /* ServerOperationErrorGenerator.kt:139 */
        1753  +
        }
        1754  +
        /* ServerOperationErrorGenerator.kt:76 */
        1755  +
    }
        1756  +
    /* ServerOperationErrorGenerator.kt:75 */
  885   1757   
}
        1758  +
/* ServerOperationErrorGenerator.kt:83 */
  886   1759   
impl EnumQueryError {
        1760  +
    /* ServerOperationErrorGenerator.kt:87 */
  887   1761   
    /// Returns `true` if the error kind is `EnumQueryError::ValidationException`.
        1762  +
    /* ServerOperationErrorGenerator.kt:88 */
  888   1763   
    pub fn is_validation_exception(&self) -> bool {
        1764  +
        /* ServerOperationErrorGenerator.kt:89 */
  889   1765   
        matches!(&self, EnumQueryError::ValidationException(_))
        1766  +
        /* ServerOperationErrorGenerator.kt:88 */
  890   1767   
    }
        1768  +
    /* ServerOperationErrorGenerator.kt:87 */
  891   1769   
    /// Returns `true` if the error kind is `EnumQueryError::ExtraError`.
        1770  +
    /* ServerOperationErrorGenerator.kt:88 */
  892   1771   
    pub fn is_extra_error(&self) -> bool {
        1772  +
        /* ServerOperationErrorGenerator.kt:89 */
  893   1773   
        matches!(&self, EnumQueryError::ExtraError(_))
        1774  +
        /* ServerOperationErrorGenerator.kt:88 */
  894   1775   
    }
        1776  +
    /* ServerOperationErrorGenerator.kt:87 */
  895   1777   
    /// Returns `true` if the error kind is `EnumQueryError::InternalServerError`.
        1778  +
    /* ServerOperationErrorGenerator.kt:88 */
  896   1779   
    pub fn is_internal_server_error(&self) -> bool {
        1780  +
        /* ServerOperationErrorGenerator.kt:89 */
  897   1781   
        matches!(&self, EnumQueryError::InternalServerError(_))
        1782  +
        /* ServerOperationErrorGenerator.kt:88 */
  898   1783   
    }
        1784  +
    /* ServerOperationErrorGenerator.kt:92 */
  899   1785   
    /// Returns the error name string by matching the correct variant.
        1786  +
    /* ServerOperationErrorGenerator.kt:93 */
  900   1787   
    pub fn name(&self) -> &'static str {
        1788  +
        /* ServerOperationErrorGenerator.kt:139 */
  901   1789   
        match &self {
  902         -
            EnumQueryError::ValidationException(_inner) => _inner.name(),
  903         -
            EnumQueryError::ExtraError(_inner) => _inner.name(),
  904         -
            EnumQueryError::InternalServerError(_inner) => _inner.name(),
        1790  +
            /* ServerOperationErrorGenerator.kt:142 */
        1791  +
            EnumQueryError::ValidationException(_inner) =>
        1792  +
            /* ServerOperationErrorGenerator.kt:95 */
        1793  +
            {
        1794  +
                _inner.name()
        1795  +
            }
        1796  +
            ,
        1797  +
            /* ServerOperationErrorGenerator.kt:142 */
        1798  +
            EnumQueryError::ExtraError(_inner) =>
        1799  +
            /* ServerOperationErrorGenerator.kt:95 */
        1800  +
            {
        1801  +
                _inner.name()
        1802  +
            }
        1803  +
            ,
        1804  +
            /* ServerOperationErrorGenerator.kt:142 */
        1805  +
            EnumQueryError::InternalServerError(_inner) =>
        1806  +
            /* ServerOperationErrorGenerator.kt:95 */
        1807  +
            {
        1808  +
                _inner.name()
  905   1809   
            }
        1810  +
            /* ServerOperationErrorGenerator.kt:139 */
  906   1811   
        }
        1812  +
        /* ServerOperationErrorGenerator.kt:93 */
        1813  +
    }
        1814  +
    /* ServerOperationErrorGenerator.kt:83 */
  907   1815   
}
        1816  +
/* ServerOperationErrorGenerator.kt:100 */
  908   1817   
impl ::std::error::Error for EnumQueryError {
        1818  +
    /* ServerOperationErrorGenerator.kt:101 */
  909   1819   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1820  +
        /* ServerOperationErrorGenerator.kt:139 */
  910   1821   
        match &self {
  911         -
            EnumQueryError::ValidationException(_inner) => Some(_inner),
  912         -
            EnumQueryError::ExtraError(_inner) => Some(_inner),
  913         -
            EnumQueryError::InternalServerError(_inner) => Some(_inner),
        1822  +
            /* ServerOperationErrorGenerator.kt:142 */
        1823  +
            EnumQueryError::ValidationException(_inner) =>
        1824  +
            /* ServerOperationErrorGenerator.kt:103 */
        1825  +
            {
        1826  +
                Some(_inner)
  914   1827   
            }
        1828  +
            ,
        1829  +
            /* ServerOperationErrorGenerator.kt:142 */
        1830  +
            EnumQueryError::ExtraError(_inner) =>
        1831  +
            /* ServerOperationErrorGenerator.kt:103 */
        1832  +
            {
        1833  +
                Some(_inner)
  915   1834   
            }
        1835  +
            ,
        1836  +
            /* ServerOperationErrorGenerator.kt:142 */
        1837  +
            EnumQueryError::InternalServerError(_inner) =>
        1838  +
            /* ServerOperationErrorGenerator.kt:103 */
        1839  +
            {
        1840  +
                Some(_inner)
        1841  +
            }
        1842  +
            /* ServerOperationErrorGenerator.kt:139 */
        1843  +
        }
        1844  +
        /* ServerOperationErrorGenerator.kt:101 */
        1845  +
    }
        1846  +
    /* ServerOperationErrorGenerator.kt:100 */
  916   1847   
}
        1848  +
/* ServerOperationErrorGenerator.kt:110 */
  917   1849   
impl ::std::convert::From<crate::error::ValidationException> for crate::error::EnumQueryError {
        1850  +
    /* ServerOperationErrorGenerator.kt:111 */
  918   1851   
    fn from(variant: crate::error::ValidationException) -> crate::error::EnumQueryError {
        1852  +
        /* ServerOperationErrorGenerator.kt:112 */
  919   1853   
        Self::ValidationException(variant)
        1854  +
        /* ServerOperationErrorGenerator.kt:111 */
  920   1855   
    }
        1856  +
    /* ServerOperationErrorGenerator.kt:110 */
  921   1857   
}
        1858  +
/* ServerOperationErrorGenerator.kt:110 */
  922   1859   
impl ::std::convert::From<crate::error::ExtraError> for crate::error::EnumQueryError {
        1860  +
    /* ServerOperationErrorGenerator.kt:111 */
  923   1861   
    fn from(variant: crate::error::ExtraError) -> crate::error::EnumQueryError {
        1862  +
        /* ServerOperationErrorGenerator.kt:112 */
  924   1863   
        Self::ExtraError(variant)
        1864  +
        /* ServerOperationErrorGenerator.kt:111 */
  925   1865   
    }
        1866  +
    /* ServerOperationErrorGenerator.kt:110 */
  926   1867   
}
        1868  +
/* ServerOperationErrorGenerator.kt:110 */
  927   1869   
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::EnumQueryError {
        1870  +
    /* ServerOperationErrorGenerator.kt:111 */
  928   1871   
    fn from(variant: crate::error::InternalServerError) -> crate::error::EnumQueryError {
        1872  +
        /* ServerOperationErrorGenerator.kt:112 */
  929   1873   
        Self::InternalServerError(variant)
        1874  +
        /* ServerOperationErrorGenerator.kt:111 */
  930   1875   
    }
        1876  +
    /* ServerOperationErrorGenerator.kt:110 */
  931   1877   
}
  932   1878   
        1879  +
/* PythonServerOperationErrorGenerator.kt:38 */
  933   1880   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::EnumQueryError {
  934   1881   
    fn from(variant: ::pyo3::PyErr) -> crate::error::EnumQueryError {
  935   1882   
        ::pyo3::Python::with_gil(|py| {
  936   1883   
            let error = variant.value(py);
  937   1884   
            if let Ok(error) = error.extract::<crate::error::ValidationException>() {
  938   1885   
                return error.into();
  939   1886   
            }
  940   1887   
            if let Ok(error) = error.extract::<crate::error::ExtraError>() {
  941   1888   
                return error.into();
  942   1889   
            }
  943   1890   
            crate::error::InternalServerError {
  944   1891   
                message: error.to_string(),
  945   1892   
            }
  946   1893   
            .into()
  947   1894   
        })
  948   1895   
    }
  949   1896   
}
  950   1897   
        1898  +
/* ServerOperationErrorGenerator.kt:63 */
  951   1899   
/// Error type for the `PrimitiveIntHeader` operation.
        1900  +
/* ServerOperationErrorGenerator.kt:64 */
  952   1901   
/// Each variant represents an error that can occur for the `PrimitiveIntHeader` operation.
        1902  +
/* RustType.kt:516 */
  953   1903   
#[derive(::std::fmt::Debug)]
  954         -
pub enum PrimitiveIntHeaderError {
  955         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1904  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum PrimitiveIntHeaderError {
        1905  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1906  +
    /* ServerOperationErrorGenerator.kt:71 */
  956   1907   
    ValidationException(crate::error::ValidationException),
        1908  +
    /* ServerOperationErrorGenerator.kt:68 */
  957   1909   
    #[allow(missing_docs)] // documentation missing in model
        1910  +
    /* ServerOperationErrorGenerator.kt:71 */
  958   1911   
    ExtraError(crate::error::ExtraError),
        1912  +
    /* ServerOperationErrorGenerator.kt:68 */
  959   1913   
    #[allow(missing_docs)] // documentation missing in model
        1914  +
    /* ServerOperationErrorGenerator.kt:71 */
  960   1915   
    InternalServerError(crate::error::InternalServerError),
        1916  +
    /* ServerOperationErrorGenerator.kt:66 */
  961   1917   
}
        1918  +
/* ServerOperationErrorGenerator.kt:75 */
  962   1919   
impl ::std::fmt::Display for PrimitiveIntHeaderError {
        1920  +
    /* ServerOperationErrorGenerator.kt:76 */
  963   1921   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1922  +
        /* ServerOperationErrorGenerator.kt:139 */
  964   1923   
        match &self {
  965         -
            PrimitiveIntHeaderError::ValidationException(_inner) => _inner.fmt(f),
  966         -
            PrimitiveIntHeaderError::ExtraError(_inner) => _inner.fmt(f),
  967         -
            PrimitiveIntHeaderError::InternalServerError(_inner) => _inner.fmt(f),
        1924  +
            /* ServerOperationErrorGenerator.kt:142 */
        1925  +
            PrimitiveIntHeaderError::ValidationException(_inner) =>
        1926  +
            /* ServerOperationErrorGenerator.kt:78 */
        1927  +
            {
        1928  +
                _inner.fmt(f)
  968   1929   
            }
        1930  +
            ,
        1931  +
            /* ServerOperationErrorGenerator.kt:142 */
        1932  +
            PrimitiveIntHeaderError::ExtraError(_inner) =>
        1933  +
            /* ServerOperationErrorGenerator.kt:78 */
        1934  +
            {
        1935  +
                _inner.fmt(f)
        1936  +
            }
        1937  +
            ,
        1938  +
            /* ServerOperationErrorGenerator.kt:142 */
        1939  +
            PrimitiveIntHeaderError::InternalServerError(_inner) =>
        1940  +
            /* ServerOperationErrorGenerator.kt:78 */
        1941  +
            {
        1942  +
                _inner.fmt(f)
  969   1943   
            }
        1944  +
            /* ServerOperationErrorGenerator.kt:139 */
        1945  +
        }
        1946  +
        /* ServerOperationErrorGenerator.kt:76 */
        1947  +
    }
        1948  +
    /* ServerOperationErrorGenerator.kt:75 */
  970   1949   
}
        1950  +
/* ServerOperationErrorGenerator.kt:83 */
  971   1951   
impl PrimitiveIntHeaderError {
        1952  +
    /* ServerOperationErrorGenerator.kt:87 */
  972   1953   
    /// Returns `true` if the error kind is `PrimitiveIntHeaderError::ValidationException`.
        1954  +
    /* ServerOperationErrorGenerator.kt:88 */
  973   1955   
    pub fn is_validation_exception(&self) -> bool {
        1956  +
        /* ServerOperationErrorGenerator.kt:89 */
  974   1957   
        matches!(&self, PrimitiveIntHeaderError::ValidationException(_))
        1958  +
        /* ServerOperationErrorGenerator.kt:88 */
  975   1959   
    }
        1960  +
    /* ServerOperationErrorGenerator.kt:87 */
  976   1961   
    /// Returns `true` if the error kind is `PrimitiveIntHeaderError::ExtraError`.
        1962  +
    /* ServerOperationErrorGenerator.kt:88 */
  977   1963   
    pub fn is_extra_error(&self) -> bool {
        1964  +
        /* ServerOperationErrorGenerator.kt:89 */
  978   1965   
        matches!(&self, PrimitiveIntHeaderError::ExtraError(_))
        1966  +
        /* ServerOperationErrorGenerator.kt:88 */
  979   1967   
    }
        1968  +
    /* ServerOperationErrorGenerator.kt:87 */
  980   1969   
    /// Returns `true` if the error kind is `PrimitiveIntHeaderError::InternalServerError`.
        1970  +
    /* ServerOperationErrorGenerator.kt:88 */
  981   1971   
    pub fn is_internal_server_error(&self) -> bool {
        1972  +
        /* ServerOperationErrorGenerator.kt:89 */
  982   1973   
        matches!(&self, PrimitiveIntHeaderError::InternalServerError(_))
        1974  +
        /* ServerOperationErrorGenerator.kt:88 */
  983   1975   
    }
        1976  +
    /* ServerOperationErrorGenerator.kt:92 */
  984   1977   
    /// Returns the error name string by matching the correct variant.
        1978  +
    /* ServerOperationErrorGenerator.kt:93 */
  985   1979   
    pub fn name(&self) -> &'static str {
        1980  +
        /* ServerOperationErrorGenerator.kt:139 */
  986   1981   
        match &self {
  987         -
            PrimitiveIntHeaderError::ValidationException(_inner) => _inner.name(),
  988         -
            PrimitiveIntHeaderError::ExtraError(_inner) => _inner.name(),
  989         -
            PrimitiveIntHeaderError::InternalServerError(_inner) => _inner.name(),
        1982  +
            /* ServerOperationErrorGenerator.kt:142 */
        1983  +
            PrimitiveIntHeaderError::ValidationException(_inner) =>
        1984  +
            /* ServerOperationErrorGenerator.kt:95 */
        1985  +
            {
        1986  +
                _inner.name()
        1987  +
            }
        1988  +
            ,
        1989  +
            /* ServerOperationErrorGenerator.kt:142 */
        1990  +
            PrimitiveIntHeaderError::ExtraError(_inner) =>
        1991  +
            /* ServerOperationErrorGenerator.kt:95 */
        1992  +
            {
        1993  +
                _inner.name()
        1994  +
            }
        1995  +
            ,
        1996  +
            /* ServerOperationErrorGenerator.kt:142 */
        1997  +
            PrimitiveIntHeaderError::InternalServerError(_inner) =>
        1998  +
            /* ServerOperationErrorGenerator.kt:95 */
        1999  +
            {
        2000  +
                _inner.name()
        2001  +
            }
        2002  +
            /* ServerOperationErrorGenerator.kt:139 */
  990   2003   
        }
        2004  +
        /* ServerOperationErrorGenerator.kt:93 */
  991   2005   
    }
        2006  +
    /* ServerOperationErrorGenerator.kt:83 */
  992   2007   
}
        2008  +
/* ServerOperationErrorGenerator.kt:100 */
  993   2009   
impl ::std::error::Error for PrimitiveIntHeaderError {
        2010  +
    /* ServerOperationErrorGenerator.kt:101 */
  994   2011   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        2012  +
        /* ServerOperationErrorGenerator.kt:139 */
  995   2013   
        match &self {
  996         -
            PrimitiveIntHeaderError::ValidationException(_inner) => Some(_inner),
  997         -
            PrimitiveIntHeaderError::ExtraError(_inner) => Some(_inner),
  998         -
            PrimitiveIntHeaderError::InternalServerError(_inner) => Some(_inner),
        2014  +
            /* ServerOperationErrorGenerator.kt:142 */
        2015  +
            PrimitiveIntHeaderError::ValidationException(_inner) =>
        2016  +
            /* ServerOperationErrorGenerator.kt:103 */
        2017  +
            {
        2018  +
                Some(_inner)
        2019  +
            }
        2020  +
            ,
        2021  +
            /* ServerOperationErrorGenerator.kt:142 */
        2022  +
            PrimitiveIntHeaderError::ExtraError(_inner) =>
        2023  +
            /* ServerOperationErrorGenerator.kt:103 */
        2024  +
            {
        2025  +
                Some(_inner)
        2026  +
            }
        2027  +
            ,
        2028  +
            /* ServerOperationErrorGenerator.kt:142 */
        2029  +
            PrimitiveIntHeaderError::InternalServerError(_inner) =>
        2030  +
            /* ServerOperationErrorGenerator.kt:103 */
        2031  +
            {
        2032  +
                Some(_inner)
        2033  +
            }
        2034  +
            /* ServerOperationErrorGenerator.kt:139 */
  999   2035   
        }
        2036  +
        /* ServerOperationErrorGenerator.kt:101 */
 1000   2037   
    }
        2038  +
    /* ServerOperationErrorGenerator.kt:100 */
 1001   2039   
}
        2040  +
/* ServerOperationErrorGenerator.kt:110 */
 1002   2041   
impl ::std::convert::From<crate::error::ValidationException>
 1003   2042   
    for crate::error::PrimitiveIntHeaderError
 1004   2043   
{
        2044  +
    /* ServerOperationErrorGenerator.kt:111 */
 1005   2045   
    fn from(variant: crate::error::ValidationException) -> crate::error::PrimitiveIntHeaderError {
        2046  +
        /* ServerOperationErrorGenerator.kt:112 */
 1006   2047   
        Self::ValidationException(variant)
        2048  +
        /* ServerOperationErrorGenerator.kt:111 */
 1007   2049   
    }
        2050  +
    /* ServerOperationErrorGenerator.kt:110 */
 1008   2051   
}
        2052  +
/* ServerOperationErrorGenerator.kt:110 */
 1009   2053   
impl ::std::convert::From<crate::error::ExtraError> for crate::error::PrimitiveIntHeaderError {
        2054  +
    /* ServerOperationErrorGenerator.kt:111 */
 1010   2055   
    fn from(variant: crate::error::ExtraError) -> crate::error::PrimitiveIntHeaderError {
        2056  +
        /* ServerOperationErrorGenerator.kt:112 */
 1011   2057   
        Self::ExtraError(variant)
        2058  +
        /* ServerOperationErrorGenerator.kt:111 */
 1012   2059   
    }
        2060  +
    /* ServerOperationErrorGenerator.kt:110 */
 1013   2061   
}
        2062  +
/* ServerOperationErrorGenerator.kt:110 */
 1014   2063   
impl ::std::convert::From<crate::error::InternalServerError>
 1015   2064   
    for crate::error::PrimitiveIntHeaderError
 1016   2065   
{
        2066  +
    /* ServerOperationErrorGenerator.kt:111 */
 1017   2067   
    fn from(variant: crate::error::InternalServerError) -> crate::error::PrimitiveIntHeaderError {
        2068  +
        /* ServerOperationErrorGenerator.kt:112 */
 1018   2069   
        Self::InternalServerError(variant)
        2070  +
        /* ServerOperationErrorGenerator.kt:111 */
 1019   2071   
    }
        2072  +
    /* ServerOperationErrorGenerator.kt:110 */
 1020   2073   
}
 1021   2074   
        2075  +
/* PythonServerOperationErrorGenerator.kt:38 */
 1022   2076   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::PrimitiveIntHeaderError {
 1023   2077   
    fn from(variant: ::pyo3::PyErr) -> crate::error::PrimitiveIntHeaderError {
 1024   2078   
        ::pyo3::Python::with_gil(|py| {
 1025   2079   
            let error = variant.value(py);
 1026   2080   
            if let Ok(error) = error.extract::<crate::error::ValidationException>() {
 1027   2081   
                return error.into();
 1028   2082   
            }
 1029   2083   
            if let Ok(error) = error.extract::<crate::error::ExtraError>() {
 1030   2084   
                return error.into();
 1031   2085   
            }
 1032   2086   
            crate::error::InternalServerError {
 1033   2087   
                message: error.to_string(),
 1034   2088   
            }
 1035   2089   
            .into()
 1036   2090   
        })
 1037   2091   
    }
 1038   2092   
}
 1039   2093   
        2094  +
/* ServerOperationErrorGenerator.kt:63 */
 1040   2095   
/// Error type for the `StringPayload` operation.
        2096  +
/* ServerOperationErrorGenerator.kt:64 */
 1041   2097   
/// Each variant represents an error that can occur for the `StringPayload` operation.
        2098  +
/* RustType.kt:516 */
 1042   2099   
#[derive(::std::fmt::Debug)]
 1043         -
pub enum StringPayloadError {
        2100  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum StringPayloadError {
        2101  +
    /* ServerOperationErrorGenerator.kt:68 */
 1044   2102   
    #[allow(missing_docs)] // documentation missing in model
        2103  +
    /* ServerOperationErrorGenerator.kt:71 */
 1045   2104   
    ExtraError(crate::error::ExtraError),
        2105  +
    /* ServerOperationErrorGenerator.kt:68 */
 1046   2106   
    #[allow(missing_docs)] // documentation missing in model
        2107  +
    /* ServerOperationErrorGenerator.kt:71 */
 1047   2108   
    InternalServerError(crate::error::InternalServerError),
        2109  +
    /* ServerOperationErrorGenerator.kt:66 */
 1048   2110   
}
        2111  +
/* ServerOperationErrorGenerator.kt:75 */
 1049   2112   
impl ::std::fmt::Display for StringPayloadError {
        2113  +
    /* ServerOperationErrorGenerator.kt:76 */
 1050   2114   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2115  +
        /* ServerOperationErrorGenerator.kt:139 */
 1051   2116   
        match &self {
 1052         -
            StringPayloadError::ExtraError(_inner) => _inner.fmt(f),
 1053         -
            StringPayloadError::InternalServerError(_inner) => _inner.fmt(f),
        2117  +
            /* ServerOperationErrorGenerator.kt:142 */
        2118  +
            StringPayloadError::ExtraError(_inner) =>
        2119  +
            /* ServerOperationErrorGenerator.kt:78 */
        2120  +
            {
        2121  +
                _inner.fmt(f)
        2122  +
            }
        2123  +
            ,
        2124  +
            /* ServerOperationErrorGenerator.kt:142 */
        2125  +
            StringPayloadError::InternalServerError(_inner) =>
        2126  +
            /* ServerOperationErrorGenerator.kt:78 */
        2127  +
            {
        2128  +
                _inner.fmt(f)
 1054   2129   
            }
        2130  +
            /* ServerOperationErrorGenerator.kt:139 */
 1055   2131   
        }
        2132  +
        /* ServerOperationErrorGenerator.kt:76 */
        2133  +
    }
        2134  +
    /* ServerOperationErrorGenerator.kt:75 */
 1056   2135   
}
        2136  +
/* ServerOperationErrorGenerator.kt:83 */
 1057   2137   
impl StringPayloadError {
        2138  +
    /* ServerOperationErrorGenerator.kt:87 */
 1058   2139   
    /// Returns `true` if the error kind is `StringPayloadError::ExtraError`.
        2140  +
    /* ServerOperationErrorGenerator.kt:88 */
 1059   2141   
    pub fn is_extra_error(&self) -> bool {
        2142  +
        /* ServerOperationErrorGenerator.kt:89 */
 1060   2143   
        matches!(&self, StringPayloadError::ExtraError(_))
        2144  +
        /* ServerOperationErrorGenerator.kt:88 */
 1061   2145   
    }
        2146  +
    /* ServerOperationErrorGenerator.kt:87 */
 1062   2147   
    /// Returns `true` if the error kind is `StringPayloadError::InternalServerError`.
        2148  +
    /* ServerOperationErrorGenerator.kt:88 */
 1063   2149   
    pub fn is_internal_server_error(&self) -> bool {
        2150  +
        /* ServerOperationErrorGenerator.kt:89 */
 1064   2151   
        matches!(&self, StringPayloadError::InternalServerError(_))
        2152  +
        /* ServerOperationErrorGenerator.kt:88 */
 1065   2153   
    }
        2154  +
    /* ServerOperationErrorGenerator.kt:92 */
 1066   2155   
    /// Returns the error name string by matching the correct variant.
        2156  +
    /* ServerOperationErrorGenerator.kt:93 */
 1067   2157   
    pub fn name(&self) -> &'static str {
        2158  +
        /* ServerOperationErrorGenerator.kt:139 */
 1068   2159   
        match &self {
 1069         -
            StringPayloadError::ExtraError(_inner) => _inner.name(),
 1070         -
            StringPayloadError::InternalServerError(_inner) => _inner.name(),
        2160  +
            /* ServerOperationErrorGenerator.kt:142 */
        2161  +
            StringPayloadError::ExtraError(_inner) =>
        2162  +
            /* ServerOperationErrorGenerator.kt:95 */
        2163  +
            {
        2164  +
                _inner.name()
 1071   2165   
            }
        2166  +
            ,
        2167  +
            /* ServerOperationErrorGenerator.kt:142 */
        2168  +
            StringPayloadError::InternalServerError(_inner) =>
        2169  +
            /* ServerOperationErrorGenerator.kt:95 */
        2170  +
            {
        2171  +
                _inner.name()
        2172  +
            }
        2173  +
            /* ServerOperationErrorGenerator.kt:139 */
        2174  +
        }
        2175  +
        /* ServerOperationErrorGenerator.kt:93 */
 1072   2176   
    }
        2177  +
    /* ServerOperationErrorGenerator.kt:83 */
 1073   2178   
}
        2179  +
/* ServerOperationErrorGenerator.kt:100 */
 1074   2180   
impl ::std::error::Error for StringPayloadError {
        2181  +
    /* ServerOperationErrorGenerator.kt:101 */
 1075   2182   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        2183  +
        /* ServerOperationErrorGenerator.kt:139 */
 1076   2184   
        match &self {
 1077         -
            StringPayloadError::ExtraError(_inner) => Some(_inner),
 1078         -
            StringPayloadError::InternalServerError(_inner) => Some(_inner),
        2185  +
            /* ServerOperationErrorGenerator.kt:142 */
        2186  +
            StringPayloadError::ExtraError(_inner) =>
        2187  +
            /* ServerOperationErrorGenerator.kt:103 */
        2188  +
            {
        2189  +
                Some(_inner)
        2190  +
            }
        2191  +
            ,
        2192  +
            /* ServerOperationErrorGenerator.kt:142 */
        2193  +
            StringPayloadError::InternalServerError(_inner) =>
        2194  +
            /* ServerOperationErrorGenerator.kt:103 */
        2195  +
            {
        2196  +
                Some(_inner)
 1079   2197   
            }
        2198  +
            /* ServerOperationErrorGenerator.kt:139 */
 1080   2199   
        }
        2200  +
        /* ServerOperationErrorGenerator.kt:101 */
        2201  +
    }
        2202  +
    /* ServerOperationErrorGenerator.kt:100 */
 1081   2203   
}
        2204  +
/* ServerOperationErrorGenerator.kt:110 */
 1082   2205   
impl ::std::convert::From<crate::error::ExtraError> for crate::error::StringPayloadError {
        2206  +
    /* ServerOperationErrorGenerator.kt:111 */
 1083   2207   
    fn from(variant: crate::error::ExtraError) -> crate::error::StringPayloadError {
        2208  +
        /* ServerOperationErrorGenerator.kt:112 */
 1084   2209   
        Self::ExtraError(variant)
        2210  +
        /* ServerOperationErrorGenerator.kt:111 */
 1085   2211   
    }
        2212  +
    /* ServerOperationErrorGenerator.kt:110 */
 1086   2213   
}
        2214  +
/* ServerOperationErrorGenerator.kt:110 */
 1087   2215   
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::StringPayloadError {
        2216  +
    /* ServerOperationErrorGenerator.kt:111 */
 1088   2217   
    fn from(variant: crate::error::InternalServerError) -> crate::error::StringPayloadError {
        2218  +
        /* ServerOperationErrorGenerator.kt:112 */
 1089   2219   
        Self::InternalServerError(variant)
        2220  +
        /* ServerOperationErrorGenerator.kt:111 */
 1090   2221   
    }
        2222  +
    /* ServerOperationErrorGenerator.kt:110 */
 1091   2223   
}
 1092   2224   
        2225  +
/* PythonServerOperationErrorGenerator.kt:38 */
 1093   2226   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::StringPayloadError {
 1094   2227   
    fn from(variant: ::pyo3::PyErr) -> crate::error::StringPayloadError {
 1095   2228   
        ::pyo3::Python::with_gil(|py| {
 1096   2229   
            let error = variant.value(py);
 1097   2230   
            if let Ok(error) = error.extract::<crate::error::ExtraError>() {
 1098   2231   
                return error.into();
 1099   2232   
            }
 1100   2233   
            crate::error::InternalServerError {
 1101   2234   
                message: error.to_string(),
 1102   2235   
            }
 1103   2236   
            .into()
 1104   2237   
        })
 1105   2238   
    }
 1106   2239   
}
 1107         -
/// See [`ExtraError`](crate::error::ExtraError).
        2240  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ExtraError`](crate::error::ExtraError).
 1108   2241   
pub mod extra_error {
 1109   2242   
        2243  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
 1110   2244   
    impl ::std::convert::From<Builder> for crate::error::ExtraError {
 1111   2245   
        fn from(builder: Builder) -> Self {
 1112   2246   
            builder.build()
 1113   2247   
        }
 1114   2248   
    }
 1115         -
    /// A builder for [`ExtraError`](crate::error::ExtraError).
        2249  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ExtraError`](crate::error::ExtraError).
        2250  +
    /* RustType.kt:516 */
 1116   2251   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1117         -
    pub struct Builder {}
        2252  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
        2253  +
    pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
        2254  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1118   2255   
    impl Builder {
 1119         -
        /// Consumes the builder and constructs a [`ExtraError`](crate::error::ExtraError).
        2256  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ExtraError`](crate::error::ExtraError).
        2257  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
 1120   2258   
        pub fn build(self) -> crate::error::ExtraError {
 1121   2259   
            self.build_enforcing_required_and_enum_traits()
 1122   2260   
        }
        2261  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1123   2262   
        fn build_enforcing_required_and_enum_traits(self) -> crate::error::ExtraError {
 1124         -
            crate::error::ExtraError {}
        2263  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        2264  +
            crate::error::ExtraError {
        2265  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
        2266  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1125   2267   
        }
        2268  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1126   2269   
    }
        2270  +
        2271  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1127   2272   
}
 1128         -
/// See [`InternalServerError`](crate::error::InternalServerError).
        2273  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`InternalServerError`](crate::error::InternalServerError).
 1129   2274   
pub mod internal_server_error {
 1130   2275   
        2276  +
    /* RustType.kt:516 */
 1131   2277   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1132         -
    /// Holds one variant for each of the ways the builder can fail.
 1133         -
        2278  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        2279  +
    /* ServerBuilderConstraintViolations.kt:75 */
 1134   2280   
    #[allow(clippy::enum_variant_names)]
 1135   2281   
    pub enum ConstraintViolation {
 1136         -
        /// `message` was not provided but it is required when building `InternalServerError`.
        2282  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`message` was not provided but it is required when building `InternalServerError`.
        2283  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1137   2284   
        MissingMessage,
        2285  +
        /* ServerBuilderConstraintViolations.kt:75 */
 1138   2286   
    }
        2287  +
    /* ServerBuilderConstraintViolations.kt:117 */
 1139   2288   
    impl ::std::fmt::Display for ConstraintViolation {
        2289  +
        /* ServerBuilderConstraintViolations.kt:118 */
 1140   2290   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2291  +
            /* ServerBuilderConstraintViolations.kt:119 */
 1141   2292   
            match self {
 1142         -
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `InternalServerError`"),
 1143         -
            }
        2293  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `InternalServerError`"),
        2294  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        2295  +
            /* ServerBuilderConstraintViolations.kt:118 */
 1144   2296   
        }
        2297  +
        /* ServerBuilderConstraintViolations.kt:117 */
 1145   2298   
    }
        2299  +
    /* ServerBuilderConstraintViolations.kt:84 */
 1146   2300   
    impl ::std::error::Error for ConstraintViolation {}
        2301  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
 1147   2302   
    impl ::std::convert::TryFrom<Builder> for crate::error::InternalServerError {
 1148   2303   
        type Error = ConstraintViolation;
 1149   2304   
 1150   2305   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1151   2306   
            builder.build()
 1152   2307   
        }
 1153   2308   
    }
 1154         -
    /// A builder for [`InternalServerError`](crate::error::InternalServerError).
        2309  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`InternalServerError`](crate::error::InternalServerError).
        2310  +
    /* RustType.kt:516 */
 1155   2311   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2312  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1156   2313   
    pub struct Builder {
        2314  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1157   2315   
        pub(crate) message: ::std::option::Option<::std::string::String>,
        2316  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1158   2317   
    }
        2318  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1159   2319   
    impl Builder {
        2320  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1160   2321   
        #[allow(missing_docs)] // documentation missing in model
        2322  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1161   2323   
        pub fn message(mut self, input: ::std::string::String) -> Self {
 1162         -
            self.message = Some(input);
        2324  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2325  +
            self.message =
        2326  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        2327  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2328  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        2329  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1163   2330   
            self
        2331  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1164   2332   
        }
 1165         -
        /// Consumes the builder and constructs a [`InternalServerError`](crate::error::InternalServerError).
 1166         -
        ///
        2333  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`InternalServerError`](crate::error::InternalServerError).
        2334  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
 1167   2335   
        /// The builder fails to construct a [`InternalServerError`](crate::error::InternalServerError) if you do not provide a value for all non-`Option`al members.
 1168   2336   
        ///
        2337  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
 1169   2338   
        pub fn build(self) -> Result<crate::error::InternalServerError, ConstraintViolation> {
 1170   2339   
            self.build_enforcing_required_and_enum_traits()
 1171   2340   
        }
        2341  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1172   2342   
        fn build_enforcing_required_and_enum_traits(
 1173   2343   
            self,
 1174   2344   
        ) -> Result<crate::error::InternalServerError, ConstraintViolation> {
 1175         -
            Ok(crate::error::InternalServerError {
 1176         -
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
 1177         -
            })
        2345  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        2346  +
            Ok(
        2347  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        2348  +
                crate::error::InternalServerError {
        2349  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        2350  +
                    message: self
        2351  +
                        .message
        2352  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        2353  +
                        .ok_or(ConstraintViolation::MissingMessage)?,
        2354  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        2355  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        2356  +
            )
        2357  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1178   2358   
        }
        2359  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1179   2360   
    }
        2361  +
        2362  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1180   2363   
}
 1181         -
/// See [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
        2364  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
 1182   2365   
pub mod case_insensitive_error {
 1183   2366   
        2367  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
 1184   2368   
    impl ::std::convert::From<Builder> for crate::error::CaseInsensitiveError {
 1185   2369   
        fn from(builder: Builder) -> Self {
 1186   2370   
            builder.build()
 1187   2371   
        }
 1188   2372   
    }
 1189         -
    /// A builder for [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
        2373  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
        2374  +
    /* RustType.kt:516 */
 1190   2375   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2376  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1191   2377   
    pub struct Builder {
        2378  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1192   2379   
        pub(crate) message: ::std::option::Option<::std::string::String>,
        2380  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1193   2381   
    }
        2382  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1194   2383   
    impl Builder {
        2384  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1195   2385   
        #[allow(missing_docs)] // documentation missing in model
        2386  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1196   2387   
        pub fn message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 1197         -
            self.message = input;
        2388  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2389  +
            self.message =
        2390  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2391  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1198   2392   
            self
        2393  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1199   2394   
        }
 1200         -
        /// Consumes the builder and constructs a [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
        2395  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
        2396  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
 1201   2397   
        pub fn build(self) -> crate::error::CaseInsensitiveError {
 1202   2398   
            self.build_enforcing_required_and_enum_traits()
 1203   2399   
        }
        2400  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1204   2401   
        fn build_enforcing_required_and_enum_traits(self) -> crate::error::CaseInsensitiveError {
        2402  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
 1205   2403   
            crate::error::CaseInsensitiveError {
        2404  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1206   2405   
                message: self.message,
        2406  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
 1207   2407   
            }
        2408  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1208   2409   
        }
        2410  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1209   2411   
    }
        2412  +
        2413  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1210   2414   
}
 1211         -
/// See [`ValidationException`](crate::error::ValidationException).
        2415  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ValidationException`](crate::error::ValidationException).
 1212   2416   
pub mod validation_exception {
 1213   2417   
        2418  +
    /* RustType.kt:516 */
 1214   2419   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1215         -
    /// Holds one variant for each of the ways the builder can fail.
 1216         -
        2420  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        2421  +
    /* ServerBuilderConstraintViolations.kt:75 */
 1217   2422   
    #[allow(clippy::enum_variant_names)]
 1218   2423   
    pub enum ConstraintViolation {
 1219         -
        /// `message` was not provided but it is required when building `ValidationException`.
        2424  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`message` was not provided but it is required when building `ValidationException`.
        2425  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1220   2426   
        MissingMessage,
        2427  +
        /* ServerBuilderConstraintViolations.kt:75 */
 1221   2428   
    }
        2429  +
    /* ServerBuilderConstraintViolations.kt:117 */
 1222   2430   
    impl ::std::fmt::Display for ConstraintViolation {
        2431  +
        /* ServerBuilderConstraintViolations.kt:118 */
 1223   2432   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2433  +
            /* ServerBuilderConstraintViolations.kt:119 */
 1224   2434   
            match self {
 1225         -
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
 1226         -
            }
        2435  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
        2436  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        2437  +
            /* ServerBuilderConstraintViolations.kt:118 */
 1227   2438   
        }
        2439  +
        /* ServerBuilderConstraintViolations.kt:117 */
 1228   2440   
    }
        2441  +
    /* ServerBuilderConstraintViolations.kt:84 */
 1229   2442   
    impl ::std::error::Error for ConstraintViolation {}
        2443  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
 1230   2444   
    impl ::std::convert::TryFrom<Builder> for crate::error::ValidationException {
 1231   2445   
        type Error = ConstraintViolation;
 1232   2446   
 1233   2447   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1234   2448   
            builder.build()
 1235   2449   
        }
 1236   2450   
    }
 1237         -
    /// A builder for [`ValidationException`](crate::error::ValidationException).
        2451  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ValidationException`](crate::error::ValidationException).
        2452  +
    /* RustType.kt:516 */
 1238   2453   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2454  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1239   2455   
    pub struct Builder {
        2456  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1240   2457   
        pub(crate) message: ::std::option::Option<::std::string::String>,
        2458  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1241   2459   
        pub(crate) field_list:
 1242   2460   
            ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
        2461  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1243   2462   
    }
        2463  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1244   2464   
    impl Builder {
 1245         -
        /// A summary of the validation failure.
        2465  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A summary of the validation failure.
        2466  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1246   2467   
        pub fn message(mut self, input: ::std::string::String) -> Self {
 1247         -
            self.message = Some(input);
        2468  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2469  +
            self.message =
        2470  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        2471  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2472  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        2473  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1248   2474   
            self
        2475  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1249   2476   
        }
 1250         -
        /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
        2477  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
        2478  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1251   2479   
        pub fn field_list(
 1252   2480   
            mut self,
 1253   2481   
            input: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
 1254   2482   
        ) -> Self {
 1255         -
            self.field_list = input;
        2483  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2484  +
            self.field_list =
        2485  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2486  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1256   2487   
            self
        2488  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1257   2489   
        }
 1258         -
        /// Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
 1259         -
        ///
        2490  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
        2491  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
 1260   2492   
        /// The builder fails to construct a [`ValidationException`](crate::error::ValidationException) if you do not provide a value for all non-`Option`al members.
 1261   2493   
        ///
        2494  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
 1262   2495   
        pub fn build(self) -> Result<crate::error::ValidationException, ConstraintViolation> {
 1263   2496   
            self.build_enforcing_required_and_enum_traits()
 1264   2497   
        }
        2498  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1265   2499   
        fn build_enforcing_required_and_enum_traits(
 1266   2500   
            self,
 1267   2501   
        ) -> Result<crate::error::ValidationException, ConstraintViolation> {
 1268         -
            Ok(crate::error::ValidationException {
 1269         -
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
        2502  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        2503  +
            Ok(
        2504  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        2505  +
                crate::error::ValidationException {
        2506  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        2507  +
                    message: self
        2508  +
                        .message
        2509  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        2510  +
                        .ok_or(ConstraintViolation::MissingMessage)?,
        2511  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1270   2512   
                    field_list: self.field_list,
 1271         -
            })
        2513  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        2514  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        2515  +
            )
        2516  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1272   2517   
        }
        2518  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1273   2519   
    }
        2520  +
        2521  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1274   2522   
}