Server Test

Server Test

rev. 7254d43655ed63111c94f599437f2b0d3f55446e (ignoring whitespace)

Files changed:

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

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

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

@@ -1,1 +41,39 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub(crate) mod shape_case_insensitive_error_operation;
    3      3   
    4      4   
pub(crate) mod shape_empty_struct_with_content_on_wire_op;
    5      5   
    6      6   
pub(crate) mod shape_enum_query;
    7      7   
    8      8   
pub(crate) mod shape_escaped_string_values;
    9      9   
   10         -
pub(crate) mod shape_http_query_params_only_operation;
   11         -
   12     10   
pub(crate) mod shape_map_with_enum_key_op;
   13     11   
   14     12   
pub(crate) mod shape_null_in_non_sparse;
   15     13   
   16     14   
pub(crate) mod shape_primitive_int_header;
   17     15   
   18     16   
pub(crate) mod shape_primitive_int_op;
   19     17   
   20     18   
pub(crate) mod shape_query_precedence;
   21     19   

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

@@ -1,1 +41,40 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// The service builder for [`RestJsonExtras`].
    3      3   
///
    4      4   
/// Constructed via [`RestJsonExtras::builder`].
    5      5   
pub struct RestJsonExtrasBuilder<Body, L, HttpPl, ModelPl> {
    6      6   
    case_insensitive_error_operation: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
    7      7   
    empty_struct_with_content_on_wire_op:
    8      8   
        Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
    9      9   
    enum_query: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
   10     10   
    escaped_string_values: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
   11         -
    http_query_params_only_operation: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
   12     11   
    map_with_enum_key_op: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
   13     12   
    null_in_non_sparse: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
   14     13   
    primitive_int_header: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
   15     14   
    primitive_int_op: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
   16     15   
    query_precedence: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
   17     16   
    status_response: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
   18     17   
    string_payload: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
   19     18   
    layer: L,
   20     19   
    http_plugin: HttpPl,
   21     20   
    model_plugin: ModelPl,
@@ -606,605 +818,664 @@
  626    625   
            > + Clone
  627    626   
            + Send
  628    627   
            + 'static,
  629    628   
        S::Future: Send + 'static,
  630    629   
    {
  631    630   
        self.escaped_string_values =
  632    631   
            Some(::aws_smithy_legacy_http_server::routing::Route::new(svc));
  633    632   
        self
  634    633   
    }
  635    634   
  636         -
    /// Sets the [`HttpQueryParamsOnlyOperation`](crate::operation_shape::HttpQueryParamsOnlyOperation) operation.
  637         -
    ///
  638         -
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
  639         -
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
  640         -
    ///
  641         -
    /// # Example
  642         -
    ///
  643         -
    /// ```no_run
  644         -
    /// use rest_json_extras_http0x::{RestJsonExtras, RestJsonExtrasConfig};
  645         -
    ///
  646         -
    /// use rest_json_extras_http0x::{input, output, error};
  647         -
    ///
  648         -
    /// async fn handler(input: input::HttpQueryParamsOnlyOperationInput) -> Result<output::HttpQueryParamsOnlyOperationOutput, error::HttpQueryParamsOnlyOperationError> {
  649         -
    ///     todo!()
  650         -
    /// }
  651         -
    ///
  652         -
    /// let config = RestJsonExtrasConfig::builder().build();
  653         -
    /// let app = RestJsonExtras::builder(config)
  654         -
    ///     .http_query_params_only_operation(handler)
  655         -
    ///     /* Set other handlers */
  656         -
    ///     .build()
  657         -
    ///     .unwrap();
  658         -
    /// # let app: RestJsonExtras<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::rest::router::RestRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>> = app;
  659         -
    /// ```
  660         -
    ///
  661         -
                    pub fn http_query_params_only_operation<HandlerType, HandlerExtractors, UpgradeExtractors>(self, handler: HandlerType) -> Self
  662         -
                    where
  663         -
                        HandlerType: ::aws_smithy_legacy_http_server::operation::Handler<crate::operation_shape::HttpQueryParamsOnlyOperation, HandlerExtractors>,
  664         -
  665         -
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
  666         -
                            RestJsonExtras<L>,
  667         -
                            crate::operation_shape::HttpQueryParamsOnlyOperation,
  668         -
                            ::aws_smithy_legacy_http_server::operation::IntoService<crate::operation_shape::HttpQueryParamsOnlyOperation, HandlerType>
  669         -
                        >,
  670         -
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
  671         -
                            RestJsonExtras<L>,
  672         -
                            crate::operation_shape::HttpQueryParamsOnlyOperation,
  673         -
                            ModelPl::Output
  674         -
                        >,
  675         -
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
  676         -
                            RestJsonExtras<L>,
  677         -
                            crate::operation_shape::HttpQueryParamsOnlyOperation,
  678         -
                            <
  679         -
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
  680         -
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
  681         -
                                    RestJsonExtras<L>,
  682         -
                                    crate::operation_shape::HttpQueryParamsOnlyOperation,
  683         -
                                    ModelPl::Output
  684         -
                                >
  685         -
                            >::Output
  686         -
                        >,
  687         -
  688         -
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
  689         -
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
  690         -
  691         -
                    {
  692         -
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
  693         -
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
  694         -
        let svc = crate::operation_shape::HttpQueryParamsOnlyOperation::from_handler(handler);
  695         -
        let svc = self.model_plugin.apply(svc);
  696         -
        let svc =
  697         -
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
  698         -
                .apply(svc);
  699         -
        let svc = self.http_plugin.apply(svc);
  700         -
        self.http_query_params_only_operation_custom(svc)
  701         -
    }
  702         -
  703         -
    /// Sets the [`HttpQueryParamsOnlyOperation`](crate::operation_shape::HttpQueryParamsOnlyOperation) operation.
  704         -
    ///
  705         -
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
  706         -
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
  707         -
    ///
  708         -
    /// # Example
  709         -
    ///
  710         -
    /// ```no_run
  711         -
    /// use rest_json_extras_http0x::{RestJsonExtras, RestJsonExtrasConfig};
  712         -
    ///
  713         -
    /// use rest_json_extras_http0x::{input, output, error};
  714         -
    ///
  715         -
    /// async fn handler(input: input::HttpQueryParamsOnlyOperationInput) -> Result<output::HttpQueryParamsOnlyOperationOutput, error::HttpQueryParamsOnlyOperationError> {
  716         -
    ///     todo!()
  717         -
    /// }
  718         -
    ///
  719         -
    /// let config = RestJsonExtrasConfig::builder().build();
  720         -
    /// let svc = ::tower::util::service_fn(handler);
  721         -
    /// let app = RestJsonExtras::builder(config)
  722         -
    ///     .http_query_params_only_operation_service(svc)
  723         -
    ///     /* Set other handlers */
  724         -
    ///     .build()
  725         -
    ///     .unwrap();
  726         -
    /// # let app: RestJsonExtras<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::rest::router::RestRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>> = app;
  727         -
    /// ```
  728         -
    ///
  729         -
                    pub fn http_query_params_only_operation_service<S, ServiceExtractors, UpgradeExtractors>(self, service: S) -> Self
  730         -
                    where
  731         -
                        S: ::aws_smithy_legacy_http_server::operation::OperationService<crate::operation_shape::HttpQueryParamsOnlyOperation, ServiceExtractors>,
  732         -
  733         -
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
  734         -
                            RestJsonExtras<L>,
  735         -
                            crate::operation_shape::HttpQueryParamsOnlyOperation,
  736         -
                            ::aws_smithy_legacy_http_server::operation::Normalize<crate::operation_shape::HttpQueryParamsOnlyOperation, S>
  737         -
                        >,
  738         -
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
  739         -
                            RestJsonExtras<L>,
  740         -
                            crate::operation_shape::HttpQueryParamsOnlyOperation,
  741         -
                            ModelPl::Output
  742         -
                        >,
  743         -
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
  744         -
                            RestJsonExtras<L>,
  745         -
                            crate::operation_shape::HttpQueryParamsOnlyOperation,
  746         -
                            <
  747         -
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
  748         -
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
  749         -
                                    RestJsonExtras<L>,
  750         -
                                    crate::operation_shape::HttpQueryParamsOnlyOperation,
  751         -
                                    ModelPl::Output
  752         -
                                >
  753         -
                            >::Output
  754         -
                        >,
  755         -
  756         -
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
  757         -
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
  758         -
  759         -
                    {
  760         -
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
  761         -
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
  762         -
        let svc = crate::operation_shape::HttpQueryParamsOnlyOperation::from_service(service);
  763         -
        let svc = self.model_plugin.apply(svc);
  764         -
        let svc =
  765         -
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
  766         -
                .apply(svc);
  767         -
        let svc = self.http_plugin.apply(svc);
  768         -
        self.http_query_params_only_operation_custom(svc)
  769         -
    }
  770         -
  771         -
    /// Sets the [`HttpQueryParamsOnlyOperation`](crate::operation_shape::HttpQueryParamsOnlyOperation) to a custom [`Service`](tower::Service).
  772         -
    /// not constrained by the Smithy contract.
  773         -
    fn http_query_params_only_operation_custom<S>(mut self, svc: S) -> Self
  774         -
    where
  775         -
        S: ::tower::Service<
  776         -
                ::http::Request<Body>,
  777         -
                Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>,
  778         -
                Error = ::std::convert::Infallible,
  779         -
            > + Clone
  780         -
            + Send
  781         -
            + 'static,
  782         -
        S::Future: Send + 'static,
  783         -
    {
  784         -
        self.http_query_params_only_operation =
  785         -
            Some(::aws_smithy_legacy_http_server::routing::Route::new(svc));
  786         -
        self
  787         -
    }
  788         -
  789    635   
    /// Sets the [`MapWithEnumKeyOp`](crate::operation_shape::MapWithEnumKeyOp) operation.
  790    636   
    ///
  791    637   
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
  792    638   
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
  793    639   
    ///
  794    640   
    /// # Example
  795    641   
    ///
  796    642   
    /// ```no_run
  797    643   
    /// use rest_json_extras_http0x::{RestJsonExtras, RestJsonExtrasConfig};
  798    644   
    ///
@@ -1870,1716 +1935,1775 @@
 1890   1736   
            if self.enum_query.is_none() {
 1891   1737   
                missing_operation_names
 1892   1738   
                    .insert(crate::operation_shape::EnumQuery::ID, ".enum_query()");
 1893   1739   
            }
 1894   1740   
            if self.escaped_string_values.is_none() {
 1895   1741   
                missing_operation_names.insert(
 1896   1742   
                    crate::operation_shape::EscapedStringValues::ID,
 1897   1743   
                    ".escaped_string_values()",
 1898   1744   
                );
 1899   1745   
            }
 1900         -
            if self.http_query_params_only_operation.is_none() {
 1901         -
                missing_operation_names.insert(
 1902         -
                    crate::operation_shape::HttpQueryParamsOnlyOperation::ID,
 1903         -
                    ".http_query_params_only_operation()",
 1904         -
                );
 1905         -
            }
 1906   1746   
            if self.map_with_enum_key_op.is_none() {
 1907   1747   
                missing_operation_names.insert(
 1908   1748   
                    crate::operation_shape::MapWithEnumKeyOp::ID,
 1909   1749   
                    ".map_with_enum_key_op()",
 1910   1750   
                );
 1911   1751   
            }
 1912   1752   
            if self.null_in_non_sparse.is_none() {
 1913   1753   
                missing_operation_names.insert(
 1914   1754   
                    crate::operation_shape::NullInNonSparse::ID,
 1915   1755   
                    ".null_in_non_sparse()",
@@ -1944,1784 +2008,1843 @@
 1964   1804   
                        .expect(unexpected_error_msg),
 1965   1805   
                ),
 1966   1806   
                (
 1967   1807   
                    request_specs::enum_query(),
 1968   1808   
                    self.enum_query.expect(unexpected_error_msg),
 1969   1809   
                ),
 1970   1810   
                (
 1971   1811   
                    request_specs::escaped_string_values(),
 1972   1812   
                    self.escaped_string_values.expect(unexpected_error_msg),
 1973   1813   
                ),
 1974         -
                (
 1975         -
                    request_specs::http_query_params_only_operation(),
 1976         -
                    self.http_query_params_only_operation
 1977         -
                        .expect(unexpected_error_msg),
 1978         -
                ),
 1979   1814   
                (
 1980   1815   
                    request_specs::map_with_enum_key_op(),
 1981   1816   
                    self.map_with_enum_key_op.expect(unexpected_error_msg),
 1982   1817   
                ),
 1983   1818   
                (
 1984   1819   
                    request_specs::null_in_non_sparse(),
 1985   1820   
                    self.null_in_non_sparse.expect(unexpected_error_msg),
 1986   1821   
                ),
 1987   1822   
                (
 1988   1823   
                    request_specs::primitive_int_header(),
@@ -2040,1875 +2108,1934 @@
 2060   1895   
                ),
 2061   1896   
                (
 2062   1897   
                    request_specs::escaped_string_values(),
 2063   1898   
                    self.escaped_string_values.unwrap_or_else(|| {
 2064   1899   
                        let svc = ::aws_smithy_legacy_http_server::operation::MissingFailure::<
 2065   1900   
                            ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
 2066   1901   
                        >::default();
 2067   1902   
                        ::aws_smithy_legacy_http_server::routing::Route::new(svc)
 2068   1903   
                    }),
 2069   1904   
                ),
 2070         -
                (
 2071         -
                    request_specs::http_query_params_only_operation(),
 2072         -
                    self.http_query_params_only_operation.unwrap_or_else(|| {
 2073         -
                        let svc = ::aws_smithy_legacy_http_server::operation::MissingFailure::<
 2074         -
                            ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
 2075         -
                        >::default();
 2076         -
                        ::aws_smithy_legacy_http_server::routing::Route::new(svc)
 2077         -
                    }),
 2078         -
                ),
 2079   1905   
                (
 2080   1906   
                    request_specs::map_with_enum_key_op(),
 2081   1907   
                    self.map_with_enum_key_op.unwrap_or_else(|| {
 2082   1908   
                        let svc = ::aws_smithy_legacy_http_server::operation::MissingFailure::<
 2083   1909   
                            ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
 2084   1910   
                        >::default();
 2085   1911   
                        ::aws_smithy_legacy_http_server::routing::Route::new(svc)
 2086   1912   
                    }),
 2087   1913   
                ),
 2088   1914   
                (
@@ -2206,2032 +2280,2091 @@
 2226   2052   
    pub(super) fn escaped_string_values(
 2227   2053   
    ) -> ::aws_smithy_legacy_http_server::routing::request_spec::RequestSpec {
 2228   2054   
        ::aws_smithy_legacy_http_server::routing::request_spec::RequestSpec::new(
 2229   2055   
                    ::http::Method::POST,
 2230   2056   
                    ::aws_smithy_legacy_http_server::routing::request_spec::UriSpec::new(
 2231   2057   
                        ::aws_smithy_legacy_http_server::routing::request_spec::PathAndQuerySpec::new(
 2232   2058   
                            ::aws_smithy_legacy_http_server::routing::request_spec::PathSpec::from_vector_unchecked(vec![
 2233   2059   
    ::aws_smithy_legacy_http_server::routing::request_spec::PathSegment::Literal(String::from("escaped-string-values")),
 2234   2060   
]),
 2235   2061   
                            ::aws_smithy_legacy_http_server::routing::request_spec::QuerySpec::from_vector_unchecked(vec![
 2236         -
])
 2237         -
                        )
 2238         -
                    ),
 2239         -
                )
 2240         -
    }
 2241         -
    pub(super) fn http_query_params_only_operation(
 2242         -
    ) -> ::aws_smithy_legacy_http_server::routing::request_spec::RequestSpec {
 2243         -
        ::aws_smithy_legacy_http_server::routing::request_spec::RequestSpec::new(
 2244         -
                    ::http::Method::GET,
 2245         -
                    ::aws_smithy_legacy_http_server::routing::request_spec::UriSpec::new(
 2246         -
                        ::aws_smithy_legacy_http_server::routing::request_spec::PathAndQuerySpec::new(
 2247         -
                            ::aws_smithy_legacy_http_server::routing::request_spec::PathSpec::from_vector_unchecked(vec![
 2248         -
    ::aws_smithy_legacy_http_server::routing::request_spec::PathSegment::Literal(String::from("http-query-params-only")),
 2249         -
]),
 2250         -
                            ::aws_smithy_legacy_http_server::routing::request_spec::QuerySpec::from_vector_unchecked(vec![
 2251   2062   
])
 2252   2063   
                        )
 2253   2064   
                    ),
 2254   2065   
                )
 2255   2066   
    }
 2256   2067   
    pub(super) fn map_with_enum_key_op(
 2257   2068   
    ) -> ::aws_smithy_legacy_http_server::routing::request_spec::RequestSpec {
 2258   2069   
        ::aws_smithy_legacy_http_server::routing::request_spec::RequestSpec::new(
 2259   2070   
                    ::http::Method::POST,
 2260   2071   
                    ::aws_smithy_legacy_http_server::routing::request_spec::UriSpec::new(
@@ -2367,2178 +2466,2275 @@
 2387   2198   
        HttpPl: ::aws_smithy_legacy_http_server::plugin::HttpMarker,
 2388   2199   
        ModelPl: ::aws_smithy_legacy_http_server::plugin::ModelMarker,
 2389   2200   
    >(
 2390   2201   
        config: RestJsonExtrasConfig<L, HttpPl, ModelPl>,
 2391   2202   
    ) -> RestJsonExtrasBuilder<Body, L, HttpPl, ModelPl> {
 2392   2203   
        RestJsonExtrasBuilder {
 2393   2204   
            case_insensitive_error_operation: None,
 2394   2205   
            empty_struct_with_content_on_wire_op: None,
 2395   2206   
            enum_query: None,
 2396   2207   
            escaped_string_values: None,
 2397         -
            http_query_params_only_operation: None,
 2398   2208   
            map_with_enum_key_op: None,
 2399   2209   
            null_in_non_sparse: None,
 2400   2210   
            primitive_int_header: None,
 2401   2211   
            primitive_int_op: None,
 2402   2212   
            query_precedence: None,
 2403   2213   
            status_response: None,
 2404   2214   
            string_payload: None,
 2405   2215   
            layer: config.layers,
 2406   2216   
            http_plugin: config.http_plugins,
 2407   2217   
            model_plugin: config.model_plugins,
 2408   2218   
        }
 2409   2219   
    }
 2410   2220   
 2411   2221   
    /// Constructs a builder for [`RestJsonExtras`].
 2412   2222   
    /// You must specify what plugins should be applied to the operations in this service.
 2413   2223   
    ///
 2414   2224   
    /// Use [`RestJsonExtras::builder_without_plugins`] if you don't need to apply plugins.
 2415   2225   
    ///
 2416   2226   
    /// Check out [`HttpPlugins`](::aws_smithy_legacy_http_server::plugin::HttpPlugins) and
 2417   2227   
    /// [`ModelPlugins`](::aws_smithy_legacy_http_server::plugin::ModelPlugins) if you need to apply
 2418   2228   
    /// multiple plugins.
 2419   2229   
    #[deprecated(
 2420   2230   
        since = "0.57.0",
 2421   2231   
        note = "please use the `builder` constructor and register plugins on the `RestJsonExtrasConfig` object instead; see https://github.com/smithy-lang/smithy-rs/discussions/3096"
 2422   2232   
    )]
 2423   2233   
    pub fn builder_with_plugins<
 2424   2234   
        Body,
 2425   2235   
        HttpPl: ::aws_smithy_legacy_http_server::plugin::HttpMarker,
 2426   2236   
        ModelPl: ::aws_smithy_legacy_http_server::plugin::ModelMarker,
 2427   2237   
    >(
 2428   2238   
        http_plugin: HttpPl,
 2429   2239   
        model_plugin: ModelPl,
 2430   2240   
    ) -> RestJsonExtrasBuilder<Body, ::tower::layer::util::Identity, HttpPl, ModelPl> {
 2431   2241   
        RestJsonExtrasBuilder {
 2432   2242   
            case_insensitive_error_operation: None,
 2433   2243   
            empty_struct_with_content_on_wire_op: None,
 2434   2244   
            enum_query: None,
 2435   2245   
            escaped_string_values: None,
 2436         -
            http_query_params_only_operation: None,
 2437   2246   
            map_with_enum_key_op: None,
 2438   2247   
            null_in_non_sparse: None,
 2439   2248   
            primitive_int_header: None,
 2440   2249   
            primitive_int_op: None,
 2441   2250   
            query_precedence: None,
 2442   2251   
            status_response: None,
 2443   2252   
            string_payload: None,
 2444   2253   
            layer: ::tower::layer::util::Identity::new(),
 2445   2254   
            http_plugin,
 2446   2255   
            model_plugin,
@@ -2542,2351 +2648,2449 @@
 2562   2371   
}
 2563   2372   
 2564   2373   
/// An enumeration of all [operations](https://smithy.io/2.0/spec/service-types.html#operation) in RestJsonExtras.
 2565   2374   
#[allow(clippy::enum_variant_names)]
 2566   2375   
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
 2567   2376   
pub enum Operation {
 2568   2377   
    CaseInsensitiveErrorOperation,
 2569   2378   
    EmptyStructWithContentOnWireOp,
 2570   2379   
    EnumQuery,
 2571   2380   
    EscapedStringValues,
 2572         -
    HttpQueryParamsOnlyOperation,
 2573   2381   
    MapWithEnumKeyOp,
 2574   2382   
    NullInNonSparse,
 2575   2383   
    PrimitiveIntHeader,
 2576   2384   
    PrimitiveIntOp,
 2577   2385   
    QueryPrecedence,
 2578   2386   
    StatusResponse,
 2579   2387   
    StringPayload,
 2580   2388   
}
 2581   2389   
 2582   2390   
impl Operation {
 2583   2391   
    /// Returns the [operations](https://smithy.io/2.0/spec/service-types.html#operation) [`ShapeId`](::aws_smithy_legacy_http_server::shape_id::ShapeId).
 2584   2392   
    pub fn shape_id(&self) -> ::aws_smithy_legacy_http_server::shape_id::ShapeId {
 2585   2393   
        match self {
 2586   2394   
            Operation::CaseInsensitiveErrorOperation => {
 2587   2395   
                ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
 2588   2396   
                    "aws.protocoltests.restjson#CaseInsensitiveErrorOperation",
 2589   2397   
                    "aws.protocoltests.restjson",
 2590   2398   
                    "CaseInsensitiveErrorOperation",
 2591   2399   
                )
 2592   2400   
            }
 2593   2401   
            Operation::EmptyStructWithContentOnWireOp => {
 2594   2402   
                ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
 2595   2403   
                    "aws.protocoltests.restjson#EmptyStructWithContentOnWireOp",
 2596   2404   
                    "aws.protocoltests.restjson",
 2597   2405   
                    "EmptyStructWithContentOnWireOp",
 2598   2406   
                )
 2599   2407   
            }
 2600   2408   
            Operation::EnumQuery => ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
 2601   2409   
                "aws.protocoltests.restjson#EnumQuery",
 2602   2410   
                "aws.protocoltests.restjson",
 2603   2411   
                "EnumQuery",
 2604   2412   
            ),
 2605   2413   
            Operation::EscapedStringValues => {
 2606   2414   
                ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
 2607   2415   
                    "aws.protocoltests.restjson#EscapedStringValues",
 2608   2416   
                    "aws.protocoltests.restjson",
 2609   2417   
                    "EscapedStringValues",
 2610   2418   
                )
 2611   2419   
            }
 2612         -
            Operation::HttpQueryParamsOnlyOperation => {
 2613         -
                ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
 2614         -
                    "aws.protocoltests.restjson#HttpQueryParamsOnlyOperation",
 2615         -
                    "aws.protocoltests.restjson",
 2616         -
                    "HttpQueryParamsOnlyOperation",
 2617         -
                )
 2618         -
            }
 2619   2420   
            Operation::MapWithEnumKeyOp => ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
 2620   2421   
                "aws.protocoltests.restjson#MapWithEnumKeyOp",
 2621   2422   
                "aws.protocoltests.restjson",
 2622   2423   
                "MapWithEnumKeyOp",
 2623   2424   
            ),
 2624   2425   
            Operation::NullInNonSparse => ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
 2625   2426   
                "aws.protocoltests.restjson#NullInNonSparse",
 2626   2427   
                "aws.protocoltests.restjson",
 2627   2428   
                "NullInNonSparse",
 2628   2429   
            ),
@@ -2656,2457 +2722,2516 @@
 2676   2477   
{
 2677   2478   
    const VALUE: Operation = Operation::EnumQuery;
 2678   2479   
}
 2679   2480   
impl<L>
 2680   2481   
    ::aws_smithy_legacy_http_server::service::ContainsOperation<
 2681   2482   
        crate::operation_shape::EscapedStringValues,
 2682   2483   
    > for RestJsonExtras<L>
 2683   2484   
{
 2684   2485   
    const VALUE: Operation = Operation::EscapedStringValues;
 2685   2486   
}
 2686         -
impl<L>
 2687         -
    ::aws_smithy_legacy_http_server::service::ContainsOperation<
 2688         -
        crate::operation_shape::HttpQueryParamsOnlyOperation,
 2689         -
    > for RestJsonExtras<L>
 2690         -
{
 2691         -
    const VALUE: Operation = Operation::HttpQueryParamsOnlyOperation;
 2692         -
}
 2693   2487   
impl<L>
 2694   2488   
    ::aws_smithy_legacy_http_server::service::ContainsOperation<
 2695   2489   
        crate::operation_shape::MapWithEnumKeyOp,
 2696   2490   
    > for RestJsonExtras<L>
 2697   2491   
{
 2698   2492   
    const VALUE: Operation = Operation::MapWithEnumKeyOp;
 2699   2493   
}
 2700   2494   
impl<L>
 2701   2495   
    ::aws_smithy_legacy_http_server::service::ContainsOperation<
 2702   2496   
        crate::operation_shape::NullInNonSparse,
@@ -2937,2731 +3005,2790 @@
 2957   2751   
 2958   2752   
                        // EscapedStringValues match found, pop from both `member` and `not_member`
 2959   2753   
                        (@ $ name: ident, $ contains: ident (EscapedStringValues $($ member: ident)*) ($($ temp: ident)*) (EscapedStringValues $($ not_member: ident)*)) => {
 2960   2754   
                            scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
 2961   2755   
                        };
 2962   2756   
                        // EscapedStringValues match not found, pop from `not_member` into `temp` stack
 2963   2757   
                        (@ $ name: ident, $ contains: ident (EscapedStringValues $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
 2964   2758   
                            scope! { @ $ name, $ contains (EscapedStringValues $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
 2965   2759   
                        };
 2966   2760   
 2967         -
                        // HttpQueryParamsOnlyOperation match found, pop from both `member` and `not_member`
 2968         -
                        (@ $ name: ident, $ contains: ident (HttpQueryParamsOnlyOperation $($ member: ident)*) ($($ temp: ident)*) (HttpQueryParamsOnlyOperation $($ not_member: ident)*)) => {
 2969         -
                            scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
 2970         -
                        };
 2971         -
                        // HttpQueryParamsOnlyOperation match not found, pop from `not_member` into `temp` stack
 2972         -
                        (@ $ name: ident, $ contains: ident (HttpQueryParamsOnlyOperation $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
 2973         -
                            scope! { @ $ name, $ contains (HttpQueryParamsOnlyOperation $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
 2974         -
                        };
 2975         -
 2976   2761   
                        // MapWithEnumKeyOp match found, pop from both `member` and `not_member`
 2977   2762   
                        (@ $ name: ident, $ contains: ident (MapWithEnumKeyOp $($ member: ident)*) ($($ temp: ident)*) (MapWithEnumKeyOp $($ not_member: ident)*)) => {
 2978   2763   
                            scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
 2979   2764   
                        };
 2980   2765   
                        // MapWithEnumKeyOp match not found, pop from `not_member` into `temp` stack
 2981   2766   
                        (@ $ name: ident, $ contains: ident (MapWithEnumKeyOp $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
 2982   2767   
                            scope! { @ $ name, $ contains (MapWithEnumKeyOp $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
 2983   2768   
                        };
 2984   2769   
 2985   2770   
                        // NullInNonSparse match found, pop from both `member` and `not_member`
@@ -3023,2808 +3072,2857 @@
 3043   2828   
                        }
 3044   2829   
                    ) => {
 3045   2830   
                        use $ crate::operation_shape::*;
 3046   2831   
                        $ crate::server::scope! {
 3047   2832   
                            $(#[$ attrs])*
 3048   2833   
                            $ vis struct $ name {
 3049   2834   
                                includes: [$($ include),*],
 3050   2835   
                                excludes: []
 3051   2836   
                            }
 3052   2837   
                        }
 3053         -
                        scope! { @ $ name, False ($($ include)*) () (CaseInsensitiveErrorOperation EmptyStructWithContentOnWireOp EnumQuery EscapedStringValues HttpQueryParamsOnlyOperation MapWithEnumKeyOp NullInNonSparse PrimitiveIntHeader PrimitiveIntOp QueryPrecedence StatusResponse StringPayload) }
        2838  +
                        scope! { @ $ name, False ($($ include)*) () (CaseInsensitiveErrorOperation EmptyStructWithContentOnWireOp EnumQuery EscapedStringValues MapWithEnumKeyOp NullInNonSparse PrimitiveIntHeader PrimitiveIntOp QueryPrecedence StatusResponse StringPayload) }
 3054   2839   
                    };
 3055   2840   
                    (
 3056   2841   
                        $(#[$ attrs:meta])*
 3057   2842   
                        $ vis:vis struct $ name:ident {
 3058   2843   
                            excludes: [$($ exclude:ident),*]
 3059   2844   
                        }
 3060   2845   
                    ) => {
 3061   2846   
                        use $ crate::operation_shape::*;
 3062   2847   
 3063   2848   
                        $ crate::server::scope! {
 3064   2849   
                            $(#[$ attrs])*
 3065   2850   
                            $ vis struct $ name {
 3066   2851   
                                includes: [],
 3067   2852   
                                excludes: [$($ exclude),*]
 3068   2853   
                            }
 3069   2854   
                        }
 3070         -
                        scope! { @ $ name, True ($($ exclude)*) () (CaseInsensitiveErrorOperation EmptyStructWithContentOnWireOp EnumQuery EscapedStringValues HttpQueryParamsOnlyOperation MapWithEnumKeyOp NullInNonSparse PrimitiveIntHeader PrimitiveIntOp QueryPrecedence StatusResponse StringPayload) }
        2855  +
                        scope! { @ $ name, True ($($ exclude)*) () (CaseInsensitiveErrorOperation EmptyStructWithContentOnWireOp EnumQuery EscapedStringValues MapWithEnumKeyOp NullInNonSparse PrimitiveIntHeader PrimitiveIntOp QueryPrecedence StatusResponse StringPayload) }
 3071   2856   
                    };
 3072   2857   
                }

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

@@ -1,1 +748,677 @@
    1      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 ExtraError {}
    7         -
impl ExtraError {
    8         -
    #[doc(hidden)]
    9         -
    /// Returns the error name.
   10         -
    pub fn name(&self) -> &'static str {
   11         -
        "ExtraError"
   12         -
    }
   13         -
}
   14         -
impl ::std::fmt::Display for ExtraError {
   15         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
   16         -
        ::std::write!(f, "ExtraError")?;
   17         -
        Ok(())
   18         -
    }
   19         -
}
   20         -
impl ::std::error::Error for ExtraError {}
   21         -
impl ExtraError {
   22         -
    /// Creates a new builder-style object to manufacture [`ExtraError`](crate::error::ExtraError).
   23         -
    pub fn builder() -> crate::error::extra_error::Builder {
   24         -
        crate::error::extra_error::Builder::default()
   25         -
    }
   26         -
}
   27         -
   28         -
/// Error type for the `HttpQueryParamsOnlyOperation` operation.
   29         -
/// Each variant represents an error that can occur for the `HttpQueryParamsOnlyOperation` operation.
           2  +
/// Error type for the `StringPayload` operation.
           3  +
/// Each variant represents an error that can occur for the `StringPayload` operation.
   30      4   
#[derive(::std::fmt::Debug)]
   31         -
pub enum HttpQueryParamsOnlyOperationError {
           5  +
pub enum StringPayloadError {
   32      6   
    #[allow(missing_docs)] // documentation missing in model
   33      7   
    ExtraError(crate::error::ExtraError),
   34      8   
}
   35         -
impl ::std::fmt::Display for HttpQueryParamsOnlyOperationError {
           9  +
impl ::std::fmt::Display for StringPayloadError {
   36     10   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
   37     11   
        match &self {
   38         -
            HttpQueryParamsOnlyOperationError::ExtraError(_inner) => _inner.fmt(f),
          12  +
            StringPayloadError::ExtraError(_inner) => _inner.fmt(f),
   39     13   
        }
   40     14   
    }
   41     15   
}
   42         -
impl HttpQueryParamsOnlyOperationError {
   43         -
    /// Returns `true` if the error kind is `HttpQueryParamsOnlyOperationError::ExtraError`.
          16  +
impl StringPayloadError {
          17  +
    /// Returns `true` if the error kind is `StringPayloadError::ExtraError`.
   44     18   
    pub fn is_extra_error(&self) -> bool {
   45         -
        matches!(&self, HttpQueryParamsOnlyOperationError::ExtraError(_))
          19  +
        matches!(&self, StringPayloadError::ExtraError(_))
   46     20   
    }
   47     21   
    /// Returns the error name string by matching the correct variant.
   48     22   
    pub fn name(&self) -> &'static str {
   49     23   
        match &self {
   50         -
            HttpQueryParamsOnlyOperationError::ExtraError(_inner) => _inner.name(),
          24  +
            StringPayloadError::ExtraError(_inner) => _inner.name(),
   51     25   
        }
   52     26   
    }
   53     27   
}
   54         -
impl ::std::error::Error for HttpQueryParamsOnlyOperationError {
          28  +
impl ::std::error::Error for StringPayloadError {
   55     29   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
   56     30   
        match &self {
   57         -
            HttpQueryParamsOnlyOperationError::ExtraError(_inner) => Some(_inner),
          31  +
            StringPayloadError::ExtraError(_inner) => Some(_inner),
   58     32   
        }
   59     33   
    }
   60     34   
}
   61         -
impl ::std::convert::From<crate::error::ExtraError>
   62         -
    for crate::error::HttpQueryParamsOnlyOperationError
   63         -
{
   64         -
    fn from(variant: crate::error::ExtraError) -> crate::error::HttpQueryParamsOnlyOperationError {
          35  +
impl ::std::convert::From<crate::error::ExtraError> for crate::error::StringPayloadError {
          36  +
    fn from(variant: crate::error::ExtraError) -> crate::error::StringPayloadError {
   65     37   
        Self::ExtraError(variant)
   66     38   
    }
   67     39   
}
   68     40   
   69         -
/// Error type for the `QueryPrecedence` operation.
   70         -
/// Each variant represents an error that can occur for the `QueryPrecedence` operation.
          41  +
/// Error type for the `PrimitiveIntHeader` operation.
          42  +
/// Each variant represents an error that can occur for the `PrimitiveIntHeader` operation.
   71     43   
#[derive(::std::fmt::Debug)]
   72         -
pub enum QueryPrecedenceError {
          44  +
pub enum PrimitiveIntHeaderError {
          45  +
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
          46  +
    ValidationException(crate::error::ValidationException),
   73     47   
    #[allow(missing_docs)] // documentation missing in model
   74     48   
    ExtraError(crate::error::ExtraError),
   75     49   
}
   76         -
impl ::std::fmt::Display for QueryPrecedenceError {
          50  +
impl ::std::fmt::Display for PrimitiveIntHeaderError {
   77     51   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
   78     52   
        match &self {
   79         -
            QueryPrecedenceError::ExtraError(_inner) => _inner.fmt(f),
          53  +
            PrimitiveIntHeaderError::ValidationException(_inner) => _inner.fmt(f),
          54  +
            PrimitiveIntHeaderError::ExtraError(_inner) => _inner.fmt(f),
   80     55   
        }
   81     56   
    }
   82     57   
}
   83         -
impl QueryPrecedenceError {
   84         -
    /// Returns `true` if the error kind is `QueryPrecedenceError::ExtraError`.
          58  +
impl PrimitiveIntHeaderError {
          59  +
    /// Returns `true` if the error kind is `PrimitiveIntHeaderError::ValidationException`.
          60  +
    pub fn is_validation_exception(&self) -> bool {
          61  +
        matches!(&self, PrimitiveIntHeaderError::ValidationException(_))
          62  +
    }
          63  +
    /// Returns `true` if the error kind is `PrimitiveIntHeaderError::ExtraError`.
   85     64   
    pub fn is_extra_error(&self) -> bool {
   86         -
        matches!(&self, QueryPrecedenceError::ExtraError(_))
          65  +
        matches!(&self, PrimitiveIntHeaderError::ExtraError(_))
   87     66   
    }
   88     67   
    /// Returns the error name string by matching the correct variant.
   89     68   
    pub fn name(&self) -> &'static str {
   90     69   
        match &self {
   91         -
            QueryPrecedenceError::ExtraError(_inner) => _inner.name(),
          70  +
            PrimitiveIntHeaderError::ValidationException(_inner) => _inner.name(),
          71  +
            PrimitiveIntHeaderError::ExtraError(_inner) => _inner.name(),
   92     72   
        }
   93     73   
    }
   94     74   
}
   95         -
impl ::std::error::Error for QueryPrecedenceError {
          75  +
impl ::std::error::Error for PrimitiveIntHeaderError {
   96     76   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
   97     77   
        match &self {
   98         -
            QueryPrecedenceError::ExtraError(_inner) => Some(_inner),
          78  +
            PrimitiveIntHeaderError::ValidationException(_inner) => Some(_inner),
          79  +
            PrimitiveIntHeaderError::ExtraError(_inner) => Some(_inner),
   99     80   
        }
  100     81   
    }
  101     82   
}
  102         -
impl ::std::convert::From<crate::error::ExtraError> for crate::error::QueryPrecedenceError {
  103         -
    fn from(variant: crate::error::ExtraError) -> crate::error::QueryPrecedenceError {
          83  +
impl ::std::convert::From<crate::error::ValidationException>
          84  +
    for crate::error::PrimitiveIntHeaderError
          85  +
{
          86  +
    fn from(variant: crate::error::ValidationException) -> crate::error::PrimitiveIntHeaderError {
          87  +
        Self::ValidationException(variant)
          88  +
    }
          89  +
}
          90  +
impl ::std::convert::From<crate::error::ExtraError> for crate::error::PrimitiveIntHeaderError {
          91  +
    fn from(variant: crate::error::ExtraError) -> crate::error::PrimitiveIntHeaderError {
  104     92   
        Self::ExtraError(variant)
  105     93   
    }
  106     94   
}
  107     95   
  108         -
/// Error type for the `EmptyStructWithContentOnWireOp` operation.
  109         -
/// Each variant represents an error that can occur for the `EmptyStructWithContentOnWireOp` operation.
          96  +
/// Error type for the `EnumQuery` operation.
          97  +
/// Each variant represents an error that can occur for the `EnumQuery` operation.
  110     98   
#[derive(::std::fmt::Debug)]
  111         -
pub enum EmptyStructWithContentOnWireOpError {
          99  +
pub enum EnumQueryError {
         100  +
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         101  +
    ValidationException(crate::error::ValidationException),
  112    102   
    #[allow(missing_docs)] // documentation missing in model
  113    103   
    ExtraError(crate::error::ExtraError),
  114    104   
}
  115         -
impl ::std::fmt::Display for EmptyStructWithContentOnWireOpError {
         105  +
impl ::std::fmt::Display for EnumQueryError {
  116    106   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  117    107   
        match &self {
  118         -
            EmptyStructWithContentOnWireOpError::ExtraError(_inner) => _inner.fmt(f),
         108  +
            EnumQueryError::ValidationException(_inner) => _inner.fmt(f),
         109  +
            EnumQueryError::ExtraError(_inner) => _inner.fmt(f),
  119    110   
        }
  120    111   
    }
  121    112   
}
  122         -
impl EmptyStructWithContentOnWireOpError {
  123         -
    /// Returns `true` if the error kind is `EmptyStructWithContentOnWireOpError::ExtraError`.
         113  +
impl EnumQueryError {
         114  +
    /// Returns `true` if the error kind is `EnumQueryError::ValidationException`.
         115  +
    pub fn is_validation_exception(&self) -> bool {
         116  +
        matches!(&self, EnumQueryError::ValidationException(_))
         117  +
    }
         118  +
    /// Returns `true` if the error kind is `EnumQueryError::ExtraError`.
  124    119   
    pub fn is_extra_error(&self) -> bool {
  125         -
        matches!(&self, EmptyStructWithContentOnWireOpError::ExtraError(_))
         120  +
        matches!(&self, EnumQueryError::ExtraError(_))
  126    121   
    }
  127    122   
    /// Returns the error name string by matching the correct variant.
  128    123   
    pub fn name(&self) -> &'static str {
  129    124   
        match &self {
  130         -
            EmptyStructWithContentOnWireOpError::ExtraError(_inner) => _inner.name(),
         125  +
            EnumQueryError::ValidationException(_inner) => _inner.name(),
         126  +
            EnumQueryError::ExtraError(_inner) => _inner.name(),
  131    127   
        }
  132    128   
    }
  133    129   
}
  134         -
impl ::std::error::Error for EmptyStructWithContentOnWireOpError {
         130  +
impl ::std::error::Error for EnumQueryError {
  135    131   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  136    132   
        match &self {
  137         -
            EmptyStructWithContentOnWireOpError::ExtraError(_inner) => Some(_inner),
         133  +
            EnumQueryError::ValidationException(_inner) => Some(_inner),
         134  +
            EnumQueryError::ExtraError(_inner) => Some(_inner),
  138    135   
        }
  139    136   
    }
  140    137   
}
  141         -
impl ::std::convert::From<crate::error::ExtraError>
  142         -
    for crate::error::EmptyStructWithContentOnWireOpError
  143         -
{
  144         -
    fn from(
  145         -
        variant: crate::error::ExtraError,
  146         -
    ) -> crate::error::EmptyStructWithContentOnWireOpError {
         138  +
impl ::std::convert::From<crate::error::ValidationException> for crate::error::EnumQueryError {
         139  +
    fn from(variant: crate::error::ValidationException) -> crate::error::EnumQueryError {
         140  +
        Self::ValidationException(variant)
         141  +
    }
         142  +
}
         143  +
impl ::std::convert::From<crate::error::ExtraError> for crate::error::EnumQueryError {
         144  +
    fn from(variant: crate::error::ExtraError) -> crate::error::EnumQueryError {
  147    145   
        Self::ExtraError(variant)
  148    146   
    }
  149    147   
}
  150    148   
  151         -
/// Error type for the `CaseInsensitiveErrorOperation` operation.
  152         -
/// Each variant represents an error that can occur for the `CaseInsensitiveErrorOperation` operation.
         149  +
/// Error type for the `StatusResponse` operation.
         150  +
/// Each variant represents an error that can occur for the `StatusResponse` operation.
  153    151   
#[derive(::std::fmt::Debug)]
  154         -
pub enum CaseInsensitiveErrorOperationError {
  155         -
    #[allow(missing_docs)] // documentation missing in model
  156         -
    CaseInsensitiveError(crate::error::CaseInsensitiveError),
         152  +
pub enum StatusResponseError {
  157    153   
    #[allow(missing_docs)] // documentation missing in model
  158    154   
    ExtraError(crate::error::ExtraError),
  159    155   
}
  160         -
impl ::std::fmt::Display for CaseInsensitiveErrorOperationError {
         156  +
impl ::std::fmt::Display for StatusResponseError {
  161    157   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  162    158   
        match &self {
  163         -
            CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) => _inner.fmt(f),
  164         -
            CaseInsensitiveErrorOperationError::ExtraError(_inner) => _inner.fmt(f),
         159  +
            StatusResponseError::ExtraError(_inner) => _inner.fmt(f),
  165    160   
        }
  166    161   
    }
  167    162   
}
  168         -
impl CaseInsensitiveErrorOperationError {
  169         -
    /// Returns `true` if the error kind is `CaseInsensitiveErrorOperationError::CaseInsensitiveError`.
  170         -
    pub fn is_case_insensitive_error(&self) -> bool {
  171         -
        matches!(
  172         -
            &self,
  173         -
            CaseInsensitiveErrorOperationError::CaseInsensitiveError(_)
  174         -
        )
  175         -
    }
  176         -
    /// Returns `true` if the error kind is `CaseInsensitiveErrorOperationError::ExtraError`.
         163  +
impl StatusResponseError {
         164  +
    /// Returns `true` if the error kind is `StatusResponseError::ExtraError`.
  177    165   
    pub fn is_extra_error(&self) -> bool {
  178         -
        matches!(&self, CaseInsensitiveErrorOperationError::ExtraError(_))
         166  +
        matches!(&self, StatusResponseError::ExtraError(_))
  179    167   
    }
  180    168   
    /// Returns the error name string by matching the correct variant.
  181    169   
    pub fn name(&self) -> &'static str {
  182    170   
        match &self {
  183         -
            CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) => _inner.name(),
  184         -
            CaseInsensitiveErrorOperationError::ExtraError(_inner) => _inner.name(),
         171  +
            StatusResponseError::ExtraError(_inner) => _inner.name(),
  185    172   
        }
  186    173   
    }
  187    174   
}
  188         -
impl ::std::error::Error for CaseInsensitiveErrorOperationError {
         175  +
impl ::std::error::Error for StatusResponseError {
  189    176   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  190    177   
        match &self {
  191         -
            CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) => Some(_inner),
  192         -
            CaseInsensitiveErrorOperationError::ExtraError(_inner) => Some(_inner),
  193         -
        }
         178  +
            StatusResponseError::ExtraError(_inner) => Some(_inner),
  194    179   
        }
  195         -
}
  196         -
impl ::std::convert::From<crate::error::CaseInsensitiveError>
  197         -
    for crate::error::CaseInsensitiveErrorOperationError
  198         -
{
  199         -
    fn from(
  200         -
        variant: crate::error::CaseInsensitiveError,
  201         -
    ) -> crate::error::CaseInsensitiveErrorOperationError {
  202         -
        Self::CaseInsensitiveError(variant)
  203    180   
    }
  204    181   
}
  205         -
impl ::std::convert::From<crate::error::ExtraError>
  206         -
    for crate::error::CaseInsensitiveErrorOperationError
  207         -
{
  208         -
    fn from(variant: crate::error::ExtraError) -> crate::error::CaseInsensitiveErrorOperationError {
         182  +
impl ::std::convert::From<crate::error::ExtraError> for crate::error::StatusResponseError {
         183  +
    fn from(variant: crate::error::ExtraError) -> crate::error::StatusResponseError {
  209    184   
        Self::ExtraError(variant)
  210    185   
    }
  211    186   
}
  212    187   
  213         -
#[allow(missing_docs)] // documentation missing in model
  214         -
#[derive(
  215         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  216         -
)]
  217         -
pub struct CaseInsensitiveError {
         188  +
/// Error type for the `MapWithEnumKeyOp` operation.
         189  +
/// Each variant represents an error that can occur for the `MapWithEnumKeyOp` operation.
         190  +
#[derive(::std::fmt::Debug)]
         191  +
pub enum MapWithEnumKeyOpError {
         192  +
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         193  +
    ValidationException(crate::error::ValidationException),
  218    194   
    #[allow(missing_docs)] // documentation missing in model
  219         -
    pub message: ::std::option::Option<::std::string::String>,
         195  +
    ExtraError(crate::error::ExtraError),
  220    196   
}
  221         -
impl CaseInsensitiveError {
  222         -
    /// Returns the error message.
  223         -
    pub fn message(&self) -> ::std::option::Option<&str> {
  224         -
        self.message.as_deref()
         197  +
impl ::std::fmt::Display for MapWithEnumKeyOpError {
         198  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         199  +
        match &self {
         200  +
            MapWithEnumKeyOpError::ValidationException(_inner) => _inner.fmt(f),
         201  +
            MapWithEnumKeyOpError::ExtraError(_inner) => _inner.fmt(f),
  225    202   
        }
  226         -
    #[doc(hidden)]
  227         -
    /// Returns the error name.
         203  +
    }
         204  +
}
         205  +
impl MapWithEnumKeyOpError {
         206  +
    /// Returns `true` if the error kind is `MapWithEnumKeyOpError::ValidationException`.
         207  +
    pub fn is_validation_exception(&self) -> bool {
         208  +
        matches!(&self, MapWithEnumKeyOpError::ValidationException(_))
         209  +
    }
         210  +
    /// Returns `true` if the error kind is `MapWithEnumKeyOpError::ExtraError`.
         211  +
    pub fn is_extra_error(&self) -> bool {
         212  +
        matches!(&self, MapWithEnumKeyOpError::ExtraError(_))
         213  +
    }
         214  +
    /// Returns the error name string by matching the correct variant.
  228    215   
    pub fn name(&self) -> &'static str {
  229         -
        "CaseInsensitiveError"
         216  +
        match &self {
         217  +
            MapWithEnumKeyOpError::ValidationException(_inner) => _inner.name(),
         218  +
            MapWithEnumKeyOpError::ExtraError(_inner) => _inner.name(),
         219  +
        }
  230    220   
    }
  231    221   
}
  232         -
impl ::std::fmt::Display for CaseInsensitiveError {
  233         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  234         -
        ::std::write!(f, "CaseInsensitiveError")?;
  235         -
        if let ::std::option::Option::Some(inner_1) = &self.message {
  236         -
            {
  237         -
                ::std::write!(f, ": {inner_1}")?;
         222  +
impl ::std::error::Error for MapWithEnumKeyOpError {
         223  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         224  +
        match &self {
         225  +
            MapWithEnumKeyOpError::ValidationException(_inner) => Some(_inner),
         226  +
            MapWithEnumKeyOpError::ExtraError(_inner) => Some(_inner),
  238    227   
        }
  239    228   
    }
  240         -
        Ok(())
         229  +
}
         230  +
impl ::std::convert::From<crate::error::ValidationException>
         231  +
    for crate::error::MapWithEnumKeyOpError
         232  +
{
         233  +
    fn from(variant: crate::error::ValidationException) -> crate::error::MapWithEnumKeyOpError {
         234  +
        Self::ValidationException(variant)
  241    235   
    }
  242    236   
}
  243         -
impl ::std::error::Error for CaseInsensitiveError {}
  244         -
impl CaseInsensitiveError {
  245         -
    /// Creates a new builder-style object to manufacture [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
  246         -
    pub fn builder() -> crate::error::case_insensitive_error::Builder {
  247         -
        crate::error::case_insensitive_error::Builder::default()
         237  +
impl ::std::convert::From<crate::error::ExtraError> for crate::error::MapWithEnumKeyOpError {
         238  +
    fn from(variant: crate::error::ExtraError) -> crate::error::MapWithEnumKeyOpError {
         239  +
        Self::ExtraError(variant)
  248    240   
    }
  249    241   
}
  250    242   
  251         -
/// Error type for the `NullInNonSparse` operation.
  252         -
/// Each variant represents an error that can occur for the `NullInNonSparse` operation.
         243  +
/// Error type for the `PrimitiveIntOp` operation.
         244  +
/// Each variant represents an error that can occur for the `PrimitiveIntOp` operation.
  253    245   
#[derive(::std::fmt::Debug)]
  254         -
pub enum NullInNonSparseError {
         246  +
pub enum PrimitiveIntOpError {
  255    247   
    #[allow(missing_docs)] // documentation missing in model
  256    248   
    ExtraError(crate::error::ExtraError),
  257    249   
}
  258         -
impl ::std::fmt::Display for NullInNonSparseError {
         250  +
impl ::std::fmt::Display for PrimitiveIntOpError {
  259    251   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  260    252   
        match &self {
  261         -
            NullInNonSparseError::ExtraError(_inner) => _inner.fmt(f),
         253  +
            PrimitiveIntOpError::ExtraError(_inner) => _inner.fmt(f),
  262    254   
        }
  263    255   
    }
  264    256   
}
  265         -
impl NullInNonSparseError {
  266         -
    /// Returns `true` if the error kind is `NullInNonSparseError::ExtraError`.
         257  +
impl PrimitiveIntOpError {
         258  +
    /// Returns `true` if the error kind is `PrimitiveIntOpError::ExtraError`.
  267    259   
    pub fn is_extra_error(&self) -> bool {
  268         -
        matches!(&self, NullInNonSparseError::ExtraError(_))
         260  +
        matches!(&self, PrimitiveIntOpError::ExtraError(_))
  269    261   
    }
  270    262   
    /// Returns the error name string by matching the correct variant.
  271    263   
    pub fn name(&self) -> &'static str {
  272    264   
        match &self {
  273         -
            NullInNonSparseError::ExtraError(_inner) => _inner.name(),
         265  +
            PrimitiveIntOpError::ExtraError(_inner) => _inner.name(),
  274    266   
        }
  275    267   
    }
  276    268   
}
  277         -
impl ::std::error::Error for NullInNonSparseError {
         269  +
impl ::std::error::Error for PrimitiveIntOpError {
  278    270   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  279    271   
        match &self {
  280         -
            NullInNonSparseError::ExtraError(_inner) => Some(_inner),
         272  +
            PrimitiveIntOpError::ExtraError(_inner) => Some(_inner),
  281    273   
        }
  282    274   
    }
  283    275   
}
  284         -
impl ::std::convert::From<crate::error::ExtraError> for crate::error::NullInNonSparseError {
  285         -
    fn from(variant: crate::error::ExtraError) -> crate::error::NullInNonSparseError {
         276  +
impl ::std::convert::From<crate::error::ExtraError> for crate::error::PrimitiveIntOpError {
         277  +
    fn from(variant: crate::error::ExtraError) -> crate::error::PrimitiveIntOpError {
  286    278   
        Self::ExtraError(variant)
  287    279   
    }
  288    280   
}
  289    281   
  290    282   
/// Error type for the `EscapedStringValues` operation.
  291    283   
/// Each variant represents an error that can occur for the `EscapedStringValues` operation.
  292    284   
#[derive(::std::fmt::Debug)]
  293    285   
pub enum EscapedStringValuesError {
  294    286   
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
  295    287   
    ValidationException(crate::error::ValidationException),
  296    288   
    #[allow(missing_docs)] // documentation missing in model
  297    289   
    ExtraError(crate::error::ExtraError),
  298    290   
}
  299    291   
impl ::std::fmt::Display for EscapedStringValuesError {
  300    292   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  301    293   
        match &self {
  302    294   
            EscapedStringValuesError::ValidationException(_inner) => _inner.fmt(f),
  303    295   
            EscapedStringValuesError::ExtraError(_inner) => _inner.fmt(f),
  304    296   
        }
  305    297   
    }
  306    298   
}
  307    299   
impl EscapedStringValuesError {
  308    300   
    /// Returns `true` if the error kind is `EscapedStringValuesError::ValidationException`.
  309    301   
    pub fn is_validation_exception(&self) -> bool {
  310    302   
        matches!(&self, EscapedStringValuesError::ValidationException(_))
  311    303   
    }
  312    304   
    /// Returns `true` if the error kind is `EscapedStringValuesError::ExtraError`.
  313    305   
    pub fn is_extra_error(&self) -> bool {
  314    306   
        matches!(&self, EscapedStringValuesError::ExtraError(_))
  315    307   
    }
  316    308   
    /// Returns the error name string by matching the correct variant.
  317    309   
    pub fn name(&self) -> &'static str {
  318    310   
        match &self {
  319    311   
            EscapedStringValuesError::ValidationException(_inner) => _inner.name(),
  320    312   
            EscapedStringValuesError::ExtraError(_inner) => _inner.name(),
  321    313   
        }
  322    314   
    }
  323    315   
}
  324    316   
impl ::std::error::Error for EscapedStringValuesError {
  325    317   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  326    318   
        match &self {
  327    319   
            EscapedStringValuesError::ValidationException(_inner) => Some(_inner),
  328    320   
            EscapedStringValuesError::ExtraError(_inner) => Some(_inner),
  329    321   
        }
  330    322   
    }
  331    323   
}
  332    324   
impl ::std::convert::From<crate::error::ValidationException>
  333    325   
    for crate::error::EscapedStringValuesError
  334    326   
{
  335    327   
    fn from(variant: crate::error::ValidationException) -> crate::error::EscapedStringValuesError {
  336    328   
        Self::ValidationException(variant)
  337    329   
    }
  338    330   
}
  339    331   
impl ::std::convert::From<crate::error::ExtraError> for crate::error::EscapedStringValuesError {
  340    332   
    fn from(variant: crate::error::ExtraError) -> crate::error::EscapedStringValuesError {
  341    333   
        Self::ExtraError(variant)
  342    334   
    }
  343    335   
}
  344    336   
  345         -
/// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
  346         -
#[derive(
  347         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  348         -
)]
  349         -
pub struct ValidationException {
  350         -
    /// A summary of the validation failure.
  351         -
    pub message: ::std::string::String,
  352         -
    /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
  353         -
    pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
  354         -
}
  355         -
impl ValidationException {
  356         -
    /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
  357         -
    pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
  358         -
        self.field_list.as_deref()
  359         -
    }
  360         -
}
  361         -
impl ValidationException {
  362         -
    /// Returns the error message.
  363         -
    pub fn message(&self) -> &str {
  364         -
        &self.message
  365         -
    }
  366         -
    #[doc(hidden)]
  367         -
    /// Returns the error name.
  368         -
    pub fn name(&self) -> &'static str {
  369         -
        "ValidationException"
  370         -
    }
  371         -
}
  372         -
impl ::std::fmt::Display for ValidationException {
  373         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  374         -
        ::std::write!(f, "ValidationException")?;
  375         -
        {
  376         -
            ::std::write!(f, ": {}", &self.message)?;
  377         -
        }
  378         -
        Ok(())
  379         -
    }
  380         -
}
  381         -
impl ::std::error::Error for ValidationException {}
  382         -
impl ValidationException {
  383         -
    /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
  384         -
    pub fn builder() -> crate::error::validation_exception::Builder {
  385         -
        crate::error::validation_exception::Builder::default()
  386         -
    }
  387         -
}
  388         -
  389         -
/// Error type for the `PrimitiveIntOp` operation.
  390         -
/// Each variant represents an error that can occur for the `PrimitiveIntOp` operation.
         337  +
/// Error type for the `NullInNonSparse` operation.
         338  +
/// Each variant represents an error that can occur for the `NullInNonSparse` operation.
  391    339   
#[derive(::std::fmt::Debug)]
  392         -
pub enum PrimitiveIntOpError {
         340  +
pub enum NullInNonSparseError {
  393    341   
    #[allow(missing_docs)] // documentation missing in model
  394    342   
    ExtraError(crate::error::ExtraError),
  395    343   
}
  396         -
impl ::std::fmt::Display for PrimitiveIntOpError {
         344  +
impl ::std::fmt::Display for NullInNonSparseError {
  397    345   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  398    346   
        match &self {
  399         -
            PrimitiveIntOpError::ExtraError(_inner) => _inner.fmt(f),
         347  +
            NullInNonSparseError::ExtraError(_inner) => _inner.fmt(f),
  400    348   
        }
  401    349   
    }
  402    350   
}
  403         -
impl PrimitiveIntOpError {
  404         -
    /// Returns `true` if the error kind is `PrimitiveIntOpError::ExtraError`.
         351  +
impl NullInNonSparseError {
         352  +
    /// Returns `true` if the error kind is `NullInNonSparseError::ExtraError`.
  405    353   
    pub fn is_extra_error(&self) -> bool {
  406         -
        matches!(&self, PrimitiveIntOpError::ExtraError(_))
         354  +
        matches!(&self, NullInNonSparseError::ExtraError(_))
  407    355   
    }
  408    356   
    /// Returns the error name string by matching the correct variant.
  409    357   
    pub fn name(&self) -> &'static str {
  410    358   
        match &self {
  411         -
            PrimitiveIntOpError::ExtraError(_inner) => _inner.name(),
         359  +
            NullInNonSparseError::ExtraError(_inner) => _inner.name(),
  412    360   
        }
  413    361   
    }
  414    362   
}
  415         -
impl ::std::error::Error for PrimitiveIntOpError {
         363  +
impl ::std::error::Error for NullInNonSparseError {
  416    364   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  417    365   
        match &self {
  418         -
            PrimitiveIntOpError::ExtraError(_inner) => Some(_inner),
         366  +
            NullInNonSparseError::ExtraError(_inner) => Some(_inner),
  419    367   
        }
  420    368   
    }
  421    369   
}
  422         -
impl ::std::convert::From<crate::error::ExtraError> for crate::error::PrimitiveIntOpError {
  423         -
    fn from(variant: crate::error::ExtraError) -> crate::error::PrimitiveIntOpError {
         370  +
impl ::std::convert::From<crate::error::ExtraError> for crate::error::NullInNonSparseError {
         371  +
    fn from(variant: crate::error::ExtraError) -> crate::error::NullInNonSparseError {
  424    372   
        Self::ExtraError(variant)
  425    373   
    }
  426    374   
}
  427    375   
  428         -
/// Error type for the `MapWithEnumKeyOp` operation.
  429         -
/// Each variant represents an error that can occur for the `MapWithEnumKeyOp` operation.
         376  +
/// Error type for the `CaseInsensitiveErrorOperation` operation.
         377  +
/// Each variant represents an error that can occur for the `CaseInsensitiveErrorOperation` operation.
  430    378   
#[derive(::std::fmt::Debug)]
  431         -
pub enum MapWithEnumKeyOpError {
  432         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
  433         -
    ValidationException(crate::error::ValidationException),
         379  +
pub enum CaseInsensitiveErrorOperationError {
         380  +
    #[allow(missing_docs)] // documentation missing in model
         381  +
    CaseInsensitiveError(crate::error::CaseInsensitiveError),
  434    382   
    #[allow(missing_docs)] // documentation missing in model
  435    383   
    ExtraError(crate::error::ExtraError),
  436    384   
}
  437         -
impl ::std::fmt::Display for MapWithEnumKeyOpError {
         385  +
impl ::std::fmt::Display for CaseInsensitiveErrorOperationError {
  438    386   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  439    387   
        match &self {
  440         -
            MapWithEnumKeyOpError::ValidationException(_inner) => _inner.fmt(f),
  441         -
            MapWithEnumKeyOpError::ExtraError(_inner) => _inner.fmt(f),
         388  +
            CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) => _inner.fmt(f),
         389  +
            CaseInsensitiveErrorOperationError::ExtraError(_inner) => _inner.fmt(f),
  442    390   
        }
  443    391   
    }
  444    392   
}
  445         -
impl MapWithEnumKeyOpError {
  446         -
    /// Returns `true` if the error kind is `MapWithEnumKeyOpError::ValidationException`.
  447         -
    pub fn is_validation_exception(&self) -> bool {
  448         -
        matches!(&self, MapWithEnumKeyOpError::ValidationException(_))
         393  +
impl CaseInsensitiveErrorOperationError {
         394  +
    /// Returns `true` if the error kind is `CaseInsensitiveErrorOperationError::CaseInsensitiveError`.
         395  +
    pub fn is_case_insensitive_error(&self) -> bool {
         396  +
        matches!(
         397  +
            &self,
         398  +
            CaseInsensitiveErrorOperationError::CaseInsensitiveError(_)
         399  +
        )
  449    400   
    }
  450         -
    /// Returns `true` if the error kind is `MapWithEnumKeyOpError::ExtraError`.
         401  +
    /// Returns `true` if the error kind is `CaseInsensitiveErrorOperationError::ExtraError`.
  451    402   
    pub fn is_extra_error(&self) -> bool {
  452         -
        matches!(&self, MapWithEnumKeyOpError::ExtraError(_))
         403  +
        matches!(&self, CaseInsensitiveErrorOperationError::ExtraError(_))
  453    404   
    }
  454    405   
    /// Returns the error name string by matching the correct variant.
  455    406   
    pub fn name(&self) -> &'static str {
  456    407   
        match &self {
  457         -
            MapWithEnumKeyOpError::ValidationException(_inner) => _inner.name(),
  458         -
            MapWithEnumKeyOpError::ExtraError(_inner) => _inner.name(),
         408  +
            CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) => _inner.name(),
         409  +
            CaseInsensitiveErrorOperationError::ExtraError(_inner) => _inner.name(),
  459    410   
        }
  460    411   
    }
  461    412   
}
  462         -
impl ::std::error::Error for MapWithEnumKeyOpError {
         413  +
impl ::std::error::Error for CaseInsensitiveErrorOperationError {
  463    414   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  464    415   
        match &self {
  465         -
            MapWithEnumKeyOpError::ValidationException(_inner) => Some(_inner),
  466         -
            MapWithEnumKeyOpError::ExtraError(_inner) => Some(_inner),
         416  +
            CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) => Some(_inner),
         417  +
            CaseInsensitiveErrorOperationError::ExtraError(_inner) => Some(_inner),
  467    418   
        }
  468    419   
    }
  469    420   
}
  470         -
impl ::std::convert::From<crate::error::ValidationException>
  471         -
    for crate::error::MapWithEnumKeyOpError
         421  +
impl ::std::convert::From<crate::error::CaseInsensitiveError>
         422  +
    for crate::error::CaseInsensitiveErrorOperationError
  472    423   
{
  473         -
    fn from(variant: crate::error::ValidationException) -> crate::error::MapWithEnumKeyOpError {
  474         -
        Self::ValidationException(variant)
  475         -
    }
  476         -
}
  477         -
impl ::std::convert::From<crate::error::ExtraError> for crate::error::MapWithEnumKeyOpError {
  478         -
    fn from(variant: crate::error::ExtraError) -> crate::error::MapWithEnumKeyOpError {
  479         -
        Self::ExtraError(variant)
  480         -
    }
  481         -
}
  482         -
  483         -
/// Error type for the `StatusResponse` operation.
  484         -
/// Each variant represents an error that can occur for the `StatusResponse` operation.
  485         -
#[derive(::std::fmt::Debug)]
  486         -
pub enum StatusResponseError {
  487         -
    #[allow(missing_docs)] // documentation missing in model
  488         -
    ExtraError(crate::error::ExtraError),
  489         -
}
  490         -
impl ::std::fmt::Display for StatusResponseError {
  491         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  492         -
        match &self {
  493         -
            StatusResponseError::ExtraError(_inner) => _inner.fmt(f),
  494         -
        }
  495         -
    }
  496         -
}
  497         -
impl StatusResponseError {
  498         -
    /// Returns `true` if the error kind is `StatusResponseError::ExtraError`.
  499         -
    pub fn is_extra_error(&self) -> bool {
  500         -
        matches!(&self, StatusResponseError::ExtraError(_))
  501         -
    }
  502         -
    /// Returns the error name string by matching the correct variant.
  503         -
    pub fn name(&self) -> &'static str {
  504         -
        match &self {
  505         -
            StatusResponseError::ExtraError(_inner) => _inner.name(),
  506         -
        }
  507         -
    }
  508         -
}
  509         -
impl ::std::error::Error for StatusResponseError {
  510         -
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  511         -
        match &self {
  512         -
            StatusResponseError::ExtraError(_inner) => Some(_inner),
  513         -
        }
         424  +
    fn from(
         425  +
        variant: crate::error::CaseInsensitiveError,
         426  +
    ) -> crate::error::CaseInsensitiveErrorOperationError {
         427  +
        Self::CaseInsensitiveError(variant)
  514    428   
    }
  515    429   
}
  516         -
impl ::std::convert::From<crate::error::ExtraError> for crate::error::StatusResponseError {
  517         -
    fn from(variant: crate::error::ExtraError) -> crate::error::StatusResponseError {
         430  +
impl ::std::convert::From<crate::error::ExtraError>
         431  +
    for crate::error::CaseInsensitiveErrorOperationError
         432  +
{
         433  +
    fn from(variant: crate::error::ExtraError) -> crate::error::CaseInsensitiveErrorOperationError {
  518    434   
        Self::ExtraError(variant)
  519    435   
    }
  520    436   
}
  521    437   
  522         -
/// Error type for the `EnumQuery` operation.
  523         -
/// Each variant represents an error that can occur for the `EnumQuery` operation.
  524         -
#[derive(::std::fmt::Debug)]
  525         -
pub enum EnumQueryError {
  526         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
  527         -
    ValidationException(crate::error::ValidationException),
         438  +
/// Error type for the `EmptyStructWithContentOnWireOp` operation.
         439  +
/// Each variant represents an error that can occur for the `EmptyStructWithContentOnWireOp` operation.
         440  +
#[derive(::std::fmt::Debug)]
         441  +
pub enum EmptyStructWithContentOnWireOpError {
  528    442   
    #[allow(missing_docs)] // documentation missing in model
  529    443   
    ExtraError(crate::error::ExtraError),
  530    444   
}
  531         -
impl ::std::fmt::Display for EnumQueryError {
         445  +
impl ::std::fmt::Display for EmptyStructWithContentOnWireOpError {
  532    446   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  533    447   
        match &self {
  534         -
            EnumQueryError::ValidationException(_inner) => _inner.fmt(f),
  535         -
            EnumQueryError::ExtraError(_inner) => _inner.fmt(f),
         448  +
            EmptyStructWithContentOnWireOpError::ExtraError(_inner) => _inner.fmt(f),
  536    449   
        }
  537    450   
    }
  538    451   
}
  539         -
impl EnumQueryError {
  540         -
    /// Returns `true` if the error kind is `EnumQueryError::ValidationException`.
  541         -
    pub fn is_validation_exception(&self) -> bool {
  542         -
        matches!(&self, EnumQueryError::ValidationException(_))
  543         -
    }
  544         -
    /// Returns `true` if the error kind is `EnumQueryError::ExtraError`.
         452  +
impl EmptyStructWithContentOnWireOpError {
         453  +
    /// Returns `true` if the error kind is `EmptyStructWithContentOnWireOpError::ExtraError`.
  545    454   
    pub fn is_extra_error(&self) -> bool {
  546         -
        matches!(&self, EnumQueryError::ExtraError(_))
         455  +
        matches!(&self, EmptyStructWithContentOnWireOpError::ExtraError(_))
  547    456   
    }
  548    457   
    /// Returns the error name string by matching the correct variant.
  549    458   
    pub fn name(&self) -> &'static str {
  550    459   
        match &self {
  551         -
            EnumQueryError::ValidationException(_inner) => _inner.name(),
  552         -
            EnumQueryError::ExtraError(_inner) => _inner.name(),
         460  +
            EmptyStructWithContentOnWireOpError::ExtraError(_inner) => _inner.name(),
  553    461   
        }
  554    462   
    }
  555    463   
}
  556         -
impl ::std::error::Error for EnumQueryError {
         464  +
impl ::std::error::Error for EmptyStructWithContentOnWireOpError {
  557    465   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  558    466   
        match &self {
  559         -
            EnumQueryError::ValidationException(_inner) => Some(_inner),
  560         -
            EnumQueryError::ExtraError(_inner) => Some(_inner),
  561         -
        }
         467  +
            EmptyStructWithContentOnWireOpError::ExtraError(_inner) => Some(_inner),
  562    468   
        }
  563         -
}
  564         -
impl ::std::convert::From<crate::error::ValidationException> for crate::error::EnumQueryError {
  565         -
    fn from(variant: crate::error::ValidationException) -> crate::error::EnumQueryError {
  566         -
        Self::ValidationException(variant)
  567    469   
    }
  568    470   
}
  569         -
impl ::std::convert::From<crate::error::ExtraError> for crate::error::EnumQueryError {
  570         -
    fn from(variant: crate::error::ExtraError) -> crate::error::EnumQueryError {
         471  +
impl ::std::convert::From<crate::error::ExtraError>
         472  +
    for crate::error::EmptyStructWithContentOnWireOpError
         473  +
{
         474  +
    fn from(
         475  +
        variant: crate::error::ExtraError,
         476  +
    ) -> crate::error::EmptyStructWithContentOnWireOpError {
  571    477   
        Self::ExtraError(variant)
  572    478   
    }
  573    479   
}
  574    480   
  575         -
/// Error type for the `PrimitiveIntHeader` operation.
  576         -
/// Each variant represents an error that can occur for the `PrimitiveIntHeader` operation.
         481  +
/// Error type for the `QueryPrecedence` operation.
         482  +
/// Each variant represents an error that can occur for the `QueryPrecedence` operation.
  577    483   
#[derive(::std::fmt::Debug)]
  578         -
pub enum PrimitiveIntHeaderError {
  579         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
  580         -
    ValidationException(crate::error::ValidationException),
         484  +
pub enum QueryPrecedenceError {
  581    485   
    #[allow(missing_docs)] // documentation missing in model
  582    486   
    ExtraError(crate::error::ExtraError),
  583    487   
}
  584         -
impl ::std::fmt::Display for PrimitiveIntHeaderError {
         488  +
impl ::std::fmt::Display for QueryPrecedenceError {
  585    489   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  586    490   
        match &self {
  587         -
            PrimitiveIntHeaderError::ValidationException(_inner) => _inner.fmt(f),
  588         -
            PrimitiveIntHeaderError::ExtraError(_inner) => _inner.fmt(f),
         491  +
            QueryPrecedenceError::ExtraError(_inner) => _inner.fmt(f),
  589    492   
        }
  590    493   
    }
  591    494   
}
  592         -
impl PrimitiveIntHeaderError {
  593         -
    /// Returns `true` if the error kind is `PrimitiveIntHeaderError::ValidationException`.
  594         -
    pub fn is_validation_exception(&self) -> bool {
  595         -
        matches!(&self, PrimitiveIntHeaderError::ValidationException(_))
  596         -
    }
  597         -
    /// Returns `true` if the error kind is `PrimitiveIntHeaderError::ExtraError`.
         495  +
impl QueryPrecedenceError {
         496  +
    /// Returns `true` if the error kind is `QueryPrecedenceError::ExtraError`.
  598    497   
    pub fn is_extra_error(&self) -> bool {
  599         -
        matches!(&self, PrimitiveIntHeaderError::ExtraError(_))
         498  +
        matches!(&self, QueryPrecedenceError::ExtraError(_))
  600    499   
    }
  601    500   
    /// Returns the error name string by matching the correct variant.
  602    501   
    pub fn name(&self) -> &'static str {
  603    502   
        match &self {
  604         -
            PrimitiveIntHeaderError::ValidationException(_inner) => _inner.name(),
  605         -
            PrimitiveIntHeaderError::ExtraError(_inner) => _inner.name(),
         503  +
            QueryPrecedenceError::ExtraError(_inner) => _inner.name(),
  606    504   
        }
  607    505   
    }
  608    506   
}
  609         -
impl ::std::error::Error for PrimitiveIntHeaderError {
         507  +
impl ::std::error::Error for QueryPrecedenceError {
  610    508   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  611    509   
        match &self {
  612         -
            PrimitiveIntHeaderError::ValidationException(_inner) => Some(_inner),
  613         -
            PrimitiveIntHeaderError::ExtraError(_inner) => Some(_inner),
  614         -
        }
         510  +
            QueryPrecedenceError::ExtraError(_inner) => Some(_inner),
  615    511   
        }
  616         -
}
  617         -
impl ::std::convert::From<crate::error::ValidationException>
  618         -
    for crate::error::PrimitiveIntHeaderError
  619         -
{
  620         -
    fn from(variant: crate::error::ValidationException) -> crate::error::PrimitiveIntHeaderError {
  621         -
        Self::ValidationException(variant)
  622    512   
    }
  623    513   
}
  624         -
impl ::std::convert::From<crate::error::ExtraError> for crate::error::PrimitiveIntHeaderError {
  625         -
    fn from(variant: crate::error::ExtraError) -> crate::error::PrimitiveIntHeaderError {
         514  +
impl ::std::convert::From<crate::error::ExtraError> for crate::error::QueryPrecedenceError {
         515  +
    fn from(variant: crate::error::ExtraError) -> crate::error::QueryPrecedenceError {
  626    516   
        Self::ExtraError(variant)
  627    517   
    }
  628    518   
}
  629    519   
  630         -
/// Error type for the `StringPayload` operation.
  631         -
/// Each variant represents an error that can occur for the `StringPayload` operation.
  632         -
#[derive(::std::fmt::Debug)]
  633         -
pub enum StringPayloadError {
  634         -
    #[allow(missing_docs)] // documentation missing in model
  635         -
    ExtraError(crate::error::ExtraError),
         520  +
#[allow(missing_docs)] // documentation missing in model
         521  +
#[derive(
         522  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         523  +
)]
         524  +
pub struct ExtraError {}
         525  +
impl ExtraError {
         526  +
    #[doc(hidden)]
         527  +
    /// Returns the error name.
         528  +
    pub fn name(&self) -> &'static str {
         529  +
        "ExtraError"
         530  +
    }
  636    531   
}
  637         -
impl ::std::fmt::Display for StringPayloadError {
         532  +
impl ::std::fmt::Display for ExtraError {
  638    533   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  639         -
        match &self {
  640         -
            StringPayloadError::ExtraError(_inner) => _inner.fmt(f),
         534  +
        ::std::write!(f, "ExtraError")?;
         535  +
        Ok(())
  641    536   
    }
         537  +
}
         538  +
impl ::std::error::Error for ExtraError {}
         539  +
impl ExtraError {
         540  +
    /// Creates a new builder-style object to manufacture [`ExtraError`](crate::error::ExtraError).
         541  +
    pub fn builder() -> crate::error::extra_error::Builder {
         542  +
        crate::error::extra_error::Builder::default()
  642    543   
    }
  643    544   
}
  644         -
impl StringPayloadError {
  645         -
    /// Returns `true` if the error kind is `StringPayloadError::ExtraError`.
  646         -
    pub fn is_extra_error(&self) -> bool {
  647         -
        matches!(&self, StringPayloadError::ExtraError(_))
         545  +
         546  +
/// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         547  +
#[derive(
         548  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         549  +
)]
         550  +
pub struct ValidationException {
         551  +
    /// A summary of the validation failure.
         552  +
    pub message: ::std::string::String,
         553  +
    /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
         554  +
    pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
         555  +
}
         556  +
impl ValidationException {
         557  +
    /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
         558  +
    pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
         559  +
        self.field_list.as_deref()
  648    560   
    }
  649         -
    /// Returns the error name string by matching the correct variant.
         561  +
}
         562  +
impl ValidationException {
         563  +
    /// Returns the error message.
         564  +
    pub fn message(&self) -> &str {
         565  +
        &self.message
         566  +
    }
         567  +
    #[doc(hidden)]
         568  +
    /// Returns the error name.
  650    569   
    pub fn name(&self) -> &'static str {
  651         -
        match &self {
  652         -
            StringPayloadError::ExtraError(_inner) => _inner.name(),
         570  +
        "ValidationException"
         571  +
    }
         572  +
}
         573  +
impl ::std::fmt::Display for ValidationException {
         574  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         575  +
        ::std::write!(f, "ValidationException")?;
         576  +
        {
         577  +
            ::std::write!(f, ": {}", &self.message)?;
  653    578   
        }
         579  +
        Ok(())
  654    580   
    }
  655    581   
}
  656         -
impl ::std::error::Error for StringPayloadError {
  657         -
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  658         -
        match &self {
  659         -
            StringPayloadError::ExtraError(_inner) => Some(_inner),
         582  +
impl ::std::error::Error for ValidationException {}
         583  +
impl ValidationException {
         584  +
    /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
         585  +
    pub fn builder() -> crate::error::validation_exception::Builder {
         586  +
        crate::error::validation_exception::Builder::default()
         587  +
    }
         588  +
}
         589  +
         590  +
#[allow(missing_docs)] // documentation missing in model
         591  +
#[derive(
         592  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         593  +
)]
         594  +
pub struct CaseInsensitiveError {
         595  +
    #[allow(missing_docs)] // documentation missing in model
         596  +
    pub message: ::std::option::Option<::std::string::String>,
         597  +
}
         598  +
impl CaseInsensitiveError {
         599  +
    /// Returns the error message.
         600  +
    pub fn message(&self) -> ::std::option::Option<&str> {
         601  +
        self.message.as_deref()
         602  +
    }
         603  +
    #[doc(hidden)]
         604  +
    /// Returns the error name.
         605  +
    pub fn name(&self) -> &'static str {
         606  +
        "CaseInsensitiveError"
         607  +
    }
         608  +
}
         609  +
impl ::std::fmt::Display for CaseInsensitiveError {
         610  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         611  +
        ::std::write!(f, "CaseInsensitiveError")?;
         612  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
         613  +
            {
         614  +
                ::std::write!(f, ": {inner_1}")?;
  660    615   
            }
  661    616   
        }
         617  +
        Ok(())
         618  +
    }
  662    619   
}
  663         -
impl ::std::convert::From<crate::error::ExtraError> for crate::error::StringPayloadError {
  664         -
    fn from(variant: crate::error::ExtraError) -> crate::error::StringPayloadError {
  665         -
        Self::ExtraError(variant)
         620  +
impl ::std::error::Error for CaseInsensitiveError {}
         621  +
impl CaseInsensitiveError {
         622  +
    /// Creates a new builder-style object to manufacture [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
         623  +
    pub fn builder() -> crate::error::case_insensitive_error::Builder {
         624  +
        crate::error::case_insensitive_error::Builder::default()
  666    625   
    }
  667    626   
}
  668    627   
/// See [`ExtraError`](crate::error::ExtraError).
  669    628   
pub mod extra_error {
  670    629   
  671    630   
    impl ::std::convert::From<Builder> for crate::error::ExtraError {
  672    631   
        fn from(builder: Builder) -> Self {
  673    632   
            builder.build()
  674    633   
        }
  675    634   
    }
  676    635   
    /// A builder for [`ExtraError`](crate::error::ExtraError).
  677    636   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  678    637   
    pub struct Builder {}
  679    638   
    impl Builder {
  680    639   
        /// Consumes the builder and constructs a [`ExtraError`](crate::error::ExtraError).
  681    640   
        pub fn build(self) -> crate::error::ExtraError {
  682    641   
            self.build_enforcing_all_constraints()
  683    642   
        }
  684    643   
        fn build_enforcing_all_constraints(self) -> crate::error::ExtraError {
  685    644   
            crate::error::ExtraError {}
  686    645   
        }
  687    646   
    }
  688    647   
}
  689         -
/// See [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
  690         -
pub mod case_insensitive_error {
  691         -
  692         -
    impl ::std::convert::From<Builder> for crate::error::CaseInsensitiveError {
  693         -
        fn from(builder: Builder) -> Self {
  694         -
            builder.build()
  695         -
        }
  696         -
    }
  697         -
    /// A builder for [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
  698         -
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  699         -
    pub struct Builder {
  700         -
        pub(crate) message: ::std::option::Option<::std::string::String>,
  701         -
    }
  702         -
    impl Builder {
  703         -
        #[allow(missing_docs)] // documentation missing in model
  704         -
        pub fn message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  705         -
            self.message = input;
  706         -
            self
  707         -
        }
  708         -
        /// Consumes the builder and constructs a [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
  709         -
        pub fn build(self) -> crate::error::CaseInsensitiveError {
  710         -
            self.build_enforcing_all_constraints()
  711         -
        }
  712         -
        fn build_enforcing_all_constraints(self) -> crate::error::CaseInsensitiveError {
  713         -
            crate::error::CaseInsensitiveError {
  714         -
                message: self.message,
  715         -
            }
  716         -
        }
  717         -
    }
  718         -
}
  719    648   
/// See [`ValidationException`](crate::error::ValidationException).
  720    649   
pub mod validation_exception {
  721    650   
  722    651   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  723    652   
    /// Holds one variant for each of the ways the builder can fail.
  724    653   
    #[non_exhaustive]
  725    654   
    #[allow(clippy::enum_variant_names)]
  726    655   
    pub enum ConstraintViolation {
  727    656   
        /// `message` was not provided but it is required when building `ValidationException`.
  728    657   
        MissingMessage,
@@ -753,682 +0,741 @@
  773    702   
        fn build_enforcing_all_constraints(
  774    703   
            self,
  775    704   
        ) -> Result<crate::error::ValidationException, ConstraintViolation> {
  776    705   
            Ok(crate::error::ValidationException {
  777    706   
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
  778    707   
                field_list: self.field_list,
  779    708   
            })
  780    709   
        }
  781    710   
    }
  782    711   
}
         712  +
/// See [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
         713  +
pub mod case_insensitive_error {
         714  +
         715  +
    impl ::std::convert::From<Builder> for crate::error::CaseInsensitiveError {
         716  +
        fn from(builder: Builder) -> Self {
         717  +
            builder.build()
         718  +
        }
         719  +
    }
         720  +
    /// A builder for [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
         721  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         722  +
    pub struct Builder {
         723  +
        pub(crate) message: ::std::option::Option<::std::string::String>,
         724  +
    }
         725  +
    impl Builder {
         726  +
        #[allow(missing_docs)] // documentation missing in model
         727  +
        pub fn message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         728  +
            self.message = input;
         729  +
            self
         730  +
        }
         731  +
        /// Consumes the builder and constructs a [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
         732  +
        pub fn build(self) -> crate::error::CaseInsensitiveError {
         733  +
            self.build_enforcing_all_constraints()
         734  +
        }
         735  +
        fn build_enforcing_all_constraints(self) -> crate::error::CaseInsensitiveError {
         736  +
            crate::error::CaseInsensitiveError {
         737  +
                message: self.message,
         738  +
            }
         739  +
        }
         740  +
    }
         741  +
}