Server Test

Server Test

rev. ee474c7509d7728618c23068f3741e8e5b339ef9 (ignoring whitespace)

Files changed:

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

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

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

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

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

@@ -0,1 +0,110 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub(crate) mod shape_malformed_enum;
           3  +
           4  +
pub(crate) mod shape_malformed_length;
           5  +
           6  +
pub(crate) mod shape_malformed_length_override;
           7  +
           8  +
pub(crate) mod shape_malformed_length_query_string;
           9  +
          10  +
pub(crate) mod shape_malformed_pattern;
          11  +
          12  +
pub(crate) mod shape_malformed_pattern_override;
          13  +
          14  +
pub(crate) mod shape_malformed_range;
          15  +
          16  +
pub(crate) mod shape_malformed_range_override;
          17  +
          18  +
pub(crate) mod shape_malformed_required;
          19  +
          20  +
pub(crate) mod shape_malformed_unique_items;
          21  +
          22  +
pub(crate) mod shape_recursive_structures;
          23  +
          24  +
pub(crate) mod shape_sensitive_validation;
          25  +
          26  +
pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
          27  +
    if data.is_empty() {
          28  +
        b"{}"
          29  +
    } else {
          30  +
        data
          31  +
    }
          32  +
}
          33  +
          34  +
pub(crate) mod shape_malformed_length_query_string_input;
          35  +
          36  +
pub(crate) mod shape_malformed_required_input;
          37  +
          38  +
pub(crate) mod shape_validation_exception;
          39  +
          40  +
pub(crate) mod shape_blob_set;
          41  +
          42  +
pub(crate) mod shape_boolean_set;
          43  +
          44  +
pub(crate) mod shape_byte_set;
          45  +
          46  +
pub(crate) mod shape_date_time_set;
          47  +
          48  +
pub(crate) mod shape_enum_list;
          49  +
          50  +
pub(crate) mod shape_enum_map;
          51  +
          52  +
pub(crate) mod shape_enum_union;
          53  +
          54  +
pub(crate) mod shape_foo_enum_set;
          55  +
          56  +
pub(crate) mod shape_http_date_set;
          57  +
          58  +
pub(crate) mod shape_integer_enum_set;
          59  +
          60  +
pub(crate) mod shape_integer_set;
          61  +
          62  +
pub(crate) mod shape_length_list;
          63  +
          64  +
pub(crate) mod shape_length_map;
          65  +
          66  +
pub(crate) mod shape_list_set;
          67  +
          68  +
pub(crate) mod shape_long_set;
          69  +
          70  +
pub(crate) mod shape_malformed_length_override_input_list;
          71  +
          72  +
pub(crate) mod shape_malformed_length_override_input_map;
          73  +
          74  +
pub(crate) mod shape_pattern_list;
          75  +
          76  +
pub(crate) mod shape_pattern_list_override;
          77  +
          78  +
pub(crate) mod shape_pattern_map;
          79  +
          80  +
pub(crate) mod shape_pattern_map_override;
          81  +
          82  +
pub(crate) mod shape_pattern_union;
          83  +
          84  +
pub(crate) mod shape_pattern_union_override;
          85  +
          86  +
pub(crate) mod shape_recursive_union_one;
          87  +
          88  +
pub(crate) mod shape_short_set;
          89  +
          90  +
pub(crate) mod shape_string_set;
          91  +
          92  +
pub(crate) mod shape_structure_set;
          93  +
          94  +
pub(crate) mod shape_structure_set_with_no_key;
          95  +
          96  +
pub(crate) mod shape_timestamp_set;
          97  +
          98  +
pub(crate) mod shape_union_set;
          99  +
         100  +
pub(crate) mod shape_foo_union;
         101  +
         102  +
pub(crate) mod shape_greeting_struct;
         103  +
         104  +
pub(crate) mod shape_missing_key_structure;
         105  +
         106  +
pub(crate) mod shape_recursive_union_two;
         107  +
         108  +
pub(crate) mod shape_string_list;
         109  +
         110  +
pub(crate) mod shape_validation_exception_field;

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

@@ -0,1 +0,52 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub(crate) fn de_blob_set<'a, I>(
           3  +
    tokens: &mut ::std::iter::Peekable<I>,
           4  +
) -> ::std::result::Result<
           5  +
    Option<crate::unconstrained::blob_set_unconstrained::BlobSetUnconstrained>,
           6  +
    ::aws_smithy_json::deserialize::error::DeserializeError,
           7  +
>
           8  +
where
           9  +
    I: Iterator<
          10  +
        Item = Result<
          11  +
            ::aws_smithy_json::deserialize::Token<'a>,
          12  +
            ::aws_smithy_json::deserialize::error::DeserializeError,
          13  +
        >,
          14  +
    >,
          15  +
{
          16  +
    match tokens.next().transpose()? {
          17  +
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
          18  +
        Some(::aws_smithy_json::deserialize::Token::StartArray { .. }) => {
          19  +
            let mut items = Vec::new();
          20  +
            loop {
          21  +
                match tokens.peek() {
          22  +
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
          23  +
                        tokens.next().transpose().unwrap();
          24  +
                        break;
          25  +
                    }
          26  +
                    _ => {
          27  +
                        let value = ::aws_smithy_json::deserialize::token::expect_blob_or_null(
          28  +
                            tokens.next(),
          29  +
                        )?;
          30  +
                        if let Some(value) = value {
          31  +
                            items.push(value);
          32  +
                        } else {
          33  +
                            return Err(
          34  +
                                ::aws_smithy_json::deserialize::error::DeserializeError::custom(
          35  +
                                    "dense list cannot contain null values",
          36  +
                                ),
          37  +
                            );
          38  +
                        }
          39  +
                    }
          40  +
                }
          41  +
            }
          42  +
            Ok(Some(
          43  +
                crate::unconstrained::blob_set_unconstrained::BlobSetUnconstrained(items),
          44  +
            ))
          45  +
        }
          46  +
        _ => Err(
          47  +
            ::aws_smithy_json::deserialize::error::DeserializeError::custom(
          48  +
                "expected start array or null",
          49  +
            ),
          50  +
        ),
          51  +
    }
          52  +
}