Server Test

Server Test

rev. 03e6e47f15dfd569240d570d98975ebba692c405 (ignoring whitespace)

Files changed:

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

@@ -0,1 +0,472 @@
           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 HttpQueryParamsOnlyOperation;
           4  +
           5  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for HttpQueryParamsOnlyOperation {
           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#HttpQueryParamsOnlyOperation",
           9  +
            "aws.protocoltests.restjson",
          10  +
            "HttpQueryParamsOnlyOperation",
          11  +
        );
          12  +
          13  +
    type Input = crate::input::HttpQueryParamsOnlyOperationInput;
          14  +
    type Output = crate::output::HttpQueryParamsOnlyOperationOutput;
          15  +
    type Error = crate::error::HttpQueryParamsOnlyOperationError;
          16  +
}
          17  +
          18  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
          19  +
    for HttpQueryParamsOnlyOperation
          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 QueryPrecedence;
          44  +
          45  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for QueryPrecedence {
          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#QueryPrecedence",
          49  +
            "aws.protocoltests.restjson",
          50  +
            "QueryPrecedence",
          51  +
        );
          52  +
          53  +
    type Input = crate::input::QueryPrecedenceInput;
          54  +
    type Output = crate::output::QueryPrecedenceOutput;
          55  +
    type Error = crate::error::QueryPrecedenceError;
          56  +
}
          57  +
          58  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
          59  +
    for QueryPrecedence
          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 EmptyStructWithContentOnWireOp;
          84  +
          85  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for EmptyStructWithContentOnWireOp {
          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#EmptyStructWithContentOnWireOp",
          89  +
            "aws.protocoltests.restjson",
          90  +
            "EmptyStructWithContentOnWireOp",
          91  +
        );
          92  +
          93  +
    type Input = crate::input::EmptyStructWithContentOnWireOpInput;
          94  +
    type Output = crate::output::EmptyStructWithContentOnWireOpOutput;
          95  +
    type Error = crate::error::EmptyStructWithContentOnWireOpError;
          96  +
}
          97  +
          98  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
          99  +
    for EmptyStructWithContentOnWireOp
         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 CaseInsensitiveErrorOperation;
         124  +
         125  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for CaseInsensitiveErrorOperation {
         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#CaseInsensitiveErrorOperation",
         129  +
            "aws.protocoltests.restjson",
         130  +
            "CaseInsensitiveErrorOperation",
         131  +
        );
         132  +
         133  +
    type Input = crate::input::CaseInsensitiveErrorOperationInput;
         134  +
    type Output = crate::output::CaseInsensitiveErrorOperationOutput;
         135  +
    type Error = crate::error::CaseInsensitiveErrorOperationError;
         136  +
}
         137  +
         138  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
         139  +
    for CaseInsensitiveErrorOperation
         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 NullInNonSparse;
         164  +
         165  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for NullInNonSparse {
         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#NullInNonSparse",
         169  +
            "aws.protocoltests.restjson",
         170  +
            "NullInNonSparse",
         171  +
        );
         172  +
         173  +
    type Input = crate::input::NullInNonSparseInput;
         174  +
    type Output = crate::output::NullInNonSparseOutput;
         175  +
    type Error = crate::error::NullInNonSparseError;
         176  +
}
         177  +
         178  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
         179  +
    for NullInNonSparse
         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 EscapedStringValues;
         204  +
         205  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for EscapedStringValues {
         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#EscapedStringValues",
         209  +
            "aws.protocoltests.restjson",
         210  +
            "EscapedStringValues",
         211  +
        );
         212  +
         213  +
    type Input = crate::input::EscapedStringValuesInput;
         214  +
    type Output = crate::output::EscapedStringValuesOutput;
         215  +
    type Error = crate::error::EscapedStringValuesError;
         216  +
}
         217  +
         218  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
         219  +
    for EscapedStringValues
         220  +
{
         221  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         222  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         223  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         224  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         225  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         226  +
        >,
         227  +
    >;
         228  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         229  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         230  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         231  +
    >;
         232  +
         233  +
    fn request_fmt() -> Self::RequestFmt {
         234  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
         235  +
    }
         236  +
         237  +
    fn response_fmt() -> Self::ResponseFmt {
         238  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         239  +
    }
         240  +
}
         241  +
         242  +
#[allow(missing_docs)] // documentation missing in model
         243  +
pub struct PrimitiveIntOp;
         244  +
         245  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for PrimitiveIntOp {
         246  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         247  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
         248  +
            "aws.protocoltests.restjson#PrimitiveIntOp",
         249  +
            "aws.protocoltests.restjson",
         250  +
            "PrimitiveIntOp",
         251  +
        );
         252  +
         253  +
    type Input = crate::input::PrimitiveIntOpInput;
         254  +
    type Output = crate::output::PrimitiveIntOpOutput;
         255  +
    type Error = crate::error::PrimitiveIntOpError;
         256  +
}
         257  +
         258  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity for PrimitiveIntOp {
         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 MapWithEnumKeyOp;
         282  +
         283  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for MapWithEnumKeyOp {
         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#MapWithEnumKeyOp",
         287  +
            "aws.protocoltests.restjson",
         288  +
            "MapWithEnumKeyOp",
         289  +
        );
         290  +
         291  +
    type Input = crate::input::MapWithEnumKeyOpInput;
         292  +
    type Output = crate::output::MapWithEnumKeyOpOutput;
         293  +
    type Error = crate::error::MapWithEnumKeyOpError;
         294  +
}
         295  +
         296  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
         297  +
    for MapWithEnumKeyOp
         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 StatusResponse;
         322  +
         323  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for StatusResponse {
         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#StatusResponse",
         327  +
            "aws.protocoltests.restjson",
         328  +
            "StatusResponse",
         329  +
        );
         330  +
         331  +
    type Input = crate::input::StatusResponseInput;
         332  +
    type Output = crate::output::StatusResponseOutput;
         333  +
    type Error = crate::error::StatusResponseError;
         334  +
}
         335  +
         336  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity for StatusResponse {
         337  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         338  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         339  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         340  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         341  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         342  +
        >,
         343  +
    >;
         344  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         345  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         346  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         347  +
    >;
         348  +
         349  +
    fn request_fmt() -> Self::RequestFmt {
         350  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
         351  +
    }
         352  +
         353  +
    fn response_fmt() -> Self::ResponseFmt {
         354  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         355  +
    }
         356  +
}
         357  +
         358  +
#[allow(missing_docs)] // documentation missing in model
         359  +
pub struct EnumQuery;
         360  +
         361  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for EnumQuery {
         362  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         363  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
         364  +
            "aws.protocoltests.restjson#EnumQuery",
         365  +
            "aws.protocoltests.restjson",
         366  +
            "EnumQuery",
         367  +
        );
         368  +
         369  +
    type Input = crate::input::EnumQueryInput;
         370  +
    type Output = crate::output::EnumQueryOutput;
         371  +
    type Error = crate::error::EnumQueryError;
         372  +
}
         373  +
         374  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity for EnumQuery {
         375  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         376  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         377  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         378  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         379  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         380  +
        >,
         381  +
    >;
         382  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         383  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         384  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         385  +
    >;
         386  +
         387  +
    fn request_fmt() -> Self::RequestFmt {
         388  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
         389  +
    }
         390  +
         391  +
    fn response_fmt() -> Self::ResponseFmt {
         392  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         393  +
    }
         394  +
}
         395  +
         396  +
#[allow(missing_docs)] // documentation missing in model
         397  +
pub struct PrimitiveIntHeader;
         398  +
         399  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for PrimitiveIntHeader {
         400  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         401  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
         402  +
            "aws.protocoltests.restjson#PrimitiveIntHeader",
         403  +
            "aws.protocoltests.restjson",
         404  +
            "PrimitiveIntHeader",
         405  +
        );
         406  +
         407  +
    type Input = crate::input::PrimitiveIntHeaderInput;
         408  +
    type Output = crate::output::PrimitiveIntHeaderOutput;
         409  +
    type Error = crate::error::PrimitiveIntHeaderError;
         410  +
}
         411  +
         412  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
         413  +
    for PrimitiveIntHeader
         414  +
{
         415  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         416  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         417  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         418  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         419  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         420  +
        >,
         421  +
    >;
         422  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         423  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         424  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         425  +
    >;
         426  +
         427  +
    fn request_fmt() -> Self::RequestFmt {
         428  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
         429  +
    }
         430  +
         431  +
    fn response_fmt() -> Self::ResponseFmt {
         432  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         433  +
    }
         434  +
}
         435  +
         436  +
#[allow(missing_docs)] // documentation missing in model
         437  +
pub struct StringPayload;
         438  +
         439  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for StringPayload {
         440  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         441  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
         442  +
            "aws.protocoltests.restjson#StringPayload",
         443  +
            "aws.protocoltests.restjson",
         444  +
            "StringPayload",
         445  +
        );
         446  +
         447  +
    type Input = crate::input::StringPayloadInput;
         448  +
    type Output = crate::output::StringPayloadOutput;
         449  +
    type Error = crate::error::StringPayloadError;
         450  +
}
         451  +
         452  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity for StringPayload {
         453  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         454  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         455  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         456  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         457  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         458  +
        >,
         459  +
    >;
         460  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         461  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         462  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         463  +
    >;
         464  +
         465  +
    fn request_fmt() -> Self::RequestFmt {
         466  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
         467  +
    }
         468  +
         469  +
    fn response_fmt() -> Self::ResponseFmt {
         470  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         471  +
    }
         472  +
}

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

@@ -0,1 +0,612 @@
           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 HttpQueryParamsOnlyOperationOutput {}
           7  +
impl HttpQueryParamsOnlyOperationOutput {
           8  +
    /// Creates a new builder-style object to manufacture [`HttpQueryParamsOnlyOperationOutput`](crate::output::HttpQueryParamsOnlyOperationOutput).
           9  +
    pub fn builder() -> crate::output::http_query_params_only_operation_output::Builder {
          10  +
        crate::output::http_query_params_only_operation_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 QueryPrecedenceOutput {}
          19  +
impl QueryPrecedenceOutput {
          20  +
    /// Creates a new builder-style object to manufacture [`QueryPrecedenceOutput`](crate::output::QueryPrecedenceOutput).
          21  +
    pub fn builder() -> crate::output::query_precedence_output::Builder {
          22  +
        crate::output::query_precedence_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 EmptyStructWithContentOnWireOpOutput {
          31  +
    #[allow(missing_docs)] // documentation missing in model
          32  +
    pub empty: ::std::option::Option<crate::model::EmptyStruct>,
          33  +
}
          34  +
impl EmptyStructWithContentOnWireOpOutput {
          35  +
    #[allow(missing_docs)] // documentation missing in model
          36  +
    pub fn empty(&self) -> ::std::option::Option<&crate::model::EmptyStruct> {
          37  +
        self.empty.as_ref()
          38  +
    }
          39  +
}
          40  +
impl EmptyStructWithContentOnWireOpOutput {
          41  +
    /// Creates a new builder-style object to manufacture [`EmptyStructWithContentOnWireOpOutput`](crate::output::EmptyStructWithContentOnWireOpOutput).
          42  +
    pub fn builder() -> crate::output::empty_struct_with_content_on_wire_op_output::Builder {
          43  +
        crate::output::empty_struct_with_content_on_wire_op_output::Builder::default()
          44  +
    }
          45  +
}
          46  +
          47  +
#[allow(missing_docs)] // documentation missing in model
          48  +
#[derive(
          49  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
          50  +
)]
          51  +
pub struct CaseInsensitiveErrorOperationOutput {}
          52  +
impl CaseInsensitiveErrorOperationOutput {
          53  +
    /// Creates a new builder-style object to manufacture [`CaseInsensitiveErrorOperationOutput`](crate::output::CaseInsensitiveErrorOperationOutput).
          54  +
    pub fn builder() -> crate::output::case_insensitive_error_operation_output::Builder {
          55  +
        crate::output::case_insensitive_error_operation_output::Builder::default()
          56  +
    }
          57  +
}
          58  +
          59  +
#[allow(missing_docs)] // documentation missing in model
          60  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
          61  +
pub struct NullInNonSparseOutput {
          62  +
    #[allow(missing_docs)] // documentation missing in model
          63  +
    pub list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
          64  +
    #[allow(missing_docs)] // documentation missing in model
          65  +
    pub map: ::std::option::Option<
          66  +
        ::std::collections::HashMap<::std::string::String, ::std::string::String>,
          67  +
    >,
          68  +
    #[allow(missing_docs)] // documentation missing in model
          69  +
    pub union: ::std::option::Option<crate::model::SingleElementUnion>,
          70  +
}
          71  +
impl NullInNonSparseOutput {
          72  +
    #[allow(missing_docs)] // documentation missing in model
          73  +
    pub fn list(&self) -> ::std::option::Option<&[::std::string::String]> {
          74  +
        self.list.as_deref()
          75  +
    }
          76  +
    #[allow(missing_docs)] // documentation missing in model
          77  +
    pub fn map(
          78  +
        &self,
          79  +
    ) -> ::std::option::Option<
          80  +
        &::std::collections::HashMap<::std::string::String, ::std::string::String>,
          81  +
    > {
          82  +
        self.map.as_ref()
          83  +
    }
          84  +
    #[allow(missing_docs)] // documentation missing in model
          85  +
    pub fn union(&self) -> ::std::option::Option<&crate::model::SingleElementUnion> {
          86  +
        self.union.as_ref()
          87  +
    }
          88  +
}
          89  +
impl NullInNonSparseOutput {
          90  +
    /// Creates a new builder-style object to manufacture [`NullInNonSparseOutput`](crate::output::NullInNonSparseOutput).
          91  +
    pub fn builder() -> crate::output::null_in_non_sparse_output::Builder {
          92  +
        crate::output::null_in_non_sparse_output::Builder::default()
          93  +
    }
          94  +
}
          95  +
          96  +
#[allow(missing_docs)] // documentation missing in model
          97  +
#[derive(
          98  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
          99  +
)]
         100  +
pub struct EscapedStringValuesOutput {
         101  +
    #[allow(missing_docs)] // documentation missing in model
         102  +
    pub r#enum: ::std::option::Option<crate::model::EnumWithEscapedChars>,
         103  +
    #[allow(missing_docs)] // documentation missing in model
         104  +
    pub some_string: ::std::option::Option<::std::string::String>,
         105  +
}
         106  +
impl EscapedStringValuesOutput {
         107  +
    #[allow(missing_docs)] // documentation missing in model
         108  +
    pub fn r#enum(&self) -> ::std::option::Option<&crate::model::EnumWithEscapedChars> {
         109  +
        self.r#enum.as_ref()
         110  +
    }
         111  +
    #[allow(missing_docs)] // documentation missing in model
         112  +
    pub fn some_string(&self) -> ::std::option::Option<&str> {
         113  +
        self.some_string.as_deref()
         114  +
    }
         115  +
}
         116  +
impl EscapedStringValuesOutput {
         117  +
    /// Creates a new builder-style object to manufacture [`EscapedStringValuesOutput`](crate::output::EscapedStringValuesOutput).
         118  +
    pub fn builder() -> crate::output::escaped_string_values_output::Builder {
         119  +
        crate::output::escaped_string_values_output::Builder::default()
         120  +
    }
         121  +
}
         122  +
         123  +
#[allow(missing_docs)] // documentation missing in model
         124  +
#[derive(
         125  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         126  +
)]
         127  +
pub struct PrimitiveIntOpOutput {
         128  +
    #[allow(missing_docs)] // documentation missing in model
         129  +
    pub value: i32,
         130  +
}
         131  +
impl PrimitiveIntOpOutput {
         132  +
    #[allow(missing_docs)] // documentation missing in model
         133  +
    pub fn value(&self) -> i32 {
         134  +
        self.value
         135  +
    }
         136  +
}
         137  +
impl PrimitiveIntOpOutput {
         138  +
    /// Creates a new builder-style object to manufacture [`PrimitiveIntOpOutput`](crate::output::PrimitiveIntOpOutput).
         139  +
    pub fn builder() -> crate::output::primitive_int_op_output::Builder {
         140  +
        crate::output::primitive_int_op_output::Builder::default()
         141  +
    }
         142  +
}
         143  +
         144  +
#[allow(missing_docs)] // documentation missing in model
         145  +
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
         146  +
pub struct MapWithEnumKeyOpOutput {
         147  +
    #[allow(missing_docs)] // documentation missing in model
         148  +
    pub map: ::std::option::Option<
         149  +
        ::std::collections::HashMap<crate::model::StringEnum, ::std::string::String>,
         150  +
    >,
         151  +
}
         152  +
impl MapWithEnumKeyOpOutput {
         153  +
    #[allow(missing_docs)] // documentation missing in model
         154  +
    pub fn map(
         155  +
        &self,
         156  +
    ) -> ::std::option::Option<
         157  +
        &::std::collections::HashMap<crate::model::StringEnum, ::std::string::String>,
         158  +
    > {
         159  +
        self.map.as_ref()
         160  +
    }
         161  +
}
         162  +
impl MapWithEnumKeyOpOutput {
         163  +
    /// Creates a new builder-style object to manufacture [`MapWithEnumKeyOpOutput`](crate::output::MapWithEnumKeyOpOutput).
         164  +
    pub fn builder() -> crate::output::map_with_enum_key_op_output::Builder {
         165  +
        crate::output::map_with_enum_key_op_output::Builder::default()
         166  +
    }
         167  +
}
         168  +
         169  +
#[allow(missing_docs)] // documentation missing in model
         170  +
#[derive(
         171  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         172  +
)]
         173  +
pub struct StatusResponseOutput {
         174  +
    #[allow(missing_docs)] // documentation missing in model
         175  +
    pub field: i32,
         176  +
}
         177  +
impl StatusResponseOutput {
         178  +
    #[allow(missing_docs)] // documentation missing in model
         179  +
    pub fn field(&self) -> i32 {
         180  +
        self.field
         181  +
    }
         182  +
}
         183  +
impl StatusResponseOutput {
         184  +
    /// Creates a new builder-style object to manufacture [`StatusResponseOutput`](crate::output::StatusResponseOutput).
         185  +
    pub fn builder() -> crate::output::status_response_output::Builder {
         186  +
        crate::output::status_response_output::Builder::default()
         187  +
    }
         188  +
}
         189  +
         190  +
#[allow(missing_docs)] // documentation missing in model
         191  +
#[derive(
         192  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         193  +
)]
         194  +
pub struct EnumQueryOutput {}
         195  +
impl EnumQueryOutput {
         196  +
    /// Creates a new builder-style object to manufacture [`EnumQueryOutput`](crate::output::EnumQueryOutput).
         197  +
    pub fn builder() -> crate::output::enum_query_output::Builder {
         198  +
        crate::output::enum_query_output::Builder::default()
         199  +
    }
         200  +
}
         201  +
         202  +
#[allow(missing_docs)] // documentation missing in model
         203  +
#[derive(
         204  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         205  +
)]
         206  +
pub struct PrimitiveIntHeaderOutput {
         207  +
    #[allow(missing_docs)] // documentation missing in model
         208  +
    pub field: i32,
         209  +
}
         210  +
impl PrimitiveIntHeaderOutput {
         211  +
    #[allow(missing_docs)] // documentation missing in model
         212  +
    pub fn field(&self) -> i32 {
         213  +
        self.field
         214  +
    }
         215  +
}
         216  +
impl PrimitiveIntHeaderOutput {
         217  +
    /// Creates a new builder-style object to manufacture [`PrimitiveIntHeaderOutput`](crate::output::PrimitiveIntHeaderOutput).
         218  +
    pub fn builder() -> crate::output::primitive_int_header_output::Builder {
         219  +
        crate::output::primitive_int_header_output::Builder::default()
         220  +
    }
         221  +
}
         222  +
         223  +
#[allow(missing_docs)] // documentation missing in model
         224  +
#[derive(
         225  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         226  +
)]
         227  +
pub struct StringPayloadOutput {
         228  +
    #[allow(missing_docs)] // documentation missing in model
         229  +
    pub payload: ::std::option::Option<::std::string::String>,
         230  +
}
         231  +
impl StringPayloadOutput {
         232  +
    #[allow(missing_docs)] // documentation missing in model
         233  +
    pub fn payload(&self) -> ::std::option::Option<&str> {
         234  +
        self.payload.as_deref()
         235  +
    }
         236  +
}
         237  +
impl StringPayloadOutput {
         238  +
    /// Creates a new builder-style object to manufacture [`StringPayloadOutput`](crate::output::StringPayloadOutput).
         239  +
    pub fn builder() -> crate::output::string_payload_output::Builder {
         240  +
        crate::output::string_payload_output::Builder::default()
         241  +
    }
         242  +
}
         243  +
/// See [`HttpQueryParamsOnlyOperationOutput`](crate::output::HttpQueryParamsOnlyOperationOutput).
         244  +
pub mod http_query_params_only_operation_output {
         245  +
         246  +
    impl ::std::convert::From<Builder> for crate::output::HttpQueryParamsOnlyOperationOutput {
         247  +
        fn from(builder: Builder) -> Self {
         248  +
            builder.build()
         249  +
        }
         250  +
    }
         251  +
    /// A builder for [`HttpQueryParamsOnlyOperationOutput`](crate::output::HttpQueryParamsOnlyOperationOutput).
         252  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         253  +
    pub struct Builder {}
         254  +
    impl Builder {
         255  +
        /// Consumes the builder and constructs a [`HttpQueryParamsOnlyOperationOutput`](crate::output::HttpQueryParamsOnlyOperationOutput).
         256  +
        pub fn build(self) -> crate::output::HttpQueryParamsOnlyOperationOutput {
         257  +
            self.build_enforcing_all_constraints()
         258  +
        }
         259  +
        fn build_enforcing_all_constraints(
         260  +
            self,
         261  +
        ) -> crate::output::HttpQueryParamsOnlyOperationOutput {
         262  +
            crate::output::HttpQueryParamsOnlyOperationOutput {}
         263  +
        }
         264  +
    }
         265  +
}
         266  +
/// See [`QueryPrecedenceOutput`](crate::output::QueryPrecedenceOutput).
         267  +
pub mod query_precedence_output {
         268  +
         269  +
    impl ::std::convert::From<Builder> for crate::output::QueryPrecedenceOutput {
         270  +
        fn from(builder: Builder) -> Self {
         271  +
            builder.build()
         272  +
        }
         273  +
    }
         274  +
    /// A builder for [`QueryPrecedenceOutput`](crate::output::QueryPrecedenceOutput).
         275  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         276  +
    pub struct Builder {}
         277  +
    impl Builder {
         278  +
        /// Consumes the builder and constructs a [`QueryPrecedenceOutput`](crate::output::QueryPrecedenceOutput).
         279  +
        pub fn build(self) -> crate::output::QueryPrecedenceOutput {
         280  +
            self.build_enforcing_all_constraints()
         281  +
        }
         282  +
        fn build_enforcing_all_constraints(self) -> crate::output::QueryPrecedenceOutput {
         283  +
            crate::output::QueryPrecedenceOutput {}
         284  +
        }
         285  +
    }
         286  +
}
         287  +
/// See [`EmptyStructWithContentOnWireOpOutput`](crate::output::EmptyStructWithContentOnWireOpOutput).
         288  +
pub mod empty_struct_with_content_on_wire_op_output {
         289  +
         290  +
    impl ::std::convert::From<Builder> for crate::output::EmptyStructWithContentOnWireOpOutput {
         291  +
        fn from(builder: Builder) -> Self {
         292  +
            builder.build()
         293  +
        }
         294  +
    }
         295  +
    /// A builder for [`EmptyStructWithContentOnWireOpOutput`](crate::output::EmptyStructWithContentOnWireOpOutput).
         296  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         297  +
    pub struct Builder {
         298  +
        pub(crate) empty: ::std::option::Option<crate::model::EmptyStruct>,
         299  +
    }
         300  +
    impl Builder {
         301  +
        #[allow(missing_docs)] // documentation missing in model
         302  +
        pub fn empty(mut self, input: ::std::option::Option<crate::model::EmptyStruct>) -> Self {
         303  +
            self.empty = input;
         304  +
            self
         305  +
        }
         306  +
        /// Consumes the builder and constructs a [`EmptyStructWithContentOnWireOpOutput`](crate::output::EmptyStructWithContentOnWireOpOutput).
         307  +
        pub fn build(self) -> crate::output::EmptyStructWithContentOnWireOpOutput {
         308  +
            self.build_enforcing_all_constraints()
         309  +
        }
         310  +
        fn build_enforcing_all_constraints(
         311  +
            self,
         312  +
        ) -> crate::output::EmptyStructWithContentOnWireOpOutput {
         313  +
            crate::output::EmptyStructWithContentOnWireOpOutput { empty: self.empty }
         314  +
        }
         315  +
    }
         316  +
}
         317  +
/// See [`CaseInsensitiveErrorOperationOutput`](crate::output::CaseInsensitiveErrorOperationOutput).
         318  +
pub mod case_insensitive_error_operation_output {
         319  +
         320  +
    impl ::std::convert::From<Builder> for crate::output::CaseInsensitiveErrorOperationOutput {
         321  +
        fn from(builder: Builder) -> Self {
         322  +
            builder.build()
         323  +
        }
         324  +
    }
         325  +
    /// A builder for [`CaseInsensitiveErrorOperationOutput`](crate::output::CaseInsensitiveErrorOperationOutput).
         326  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         327  +
    pub struct Builder {}
         328  +
    impl Builder {
         329  +
        /// Consumes the builder and constructs a [`CaseInsensitiveErrorOperationOutput`](crate::output::CaseInsensitiveErrorOperationOutput).
         330  +
        pub fn build(self) -> crate::output::CaseInsensitiveErrorOperationOutput {
         331  +
            self.build_enforcing_all_constraints()
         332  +
        }
         333  +
        fn build_enforcing_all_constraints(
         334  +
            self,
         335  +
        ) -> crate::output::CaseInsensitiveErrorOperationOutput {
         336  +
            crate::output::CaseInsensitiveErrorOperationOutput {}
         337  +
        }
         338  +
    }
         339  +
}
         340  +
/// See [`NullInNonSparseOutput`](crate::output::NullInNonSparseOutput).
         341  +
pub mod null_in_non_sparse_output {
         342  +
         343  +
    impl ::std::convert::From<Builder> for crate::output::NullInNonSparseOutput {
         344  +
        fn from(builder: Builder) -> Self {
         345  +
            builder.build()
         346  +
        }
         347  +
    }
         348  +
    /// A builder for [`NullInNonSparseOutput`](crate::output::NullInNonSparseOutput).
         349  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         350  +
    pub struct Builder {
         351  +
        pub(crate) list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
         352  +
        pub(crate) map: ::std::option::Option<
         353  +
            ::std::collections::HashMap<::std::string::String, ::std::string::String>,
         354  +
        >,
         355  +
        pub(crate) union: ::std::option::Option<crate::model::SingleElementUnion>,
         356  +
    }
         357  +
    impl Builder {
         358  +
        #[allow(missing_docs)] // documentation missing in model
         359  +
        pub fn list(
         360  +
            mut self,
         361  +
            input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
         362  +
        ) -> Self {
         363  +
            self.list = input;
         364  +
            self
         365  +
        }
         366  +
        #[allow(missing_docs)] // documentation missing in model
         367  +
        pub fn map(
         368  +
            mut self,
         369  +
            input: ::std::option::Option<
         370  +
                ::std::collections::HashMap<::std::string::String, ::std::string::String>,
         371  +
            >,
         372  +
        ) -> Self {
         373  +
            self.map = input;
         374  +
            self
         375  +
        }
         376  +
        #[allow(missing_docs)] // documentation missing in model
         377  +
        pub fn union(
         378  +
            mut self,
         379  +
            input: ::std::option::Option<crate::model::SingleElementUnion>,
         380  +
        ) -> Self {
         381  +
            self.union = input;
         382  +
            self
         383  +
        }
         384  +
        /// Consumes the builder and constructs a [`NullInNonSparseOutput`](crate::output::NullInNonSparseOutput).
         385  +
        pub fn build(self) -> crate::output::NullInNonSparseOutput {
         386  +
            self.build_enforcing_all_constraints()
         387  +
        }
         388  +
        fn build_enforcing_all_constraints(self) -> crate::output::NullInNonSparseOutput {
         389  +
            crate::output::NullInNonSparseOutput {
         390  +
                list: self.list,
         391  +
                map: self.map,
         392  +
                union: self.union,
         393  +
            }
         394  +
        }
         395  +
    }
         396  +
}
         397  +
/// See [`EscapedStringValuesOutput`](crate::output::EscapedStringValuesOutput).
         398  +
pub mod escaped_string_values_output {
         399  +
         400  +
    impl ::std::convert::From<Builder> for crate::output::EscapedStringValuesOutput {
         401  +
        fn from(builder: Builder) -> Self {
         402  +
            builder.build()
         403  +
        }
         404  +
    }
         405  +
    /// A builder for [`EscapedStringValuesOutput`](crate::output::EscapedStringValuesOutput).
         406  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         407  +
    pub struct Builder {
         408  +
        pub(crate) r#enum: ::std::option::Option<crate::model::EnumWithEscapedChars>,
         409  +
        pub(crate) some_string: ::std::option::Option<::std::string::String>,
         410  +
    }
         411  +
    impl Builder {
         412  +
        #[allow(missing_docs)] // documentation missing in model
         413  +
        pub fn r#enum(
         414  +
            mut self,
         415  +
            input: ::std::option::Option<crate::model::EnumWithEscapedChars>,
         416  +
        ) -> Self {
         417  +
            self.r#enum = input;
         418  +
            self
         419  +
        }
         420  +
        #[allow(missing_docs)] // documentation missing in model
         421  +
        pub fn some_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         422  +
            self.some_string = input;
         423  +
            self
         424  +
        }
         425  +
        /// Consumes the builder and constructs a [`EscapedStringValuesOutput`](crate::output::EscapedStringValuesOutput).
         426  +
        pub fn build(self) -> crate::output::EscapedStringValuesOutput {
         427  +
            self.build_enforcing_all_constraints()
         428  +
        }
         429  +
        fn build_enforcing_all_constraints(self) -> crate::output::EscapedStringValuesOutput {
         430  +
            crate::output::EscapedStringValuesOutput {
         431  +
                r#enum: self.r#enum,
         432  +
                some_string: self.some_string,
         433  +
            }
         434  +
        }
         435  +
    }
         436  +
}
         437  +
/// See [`PrimitiveIntOpOutput`](crate::output::PrimitiveIntOpOutput).
         438  +
pub mod primitive_int_op_output {
         439  +
         440  +
    impl ::std::convert::From<Builder> for crate::output::PrimitiveIntOpOutput {
         441  +
        fn from(builder: Builder) -> Self {
         442  +
            builder.build()
         443  +
        }
         444  +
    }
         445  +
    /// A builder for [`PrimitiveIntOpOutput`](crate::output::PrimitiveIntOpOutput).
         446  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         447  +
    pub struct Builder {
         448  +
        pub(crate) value: ::std::option::Option<i32>,
         449  +
    }
         450  +
    impl Builder {
         451  +
        #[allow(missing_docs)] // documentation missing in model
         452  +
        pub fn value(mut self, input: i32) -> Self {
         453  +
            self.value = Some(input);
         454  +
            self
         455  +
        }
         456  +
        /// Consumes the builder and constructs a [`PrimitiveIntOpOutput`](crate::output::PrimitiveIntOpOutput).
         457  +
        pub fn build(self) -> crate::output::PrimitiveIntOpOutput {
         458  +
            self.build_enforcing_all_constraints()
         459  +
        }
         460  +
        fn build_enforcing_all_constraints(self) -> crate::output::PrimitiveIntOpOutput {
         461  +
            crate::output::PrimitiveIntOpOutput {
         462  +
                value: self.value.unwrap_or(0i32),
         463  +
            }
         464  +
        }
         465  +
    }
         466  +
}
         467  +
/// See [`MapWithEnumKeyOpOutput`](crate::output::MapWithEnumKeyOpOutput).
         468  +
pub mod map_with_enum_key_op_output {
         469  +
         470  +
    impl ::std::convert::From<Builder> for crate::output::MapWithEnumKeyOpOutput {
         471  +
        fn from(builder: Builder) -> Self {
         472  +
            builder.build()
         473  +
        }
         474  +
    }
         475  +
    /// A builder for [`MapWithEnumKeyOpOutput`](crate::output::MapWithEnumKeyOpOutput).
         476  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         477  +
    pub struct Builder {
         478  +
        pub(crate) map: ::std::option::Option<
         479  +
            ::std::collections::HashMap<crate::model::StringEnum, ::std::string::String>,
         480  +
        >,
         481  +
    }
         482  +
    impl Builder {
         483  +
        #[allow(missing_docs)] // documentation missing in model
         484  +
        pub fn map(
         485  +
            mut self,
         486  +
            input: ::std::option::Option<
         487  +
                ::std::collections::HashMap<crate::model::StringEnum, ::std::string::String>,
         488  +
            >,
         489  +
        ) -> Self {
         490  +
            self.map = input;
         491  +
            self
         492  +
        }
         493  +
        /// Consumes the builder and constructs a [`MapWithEnumKeyOpOutput`](crate::output::MapWithEnumKeyOpOutput).
         494  +
        pub fn build(self) -> crate::output::MapWithEnumKeyOpOutput {
         495  +
            self.build_enforcing_all_constraints()
         496  +
        }
         497  +
        fn build_enforcing_all_constraints(self) -> crate::output::MapWithEnumKeyOpOutput {
         498  +
            crate::output::MapWithEnumKeyOpOutput { map: self.map }
         499  +
        }
         500  +
    }
         501  +
}
         502  +
/// See [`StatusResponseOutput`](crate::output::StatusResponseOutput).
         503  +
pub mod status_response_output {
         504  +
         505  +
    impl ::std::convert::From<Builder> for crate::output::StatusResponseOutput {
         506  +
        fn from(builder: Builder) -> Self {
         507  +
            builder.build()
         508  +
        }
         509  +
    }
         510  +
    /// A builder for [`StatusResponseOutput`](crate::output::StatusResponseOutput).
         511  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         512  +
    pub struct Builder {
         513  +
        pub(crate) field: ::std::option::Option<i32>,
         514  +
    }
         515  +
    impl Builder {
         516  +
        #[allow(missing_docs)] // documentation missing in model
         517  +
        pub fn field(mut self, input: i32) -> Self {
         518  +
            self.field = Some(input);
         519  +
            self
         520  +
        }
         521  +
        /// Consumes the builder and constructs a [`StatusResponseOutput`](crate::output::StatusResponseOutput).
         522  +
        pub fn build(self) -> crate::output::StatusResponseOutput {
         523  +
            self.build_enforcing_all_constraints()
         524  +
        }
         525  +
        fn build_enforcing_all_constraints(self) -> crate::output::StatusResponseOutput {
         526  +
            crate::output::StatusResponseOutput {
         527  +
                field: self.field.unwrap_or(0i32),
         528  +
            }
         529  +
        }
         530  +
    }
         531  +
}
         532  +
/// See [`EnumQueryOutput`](crate::output::EnumQueryOutput).
         533  +
pub mod enum_query_output {
         534  +
         535  +
    impl ::std::convert::From<Builder> for crate::output::EnumQueryOutput {
         536  +
        fn from(builder: Builder) -> Self {
         537  +
            builder.build()
         538  +
        }
         539  +
    }
         540  +
    /// A builder for [`EnumQueryOutput`](crate::output::EnumQueryOutput).
         541  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         542  +
    pub struct Builder {}
         543  +
    impl Builder {
         544  +
        /// Consumes the builder and constructs a [`EnumQueryOutput`](crate::output::EnumQueryOutput).
         545  +
        pub fn build(self) -> crate::output::EnumQueryOutput {
         546  +
            self.build_enforcing_all_constraints()
         547  +
        }
         548  +
        fn build_enforcing_all_constraints(self) -> crate::output::EnumQueryOutput {
         549  +
            crate::output::EnumQueryOutput {}
         550  +
        }
         551  +
    }
         552  +
}
         553  +
/// See [`PrimitiveIntHeaderOutput`](crate::output::PrimitiveIntHeaderOutput).
         554  +
pub mod primitive_int_header_output {
         555  +
         556  +
    impl ::std::convert::From<Builder> for crate::output::PrimitiveIntHeaderOutput {
         557  +
        fn from(builder: Builder) -> Self {
         558  +
            builder.build()
         559  +
        }
         560  +
    }
         561  +
    /// A builder for [`PrimitiveIntHeaderOutput`](crate::output::PrimitiveIntHeaderOutput).
         562  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         563  +
    pub struct Builder {
         564  +
        pub(crate) field: ::std::option::Option<i32>,
         565  +
    }
         566  +
    impl Builder {
         567  +
        #[allow(missing_docs)] // documentation missing in model
         568  +
        pub fn field(mut self, input: i32) -> Self {
         569  +
            self.field = Some(input);
         570  +
            self
         571  +
        }
         572  +
        /// Consumes the builder and constructs a [`PrimitiveIntHeaderOutput`](crate::output::PrimitiveIntHeaderOutput).
         573  +
        pub fn build(self) -> crate::output::PrimitiveIntHeaderOutput {
         574  +
            self.build_enforcing_all_constraints()
         575  +
        }
         576  +
        fn build_enforcing_all_constraints(self) -> crate::output::PrimitiveIntHeaderOutput {
         577  +
            crate::output::PrimitiveIntHeaderOutput {
         578  +
                field: self.field.unwrap_or(0i32),
         579  +
            }
         580  +
        }
         581  +
    }
         582  +
}
         583  +
/// See [`StringPayloadOutput`](crate::output::StringPayloadOutput).
         584  +
pub mod string_payload_output {
         585  +
         586  +
    impl ::std::convert::From<Builder> for crate::output::StringPayloadOutput {
         587  +
        fn from(builder: Builder) -> Self {
         588  +
            builder.build()
         589  +
        }
         590  +
    }
         591  +
    /// A builder for [`StringPayloadOutput`](crate::output::StringPayloadOutput).
         592  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         593  +
    pub struct Builder {
         594  +
        pub(crate) payload: ::std::option::Option<::std::string::String>,
         595  +
    }
         596  +
    impl Builder {
         597  +
        #[allow(missing_docs)] // documentation missing in model
         598  +
        pub fn payload(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         599  +
            self.payload = input;
         600  +
            self
         601  +
        }
         602  +
        /// Consumes the builder and constructs a [`StringPayloadOutput`](crate::output::StringPayloadOutput).
         603  +
        pub fn build(self) -> crate::output::StringPayloadOutput {
         604  +
            self.build_enforcing_all_constraints()
         605  +
        }
         606  +
        fn build_enforcing_all_constraints(self) -> crate::output::StringPayloadOutput {
         607  +
            crate::output::StringPayloadOutput {
         608  +
                payload: self.payload,
         609  +
            }
         610  +
        }
         611  +
    }
         612  +
}