Server Test

Server Test

rev. d06a46cae0f385cdae37a9f8264db3469a090ab5 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/Cargo.toml

@@ -0,1 +0,62 @@
           1  +
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
[package]
           3  +
name = "rest_json-http0x"
           4  +
version = "0.0.1"
           5  +
authors = ["protocoltest@example.com"]
           6  +
description = "test"
           7  +
edition = "2021"
           8  +
           9  +
[package.metadata.smithy]
          10  +
codegen-version = "ci"
          11  +
protocol = "aws.protocols#restJson1"
          12  +
[dependencies.aws-smithy-json]
          13  +
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-json"
          14  +
[dependencies.aws-smithy-legacy-http]
          15  +
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-legacy-http"
          16  +
[dependencies.aws-smithy-legacy-http-server]
          17  +
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-legacy-http-server"
          18  +
[dependencies.aws-smithy-runtime-api]
          19  +
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-runtime-api"
          20  +
features = ["http-02x"]
          21  +
[dependencies.aws-smithy-types]
          22  +
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-types"
          23  +
features = ["http-body-0-4-x"]
          24  +
[dependencies.form_urlencoded]
          25  +
version = "1"
          26  +
[dependencies.futures-util]
          27  +
version = "0.3"
          28  +
[dependencies.http]
          29  +
version = "0.2.9"
          30  +
[dependencies.hyper]
          31  +
version = "0.14.26"
          32  +
[dependencies.mime]
          33  +
version = "0.3"
          34  +
[dependencies.nom]
          35  +
version = "7"
          36  +
[dependencies.percent-encoding]
          37  +
version = "2.0.0"
          38  +
[dependencies.pin-project-lite]
          39  +
version = "0.2"
          40  +
[dependencies.tower]
          41  +
version = "0.4"
          42  +
[dependencies.tracing]
          43  +
version = "0.1"
          44  +
[dev-dependencies.aws-smithy-protocol-test]
          45  +
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-protocol-test"
          46  +
[dev-dependencies.bytes]
          47  +
version = "1.4.0"
          48  +
[dev-dependencies.pretty_assertions]
          49  +
version = "1.3.0"
          50  +
[dev-dependencies.tokio]
          51  +
version = "1.23.1"
          52  +
features = ["macros", "test-util", "rt-multi-thread"]
          53  +
[dev-dependencies.tracing-test]
          54  +
version = "0.2.5"
          55  +
features = ["no-env-filter"]
          56  +
[features]
          57  +
aws-lambda = ["aws-smithy-legacy-http-server/aws-lambda"]
          58  +
request-id = ["aws-smithy-legacy-http-server/request-id"]
          59  +
rt-tokio = ["aws-smithy-types/http-body-1-x", "aws-smithy-types/rt-tokio"]
          60  +
default = ["request-id", "rt-tokio"]
          61  +
          62  +

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/constrained.rs

@@ -0,1 +0,160 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
pub(crate) mod sparse_set_map_constrained {
           4  +
           5  +
    /* PubCrateConstrainedMapGenerator.kt:80 */
           6  +
    #[derive(Debug, Clone)]
           7  +
    pub(crate) struct SparseSetMapConstrained(
           8  +
        pub(crate)  std::collections::HashMap<
           9  +
            ::std::string::String,
          10  +
            ::std::option::Option<crate::model::StringSet>,
          11  +
        >,
          12  +
    );
          13  +
          14  +
    impl crate::constrained::Constrained for SparseSetMapConstrained {
          15  +
        type Unconstrained =
          16  +
            crate::unconstrained::sparse_set_map_unconstrained::SparseSetMapUnconstrained;
          17  +
    }
          18  +
    /* PubCrateConstrainedMapGenerator.kt:99 */
          19  +
    impl
          20  +
        ::std::convert::From<
          21  +
            ::std::collections::HashMap<
          22  +
                ::std::string::String,
          23  +
                ::std::option::Option<crate::model::StringSet>,
          24  +
            >,
          25  +
        > for SparseSetMapConstrained
          26  +
    {
          27  +
        fn from(
          28  +
            v: ::std::collections::HashMap<
          29  +
                ::std::string::String,
          30  +
                ::std::option::Option<crate::model::StringSet>,
          31  +
            >,
          32  +
        ) -> Self {
          33  +
            Self(v)
          34  +
        }
          35  +
    }
          36  +
          37  +
    impl ::std::convert::From<SparseSetMapConstrained>
          38  +
        for ::std::collections::HashMap<
          39  +
            ::std::string::String,
          40  +
            ::std::option::Option<crate::model::StringSet>,
          41  +
        >
          42  +
    {
          43  +
        fn from(v: SparseSetMapConstrained) -> Self {
          44  +
            v.0
          45  +
        }
          46  +
    }
          47  +
          48  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
          49  +
}
          50  +
pub(crate) mod dense_set_map_constrained {
          51  +
          52  +
    /* PubCrateConstrainedMapGenerator.kt:80 */
          53  +
    #[derive(Debug, Clone)]
          54  +
    pub(crate) struct DenseSetMapConstrained(
          55  +
        pub(crate) std::collections::HashMap<::std::string::String, crate::model::StringSet>,
          56  +
    );
          57  +
          58  +
    impl crate::constrained::Constrained for DenseSetMapConstrained {
          59  +
        type Unconstrained =
          60  +
            crate::unconstrained::dense_set_map_unconstrained::DenseSetMapUnconstrained;
          61  +
    }
          62  +
    /* PubCrateConstrainedMapGenerator.kt:99 */
          63  +
    impl
          64  +
        ::std::convert::From<
          65  +
            ::std::collections::HashMap<::std::string::String, crate::model::StringSet>,
          66  +
        > for DenseSetMapConstrained
          67  +
    {
          68  +
        fn from(
          69  +
            v: ::std::collections::HashMap<::std::string::String, crate::model::StringSet>,
          70  +
        ) -> Self {
          71  +
            Self(v)
          72  +
        }
          73  +
    }
          74  +
          75  +
    impl ::std::convert::From<DenseSetMapConstrained>
          76  +
        for ::std::collections::HashMap<::std::string::String, crate::model::StringSet>
          77  +
    {
          78  +
        fn from(v: DenseSetMapConstrained) -> Self {
          79  +
            v.0
          80  +
        }
          81  +
    }
          82  +
          83  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
          84  +
}
          85  +
pub(crate) mod foo_enum_list_constrained {
          86  +
          87  +
    /* PubCrateConstrainedCollectionGenerator.kt:79 */
          88  +
    #[derive(Debug, Clone)]
          89  +
    pub(crate) struct FooEnumListConstrained(pub(crate) std::vec::Vec<crate::model::FooEnum>);
          90  +
          91  +
    impl crate::constrained::Constrained for FooEnumListConstrained {
          92  +
        type Unconstrained =
          93  +
            crate::unconstrained::foo_enum_list_unconstrained::FooEnumListUnconstrained;
          94  +
    }
          95  +
    /* PubCrateConstrainedCollectionGenerator.kt:108 */
          96  +
    impl ::std::convert::From<::std::vec::Vec<crate::model::FooEnum>> for FooEnumListConstrained {
          97  +
        fn from(v: ::std::vec::Vec<crate::model::FooEnum>) -> Self {
          98  +
            Self(v)
          99  +
        }
         100  +
    }
         101  +
         102  +
    impl ::std::convert::From<FooEnumListConstrained> for ::std::vec::Vec<crate::model::FooEnum> {
         103  +
        fn from(v: FooEnumListConstrained) -> Self {
         104  +
            v.0
         105  +
        }
         106  +
    }
         107  +
         108  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
         109  +
}
         110  +
pub(crate) mod foo_enum_map_constrained {
         111  +
         112  +
    /* PubCrateConstrainedMapGenerator.kt:80 */
         113  +
    #[derive(Debug, Clone)]
         114  +
    pub(crate) struct FooEnumMapConstrained(
         115  +
        pub(crate) std::collections::HashMap<::std::string::String, crate::model::FooEnum>,
         116  +
    );
         117  +
         118  +
    impl crate::constrained::Constrained for FooEnumMapConstrained {
         119  +
        type Unconstrained =
         120  +
            crate::unconstrained::foo_enum_map_unconstrained::FooEnumMapUnconstrained;
         121  +
    }
         122  +
    /* PubCrateConstrainedMapGenerator.kt:99 */
         123  +
    impl
         124  +
        ::std::convert::From<
         125  +
            ::std::collections::HashMap<::std::string::String, crate::model::FooEnum>,
         126  +
        > for FooEnumMapConstrained
         127  +
    {
         128  +
        fn from(
         129  +
            v: ::std::collections::HashMap<::std::string::String, crate::model::FooEnum>,
         130  +
        ) -> Self {
         131  +
            Self(v)
         132  +
        }
         133  +
    }
         134  +
         135  +
    impl ::std::convert::From<FooEnumMapConstrained>
         136  +
        for ::std::collections::HashMap<::std::string::String, crate::model::FooEnum>
         137  +
    {
         138  +
        fn from(v: FooEnumMapConstrained) -> Self {
         139  +
            v.0
         140  +
        }
         141  +
    }
         142  +
         143  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
         144  +
}
         145  +
         146  +
/*
         147  +
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
         148  +
 * SPDX-License-Identifier: Apache-2.0
         149  +
 */
         150  +
         151  +
pub(crate) trait Constrained {
         152  +
    type Unconstrained;
         153  +
}
         154  +
         155  +
#[derive(Debug, Clone)]
         156  +
#[allow(dead_code)]
         157  +
pub(crate) enum MaybeConstrained<T: Constrained> {
         158  +
    Constrained(T),
         159  +
    Unconstrained(T::Unconstrained),
         160  +
}

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

@@ -0,1 +0,4171 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ServerOperationErrorGenerator.kt:63 */
           3  +
/// Error type for the `OperationWithNestedStructure` operation.
           4  +
/* ServerOperationErrorGenerator.kt:64 */
           5  +
/// Each variant represents an error that can occur for the `OperationWithNestedStructure` operation.
           6  +
/* RustType.kt:534 */
           7  +
#[derive(::std::fmt::Debug)]
           8  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum OperationWithNestedStructureError {
           9  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
          10  +
    /* ServerOperationErrorGenerator.kt:71 */
          11  +
    ValidationException(crate::error::ValidationException),
          12  +
    /* ServerOperationErrorGenerator.kt:66 */
          13  +
}
          14  +
/* ServerOperationErrorGenerator.kt:75 */
          15  +
impl ::std::fmt::Display for OperationWithNestedStructureError {
          16  +
    /* ServerOperationErrorGenerator.kt:76 */
          17  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          18  +
        /* ServerOperationErrorGenerator.kt:139 */
          19  +
        match &self {
          20  +
            /* ServerOperationErrorGenerator.kt:142 */
          21  +
            OperationWithNestedStructureError::ValidationException(_inner) =>
          22  +
            /* ServerOperationErrorGenerator.kt:78 */
          23  +
            {
          24  +
                _inner.fmt(f)
          25  +
            }
          26  +
            /* ServerOperationErrorGenerator.kt:139 */
          27  +
        }
          28  +
        /* ServerOperationErrorGenerator.kt:76 */
          29  +
    }
          30  +
    /* ServerOperationErrorGenerator.kt:75 */
          31  +
}
          32  +
/* ServerOperationErrorGenerator.kt:83 */
          33  +
impl OperationWithNestedStructureError {
          34  +
    /* ServerOperationErrorGenerator.kt:87 */
          35  +
    /// Returns `true` if the error kind is `OperationWithNestedStructureError::ValidationException`.
          36  +
    /* ServerOperationErrorGenerator.kt:88 */
          37  +
    pub fn is_validation_exception(&self) -> bool {
          38  +
        /* ServerOperationErrorGenerator.kt:89 */
          39  +
        matches!(
          40  +
            &self,
          41  +
            OperationWithNestedStructureError::ValidationException(_)
          42  +
        )
          43  +
        /* ServerOperationErrorGenerator.kt:88 */
          44  +
    }
          45  +
    /* ServerOperationErrorGenerator.kt:92 */
          46  +
    /// Returns the error name string by matching the correct variant.
          47  +
    /* ServerOperationErrorGenerator.kt:93 */
          48  +
    pub fn name(&self) -> &'static str {
          49  +
        /* ServerOperationErrorGenerator.kt:139 */
          50  +
        match &self {
          51  +
            /* ServerOperationErrorGenerator.kt:142 */
          52  +
            OperationWithNestedStructureError::ValidationException(_inner) =>
          53  +
            /* ServerOperationErrorGenerator.kt:95 */
          54  +
            {
          55  +
                _inner.name()
          56  +
            }
          57  +
            /* ServerOperationErrorGenerator.kt:139 */
          58  +
        }
          59  +
        /* ServerOperationErrorGenerator.kt:93 */
          60  +
    }
          61  +
    /* ServerOperationErrorGenerator.kt:83 */
          62  +
}
          63  +
/* ServerOperationErrorGenerator.kt:100 */
          64  +
impl ::std::error::Error for OperationWithNestedStructureError {
          65  +
    /* ServerOperationErrorGenerator.kt:101 */
          66  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
          67  +
        /* ServerOperationErrorGenerator.kt:139 */
          68  +
        match &self {
          69  +
            /* ServerOperationErrorGenerator.kt:142 */
          70  +
            OperationWithNestedStructureError::ValidationException(_inner) =>
          71  +
            /* ServerOperationErrorGenerator.kt:103 */
          72  +
            {
          73  +
                Some(_inner)
          74  +
            }
          75  +
            /* ServerOperationErrorGenerator.kt:139 */
          76  +
        }
          77  +
        /* ServerOperationErrorGenerator.kt:101 */
          78  +
    }
          79  +
    /* ServerOperationErrorGenerator.kt:100 */
          80  +
}
          81  +
/* ServerOperationErrorGenerator.kt:110 */
          82  +
impl ::std::convert::From<crate::error::ValidationException>
          83  +
    for crate::error::OperationWithNestedStructureError
          84  +
{
          85  +
    /* ServerOperationErrorGenerator.kt:111 */
          86  +
    fn from(
          87  +
        variant: crate::error::ValidationException,
          88  +
    ) -> crate::error::OperationWithNestedStructureError {
          89  +
        /* ServerOperationErrorGenerator.kt:112 */
          90  +
        Self::ValidationException(variant)
          91  +
        /* ServerOperationErrorGenerator.kt:111 */
          92  +
    }
          93  +
    /* ServerOperationErrorGenerator.kt:110 */
          94  +
}
          95  +
          96  +
/// /* StructureGenerator.kt:197 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
          97  +
/* RustType.kt:534 */
          98  +
#[derive(
          99  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         100  +
)]
         101  +
pub /* StructureGenerator.kt:201 */ struct ValidationException {
         102  +
    /// /* StructureGenerator.kt:231 */A summary of the validation failure.
         103  +
    pub message: ::std::string::String,
         104  +
    /// /* StructureGenerator.kt:231 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
         105  +
    pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
         106  +
    /* StructureGenerator.kt:201 */
         107  +
}
         108  +
/* StructureGenerator.kt:135 */
         109  +
impl ValidationException {
         110  +
    /// /* StructureGenerator.kt:231 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
         111  +
    /* StructureGenerator.kt:166 */
         112  +
    pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
         113  +
        /* StructureGenerator.kt:169 */
         114  +
        self.field_list.as_deref()
         115  +
        /* StructureGenerator.kt:166 */
         116  +
    }
         117  +
    /* StructureGenerator.kt:135 */
         118  +
}
         119  +
/* ErrorImplGenerator.kt:99 */
         120  +
impl ValidationException {
         121  +
    /* ErrorImplGenerator.kt:128 */
         122  +
    /// Returns the error message.
         123  +
    pub fn message(&self) -> &str {
         124  +
        &self.message
         125  +
    }
         126  +
    /* ErrorImplGenerator.kt:141 */
         127  +
    #[doc(hidden)]
         128  +
    /// Returns the error name.
         129  +
    pub fn name(&self) -> &'static str {
         130  +
        "ValidationException"
         131  +
    }
         132  +
    /* ErrorImplGenerator.kt:99 */
         133  +
}
         134  +
/* ErrorImplGenerator.kt:153 */
         135  +
impl ::std::fmt::Display for ValidationException {
         136  +
    /* ErrorImplGenerator.kt:154 */
         137  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         138  +
        /* ErrorImplGenerator.kt:161 */
         139  +
        ::std::write!(f, "ValidationException")?;
         140  +
        /* ErrorImplGenerator.kt:166 */
         141  +
        {
         142  +
            /* ErrorImplGenerator.kt:169 */
         143  +
            ::std::write!(f, ": {}", &self.message)?;
         144  +
            /* ErrorImplGenerator.kt:166 */
         145  +
        }
         146  +
        /* ErrorImplGenerator.kt:176 */
         147  +
        Ok(())
         148  +
        /* ErrorImplGenerator.kt:154 */
         149  +
    }
         150  +
    /* ErrorImplGenerator.kt:153 */
         151  +
}
         152  +
/* ErrorImplGenerator.kt:180 */
         153  +
impl ::std::error::Error for ValidationException {}
         154  +
/* ServerCodegenVisitor.kt:356 */
         155  +
impl ValidationException {
         156  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
         157  +
    /* ServerBuilderGenerator.kt:295 */
         158  +
    pub fn builder() -> crate::error::validation_exception::Builder {
         159  +
        /* ServerBuilderGenerator.kt:296 */
         160  +
        crate::error::validation_exception::Builder::default()
         161  +
        /* ServerBuilderGenerator.kt:295 */
         162  +
    }
         163  +
    /* ServerCodegenVisitor.kt:356 */
         164  +
}
         165  +
         166  +
/* ServerOperationErrorGenerator.kt:63 */
         167  +
/// Error type for the `OperationWithDefaults` operation.
         168  +
/* ServerOperationErrorGenerator.kt:64 */
         169  +
/// Each variant represents an error that can occur for the `OperationWithDefaults` operation.
         170  +
/* RustType.kt:534 */
         171  +
#[derive(::std::fmt::Debug)]
         172  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum OperationWithDefaultsError {
         173  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         174  +
    /* ServerOperationErrorGenerator.kt:71 */
         175  +
    ValidationException(crate::error::ValidationException),
         176  +
    /* ServerOperationErrorGenerator.kt:66 */
         177  +
}
         178  +
/* ServerOperationErrorGenerator.kt:75 */
         179  +
impl ::std::fmt::Display for OperationWithDefaultsError {
         180  +
    /* ServerOperationErrorGenerator.kt:76 */
         181  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         182  +
        /* ServerOperationErrorGenerator.kt:139 */
         183  +
        match &self {
         184  +
            /* ServerOperationErrorGenerator.kt:142 */
         185  +
            OperationWithDefaultsError::ValidationException(_inner) =>
         186  +
            /* ServerOperationErrorGenerator.kt:78 */
         187  +
            {
         188  +
                _inner.fmt(f)
         189  +
            }
         190  +
            /* ServerOperationErrorGenerator.kt:139 */
         191  +
        }
         192  +
        /* ServerOperationErrorGenerator.kt:76 */
         193  +
    }
         194  +
    /* ServerOperationErrorGenerator.kt:75 */
         195  +
}
         196  +
/* ServerOperationErrorGenerator.kt:83 */
         197  +
impl OperationWithDefaultsError {
         198  +
    /* ServerOperationErrorGenerator.kt:87 */
         199  +
    /// Returns `true` if the error kind is `OperationWithDefaultsError::ValidationException`.
         200  +
    /* ServerOperationErrorGenerator.kt:88 */
         201  +
    pub fn is_validation_exception(&self) -> bool {
         202  +
        /* ServerOperationErrorGenerator.kt:89 */
         203  +
        matches!(&self, OperationWithDefaultsError::ValidationException(_))
         204  +
        /* ServerOperationErrorGenerator.kt:88 */
         205  +
    }
         206  +
    /* ServerOperationErrorGenerator.kt:92 */
         207  +
    /// Returns the error name string by matching the correct variant.
         208  +
    /* ServerOperationErrorGenerator.kt:93 */
         209  +
    pub fn name(&self) -> &'static str {
         210  +
        /* ServerOperationErrorGenerator.kt:139 */
         211  +
        match &self {
         212  +
            /* ServerOperationErrorGenerator.kt:142 */
         213  +
            OperationWithDefaultsError::ValidationException(_inner) =>
         214  +
            /* ServerOperationErrorGenerator.kt:95 */
         215  +
            {
         216  +
                _inner.name()
         217  +
            }
         218  +
            /* ServerOperationErrorGenerator.kt:139 */
         219  +
        }
         220  +
        /* ServerOperationErrorGenerator.kt:93 */
         221  +
    }
         222  +
    /* ServerOperationErrorGenerator.kt:83 */
         223  +
}
         224  +
/* ServerOperationErrorGenerator.kt:100 */
         225  +
impl ::std::error::Error for OperationWithDefaultsError {
         226  +
    /* ServerOperationErrorGenerator.kt:101 */
         227  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         228  +
        /* ServerOperationErrorGenerator.kt:139 */
         229  +
        match &self {
         230  +
            /* ServerOperationErrorGenerator.kt:142 */
         231  +
            OperationWithDefaultsError::ValidationException(_inner) =>
         232  +
            /* ServerOperationErrorGenerator.kt:103 */
         233  +
            {
         234  +
                Some(_inner)
         235  +
            }
         236  +
            /* ServerOperationErrorGenerator.kt:139 */
         237  +
        }
         238  +
        /* ServerOperationErrorGenerator.kt:101 */
         239  +
    }
         240  +
    /* ServerOperationErrorGenerator.kt:100 */
         241  +
}
         242  +
/* ServerOperationErrorGenerator.kt:110 */
         243  +
impl ::std::convert::From<crate::error::ValidationException>
         244  +
    for crate::error::OperationWithDefaultsError
         245  +
{
         246  +
    /* ServerOperationErrorGenerator.kt:111 */
         247  +
    fn from(
         248  +
        variant: crate::error::ValidationException,
         249  +
    ) -> crate::error::OperationWithDefaultsError {
         250  +
        /* ServerOperationErrorGenerator.kt:112 */
         251  +
        Self::ValidationException(variant)
         252  +
        /* ServerOperationErrorGenerator.kt:111 */
         253  +
    }
         254  +
    /* ServerOperationErrorGenerator.kt:110 */
         255  +
}
         256  +
         257  +
/* ServerOperationErrorGenerator.kt:63 */
         258  +
/// Error type for the `MalformedTimestampBodyHttpDate` operation.
         259  +
/* ServerOperationErrorGenerator.kt:64 */
         260  +
/// Each variant represents an error that can occur for the `MalformedTimestampBodyHttpDate` operation.
         261  +
/* RustType.kt:534 */
         262  +
#[derive(::std::fmt::Debug)]
         263  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampBodyHttpDateError {
         264  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         265  +
    /* ServerOperationErrorGenerator.kt:71 */
         266  +
    ValidationException(crate::error::ValidationException),
         267  +
    /* ServerOperationErrorGenerator.kt:66 */
         268  +
}
         269  +
/* ServerOperationErrorGenerator.kt:75 */
         270  +
impl ::std::fmt::Display for MalformedTimestampBodyHttpDateError {
         271  +
    /* ServerOperationErrorGenerator.kt:76 */
         272  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         273  +
        /* ServerOperationErrorGenerator.kt:139 */
         274  +
        match &self {
         275  +
            /* ServerOperationErrorGenerator.kt:142 */
         276  +
            MalformedTimestampBodyHttpDateError::ValidationException(_inner) =>
         277  +
            /* ServerOperationErrorGenerator.kt:78 */
         278  +
            {
         279  +
                _inner.fmt(f)
         280  +
            }
         281  +
            /* ServerOperationErrorGenerator.kt:139 */
         282  +
        }
         283  +
        /* ServerOperationErrorGenerator.kt:76 */
         284  +
    }
         285  +
    /* ServerOperationErrorGenerator.kt:75 */
         286  +
}
         287  +
/* ServerOperationErrorGenerator.kt:83 */
         288  +
impl MalformedTimestampBodyHttpDateError {
         289  +
    /* ServerOperationErrorGenerator.kt:87 */
         290  +
    /// Returns `true` if the error kind is `MalformedTimestampBodyHttpDateError::ValidationException`.
         291  +
    /* ServerOperationErrorGenerator.kt:88 */
         292  +
    pub fn is_validation_exception(&self) -> bool {
         293  +
        /* ServerOperationErrorGenerator.kt:89 */
         294  +
        matches!(
         295  +
            &self,
         296  +
            MalformedTimestampBodyHttpDateError::ValidationException(_)
         297  +
        )
         298  +
        /* ServerOperationErrorGenerator.kt:88 */
         299  +
    }
         300  +
    /* ServerOperationErrorGenerator.kt:92 */
         301  +
    /// Returns the error name string by matching the correct variant.
         302  +
    /* ServerOperationErrorGenerator.kt:93 */
         303  +
    pub fn name(&self) -> &'static str {
         304  +
        /* ServerOperationErrorGenerator.kt:139 */
         305  +
        match &self {
         306  +
            /* ServerOperationErrorGenerator.kt:142 */
         307  +
            MalformedTimestampBodyHttpDateError::ValidationException(_inner) =>
         308  +
            /* ServerOperationErrorGenerator.kt:95 */
         309  +
            {
         310  +
                _inner.name()
         311  +
            }
         312  +
            /* ServerOperationErrorGenerator.kt:139 */
         313  +
        }
         314  +
        /* ServerOperationErrorGenerator.kt:93 */
         315  +
    }
         316  +
    /* ServerOperationErrorGenerator.kt:83 */
         317  +
}
         318  +
/* ServerOperationErrorGenerator.kt:100 */
         319  +
impl ::std::error::Error for MalformedTimestampBodyHttpDateError {
         320  +
    /* ServerOperationErrorGenerator.kt:101 */
         321  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         322  +
        /* ServerOperationErrorGenerator.kt:139 */
         323  +
        match &self {
         324  +
            /* ServerOperationErrorGenerator.kt:142 */
         325  +
            MalformedTimestampBodyHttpDateError::ValidationException(_inner) =>
         326  +
            /* ServerOperationErrorGenerator.kt:103 */
         327  +
            {
         328  +
                Some(_inner)
         329  +
            }
         330  +
            /* ServerOperationErrorGenerator.kt:139 */
         331  +
        }
         332  +
        /* ServerOperationErrorGenerator.kt:101 */
         333  +
    }
         334  +
    /* ServerOperationErrorGenerator.kt:100 */
         335  +
}
         336  +
/* ServerOperationErrorGenerator.kt:110 */
         337  +
impl ::std::convert::From<crate::error::ValidationException>
         338  +
    for crate::error::MalformedTimestampBodyHttpDateError
         339  +
{
         340  +
    /* ServerOperationErrorGenerator.kt:111 */
         341  +
    fn from(
         342  +
        variant: crate::error::ValidationException,
         343  +
    ) -> crate::error::MalformedTimestampBodyHttpDateError {
         344  +
        /* ServerOperationErrorGenerator.kt:112 */
         345  +
        Self::ValidationException(variant)
         346  +
        /* ServerOperationErrorGenerator.kt:111 */
         347  +
    }
         348  +
    /* ServerOperationErrorGenerator.kt:110 */
         349  +
}
         350  +
         351  +
/* ServerOperationErrorGenerator.kt:63 */
         352  +
/// Error type for the `MalformedTimestampBodyDateTime` operation.
         353  +
/* ServerOperationErrorGenerator.kt:64 */
         354  +
/// Each variant represents an error that can occur for the `MalformedTimestampBodyDateTime` operation.
         355  +
/* RustType.kt:534 */
         356  +
#[derive(::std::fmt::Debug)]
         357  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampBodyDateTimeError {
         358  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         359  +
    /* ServerOperationErrorGenerator.kt:71 */
         360  +
    ValidationException(crate::error::ValidationException),
         361  +
    /* ServerOperationErrorGenerator.kt:66 */
         362  +
}
         363  +
/* ServerOperationErrorGenerator.kt:75 */
         364  +
impl ::std::fmt::Display for MalformedTimestampBodyDateTimeError {
         365  +
    /* ServerOperationErrorGenerator.kt:76 */
         366  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         367  +
        /* ServerOperationErrorGenerator.kt:139 */
         368  +
        match &self {
         369  +
            /* ServerOperationErrorGenerator.kt:142 */
         370  +
            MalformedTimestampBodyDateTimeError::ValidationException(_inner) =>
         371  +
            /* ServerOperationErrorGenerator.kt:78 */
         372  +
            {
         373  +
                _inner.fmt(f)
         374  +
            }
         375  +
            /* ServerOperationErrorGenerator.kt:139 */
         376  +
        }
         377  +
        /* ServerOperationErrorGenerator.kt:76 */
         378  +
    }
         379  +
    /* ServerOperationErrorGenerator.kt:75 */
         380  +
}
         381  +
/* ServerOperationErrorGenerator.kt:83 */
         382  +
impl MalformedTimestampBodyDateTimeError {
         383  +
    /* ServerOperationErrorGenerator.kt:87 */
         384  +
    /// Returns `true` if the error kind is `MalformedTimestampBodyDateTimeError::ValidationException`.
         385  +
    /* ServerOperationErrorGenerator.kt:88 */
         386  +
    pub fn is_validation_exception(&self) -> bool {
         387  +
        /* ServerOperationErrorGenerator.kt:89 */
         388  +
        matches!(
         389  +
            &self,
         390  +
            MalformedTimestampBodyDateTimeError::ValidationException(_)
         391  +
        )
         392  +
        /* ServerOperationErrorGenerator.kt:88 */
         393  +
    }
         394  +
    /* ServerOperationErrorGenerator.kt:92 */
         395  +
    /// Returns the error name string by matching the correct variant.
         396  +
    /* ServerOperationErrorGenerator.kt:93 */
         397  +
    pub fn name(&self) -> &'static str {
         398  +
        /* ServerOperationErrorGenerator.kt:139 */
         399  +
        match &self {
         400  +
            /* ServerOperationErrorGenerator.kt:142 */
         401  +
            MalformedTimestampBodyDateTimeError::ValidationException(_inner) =>
         402  +
            /* ServerOperationErrorGenerator.kt:95 */
         403  +
            {
         404  +
                _inner.name()
         405  +
            }
         406  +
            /* ServerOperationErrorGenerator.kt:139 */
         407  +
        }
         408  +
        /* ServerOperationErrorGenerator.kt:93 */
         409  +
    }
         410  +
    /* ServerOperationErrorGenerator.kt:83 */
         411  +
}
         412  +
/* ServerOperationErrorGenerator.kt:100 */
         413  +
impl ::std::error::Error for MalformedTimestampBodyDateTimeError {
         414  +
    /* ServerOperationErrorGenerator.kt:101 */
         415  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         416  +
        /* ServerOperationErrorGenerator.kt:139 */
         417  +
        match &self {
         418  +
            /* ServerOperationErrorGenerator.kt:142 */
         419  +
            MalformedTimestampBodyDateTimeError::ValidationException(_inner) =>
         420  +
            /* ServerOperationErrorGenerator.kt:103 */
         421  +
            {
         422  +
                Some(_inner)
         423  +
            }
         424  +
            /* ServerOperationErrorGenerator.kt:139 */
         425  +
        }
         426  +
        /* ServerOperationErrorGenerator.kt:101 */
         427  +
    }
         428  +
    /* ServerOperationErrorGenerator.kt:100 */
         429  +
}
         430  +
/* ServerOperationErrorGenerator.kt:110 */
         431  +
impl ::std::convert::From<crate::error::ValidationException>
         432  +
    for crate::error::MalformedTimestampBodyDateTimeError
         433  +
{
         434  +
    /* ServerOperationErrorGenerator.kt:111 */
         435  +
    fn from(
         436  +
        variant: crate::error::ValidationException,
         437  +
    ) -> crate::error::MalformedTimestampBodyDateTimeError {
         438  +
        /* ServerOperationErrorGenerator.kt:112 */
         439  +
        Self::ValidationException(variant)
         440  +
        /* ServerOperationErrorGenerator.kt:111 */
         441  +
    }
         442  +
    /* ServerOperationErrorGenerator.kt:110 */
         443  +
}
         444  +
         445  +
/* ServerOperationErrorGenerator.kt:63 */
         446  +
/// Error type for the `MalformedTimestampBodyDefault` operation.
         447  +
/* ServerOperationErrorGenerator.kt:64 */
         448  +
/// Each variant represents an error that can occur for the `MalformedTimestampBodyDefault` operation.
         449  +
/* RustType.kt:534 */
         450  +
#[derive(::std::fmt::Debug)]
         451  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampBodyDefaultError {
         452  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         453  +
    /* ServerOperationErrorGenerator.kt:71 */
         454  +
    ValidationException(crate::error::ValidationException),
         455  +
    /* ServerOperationErrorGenerator.kt:66 */
         456  +
}
         457  +
/* ServerOperationErrorGenerator.kt:75 */
         458  +
impl ::std::fmt::Display for MalformedTimestampBodyDefaultError {
         459  +
    /* ServerOperationErrorGenerator.kt:76 */
         460  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         461  +
        /* ServerOperationErrorGenerator.kt:139 */
         462  +
        match &self {
         463  +
            /* ServerOperationErrorGenerator.kt:142 */
         464  +
            MalformedTimestampBodyDefaultError::ValidationException(_inner) =>
         465  +
            /* ServerOperationErrorGenerator.kt:78 */
         466  +
            {
         467  +
                _inner.fmt(f)
         468  +
            }
         469  +
            /* ServerOperationErrorGenerator.kt:139 */
         470  +
        }
         471  +
        /* ServerOperationErrorGenerator.kt:76 */
         472  +
    }
         473  +
    /* ServerOperationErrorGenerator.kt:75 */
         474  +
}
         475  +
/* ServerOperationErrorGenerator.kt:83 */
         476  +
impl MalformedTimestampBodyDefaultError {
         477  +
    /* ServerOperationErrorGenerator.kt:87 */
         478  +
    /// Returns `true` if the error kind is `MalformedTimestampBodyDefaultError::ValidationException`.
         479  +
    /* ServerOperationErrorGenerator.kt:88 */
         480  +
    pub fn is_validation_exception(&self) -> bool {
         481  +
        /* ServerOperationErrorGenerator.kt:89 */
         482  +
        matches!(
         483  +
            &self,
         484  +
            MalformedTimestampBodyDefaultError::ValidationException(_)
         485  +
        )
         486  +
        /* ServerOperationErrorGenerator.kt:88 */
         487  +
    }
         488  +
    /* ServerOperationErrorGenerator.kt:92 */
         489  +
    /// Returns the error name string by matching the correct variant.
         490  +
    /* ServerOperationErrorGenerator.kt:93 */
         491  +
    pub fn name(&self) -> &'static str {
         492  +
        /* ServerOperationErrorGenerator.kt:139 */
         493  +
        match &self {
         494  +
            /* ServerOperationErrorGenerator.kt:142 */
         495  +
            MalformedTimestampBodyDefaultError::ValidationException(_inner) =>
         496  +
            /* ServerOperationErrorGenerator.kt:95 */
         497  +
            {
         498  +
                _inner.name()
         499  +
            }
         500  +
            /* ServerOperationErrorGenerator.kt:139 */
         501  +
        }
         502  +
        /* ServerOperationErrorGenerator.kt:93 */
         503  +
    }
         504  +
    /* ServerOperationErrorGenerator.kt:83 */
         505  +
}
         506  +
/* ServerOperationErrorGenerator.kt:100 */
         507  +
impl ::std::error::Error for MalformedTimestampBodyDefaultError {
         508  +
    /* ServerOperationErrorGenerator.kt:101 */
         509  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         510  +
        /* ServerOperationErrorGenerator.kt:139 */
         511  +
        match &self {
         512  +
            /* ServerOperationErrorGenerator.kt:142 */
         513  +
            MalformedTimestampBodyDefaultError::ValidationException(_inner) =>
         514  +
            /* ServerOperationErrorGenerator.kt:103 */
         515  +
            {
         516  +
                Some(_inner)
         517  +
            }
         518  +
            /* ServerOperationErrorGenerator.kt:139 */
         519  +
        }
         520  +
        /* ServerOperationErrorGenerator.kt:101 */
         521  +
    }
         522  +
    /* ServerOperationErrorGenerator.kt:100 */
         523  +
}
         524  +
/* ServerOperationErrorGenerator.kt:110 */
         525  +
impl ::std::convert::From<crate::error::ValidationException>
         526  +
    for crate::error::MalformedTimestampBodyDefaultError
         527  +
{
         528  +
    /* ServerOperationErrorGenerator.kt:111 */
         529  +
    fn from(
         530  +
        variant: crate::error::ValidationException,
         531  +
    ) -> crate::error::MalformedTimestampBodyDefaultError {
         532  +
        /* ServerOperationErrorGenerator.kt:112 */
         533  +
        Self::ValidationException(variant)
         534  +
        /* ServerOperationErrorGenerator.kt:111 */
         535  +
    }
         536  +
    /* ServerOperationErrorGenerator.kt:110 */
         537  +
}
         538  +
         539  +
/* ServerOperationErrorGenerator.kt:63 */
         540  +
/// Error type for the `MalformedTimestampHeaderEpoch` operation.
         541  +
/* ServerOperationErrorGenerator.kt:64 */
         542  +
/// Each variant represents an error that can occur for the `MalformedTimestampHeaderEpoch` operation.
         543  +
/* RustType.kt:534 */
         544  +
#[derive(::std::fmt::Debug)]
         545  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampHeaderEpochError {
         546  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         547  +
    /* ServerOperationErrorGenerator.kt:71 */
         548  +
    ValidationException(crate::error::ValidationException),
         549  +
    /* ServerOperationErrorGenerator.kt:66 */
         550  +
}
         551  +
/* ServerOperationErrorGenerator.kt:75 */
         552  +
impl ::std::fmt::Display for MalformedTimestampHeaderEpochError {
         553  +
    /* ServerOperationErrorGenerator.kt:76 */
         554  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         555  +
        /* ServerOperationErrorGenerator.kt:139 */
         556  +
        match &self {
         557  +
            /* ServerOperationErrorGenerator.kt:142 */
         558  +
            MalformedTimestampHeaderEpochError::ValidationException(_inner) =>
         559  +
            /* ServerOperationErrorGenerator.kt:78 */
         560  +
            {
         561  +
                _inner.fmt(f)
         562  +
            }
         563  +
            /* ServerOperationErrorGenerator.kt:139 */
         564  +
        }
         565  +
        /* ServerOperationErrorGenerator.kt:76 */
         566  +
    }
         567  +
    /* ServerOperationErrorGenerator.kt:75 */
         568  +
}
         569  +
/* ServerOperationErrorGenerator.kt:83 */
         570  +
impl MalformedTimestampHeaderEpochError {
         571  +
    /* ServerOperationErrorGenerator.kt:87 */
         572  +
    /// Returns `true` if the error kind is `MalformedTimestampHeaderEpochError::ValidationException`.
         573  +
    /* ServerOperationErrorGenerator.kt:88 */
         574  +
    pub fn is_validation_exception(&self) -> bool {
         575  +
        /* ServerOperationErrorGenerator.kt:89 */
         576  +
        matches!(
         577  +
            &self,
         578  +
            MalformedTimestampHeaderEpochError::ValidationException(_)
         579  +
        )
         580  +
        /* ServerOperationErrorGenerator.kt:88 */
         581  +
    }
         582  +
    /* ServerOperationErrorGenerator.kt:92 */
         583  +
    /// Returns the error name string by matching the correct variant.
         584  +
    /* ServerOperationErrorGenerator.kt:93 */
         585  +
    pub fn name(&self) -> &'static str {
         586  +
        /* ServerOperationErrorGenerator.kt:139 */
         587  +
        match &self {
         588  +
            /* ServerOperationErrorGenerator.kt:142 */
         589  +
            MalformedTimestampHeaderEpochError::ValidationException(_inner) =>
         590  +
            /* ServerOperationErrorGenerator.kt:95 */
         591  +
            {
         592  +
                _inner.name()
         593  +
            }
         594  +
            /* ServerOperationErrorGenerator.kt:139 */
         595  +
        }
         596  +
        /* ServerOperationErrorGenerator.kt:93 */
         597  +
    }
         598  +
    /* ServerOperationErrorGenerator.kt:83 */
         599  +
}
         600  +
/* ServerOperationErrorGenerator.kt:100 */
         601  +
impl ::std::error::Error for MalformedTimestampHeaderEpochError {
         602  +
    /* ServerOperationErrorGenerator.kt:101 */
         603  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         604  +
        /* ServerOperationErrorGenerator.kt:139 */
         605  +
        match &self {
         606  +
            /* ServerOperationErrorGenerator.kt:142 */
         607  +
            MalformedTimestampHeaderEpochError::ValidationException(_inner) =>
         608  +
            /* ServerOperationErrorGenerator.kt:103 */
         609  +
            {
         610  +
                Some(_inner)
         611  +
            }
         612  +
            /* ServerOperationErrorGenerator.kt:139 */
         613  +
        }
         614  +
        /* ServerOperationErrorGenerator.kt:101 */
         615  +
    }
         616  +
    /* ServerOperationErrorGenerator.kt:100 */
         617  +
}
         618  +
/* ServerOperationErrorGenerator.kt:110 */
         619  +
impl ::std::convert::From<crate::error::ValidationException>
         620  +
    for crate::error::MalformedTimestampHeaderEpochError
         621  +
{
         622  +
    /* ServerOperationErrorGenerator.kt:111 */
         623  +
    fn from(
         624  +
        variant: crate::error::ValidationException,
         625  +
    ) -> crate::error::MalformedTimestampHeaderEpochError {
         626  +
        /* ServerOperationErrorGenerator.kt:112 */
         627  +
        Self::ValidationException(variant)
         628  +
        /* ServerOperationErrorGenerator.kt:111 */
         629  +
    }
         630  +
    /* ServerOperationErrorGenerator.kt:110 */
         631  +
}
         632  +
         633  +
/* ServerOperationErrorGenerator.kt:63 */
         634  +
/// Error type for the `MalformedTimestampHeaderDateTime` operation.
         635  +
/* ServerOperationErrorGenerator.kt:64 */
         636  +
/// Each variant represents an error that can occur for the `MalformedTimestampHeaderDateTime` operation.
         637  +
/* RustType.kt:534 */
         638  +
#[derive(::std::fmt::Debug)]
         639  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampHeaderDateTimeError {
         640  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         641  +
    /* ServerOperationErrorGenerator.kt:71 */
         642  +
    ValidationException(crate::error::ValidationException),
         643  +
    /* ServerOperationErrorGenerator.kt:66 */
         644  +
}
         645  +
/* ServerOperationErrorGenerator.kt:75 */
         646  +
impl ::std::fmt::Display for MalformedTimestampHeaderDateTimeError {
         647  +
    /* ServerOperationErrorGenerator.kt:76 */
         648  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         649  +
        /* ServerOperationErrorGenerator.kt:139 */
         650  +
        match &self {
         651  +
            /* ServerOperationErrorGenerator.kt:142 */
         652  +
            MalformedTimestampHeaderDateTimeError::ValidationException(_inner) =>
         653  +
            /* ServerOperationErrorGenerator.kt:78 */
         654  +
            {
         655  +
                _inner.fmt(f)
         656  +
            }
         657  +
            /* ServerOperationErrorGenerator.kt:139 */
         658  +
        }
         659  +
        /* ServerOperationErrorGenerator.kt:76 */
         660  +
    }
         661  +
    /* ServerOperationErrorGenerator.kt:75 */
         662  +
}
         663  +
/* ServerOperationErrorGenerator.kt:83 */
         664  +
impl MalformedTimestampHeaderDateTimeError {
         665  +
    /* ServerOperationErrorGenerator.kt:87 */
         666  +
    /// Returns `true` if the error kind is `MalformedTimestampHeaderDateTimeError::ValidationException`.
         667  +
    /* ServerOperationErrorGenerator.kt:88 */
         668  +
    pub fn is_validation_exception(&self) -> bool {
         669  +
        /* ServerOperationErrorGenerator.kt:89 */
         670  +
        matches!(
         671  +
            &self,
         672  +
            MalformedTimestampHeaderDateTimeError::ValidationException(_)
         673  +
        )
         674  +
        /* ServerOperationErrorGenerator.kt:88 */
         675  +
    }
         676  +
    /* ServerOperationErrorGenerator.kt:92 */
         677  +
    /// Returns the error name string by matching the correct variant.
         678  +
    /* ServerOperationErrorGenerator.kt:93 */
         679  +
    pub fn name(&self) -> &'static str {
         680  +
        /* ServerOperationErrorGenerator.kt:139 */
         681  +
        match &self {
         682  +
            /* ServerOperationErrorGenerator.kt:142 */
         683  +
            MalformedTimestampHeaderDateTimeError::ValidationException(_inner) =>
         684  +
            /* ServerOperationErrorGenerator.kt:95 */
         685  +
            {
         686  +
                _inner.name()
         687  +
            }
         688  +
            /* ServerOperationErrorGenerator.kt:139 */
         689  +
        }
         690  +
        /* ServerOperationErrorGenerator.kt:93 */
         691  +
    }
         692  +
    /* ServerOperationErrorGenerator.kt:83 */
         693  +
}
         694  +
/* ServerOperationErrorGenerator.kt:100 */
         695  +
impl ::std::error::Error for MalformedTimestampHeaderDateTimeError {
         696  +
    /* ServerOperationErrorGenerator.kt:101 */
         697  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         698  +
        /* ServerOperationErrorGenerator.kt:139 */
         699  +
        match &self {
         700  +
            /* ServerOperationErrorGenerator.kt:142 */
         701  +
            MalformedTimestampHeaderDateTimeError::ValidationException(_inner) =>
         702  +
            /* ServerOperationErrorGenerator.kt:103 */
         703  +
            {
         704  +
                Some(_inner)
         705  +
            }
         706  +
            /* ServerOperationErrorGenerator.kt:139 */
         707  +
        }
         708  +
        /* ServerOperationErrorGenerator.kt:101 */
         709  +
    }
         710  +
    /* ServerOperationErrorGenerator.kt:100 */
         711  +
}
         712  +
/* ServerOperationErrorGenerator.kt:110 */
         713  +
impl ::std::convert::From<crate::error::ValidationException>
         714  +
    for crate::error::MalformedTimestampHeaderDateTimeError
         715  +
{
         716  +
    /* ServerOperationErrorGenerator.kt:111 */
         717  +
    fn from(
         718  +
        variant: crate::error::ValidationException,
         719  +
    ) -> crate::error::MalformedTimestampHeaderDateTimeError {
         720  +
        /* ServerOperationErrorGenerator.kt:112 */
         721  +
        Self::ValidationException(variant)
         722  +
        /* ServerOperationErrorGenerator.kt:111 */
         723  +
    }
         724  +
    /* ServerOperationErrorGenerator.kt:110 */
         725  +
}
         726  +
         727  +
/* ServerOperationErrorGenerator.kt:63 */
         728  +
/// Error type for the `MalformedTimestampHeaderDefault` operation.
         729  +
/* ServerOperationErrorGenerator.kt:64 */
         730  +
/// Each variant represents an error that can occur for the `MalformedTimestampHeaderDefault` operation.
         731  +
/* RustType.kt:534 */
         732  +
#[derive(::std::fmt::Debug)]
         733  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampHeaderDefaultError {
         734  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         735  +
    /* ServerOperationErrorGenerator.kt:71 */
         736  +
    ValidationException(crate::error::ValidationException),
         737  +
    /* ServerOperationErrorGenerator.kt:66 */
         738  +
}
         739  +
/* ServerOperationErrorGenerator.kt:75 */
         740  +
impl ::std::fmt::Display for MalformedTimestampHeaderDefaultError {
         741  +
    /* ServerOperationErrorGenerator.kt:76 */
         742  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         743  +
        /* ServerOperationErrorGenerator.kt:139 */
         744  +
        match &self {
         745  +
            /* ServerOperationErrorGenerator.kt:142 */
         746  +
            MalformedTimestampHeaderDefaultError::ValidationException(_inner) =>
         747  +
            /* ServerOperationErrorGenerator.kt:78 */
         748  +
            {
         749  +
                _inner.fmt(f)
         750  +
            }
         751  +
            /* ServerOperationErrorGenerator.kt:139 */
         752  +
        }
         753  +
        /* ServerOperationErrorGenerator.kt:76 */
         754  +
    }
         755  +
    /* ServerOperationErrorGenerator.kt:75 */
         756  +
}
         757  +
/* ServerOperationErrorGenerator.kt:83 */
         758  +
impl MalformedTimestampHeaderDefaultError {
         759  +
    /* ServerOperationErrorGenerator.kt:87 */
         760  +
    /// Returns `true` if the error kind is `MalformedTimestampHeaderDefaultError::ValidationException`.
         761  +
    /* ServerOperationErrorGenerator.kt:88 */
         762  +
    pub fn is_validation_exception(&self) -> bool {
         763  +
        /* ServerOperationErrorGenerator.kt:89 */
         764  +
        matches!(
         765  +
            &self,
         766  +
            MalformedTimestampHeaderDefaultError::ValidationException(_)
         767  +
        )
         768  +
        /* ServerOperationErrorGenerator.kt:88 */
         769  +
    }
         770  +
    /* ServerOperationErrorGenerator.kt:92 */
         771  +
    /// Returns the error name string by matching the correct variant.
         772  +
    /* ServerOperationErrorGenerator.kt:93 */
         773  +
    pub fn name(&self) -> &'static str {
         774  +
        /* ServerOperationErrorGenerator.kt:139 */
         775  +
        match &self {
         776  +
            /* ServerOperationErrorGenerator.kt:142 */
         777  +
            MalformedTimestampHeaderDefaultError::ValidationException(_inner) =>
         778  +
            /* ServerOperationErrorGenerator.kt:95 */
         779  +
            {
         780  +
                _inner.name()
         781  +
            }
         782  +
            /* ServerOperationErrorGenerator.kt:139 */
         783  +
        }
         784  +
        /* ServerOperationErrorGenerator.kt:93 */
         785  +
    }
         786  +
    /* ServerOperationErrorGenerator.kt:83 */
         787  +
}
         788  +
/* ServerOperationErrorGenerator.kt:100 */
         789  +
impl ::std::error::Error for MalformedTimestampHeaderDefaultError {
         790  +
    /* ServerOperationErrorGenerator.kt:101 */
         791  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         792  +
        /* ServerOperationErrorGenerator.kt:139 */
         793  +
        match &self {
         794  +
            /* ServerOperationErrorGenerator.kt:142 */
         795  +
            MalformedTimestampHeaderDefaultError::ValidationException(_inner) =>
         796  +
            /* ServerOperationErrorGenerator.kt:103 */
         797  +
            {
         798  +
                Some(_inner)
         799  +
            }
         800  +
            /* ServerOperationErrorGenerator.kt:139 */
         801  +
        }
         802  +
        /* ServerOperationErrorGenerator.kt:101 */
         803  +
    }
         804  +
    /* ServerOperationErrorGenerator.kt:100 */
         805  +
}
         806  +
/* ServerOperationErrorGenerator.kt:110 */
         807  +
impl ::std::convert::From<crate::error::ValidationException>
         808  +
    for crate::error::MalformedTimestampHeaderDefaultError
         809  +
{
         810  +
    /* ServerOperationErrorGenerator.kt:111 */
         811  +
    fn from(
         812  +
        variant: crate::error::ValidationException,
         813  +
    ) -> crate::error::MalformedTimestampHeaderDefaultError {
         814  +
        /* ServerOperationErrorGenerator.kt:112 */
         815  +
        Self::ValidationException(variant)
         816  +
        /* ServerOperationErrorGenerator.kt:111 */
         817  +
    }
         818  +
    /* ServerOperationErrorGenerator.kt:110 */
         819  +
}
         820  +
         821  +
/* ServerOperationErrorGenerator.kt:63 */
         822  +
/// Error type for the `MalformedTimestampQueryEpoch` operation.
         823  +
/* ServerOperationErrorGenerator.kt:64 */
         824  +
/// Each variant represents an error that can occur for the `MalformedTimestampQueryEpoch` operation.
         825  +
/* RustType.kt:534 */
         826  +
#[derive(::std::fmt::Debug)]
         827  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampQueryEpochError {
         828  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         829  +
    /* ServerOperationErrorGenerator.kt:71 */
         830  +
    ValidationException(crate::error::ValidationException),
         831  +
    /* ServerOperationErrorGenerator.kt:66 */
         832  +
}
         833  +
/* ServerOperationErrorGenerator.kt:75 */
         834  +
impl ::std::fmt::Display for MalformedTimestampQueryEpochError {
         835  +
    /* ServerOperationErrorGenerator.kt:76 */
         836  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         837  +
        /* ServerOperationErrorGenerator.kt:139 */
         838  +
        match &self {
         839  +
            /* ServerOperationErrorGenerator.kt:142 */
         840  +
            MalformedTimestampQueryEpochError::ValidationException(_inner) =>
         841  +
            /* ServerOperationErrorGenerator.kt:78 */
         842  +
            {
         843  +
                _inner.fmt(f)
         844  +
            }
         845  +
            /* ServerOperationErrorGenerator.kt:139 */
         846  +
        }
         847  +
        /* ServerOperationErrorGenerator.kt:76 */
         848  +
    }
         849  +
    /* ServerOperationErrorGenerator.kt:75 */
         850  +
}
         851  +
/* ServerOperationErrorGenerator.kt:83 */
         852  +
impl MalformedTimestampQueryEpochError {
         853  +
    /* ServerOperationErrorGenerator.kt:87 */
         854  +
    /// Returns `true` if the error kind is `MalformedTimestampQueryEpochError::ValidationException`.
         855  +
    /* ServerOperationErrorGenerator.kt:88 */
         856  +
    pub fn is_validation_exception(&self) -> bool {
         857  +
        /* ServerOperationErrorGenerator.kt:89 */
         858  +
        matches!(
         859  +
            &self,
         860  +
            MalformedTimestampQueryEpochError::ValidationException(_)
         861  +
        )
         862  +
        /* ServerOperationErrorGenerator.kt:88 */
         863  +
    }
         864  +
    /* ServerOperationErrorGenerator.kt:92 */
         865  +
    /// Returns the error name string by matching the correct variant.
         866  +
    /* ServerOperationErrorGenerator.kt:93 */
         867  +
    pub fn name(&self) -> &'static str {
         868  +
        /* ServerOperationErrorGenerator.kt:139 */
         869  +
        match &self {
         870  +
            /* ServerOperationErrorGenerator.kt:142 */
         871  +
            MalformedTimestampQueryEpochError::ValidationException(_inner) =>
         872  +
            /* ServerOperationErrorGenerator.kt:95 */
         873  +
            {
         874  +
                _inner.name()
         875  +
            }
         876  +
            /* ServerOperationErrorGenerator.kt:139 */
         877  +
        }
         878  +
        /* ServerOperationErrorGenerator.kt:93 */
         879  +
    }
         880  +
    /* ServerOperationErrorGenerator.kt:83 */
         881  +
}
         882  +
/* ServerOperationErrorGenerator.kt:100 */
         883  +
impl ::std::error::Error for MalformedTimestampQueryEpochError {
         884  +
    /* ServerOperationErrorGenerator.kt:101 */
         885  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         886  +
        /* ServerOperationErrorGenerator.kt:139 */
         887  +
        match &self {
         888  +
            /* ServerOperationErrorGenerator.kt:142 */
         889  +
            MalformedTimestampQueryEpochError::ValidationException(_inner) =>
         890  +
            /* ServerOperationErrorGenerator.kt:103 */
         891  +
            {
         892  +
                Some(_inner)
         893  +
            }
         894  +
            /* ServerOperationErrorGenerator.kt:139 */
         895  +
        }
         896  +
        /* ServerOperationErrorGenerator.kt:101 */
         897  +
    }
         898  +
    /* ServerOperationErrorGenerator.kt:100 */
         899  +
}
         900  +
/* ServerOperationErrorGenerator.kt:110 */
         901  +
impl ::std::convert::From<crate::error::ValidationException>
         902  +
    for crate::error::MalformedTimestampQueryEpochError
         903  +
{
         904  +
    /* ServerOperationErrorGenerator.kt:111 */
         905  +
    fn from(
         906  +
        variant: crate::error::ValidationException,
         907  +
    ) -> crate::error::MalformedTimestampQueryEpochError {
         908  +
        /* ServerOperationErrorGenerator.kt:112 */
         909  +
        Self::ValidationException(variant)
         910  +
        /* ServerOperationErrorGenerator.kt:111 */
         911  +
    }
         912  +
    /* ServerOperationErrorGenerator.kt:110 */
         913  +
}
         914  +
         915  +
/* ServerOperationErrorGenerator.kt:63 */
         916  +
/// Error type for the `MalformedTimestampQueryHttpDate` operation.
         917  +
/* ServerOperationErrorGenerator.kt:64 */
         918  +
/// Each variant represents an error that can occur for the `MalformedTimestampQueryHttpDate` operation.
         919  +
/* RustType.kt:534 */
         920  +
#[derive(::std::fmt::Debug)]
         921  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampQueryHttpDateError {
         922  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         923  +
    /* ServerOperationErrorGenerator.kt:71 */
         924  +
    ValidationException(crate::error::ValidationException),
         925  +
    /* ServerOperationErrorGenerator.kt:66 */
         926  +
}
         927  +
/* ServerOperationErrorGenerator.kt:75 */
         928  +
impl ::std::fmt::Display for MalformedTimestampQueryHttpDateError {
         929  +
    /* ServerOperationErrorGenerator.kt:76 */
         930  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         931  +
        /* ServerOperationErrorGenerator.kt:139 */
         932  +
        match &self {
         933  +
            /* ServerOperationErrorGenerator.kt:142 */
         934  +
            MalformedTimestampQueryHttpDateError::ValidationException(_inner) =>
         935  +
            /* ServerOperationErrorGenerator.kt:78 */
         936  +
            {
         937  +
                _inner.fmt(f)
         938  +
            }
         939  +
            /* ServerOperationErrorGenerator.kt:139 */
         940  +
        }
         941  +
        /* ServerOperationErrorGenerator.kt:76 */
         942  +
    }
         943  +
    /* ServerOperationErrorGenerator.kt:75 */
         944  +
}
         945  +
/* ServerOperationErrorGenerator.kt:83 */
         946  +
impl MalformedTimestampQueryHttpDateError {
         947  +
    /* ServerOperationErrorGenerator.kt:87 */
         948  +
    /// Returns `true` if the error kind is `MalformedTimestampQueryHttpDateError::ValidationException`.
         949  +
    /* ServerOperationErrorGenerator.kt:88 */
         950  +
    pub fn is_validation_exception(&self) -> bool {
         951  +
        /* ServerOperationErrorGenerator.kt:89 */
         952  +
        matches!(
         953  +
            &self,
         954  +
            MalformedTimestampQueryHttpDateError::ValidationException(_)
         955  +
        )
         956  +
        /* ServerOperationErrorGenerator.kt:88 */
         957  +
    }
         958  +
    /* ServerOperationErrorGenerator.kt:92 */
         959  +
    /// Returns the error name string by matching the correct variant.
         960  +
    /* ServerOperationErrorGenerator.kt:93 */
         961  +
    pub fn name(&self) -> &'static str {
         962  +
        /* ServerOperationErrorGenerator.kt:139 */
         963  +
        match &self {
         964  +
            /* ServerOperationErrorGenerator.kt:142 */
         965  +
            MalformedTimestampQueryHttpDateError::ValidationException(_inner) =>
         966  +
            /* ServerOperationErrorGenerator.kt:95 */
         967  +
            {
         968  +
                _inner.name()
         969  +
            }
         970  +
            /* ServerOperationErrorGenerator.kt:139 */
         971  +
        }
         972  +
        /* ServerOperationErrorGenerator.kt:93 */
         973  +
    }
         974  +
    /* ServerOperationErrorGenerator.kt:83 */
         975  +
}
         976  +
/* ServerOperationErrorGenerator.kt:100 */
         977  +
impl ::std::error::Error for MalformedTimestampQueryHttpDateError {
         978  +
    /* ServerOperationErrorGenerator.kt:101 */
         979  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         980  +
        /* ServerOperationErrorGenerator.kt:139 */
         981  +
        match &self {
         982  +
            /* ServerOperationErrorGenerator.kt:142 */
         983  +
            MalformedTimestampQueryHttpDateError::ValidationException(_inner) =>
         984  +
            /* ServerOperationErrorGenerator.kt:103 */
         985  +
            {
         986  +
                Some(_inner)
         987  +
            }
         988  +
            /* ServerOperationErrorGenerator.kt:139 */
         989  +
        }
         990  +
        /* ServerOperationErrorGenerator.kt:101 */
         991  +
    }
         992  +
    /* ServerOperationErrorGenerator.kt:100 */
         993  +
}
         994  +
/* ServerOperationErrorGenerator.kt:110 */
         995  +
impl ::std::convert::From<crate::error::ValidationException>
         996  +
    for crate::error::MalformedTimestampQueryHttpDateError
         997  +
{
         998  +
    /* ServerOperationErrorGenerator.kt:111 */
         999  +
    fn from(
        1000  +
        variant: crate::error::ValidationException,
        1001  +
    ) -> crate::error::MalformedTimestampQueryHttpDateError {
        1002  +
        /* ServerOperationErrorGenerator.kt:112 */
        1003  +
        Self::ValidationException(variant)
        1004  +
        /* ServerOperationErrorGenerator.kt:111 */
        1005  +
    }
        1006  +
    /* ServerOperationErrorGenerator.kt:110 */
        1007  +
}
        1008  +
        1009  +
/* ServerOperationErrorGenerator.kt:63 */
        1010  +
/// Error type for the `MalformedTimestampQueryDefault` operation.
        1011  +
/* ServerOperationErrorGenerator.kt:64 */
        1012  +
/// Each variant represents an error that can occur for the `MalformedTimestampQueryDefault` operation.
        1013  +
/* RustType.kt:534 */
        1014  +
#[derive(::std::fmt::Debug)]
        1015  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampQueryDefaultError {
        1016  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1017  +
    /* ServerOperationErrorGenerator.kt:71 */
        1018  +
    ValidationException(crate::error::ValidationException),
        1019  +
    /* ServerOperationErrorGenerator.kt:66 */
        1020  +
}
        1021  +
/* ServerOperationErrorGenerator.kt:75 */
        1022  +
impl ::std::fmt::Display for MalformedTimestampQueryDefaultError {
        1023  +
    /* ServerOperationErrorGenerator.kt:76 */
        1024  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1025  +
        /* ServerOperationErrorGenerator.kt:139 */
        1026  +
        match &self {
        1027  +
            /* ServerOperationErrorGenerator.kt:142 */
        1028  +
            MalformedTimestampQueryDefaultError::ValidationException(_inner) =>
        1029  +
            /* ServerOperationErrorGenerator.kt:78 */
        1030  +
            {
        1031  +
                _inner.fmt(f)
        1032  +
            }
        1033  +
            /* ServerOperationErrorGenerator.kt:139 */
        1034  +
        }
        1035  +
        /* ServerOperationErrorGenerator.kt:76 */
        1036  +
    }
        1037  +
    /* ServerOperationErrorGenerator.kt:75 */
        1038  +
}
        1039  +
/* ServerOperationErrorGenerator.kt:83 */
        1040  +
impl MalformedTimestampQueryDefaultError {
        1041  +
    /* ServerOperationErrorGenerator.kt:87 */
        1042  +
    /// Returns `true` if the error kind is `MalformedTimestampQueryDefaultError::ValidationException`.
        1043  +
    /* ServerOperationErrorGenerator.kt:88 */
        1044  +
    pub fn is_validation_exception(&self) -> bool {
        1045  +
        /* ServerOperationErrorGenerator.kt:89 */
        1046  +
        matches!(
        1047  +
            &self,
        1048  +
            MalformedTimestampQueryDefaultError::ValidationException(_)
        1049  +
        )
        1050  +
        /* ServerOperationErrorGenerator.kt:88 */
        1051  +
    }
        1052  +
    /* ServerOperationErrorGenerator.kt:92 */
        1053  +
    /// Returns the error name string by matching the correct variant.
        1054  +
    /* ServerOperationErrorGenerator.kt:93 */
        1055  +
    pub fn name(&self) -> &'static str {
        1056  +
        /* ServerOperationErrorGenerator.kt:139 */
        1057  +
        match &self {
        1058  +
            /* ServerOperationErrorGenerator.kt:142 */
        1059  +
            MalformedTimestampQueryDefaultError::ValidationException(_inner) =>
        1060  +
            /* ServerOperationErrorGenerator.kt:95 */
        1061  +
            {
        1062  +
                _inner.name()
        1063  +
            }
        1064  +
            /* ServerOperationErrorGenerator.kt:139 */
        1065  +
        }
        1066  +
        /* ServerOperationErrorGenerator.kt:93 */
        1067  +
    }
        1068  +
    /* ServerOperationErrorGenerator.kt:83 */
        1069  +
}
        1070  +
/* ServerOperationErrorGenerator.kt:100 */
        1071  +
impl ::std::error::Error for MalformedTimestampQueryDefaultError {
        1072  +
    /* ServerOperationErrorGenerator.kt:101 */
        1073  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1074  +
        /* ServerOperationErrorGenerator.kt:139 */
        1075  +
        match &self {
        1076  +
            /* ServerOperationErrorGenerator.kt:142 */
        1077  +
            MalformedTimestampQueryDefaultError::ValidationException(_inner) =>
        1078  +
            /* ServerOperationErrorGenerator.kt:103 */
        1079  +
            {
        1080  +
                Some(_inner)
        1081  +
            }
        1082  +
            /* ServerOperationErrorGenerator.kt:139 */
        1083  +
        }
        1084  +
        /* ServerOperationErrorGenerator.kt:101 */
        1085  +
    }
        1086  +
    /* ServerOperationErrorGenerator.kt:100 */
        1087  +
}
        1088  +
/* ServerOperationErrorGenerator.kt:110 */
        1089  +
impl ::std::convert::From<crate::error::ValidationException>
        1090  +
    for crate::error::MalformedTimestampQueryDefaultError
        1091  +
{
        1092  +
    /* ServerOperationErrorGenerator.kt:111 */
        1093  +
    fn from(
        1094  +
        variant: crate::error::ValidationException,
        1095  +
    ) -> crate::error::MalformedTimestampQueryDefaultError {
        1096  +
        /* ServerOperationErrorGenerator.kt:112 */
        1097  +
        Self::ValidationException(variant)
        1098  +
        /* ServerOperationErrorGenerator.kt:111 */
        1099  +
    }
        1100  +
    /* ServerOperationErrorGenerator.kt:110 */
        1101  +
}
        1102  +
        1103  +
/* ServerOperationErrorGenerator.kt:63 */
        1104  +
/// Error type for the `MalformedTimestampPathEpoch` operation.
        1105  +
/* ServerOperationErrorGenerator.kt:64 */
        1106  +
/// Each variant represents an error that can occur for the `MalformedTimestampPathEpoch` operation.
        1107  +
/* RustType.kt:534 */
        1108  +
#[derive(::std::fmt::Debug)]
        1109  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampPathEpochError {
        1110  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1111  +
    /* ServerOperationErrorGenerator.kt:71 */
        1112  +
    ValidationException(crate::error::ValidationException),
        1113  +
    /* ServerOperationErrorGenerator.kt:66 */
        1114  +
}
        1115  +
/* ServerOperationErrorGenerator.kt:75 */
        1116  +
impl ::std::fmt::Display for MalformedTimestampPathEpochError {
        1117  +
    /* ServerOperationErrorGenerator.kt:76 */
        1118  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1119  +
        /* ServerOperationErrorGenerator.kt:139 */
        1120  +
        match &self {
        1121  +
            /* ServerOperationErrorGenerator.kt:142 */
        1122  +
            MalformedTimestampPathEpochError::ValidationException(_inner) =>
        1123  +
            /* ServerOperationErrorGenerator.kt:78 */
        1124  +
            {
        1125  +
                _inner.fmt(f)
        1126  +
            }
        1127  +
            /* ServerOperationErrorGenerator.kt:139 */
        1128  +
        }
        1129  +
        /* ServerOperationErrorGenerator.kt:76 */
        1130  +
    }
        1131  +
    /* ServerOperationErrorGenerator.kt:75 */
        1132  +
}
        1133  +
/* ServerOperationErrorGenerator.kt:83 */
        1134  +
impl MalformedTimestampPathEpochError {
        1135  +
    /* ServerOperationErrorGenerator.kt:87 */
        1136  +
    /// Returns `true` if the error kind is `MalformedTimestampPathEpochError::ValidationException`.
        1137  +
    /* ServerOperationErrorGenerator.kt:88 */
        1138  +
    pub fn is_validation_exception(&self) -> bool {
        1139  +
        /* ServerOperationErrorGenerator.kt:89 */
        1140  +
        matches!(
        1141  +
            &self,
        1142  +
            MalformedTimestampPathEpochError::ValidationException(_)
        1143  +
        )
        1144  +
        /* ServerOperationErrorGenerator.kt:88 */
        1145  +
    }
        1146  +
    /* ServerOperationErrorGenerator.kt:92 */
        1147  +
    /// Returns the error name string by matching the correct variant.
        1148  +
    /* ServerOperationErrorGenerator.kt:93 */
        1149  +
    pub fn name(&self) -> &'static str {
        1150  +
        /* ServerOperationErrorGenerator.kt:139 */
        1151  +
        match &self {
        1152  +
            /* ServerOperationErrorGenerator.kt:142 */
        1153  +
            MalformedTimestampPathEpochError::ValidationException(_inner) =>
        1154  +
            /* ServerOperationErrorGenerator.kt:95 */
        1155  +
            {
        1156  +
                _inner.name()
        1157  +
            }
        1158  +
            /* ServerOperationErrorGenerator.kt:139 */
        1159  +
        }
        1160  +
        /* ServerOperationErrorGenerator.kt:93 */
        1161  +
    }
        1162  +
    /* ServerOperationErrorGenerator.kt:83 */
        1163  +
}
        1164  +
/* ServerOperationErrorGenerator.kt:100 */
        1165  +
impl ::std::error::Error for MalformedTimestampPathEpochError {
        1166  +
    /* ServerOperationErrorGenerator.kt:101 */
        1167  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1168  +
        /* ServerOperationErrorGenerator.kt:139 */
        1169  +
        match &self {
        1170  +
            /* ServerOperationErrorGenerator.kt:142 */
        1171  +
            MalformedTimestampPathEpochError::ValidationException(_inner) =>
        1172  +
            /* ServerOperationErrorGenerator.kt:103 */
        1173  +
            {
        1174  +
                Some(_inner)
        1175  +
            }
        1176  +
            /* ServerOperationErrorGenerator.kt:139 */
        1177  +
        }
        1178  +
        /* ServerOperationErrorGenerator.kt:101 */
        1179  +
    }
        1180  +
    /* ServerOperationErrorGenerator.kt:100 */
        1181  +
}
        1182  +
/* ServerOperationErrorGenerator.kt:110 */
        1183  +
impl ::std::convert::From<crate::error::ValidationException>
        1184  +
    for crate::error::MalformedTimestampPathEpochError
        1185  +
{
        1186  +
    /* ServerOperationErrorGenerator.kt:111 */
        1187  +
    fn from(
        1188  +
        variant: crate::error::ValidationException,
        1189  +
    ) -> crate::error::MalformedTimestampPathEpochError {
        1190  +
        /* ServerOperationErrorGenerator.kt:112 */
        1191  +
        Self::ValidationException(variant)
        1192  +
        /* ServerOperationErrorGenerator.kt:111 */
        1193  +
    }
        1194  +
    /* ServerOperationErrorGenerator.kt:110 */
        1195  +
}
        1196  +
        1197  +
/* ServerOperationErrorGenerator.kt:63 */
        1198  +
/// Error type for the `MalformedTimestampPathHttpDate` operation.
        1199  +
/* ServerOperationErrorGenerator.kt:64 */
        1200  +
/// Each variant represents an error that can occur for the `MalformedTimestampPathHttpDate` operation.
        1201  +
/* RustType.kt:534 */
        1202  +
#[derive(::std::fmt::Debug)]
        1203  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampPathHttpDateError {
        1204  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1205  +
    /* ServerOperationErrorGenerator.kt:71 */
        1206  +
    ValidationException(crate::error::ValidationException),
        1207  +
    /* ServerOperationErrorGenerator.kt:66 */
        1208  +
}
        1209  +
/* ServerOperationErrorGenerator.kt:75 */
        1210  +
impl ::std::fmt::Display for MalformedTimestampPathHttpDateError {
        1211  +
    /* ServerOperationErrorGenerator.kt:76 */
        1212  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1213  +
        /* ServerOperationErrorGenerator.kt:139 */
        1214  +
        match &self {
        1215  +
            /* ServerOperationErrorGenerator.kt:142 */
        1216  +
            MalformedTimestampPathHttpDateError::ValidationException(_inner) =>
        1217  +
            /* ServerOperationErrorGenerator.kt:78 */
        1218  +
            {
        1219  +
                _inner.fmt(f)
        1220  +
            }
        1221  +
            /* ServerOperationErrorGenerator.kt:139 */
        1222  +
        }
        1223  +
        /* ServerOperationErrorGenerator.kt:76 */
        1224  +
    }
        1225  +
    /* ServerOperationErrorGenerator.kt:75 */
        1226  +
}
        1227  +
/* ServerOperationErrorGenerator.kt:83 */
        1228  +
impl MalformedTimestampPathHttpDateError {
        1229  +
    /* ServerOperationErrorGenerator.kt:87 */
        1230  +
    /// Returns `true` if the error kind is `MalformedTimestampPathHttpDateError::ValidationException`.
        1231  +
    /* ServerOperationErrorGenerator.kt:88 */
        1232  +
    pub fn is_validation_exception(&self) -> bool {
        1233  +
        /* ServerOperationErrorGenerator.kt:89 */
        1234  +
        matches!(
        1235  +
            &self,
        1236  +
            MalformedTimestampPathHttpDateError::ValidationException(_)
        1237  +
        )
        1238  +
        /* ServerOperationErrorGenerator.kt:88 */
        1239  +
    }
        1240  +
    /* ServerOperationErrorGenerator.kt:92 */
        1241  +
    /// Returns the error name string by matching the correct variant.
        1242  +
    /* ServerOperationErrorGenerator.kt:93 */
        1243  +
    pub fn name(&self) -> &'static str {
        1244  +
        /* ServerOperationErrorGenerator.kt:139 */
        1245  +
        match &self {
        1246  +
            /* ServerOperationErrorGenerator.kt:142 */
        1247  +
            MalformedTimestampPathHttpDateError::ValidationException(_inner) =>
        1248  +
            /* ServerOperationErrorGenerator.kt:95 */
        1249  +
            {
        1250  +
                _inner.name()
        1251  +
            }
        1252  +
            /* ServerOperationErrorGenerator.kt:139 */
        1253  +
        }
        1254  +
        /* ServerOperationErrorGenerator.kt:93 */
        1255  +
    }
        1256  +
    /* ServerOperationErrorGenerator.kt:83 */
        1257  +
}
        1258  +
/* ServerOperationErrorGenerator.kt:100 */
        1259  +
impl ::std::error::Error for MalformedTimestampPathHttpDateError {
        1260  +
    /* ServerOperationErrorGenerator.kt:101 */
        1261  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1262  +
        /* ServerOperationErrorGenerator.kt:139 */
        1263  +
        match &self {
        1264  +
            /* ServerOperationErrorGenerator.kt:142 */
        1265  +
            MalformedTimestampPathHttpDateError::ValidationException(_inner) =>
        1266  +
            /* ServerOperationErrorGenerator.kt:103 */
        1267  +
            {
        1268  +
                Some(_inner)
        1269  +
            }
        1270  +
            /* ServerOperationErrorGenerator.kt:139 */
        1271  +
        }
        1272  +
        /* ServerOperationErrorGenerator.kt:101 */
        1273  +
    }
        1274  +
    /* ServerOperationErrorGenerator.kt:100 */
        1275  +
}
        1276  +
/* ServerOperationErrorGenerator.kt:110 */
        1277  +
impl ::std::convert::From<crate::error::ValidationException>
        1278  +
    for crate::error::MalformedTimestampPathHttpDateError
        1279  +
{
        1280  +
    /* ServerOperationErrorGenerator.kt:111 */
        1281  +
    fn from(
        1282  +
        variant: crate::error::ValidationException,
        1283  +
    ) -> crate::error::MalformedTimestampPathHttpDateError {
        1284  +
        /* ServerOperationErrorGenerator.kt:112 */
        1285  +
        Self::ValidationException(variant)
        1286  +
        /* ServerOperationErrorGenerator.kt:111 */
        1287  +
    }
        1288  +
    /* ServerOperationErrorGenerator.kt:110 */
        1289  +
}
        1290  +
        1291  +
/* ServerOperationErrorGenerator.kt:63 */
        1292  +
/// Error type for the `MalformedTimestampPathDefault` operation.
        1293  +
/* ServerOperationErrorGenerator.kt:64 */
        1294  +
/// Each variant represents an error that can occur for the `MalformedTimestampPathDefault` operation.
        1295  +
/* RustType.kt:534 */
        1296  +
#[derive(::std::fmt::Debug)]
        1297  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampPathDefaultError {
        1298  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1299  +
    /* ServerOperationErrorGenerator.kt:71 */
        1300  +
    ValidationException(crate::error::ValidationException),
        1301  +
    /* ServerOperationErrorGenerator.kt:66 */
        1302  +
}
        1303  +
/* ServerOperationErrorGenerator.kt:75 */
        1304  +
impl ::std::fmt::Display for MalformedTimestampPathDefaultError {
        1305  +
    /* ServerOperationErrorGenerator.kt:76 */
        1306  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1307  +
        /* ServerOperationErrorGenerator.kt:139 */
        1308  +
        match &self {
        1309  +
            /* ServerOperationErrorGenerator.kt:142 */
        1310  +
            MalformedTimestampPathDefaultError::ValidationException(_inner) =>
        1311  +
            /* ServerOperationErrorGenerator.kt:78 */
        1312  +
            {
        1313  +
                _inner.fmt(f)
        1314  +
            }
        1315  +
            /* ServerOperationErrorGenerator.kt:139 */
        1316  +
        }
        1317  +
        /* ServerOperationErrorGenerator.kt:76 */
        1318  +
    }
        1319  +
    /* ServerOperationErrorGenerator.kt:75 */
        1320  +
}
        1321  +
/* ServerOperationErrorGenerator.kt:83 */
        1322  +
impl MalformedTimestampPathDefaultError {
        1323  +
    /* ServerOperationErrorGenerator.kt:87 */
        1324  +
    /// Returns `true` if the error kind is `MalformedTimestampPathDefaultError::ValidationException`.
        1325  +
    /* ServerOperationErrorGenerator.kt:88 */
        1326  +
    pub fn is_validation_exception(&self) -> bool {
        1327  +
        /* ServerOperationErrorGenerator.kt:89 */
        1328  +
        matches!(
        1329  +
            &self,
        1330  +
            MalformedTimestampPathDefaultError::ValidationException(_)
        1331  +
        )
        1332  +
        /* ServerOperationErrorGenerator.kt:88 */
        1333  +
    }
        1334  +
    /* ServerOperationErrorGenerator.kt:92 */
        1335  +
    /// Returns the error name string by matching the correct variant.
        1336  +
    /* ServerOperationErrorGenerator.kt:93 */
        1337  +
    pub fn name(&self) -> &'static str {
        1338  +
        /* ServerOperationErrorGenerator.kt:139 */
        1339  +
        match &self {
        1340  +
            /* ServerOperationErrorGenerator.kt:142 */
        1341  +
            MalformedTimestampPathDefaultError::ValidationException(_inner) =>
        1342  +
            /* ServerOperationErrorGenerator.kt:95 */
        1343  +
            {
        1344  +
                _inner.name()
        1345  +
            }
        1346  +
            /* ServerOperationErrorGenerator.kt:139 */
        1347  +
        }
        1348  +
        /* ServerOperationErrorGenerator.kt:93 */
        1349  +
    }
        1350  +
    /* ServerOperationErrorGenerator.kt:83 */
        1351  +
}
        1352  +
/* ServerOperationErrorGenerator.kt:100 */
        1353  +
impl ::std::error::Error for MalformedTimestampPathDefaultError {
        1354  +
    /* ServerOperationErrorGenerator.kt:101 */
        1355  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1356  +
        /* ServerOperationErrorGenerator.kt:139 */
        1357  +
        match &self {
        1358  +
            /* ServerOperationErrorGenerator.kt:142 */
        1359  +
            MalformedTimestampPathDefaultError::ValidationException(_inner) =>
        1360  +
            /* ServerOperationErrorGenerator.kt:103 */
        1361  +
            {
        1362  +
                Some(_inner)
        1363  +
            }
        1364  +
            /* ServerOperationErrorGenerator.kt:139 */
        1365  +
        }
        1366  +
        /* ServerOperationErrorGenerator.kt:101 */
        1367  +
    }
        1368  +
    /* ServerOperationErrorGenerator.kt:100 */
        1369  +
}
        1370  +
/* ServerOperationErrorGenerator.kt:110 */
        1371  +
impl ::std::convert::From<crate::error::ValidationException>
        1372  +
    for crate::error::MalformedTimestampPathDefaultError
        1373  +
{
        1374  +
    /* ServerOperationErrorGenerator.kt:111 */
        1375  +
    fn from(
        1376  +
        variant: crate::error::ValidationException,
        1377  +
    ) -> crate::error::MalformedTimestampPathDefaultError {
        1378  +
        /* ServerOperationErrorGenerator.kt:112 */
        1379  +
        Self::ValidationException(variant)
        1380  +
        /* ServerOperationErrorGenerator.kt:111 */
        1381  +
    }
        1382  +
    /* ServerOperationErrorGenerator.kt:110 */
        1383  +
}
        1384  +
        1385  +
/* ServerOperationErrorGenerator.kt:63 */
        1386  +
/// Error type for the `MalformedDouble` operation.
        1387  +
/* ServerOperationErrorGenerator.kt:64 */
        1388  +
/// Each variant represents an error that can occur for the `MalformedDouble` operation.
        1389  +
/* RustType.kt:534 */
        1390  +
#[derive(::std::fmt::Debug)]
        1391  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedDoubleError {
        1392  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1393  +
    /* ServerOperationErrorGenerator.kt:71 */
        1394  +
    ValidationException(crate::error::ValidationException),
        1395  +
    /* ServerOperationErrorGenerator.kt:66 */
        1396  +
}
        1397  +
/* ServerOperationErrorGenerator.kt:75 */
        1398  +
impl ::std::fmt::Display for MalformedDoubleError {
        1399  +
    /* ServerOperationErrorGenerator.kt:76 */
        1400  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1401  +
        /* ServerOperationErrorGenerator.kt:139 */
        1402  +
        match &self {
        1403  +
            /* ServerOperationErrorGenerator.kt:142 */
        1404  +
            MalformedDoubleError::ValidationException(_inner) =>
        1405  +
            /* ServerOperationErrorGenerator.kt:78 */
        1406  +
            {
        1407  +
                _inner.fmt(f)
        1408  +
            }
        1409  +
            /* ServerOperationErrorGenerator.kt:139 */
        1410  +
        }
        1411  +
        /* ServerOperationErrorGenerator.kt:76 */
        1412  +
    }
        1413  +
    /* ServerOperationErrorGenerator.kt:75 */
        1414  +
}
        1415  +
/* ServerOperationErrorGenerator.kt:83 */
        1416  +
impl MalformedDoubleError {
        1417  +
    /* ServerOperationErrorGenerator.kt:87 */
        1418  +
    /// Returns `true` if the error kind is `MalformedDoubleError::ValidationException`.
        1419  +
    /* ServerOperationErrorGenerator.kt:88 */
        1420  +
    pub fn is_validation_exception(&self) -> bool {
        1421  +
        /* ServerOperationErrorGenerator.kt:89 */
        1422  +
        matches!(&self, MalformedDoubleError::ValidationException(_))
        1423  +
        /* ServerOperationErrorGenerator.kt:88 */
        1424  +
    }
        1425  +
    /* ServerOperationErrorGenerator.kt:92 */
        1426  +
    /// Returns the error name string by matching the correct variant.
        1427  +
    /* ServerOperationErrorGenerator.kt:93 */
        1428  +
    pub fn name(&self) -> &'static str {
        1429  +
        /* ServerOperationErrorGenerator.kt:139 */
        1430  +
        match &self {
        1431  +
            /* ServerOperationErrorGenerator.kt:142 */
        1432  +
            MalformedDoubleError::ValidationException(_inner) =>
        1433  +
            /* ServerOperationErrorGenerator.kt:95 */
        1434  +
            {
        1435  +
                _inner.name()
        1436  +
            }
        1437  +
            /* ServerOperationErrorGenerator.kt:139 */
        1438  +
        }
        1439  +
        /* ServerOperationErrorGenerator.kt:93 */
        1440  +
    }
        1441  +
    /* ServerOperationErrorGenerator.kt:83 */
        1442  +
}
        1443  +
/* ServerOperationErrorGenerator.kt:100 */
        1444  +
impl ::std::error::Error for MalformedDoubleError {
        1445  +
    /* ServerOperationErrorGenerator.kt:101 */
        1446  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1447  +
        /* ServerOperationErrorGenerator.kt:139 */
        1448  +
        match &self {
        1449  +
            /* ServerOperationErrorGenerator.kt:142 */
        1450  +
            MalformedDoubleError::ValidationException(_inner) =>
        1451  +
            /* ServerOperationErrorGenerator.kt:103 */
        1452  +
            {
        1453  +
                Some(_inner)
        1454  +
            }
        1455  +
            /* ServerOperationErrorGenerator.kt:139 */
        1456  +
        }
        1457  +
        /* ServerOperationErrorGenerator.kt:101 */
        1458  +
    }
        1459  +
    /* ServerOperationErrorGenerator.kt:100 */
        1460  +
}
        1461  +
/* ServerOperationErrorGenerator.kt:110 */
        1462  +
impl ::std::convert::From<crate::error::ValidationException>
        1463  +
    for crate::error::MalformedDoubleError
        1464  +
{
        1465  +
    /* ServerOperationErrorGenerator.kt:111 */
        1466  +
    fn from(variant: crate::error::ValidationException) -> crate::error::MalformedDoubleError {
        1467  +
        /* ServerOperationErrorGenerator.kt:112 */
        1468  +
        Self::ValidationException(variant)
        1469  +
        /* ServerOperationErrorGenerator.kt:111 */
        1470  +
    }
        1471  +
    /* ServerOperationErrorGenerator.kt:110 */
        1472  +
}
        1473  +
        1474  +
/* ServerOperationErrorGenerator.kt:63 */
        1475  +
/// Error type for the `MalformedFloat` operation.
        1476  +
/* ServerOperationErrorGenerator.kt:64 */
        1477  +
/// Each variant represents an error that can occur for the `MalformedFloat` operation.
        1478  +
/* RustType.kt:534 */
        1479  +
#[derive(::std::fmt::Debug)]
        1480  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedFloatError {
        1481  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1482  +
    /* ServerOperationErrorGenerator.kt:71 */
        1483  +
    ValidationException(crate::error::ValidationException),
        1484  +
    /* ServerOperationErrorGenerator.kt:66 */
        1485  +
}
        1486  +
/* ServerOperationErrorGenerator.kt:75 */
        1487  +
impl ::std::fmt::Display for MalformedFloatError {
        1488  +
    /* ServerOperationErrorGenerator.kt:76 */
        1489  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1490  +
        /* ServerOperationErrorGenerator.kt:139 */
        1491  +
        match &self {
        1492  +
            /* ServerOperationErrorGenerator.kt:142 */
        1493  +
            MalformedFloatError::ValidationException(_inner) =>
        1494  +
            /* ServerOperationErrorGenerator.kt:78 */
        1495  +
            {
        1496  +
                _inner.fmt(f)
        1497  +
            }
        1498  +
            /* ServerOperationErrorGenerator.kt:139 */
        1499  +
        }
        1500  +
        /* ServerOperationErrorGenerator.kt:76 */
        1501  +
    }
        1502  +
    /* ServerOperationErrorGenerator.kt:75 */
        1503  +
}
        1504  +
/* ServerOperationErrorGenerator.kt:83 */
        1505  +
impl MalformedFloatError {
        1506  +
    /* ServerOperationErrorGenerator.kt:87 */
        1507  +
    /// Returns `true` if the error kind is `MalformedFloatError::ValidationException`.
        1508  +
    /* ServerOperationErrorGenerator.kt:88 */
        1509  +
    pub fn is_validation_exception(&self) -> bool {
        1510  +
        /* ServerOperationErrorGenerator.kt:89 */
        1511  +
        matches!(&self, MalformedFloatError::ValidationException(_))
        1512  +
        /* ServerOperationErrorGenerator.kt:88 */
        1513  +
    }
        1514  +
    /* ServerOperationErrorGenerator.kt:92 */
        1515  +
    /// Returns the error name string by matching the correct variant.
        1516  +
    /* ServerOperationErrorGenerator.kt:93 */
        1517  +
    pub fn name(&self) -> &'static str {
        1518  +
        /* ServerOperationErrorGenerator.kt:139 */
        1519  +
        match &self {
        1520  +
            /* ServerOperationErrorGenerator.kt:142 */
        1521  +
            MalformedFloatError::ValidationException(_inner) =>
        1522  +
            /* ServerOperationErrorGenerator.kt:95 */
        1523  +
            {
        1524  +
                _inner.name()
        1525  +
            }
        1526  +
            /* ServerOperationErrorGenerator.kt:139 */
        1527  +
        }
        1528  +
        /* ServerOperationErrorGenerator.kt:93 */
        1529  +
    }
        1530  +
    /* ServerOperationErrorGenerator.kt:83 */
        1531  +
}
        1532  +
/* ServerOperationErrorGenerator.kt:100 */
        1533  +
impl ::std::error::Error for MalformedFloatError {
        1534  +
    /* ServerOperationErrorGenerator.kt:101 */
        1535  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1536  +
        /* ServerOperationErrorGenerator.kt:139 */
        1537  +
        match &self {
        1538  +
            /* ServerOperationErrorGenerator.kt:142 */
        1539  +
            MalformedFloatError::ValidationException(_inner) =>
        1540  +
            /* ServerOperationErrorGenerator.kt:103 */
        1541  +
            {
        1542  +
                Some(_inner)
        1543  +
            }
        1544  +
            /* ServerOperationErrorGenerator.kt:139 */
        1545  +
        }
        1546  +
        /* ServerOperationErrorGenerator.kt:101 */
        1547  +
    }
        1548  +
    /* ServerOperationErrorGenerator.kt:100 */
        1549  +
}
        1550  +
/* ServerOperationErrorGenerator.kt:110 */
        1551  +
impl ::std::convert::From<crate::error::ValidationException> for crate::error::MalformedFloatError {
        1552  +
    /* ServerOperationErrorGenerator.kt:111 */
        1553  +
    fn from(variant: crate::error::ValidationException) -> crate::error::MalformedFloatError {
        1554  +
        /* ServerOperationErrorGenerator.kt:112 */
        1555  +
        Self::ValidationException(variant)
        1556  +
        /* ServerOperationErrorGenerator.kt:111 */
        1557  +
    }
        1558  +
    /* ServerOperationErrorGenerator.kt:110 */
        1559  +
}
        1560  +
        1561  +
/* ServerOperationErrorGenerator.kt:63 */
        1562  +
/// Error type for the `MalformedLong` operation.
        1563  +
/* ServerOperationErrorGenerator.kt:64 */
        1564  +
/// Each variant represents an error that can occur for the `MalformedLong` operation.
        1565  +
/* RustType.kt:534 */
        1566  +
#[derive(::std::fmt::Debug)]
        1567  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedLongError {
        1568  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1569  +
    /* ServerOperationErrorGenerator.kt:71 */
        1570  +
    ValidationException(crate::error::ValidationException),
        1571  +
    /* ServerOperationErrorGenerator.kt:66 */
        1572  +
}
        1573  +
/* ServerOperationErrorGenerator.kt:75 */
        1574  +
impl ::std::fmt::Display for MalformedLongError {
        1575  +
    /* ServerOperationErrorGenerator.kt:76 */
        1576  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1577  +
        /* ServerOperationErrorGenerator.kt:139 */
        1578  +
        match &self {
        1579  +
            /* ServerOperationErrorGenerator.kt:142 */
        1580  +
            MalformedLongError::ValidationException(_inner) =>
        1581  +
            /* ServerOperationErrorGenerator.kt:78 */
        1582  +
            {
        1583  +
                _inner.fmt(f)
        1584  +
            }
        1585  +
            /* ServerOperationErrorGenerator.kt:139 */
        1586  +
        }
        1587  +
        /* ServerOperationErrorGenerator.kt:76 */
        1588  +
    }
        1589  +
    /* ServerOperationErrorGenerator.kt:75 */
        1590  +
}
        1591  +
/* ServerOperationErrorGenerator.kt:83 */
        1592  +
impl MalformedLongError {
        1593  +
    /* ServerOperationErrorGenerator.kt:87 */
        1594  +
    /// Returns `true` if the error kind is `MalformedLongError::ValidationException`.
        1595  +
    /* ServerOperationErrorGenerator.kt:88 */
        1596  +
    pub fn is_validation_exception(&self) -> bool {
        1597  +
        /* ServerOperationErrorGenerator.kt:89 */
        1598  +
        matches!(&self, MalformedLongError::ValidationException(_))
        1599  +
        /* ServerOperationErrorGenerator.kt:88 */
        1600  +
    }
        1601  +
    /* ServerOperationErrorGenerator.kt:92 */
        1602  +
    /// Returns the error name string by matching the correct variant.
        1603  +
    /* ServerOperationErrorGenerator.kt:93 */
        1604  +
    pub fn name(&self) -> &'static str {
        1605  +
        /* ServerOperationErrorGenerator.kt:139 */
        1606  +
        match &self {
        1607  +
            /* ServerOperationErrorGenerator.kt:142 */
        1608  +
            MalformedLongError::ValidationException(_inner) =>
        1609  +
            /* ServerOperationErrorGenerator.kt:95 */
        1610  +
            {
        1611  +
                _inner.name()
        1612  +
            }
        1613  +
            /* ServerOperationErrorGenerator.kt:139 */
        1614  +
        }
        1615  +
        /* ServerOperationErrorGenerator.kt:93 */
        1616  +
    }
        1617  +
    /* ServerOperationErrorGenerator.kt:83 */
        1618  +
}
        1619  +
/* ServerOperationErrorGenerator.kt:100 */
        1620  +
impl ::std::error::Error for MalformedLongError {
        1621  +
    /* ServerOperationErrorGenerator.kt:101 */
        1622  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1623  +
        /* ServerOperationErrorGenerator.kt:139 */
        1624  +
        match &self {
        1625  +
            /* ServerOperationErrorGenerator.kt:142 */
        1626  +
            MalformedLongError::ValidationException(_inner) =>
        1627  +
            /* ServerOperationErrorGenerator.kt:103 */
        1628  +
            {
        1629  +
                Some(_inner)
        1630  +
            }
        1631  +
            /* ServerOperationErrorGenerator.kt:139 */
        1632  +
        }
        1633  +
        /* ServerOperationErrorGenerator.kt:101 */
        1634  +
    }
        1635  +
    /* ServerOperationErrorGenerator.kt:100 */
        1636  +
}
        1637  +
/* ServerOperationErrorGenerator.kt:110 */
        1638  +
impl ::std::convert::From<crate::error::ValidationException> for crate::error::MalformedLongError {
        1639  +
    /* ServerOperationErrorGenerator.kt:111 */
        1640  +
    fn from(variant: crate::error::ValidationException) -> crate::error::MalformedLongError {
        1641  +
        /* ServerOperationErrorGenerator.kt:112 */
        1642  +
        Self::ValidationException(variant)
        1643  +
        /* ServerOperationErrorGenerator.kt:111 */
        1644  +
    }
        1645  +
    /* ServerOperationErrorGenerator.kt:110 */
        1646  +
}
        1647  +
        1648  +
/* ServerOperationErrorGenerator.kt:63 */
        1649  +
/// Error type for the `MalformedShort` operation.
        1650  +
/* ServerOperationErrorGenerator.kt:64 */
        1651  +
/// Each variant represents an error that can occur for the `MalformedShort` operation.
        1652  +
/* RustType.kt:534 */
        1653  +
#[derive(::std::fmt::Debug)]
        1654  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedShortError {
        1655  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1656  +
    /* ServerOperationErrorGenerator.kt:71 */
        1657  +
    ValidationException(crate::error::ValidationException),
        1658  +
    /* ServerOperationErrorGenerator.kt:66 */
        1659  +
}
        1660  +
/* ServerOperationErrorGenerator.kt:75 */
        1661  +
impl ::std::fmt::Display for MalformedShortError {
        1662  +
    /* ServerOperationErrorGenerator.kt:76 */
        1663  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1664  +
        /* ServerOperationErrorGenerator.kt:139 */
        1665  +
        match &self {
        1666  +
            /* ServerOperationErrorGenerator.kt:142 */
        1667  +
            MalformedShortError::ValidationException(_inner) =>
        1668  +
            /* ServerOperationErrorGenerator.kt:78 */
        1669  +
            {
        1670  +
                _inner.fmt(f)
        1671  +
            }
        1672  +
            /* ServerOperationErrorGenerator.kt:139 */
        1673  +
        }
        1674  +
        /* ServerOperationErrorGenerator.kt:76 */
        1675  +
    }
        1676  +
    /* ServerOperationErrorGenerator.kt:75 */
        1677  +
}
        1678  +
/* ServerOperationErrorGenerator.kt:83 */
        1679  +
impl MalformedShortError {
        1680  +
    /* ServerOperationErrorGenerator.kt:87 */
        1681  +
    /// Returns `true` if the error kind is `MalformedShortError::ValidationException`.
        1682  +
    /* ServerOperationErrorGenerator.kt:88 */
        1683  +
    pub fn is_validation_exception(&self) -> bool {
        1684  +
        /* ServerOperationErrorGenerator.kt:89 */
        1685  +
        matches!(&self, MalformedShortError::ValidationException(_))
        1686  +
        /* ServerOperationErrorGenerator.kt:88 */
        1687  +
    }
        1688  +
    /* ServerOperationErrorGenerator.kt:92 */
        1689  +
    /// Returns the error name string by matching the correct variant.
        1690  +
    /* ServerOperationErrorGenerator.kt:93 */
        1691  +
    pub fn name(&self) -> &'static str {
        1692  +
        /* ServerOperationErrorGenerator.kt:139 */
        1693  +
        match &self {
        1694  +
            /* ServerOperationErrorGenerator.kt:142 */
        1695  +
            MalformedShortError::ValidationException(_inner) =>
        1696  +
            /* ServerOperationErrorGenerator.kt:95 */
        1697  +
            {
        1698  +
                _inner.name()
        1699  +
            }
        1700  +
            /* ServerOperationErrorGenerator.kt:139 */
        1701  +
        }
        1702  +
        /* ServerOperationErrorGenerator.kt:93 */
        1703  +
    }
        1704  +
    /* ServerOperationErrorGenerator.kt:83 */
        1705  +
}
        1706  +
/* ServerOperationErrorGenerator.kt:100 */
        1707  +
impl ::std::error::Error for MalformedShortError {
        1708  +
    /* ServerOperationErrorGenerator.kt:101 */
        1709  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1710  +
        /* ServerOperationErrorGenerator.kt:139 */
        1711  +
        match &self {
        1712  +
            /* ServerOperationErrorGenerator.kt:142 */
        1713  +
            MalformedShortError::ValidationException(_inner) =>
        1714  +
            /* ServerOperationErrorGenerator.kt:103 */
        1715  +
            {
        1716  +
                Some(_inner)
        1717  +
            }
        1718  +
            /* ServerOperationErrorGenerator.kt:139 */
        1719  +
        }
        1720  +
        /* ServerOperationErrorGenerator.kt:101 */
        1721  +
    }
        1722  +
    /* ServerOperationErrorGenerator.kt:100 */
        1723  +
}
        1724  +
/* ServerOperationErrorGenerator.kt:110 */
        1725  +
impl ::std::convert::From<crate::error::ValidationException> for crate::error::MalformedShortError {
        1726  +
    /* ServerOperationErrorGenerator.kt:111 */
        1727  +
    fn from(variant: crate::error::ValidationException) -> crate::error::MalformedShortError {
        1728  +
        /* ServerOperationErrorGenerator.kt:112 */
        1729  +
        Self::ValidationException(variant)
        1730  +
        /* ServerOperationErrorGenerator.kt:111 */
        1731  +
    }
        1732  +
    /* ServerOperationErrorGenerator.kt:110 */
        1733  +
}
        1734  +
        1735  +
/* ServerOperationErrorGenerator.kt:63 */
        1736  +
/// Error type for the `MalformedByte` operation.
        1737  +
/* ServerOperationErrorGenerator.kt:64 */
        1738  +
/// Each variant represents an error that can occur for the `MalformedByte` operation.
        1739  +
/* RustType.kt:534 */
        1740  +
#[derive(::std::fmt::Debug)]
        1741  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedByteError {
        1742  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1743  +
    /* ServerOperationErrorGenerator.kt:71 */
        1744  +
    ValidationException(crate::error::ValidationException),
        1745  +
    /* ServerOperationErrorGenerator.kt:66 */
        1746  +
}
        1747  +
/* ServerOperationErrorGenerator.kt:75 */
        1748  +
impl ::std::fmt::Display for MalformedByteError {
        1749  +
    /* ServerOperationErrorGenerator.kt:76 */
        1750  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1751  +
        /* ServerOperationErrorGenerator.kt:139 */
        1752  +
        match &self {
        1753  +
            /* ServerOperationErrorGenerator.kt:142 */
        1754  +
            MalformedByteError::ValidationException(_inner) =>
        1755  +
            /* ServerOperationErrorGenerator.kt:78 */
        1756  +
            {
        1757  +
                _inner.fmt(f)
        1758  +
            }
        1759  +
            /* ServerOperationErrorGenerator.kt:139 */
        1760  +
        }
        1761  +
        /* ServerOperationErrorGenerator.kt:76 */
        1762  +
    }
        1763  +
    /* ServerOperationErrorGenerator.kt:75 */
        1764  +
}
        1765  +
/* ServerOperationErrorGenerator.kt:83 */
        1766  +
impl MalformedByteError {
        1767  +
    /* ServerOperationErrorGenerator.kt:87 */
        1768  +
    /// Returns `true` if the error kind is `MalformedByteError::ValidationException`.
        1769  +
    /* ServerOperationErrorGenerator.kt:88 */
        1770  +
    pub fn is_validation_exception(&self) -> bool {
        1771  +
        /* ServerOperationErrorGenerator.kt:89 */
        1772  +
        matches!(&self, MalformedByteError::ValidationException(_))
        1773  +
        /* ServerOperationErrorGenerator.kt:88 */
        1774  +
    }
        1775  +
    /* ServerOperationErrorGenerator.kt:92 */
        1776  +
    /// Returns the error name string by matching the correct variant.
        1777  +
    /* ServerOperationErrorGenerator.kt:93 */
        1778  +
    pub fn name(&self) -> &'static str {
        1779  +
        /* ServerOperationErrorGenerator.kt:139 */
        1780  +
        match &self {
        1781  +
            /* ServerOperationErrorGenerator.kt:142 */
        1782  +
            MalformedByteError::ValidationException(_inner) =>
        1783  +
            /* ServerOperationErrorGenerator.kt:95 */
        1784  +
            {
        1785  +
                _inner.name()
        1786  +
            }
        1787  +
            /* ServerOperationErrorGenerator.kt:139 */
        1788  +
        }
        1789  +
        /* ServerOperationErrorGenerator.kt:93 */
        1790  +
    }
        1791  +
    /* ServerOperationErrorGenerator.kt:83 */
        1792  +
}
        1793  +
/* ServerOperationErrorGenerator.kt:100 */
        1794  +
impl ::std::error::Error for MalformedByteError {
        1795  +
    /* ServerOperationErrorGenerator.kt:101 */
        1796  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1797  +
        /* ServerOperationErrorGenerator.kt:139 */
        1798  +
        match &self {
        1799  +
            /* ServerOperationErrorGenerator.kt:142 */
        1800  +
            MalformedByteError::ValidationException(_inner) =>
        1801  +
            /* ServerOperationErrorGenerator.kt:103 */
        1802  +
            {
        1803  +
                Some(_inner)
        1804  +
            }
        1805  +
            /* ServerOperationErrorGenerator.kt:139 */
        1806  +
        }
        1807  +
        /* ServerOperationErrorGenerator.kt:101 */
        1808  +
    }
        1809  +
    /* ServerOperationErrorGenerator.kt:100 */
        1810  +
}
        1811  +
/* ServerOperationErrorGenerator.kt:110 */
        1812  +
impl ::std::convert::From<crate::error::ValidationException> for crate::error::MalformedByteError {
        1813  +
    /* ServerOperationErrorGenerator.kt:111 */
        1814  +
    fn from(variant: crate::error::ValidationException) -> crate::error::MalformedByteError {
        1815  +
        /* ServerOperationErrorGenerator.kt:112 */
        1816  +
        Self::ValidationException(variant)
        1817  +
        /* ServerOperationErrorGenerator.kt:111 */
        1818  +
    }
        1819  +
    /* ServerOperationErrorGenerator.kt:110 */
        1820  +
}
        1821  +
        1822  +
/* ServerOperationErrorGenerator.kt:63 */
        1823  +
/// Error type for the `MalformedBoolean` operation.
        1824  +
/* ServerOperationErrorGenerator.kt:64 */
        1825  +
/// Each variant represents an error that can occur for the `MalformedBoolean` operation.
        1826  +
/* RustType.kt:534 */
        1827  +
#[derive(::std::fmt::Debug)]
        1828  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedBooleanError {
        1829  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1830  +
    /* ServerOperationErrorGenerator.kt:71 */
        1831  +
    ValidationException(crate::error::ValidationException),
        1832  +
    /* ServerOperationErrorGenerator.kt:66 */
        1833  +
}
        1834  +
/* ServerOperationErrorGenerator.kt:75 */
        1835  +
impl ::std::fmt::Display for MalformedBooleanError {
        1836  +
    /* ServerOperationErrorGenerator.kt:76 */
        1837  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1838  +
        /* ServerOperationErrorGenerator.kt:139 */
        1839  +
        match &self {
        1840  +
            /* ServerOperationErrorGenerator.kt:142 */
        1841  +
            MalformedBooleanError::ValidationException(_inner) =>
        1842  +
            /* ServerOperationErrorGenerator.kt:78 */
        1843  +
            {
        1844  +
                _inner.fmt(f)
        1845  +
            }
        1846  +
            /* ServerOperationErrorGenerator.kt:139 */
        1847  +
        }
        1848  +
        /* ServerOperationErrorGenerator.kt:76 */
        1849  +
    }
        1850  +
    /* ServerOperationErrorGenerator.kt:75 */
        1851  +
}
        1852  +
/* ServerOperationErrorGenerator.kt:83 */
        1853  +
impl MalformedBooleanError {
        1854  +
    /* ServerOperationErrorGenerator.kt:87 */
        1855  +
    /// Returns `true` if the error kind is `MalformedBooleanError::ValidationException`.
        1856  +
    /* ServerOperationErrorGenerator.kt:88 */
        1857  +
    pub fn is_validation_exception(&self) -> bool {
        1858  +
        /* ServerOperationErrorGenerator.kt:89 */
        1859  +
        matches!(&self, MalformedBooleanError::ValidationException(_))
        1860  +
        /* ServerOperationErrorGenerator.kt:88 */
        1861  +
    }
        1862  +
    /* ServerOperationErrorGenerator.kt:92 */
        1863  +
    /// Returns the error name string by matching the correct variant.
        1864  +
    /* ServerOperationErrorGenerator.kt:93 */
        1865  +
    pub fn name(&self) -> &'static str {
        1866  +
        /* ServerOperationErrorGenerator.kt:139 */
        1867  +
        match &self {
        1868  +
            /* ServerOperationErrorGenerator.kt:142 */
        1869  +
            MalformedBooleanError::ValidationException(_inner) =>
        1870  +
            /* ServerOperationErrorGenerator.kt:95 */
        1871  +
            {
        1872  +
                _inner.name()
        1873  +
            }
        1874  +
            /* ServerOperationErrorGenerator.kt:139 */
        1875  +
        }
        1876  +
        /* ServerOperationErrorGenerator.kt:93 */
        1877  +
    }
        1878  +
    /* ServerOperationErrorGenerator.kt:83 */
        1879  +
}
        1880  +
/* ServerOperationErrorGenerator.kt:100 */
        1881  +
impl ::std::error::Error for MalformedBooleanError {
        1882  +
    /* ServerOperationErrorGenerator.kt:101 */
        1883  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1884  +
        /* ServerOperationErrorGenerator.kt:139 */
        1885  +
        match &self {
        1886  +
            /* ServerOperationErrorGenerator.kt:142 */
        1887  +
            MalformedBooleanError::ValidationException(_inner) =>
        1888  +
            /* ServerOperationErrorGenerator.kt:103 */
        1889  +
            {
        1890  +
                Some(_inner)
        1891  +
            }
        1892  +
            /* ServerOperationErrorGenerator.kt:139 */
        1893  +
        }
        1894  +
        /* ServerOperationErrorGenerator.kt:101 */
        1895  +
    }
        1896  +
    /* ServerOperationErrorGenerator.kt:100 */
        1897  +
}
        1898  +
/* ServerOperationErrorGenerator.kt:110 */
        1899  +
impl ::std::convert::From<crate::error::ValidationException>
        1900  +
    for crate::error::MalformedBooleanError
        1901  +
{
        1902  +
    /* ServerOperationErrorGenerator.kt:111 */
        1903  +
    fn from(variant: crate::error::ValidationException) -> crate::error::MalformedBooleanError {
        1904  +
        /* ServerOperationErrorGenerator.kt:112 */
        1905  +
        Self::ValidationException(variant)
        1906  +
        /* ServerOperationErrorGenerator.kt:111 */
        1907  +
    }
        1908  +
    /* ServerOperationErrorGenerator.kt:110 */
        1909  +
}
        1910  +
        1911  +
/* ServerOperationErrorGenerator.kt:63 */
        1912  +
/// Error type for the `MalformedInteger` operation.
        1913  +
/* ServerOperationErrorGenerator.kt:64 */
        1914  +
/// Each variant represents an error that can occur for the `MalformedInteger` operation.
        1915  +
/* RustType.kt:534 */
        1916  +
#[derive(::std::fmt::Debug)]
        1917  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedIntegerError {
        1918  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1919  +
    /* ServerOperationErrorGenerator.kt:71 */
        1920  +
    ValidationException(crate::error::ValidationException),
        1921  +
    /* ServerOperationErrorGenerator.kt:66 */
        1922  +
}
        1923  +
/* ServerOperationErrorGenerator.kt:75 */
        1924  +
impl ::std::fmt::Display for MalformedIntegerError {
        1925  +
    /* ServerOperationErrorGenerator.kt:76 */
        1926  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1927  +
        /* ServerOperationErrorGenerator.kt:139 */
        1928  +
        match &self {
        1929  +
            /* ServerOperationErrorGenerator.kt:142 */
        1930  +
            MalformedIntegerError::ValidationException(_inner) =>
        1931  +
            /* ServerOperationErrorGenerator.kt:78 */
        1932  +
            {
        1933  +
                _inner.fmt(f)
        1934  +
            }
        1935  +
            /* ServerOperationErrorGenerator.kt:139 */
        1936  +
        }
        1937  +
        /* ServerOperationErrorGenerator.kt:76 */
        1938  +
    }
        1939  +
    /* ServerOperationErrorGenerator.kt:75 */
        1940  +
}
        1941  +
/* ServerOperationErrorGenerator.kt:83 */
        1942  +
impl MalformedIntegerError {
        1943  +
    /* ServerOperationErrorGenerator.kt:87 */
        1944  +
    /// Returns `true` if the error kind is `MalformedIntegerError::ValidationException`.
        1945  +
    /* ServerOperationErrorGenerator.kt:88 */
        1946  +
    pub fn is_validation_exception(&self) -> bool {
        1947  +
        /* ServerOperationErrorGenerator.kt:89 */
        1948  +
        matches!(&self, MalformedIntegerError::ValidationException(_))
        1949  +
        /* ServerOperationErrorGenerator.kt:88 */
        1950  +
    }
        1951  +
    /* ServerOperationErrorGenerator.kt:92 */
        1952  +
    /// Returns the error name string by matching the correct variant.
        1953  +
    /* ServerOperationErrorGenerator.kt:93 */
        1954  +
    pub fn name(&self) -> &'static str {
        1955  +
        /* ServerOperationErrorGenerator.kt:139 */
        1956  +
        match &self {
        1957  +
            /* ServerOperationErrorGenerator.kt:142 */
        1958  +
            MalformedIntegerError::ValidationException(_inner) =>
        1959  +
            /* ServerOperationErrorGenerator.kt:95 */
        1960  +
            {
        1961  +
                _inner.name()
        1962  +
            }
        1963  +
            /* ServerOperationErrorGenerator.kt:139 */
        1964  +
        }
        1965  +
        /* ServerOperationErrorGenerator.kt:93 */
        1966  +
    }
        1967  +
    /* ServerOperationErrorGenerator.kt:83 */
        1968  +
}
        1969  +
/* ServerOperationErrorGenerator.kt:100 */
        1970  +
impl ::std::error::Error for MalformedIntegerError {
        1971  +
    /* ServerOperationErrorGenerator.kt:101 */
        1972  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1973  +
        /* ServerOperationErrorGenerator.kt:139 */
        1974  +
        match &self {
        1975  +
            /* ServerOperationErrorGenerator.kt:142 */
        1976  +
            MalformedIntegerError::ValidationException(_inner) =>
        1977  +
            /* ServerOperationErrorGenerator.kt:103 */
        1978  +
            {
        1979  +
                Some(_inner)
        1980  +
            }
        1981  +
            /* ServerOperationErrorGenerator.kt:139 */
        1982  +
        }
        1983  +
        /* ServerOperationErrorGenerator.kt:101 */
        1984  +
    }
        1985  +
    /* ServerOperationErrorGenerator.kt:100 */
        1986  +
}
        1987  +
/* ServerOperationErrorGenerator.kt:110 */
        1988  +
impl ::std::convert::From<crate::error::ValidationException>
        1989  +
    for crate::error::MalformedIntegerError
        1990  +
{
        1991  +
    /* ServerOperationErrorGenerator.kt:111 */
        1992  +
    fn from(variant: crate::error::ValidationException) -> crate::error::MalformedIntegerError {
        1993  +
        /* ServerOperationErrorGenerator.kt:112 */
        1994  +
        Self::ValidationException(variant)
        1995  +
        /* ServerOperationErrorGenerator.kt:111 */
        1996  +
    }
        1997  +
    /* ServerOperationErrorGenerator.kt:110 */
        1998  +
}
        1999  +
        2000  +
/* ServerOperationErrorGenerator.kt:63 */
        2001  +
/// Error type for the `EndpointWithHostLabelOperation` operation.
        2002  +
/* ServerOperationErrorGenerator.kt:64 */
        2003  +
/// Each variant represents an error that can occur for the `EndpointWithHostLabelOperation` operation.
        2004  +
/* RustType.kt:534 */
        2005  +
#[derive(::std::fmt::Debug)]
        2006  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum EndpointWithHostLabelOperationError {
        2007  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        2008  +
    /* ServerOperationErrorGenerator.kt:71 */
        2009  +
    ValidationException(crate::error::ValidationException),
        2010  +
    /* ServerOperationErrorGenerator.kt:66 */
        2011  +
}
        2012  +
/* ServerOperationErrorGenerator.kt:75 */
        2013  +
impl ::std::fmt::Display for EndpointWithHostLabelOperationError {
        2014  +
    /* ServerOperationErrorGenerator.kt:76 */
        2015  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2016  +
        /* ServerOperationErrorGenerator.kt:139 */
        2017  +
        match &self {
        2018  +
            /* ServerOperationErrorGenerator.kt:142 */
        2019  +
            EndpointWithHostLabelOperationError::ValidationException(_inner) =>
        2020  +
            /* ServerOperationErrorGenerator.kt:78 */
        2021  +
            {
        2022  +
                _inner.fmt(f)
        2023  +
            }
        2024  +
            /* ServerOperationErrorGenerator.kt:139 */
        2025  +
        }
        2026  +
        /* ServerOperationErrorGenerator.kt:76 */
        2027  +
    }
        2028  +
    /* ServerOperationErrorGenerator.kt:75 */
        2029  +
}
        2030  +
/* ServerOperationErrorGenerator.kt:83 */
        2031  +
impl EndpointWithHostLabelOperationError {
        2032  +
    /* ServerOperationErrorGenerator.kt:87 */
        2033  +
    /// Returns `true` if the error kind is `EndpointWithHostLabelOperationError::ValidationException`.
        2034  +
    /* ServerOperationErrorGenerator.kt:88 */
        2035  +
    pub fn is_validation_exception(&self) -> bool {
        2036  +
        /* ServerOperationErrorGenerator.kt:89 */
        2037  +
        matches!(
        2038  +
            &self,
        2039  +
            EndpointWithHostLabelOperationError::ValidationException(_)
        2040  +
        )
        2041  +
        /* ServerOperationErrorGenerator.kt:88 */
        2042  +
    }
        2043  +
    /* ServerOperationErrorGenerator.kt:92 */
        2044  +
    /// Returns the error name string by matching the correct variant.
        2045  +
    /* ServerOperationErrorGenerator.kt:93 */
        2046  +
    pub fn name(&self) -> &'static str {
        2047  +
        /* ServerOperationErrorGenerator.kt:139 */
        2048  +
        match &self {
        2049  +
            /* ServerOperationErrorGenerator.kt:142 */
        2050  +
            EndpointWithHostLabelOperationError::ValidationException(_inner) =>
        2051  +
            /* ServerOperationErrorGenerator.kt:95 */
        2052  +
            {
        2053  +
                _inner.name()
        2054  +
            }
        2055  +
            /* ServerOperationErrorGenerator.kt:139 */
        2056  +
        }
        2057  +
        /* ServerOperationErrorGenerator.kt:93 */
        2058  +
    }
        2059  +
    /* ServerOperationErrorGenerator.kt:83 */
        2060  +
}
        2061  +
/* ServerOperationErrorGenerator.kt:100 */
        2062  +
impl ::std::error::Error for EndpointWithHostLabelOperationError {
        2063  +
    /* ServerOperationErrorGenerator.kt:101 */
        2064  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        2065  +
        /* ServerOperationErrorGenerator.kt:139 */
        2066  +
        match &self {
        2067  +
            /* ServerOperationErrorGenerator.kt:142 */
        2068  +
            EndpointWithHostLabelOperationError::ValidationException(_inner) =>
        2069  +
            /* ServerOperationErrorGenerator.kt:103 */
        2070  +
            {
        2071  +
                Some(_inner)
        2072  +
            }
        2073  +
            /* ServerOperationErrorGenerator.kt:139 */
        2074  +
        }
        2075  +
        /* ServerOperationErrorGenerator.kt:101 */
        2076  +
    }
        2077  +
    /* ServerOperationErrorGenerator.kt:100 */
        2078  +
}
        2079  +
/* ServerOperationErrorGenerator.kt:110 */
        2080  +
impl ::std::convert::From<crate::error::ValidationException>
        2081  +
    for crate::error::EndpointWithHostLabelOperationError
        2082  +
{
        2083  +
    /* ServerOperationErrorGenerator.kt:111 */
        2084  +
    fn from(
        2085  +
        variant: crate::error::ValidationException,
        2086  +
    ) -> crate::error::EndpointWithHostLabelOperationError {
        2087  +
        /* ServerOperationErrorGenerator.kt:112 */
        2088  +
        Self::ValidationException(variant)
        2089  +
        /* ServerOperationErrorGenerator.kt:111 */
        2090  +
    }
        2091  +
    /* ServerOperationErrorGenerator.kt:110 */
        2092  +
}
        2093  +
        2094  +
/* ServerOperationErrorGenerator.kt:63 */
        2095  +
/// Error type for the `JsonUnions` operation.
        2096  +
/* ServerOperationErrorGenerator.kt:64 */
        2097  +
/// Each variant represents an error that can occur for the `JsonUnions` operation.
        2098  +
/* RustType.kt:534 */
        2099  +
#[derive(::std::fmt::Debug)]
        2100  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum JsonUnionsError {
        2101  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        2102  +
    /* ServerOperationErrorGenerator.kt:71 */
        2103  +
    ValidationException(crate::error::ValidationException),
        2104  +
    /* ServerOperationErrorGenerator.kt:66 */
        2105  +
}
        2106  +
/* ServerOperationErrorGenerator.kt:75 */
        2107  +
impl ::std::fmt::Display for JsonUnionsError {
        2108  +
    /* ServerOperationErrorGenerator.kt:76 */
        2109  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2110  +
        /* ServerOperationErrorGenerator.kt:139 */
        2111  +
        match &self {
        2112  +
            /* ServerOperationErrorGenerator.kt:142 */
        2113  +
            JsonUnionsError::ValidationException(_inner) =>
        2114  +
            /* ServerOperationErrorGenerator.kt:78 */
        2115  +
            {
        2116  +
                _inner.fmt(f)
        2117  +
            }
        2118  +
            /* ServerOperationErrorGenerator.kt:139 */
        2119  +
        }
        2120  +
        /* ServerOperationErrorGenerator.kt:76 */
        2121  +
    }
        2122  +
    /* ServerOperationErrorGenerator.kt:75 */
        2123  +
}
        2124  +
/* ServerOperationErrorGenerator.kt:83 */
        2125  +
impl JsonUnionsError {
        2126  +
    /* ServerOperationErrorGenerator.kt:87 */
        2127  +
    /// Returns `true` if the error kind is `JsonUnionsError::ValidationException`.
        2128  +
    /* ServerOperationErrorGenerator.kt:88 */
        2129  +
    pub fn is_validation_exception(&self) -> bool {
        2130  +
        /* ServerOperationErrorGenerator.kt:89 */
        2131  +
        matches!(&self, JsonUnionsError::ValidationException(_))
        2132  +
        /* ServerOperationErrorGenerator.kt:88 */
        2133  +
    }
        2134  +
    /* ServerOperationErrorGenerator.kt:92 */
        2135  +
    /// Returns the error name string by matching the correct variant.
        2136  +
    /* ServerOperationErrorGenerator.kt:93 */
        2137  +
    pub fn name(&self) -> &'static str {
        2138  +
        /* ServerOperationErrorGenerator.kt:139 */
        2139  +
        match &self {
        2140  +
            /* ServerOperationErrorGenerator.kt:142 */
        2141  +
            JsonUnionsError::ValidationException(_inner) =>
        2142  +
            /* ServerOperationErrorGenerator.kt:95 */
        2143  +
            {
        2144  +
                _inner.name()
        2145  +
            }
        2146  +
            /* ServerOperationErrorGenerator.kt:139 */
        2147  +
        }
        2148  +
        /* ServerOperationErrorGenerator.kt:93 */
        2149  +
    }
        2150  +
    /* ServerOperationErrorGenerator.kt:83 */
        2151  +
}
        2152  +
/* ServerOperationErrorGenerator.kt:100 */
        2153  +
impl ::std::error::Error for JsonUnionsError {
        2154  +
    /* ServerOperationErrorGenerator.kt:101 */
        2155  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        2156  +
        /* ServerOperationErrorGenerator.kt:139 */
        2157  +
        match &self {
        2158  +
            /* ServerOperationErrorGenerator.kt:142 */
        2159  +
            JsonUnionsError::ValidationException(_inner) =>
        2160  +
            /* ServerOperationErrorGenerator.kt:103 */
        2161  +
            {
        2162  +
                Some(_inner)
        2163  +
            }
        2164  +
            /* ServerOperationErrorGenerator.kt:139 */
        2165  +
        }
        2166  +
        /* ServerOperationErrorGenerator.kt:101 */
        2167  +
    }
        2168  +
    /* ServerOperationErrorGenerator.kt:100 */
        2169  +
}
        2170  +
/* ServerOperationErrorGenerator.kt:110 */
        2171  +
impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonUnionsError {
        2172  +
    /* ServerOperationErrorGenerator.kt:111 */
        2173  +
    fn from(variant: crate::error::ValidationException) -> crate::error::JsonUnionsError {
        2174  +
        /* ServerOperationErrorGenerator.kt:112 */
        2175  +
        Self::ValidationException(variant)
        2176  +
        /* ServerOperationErrorGenerator.kt:111 */
        2177  +
    }
        2178  +
    /* ServerOperationErrorGenerator.kt:110 */
        2179  +
}
        2180  +
        2181  +
/* ServerOperationErrorGenerator.kt:63 */
        2182  +
/// Error type for the `SparseJsonMaps` operation.
        2183  +
/* ServerOperationErrorGenerator.kt:64 */
        2184  +
/// Each variant represents an error that can occur for the `SparseJsonMaps` operation.
        2185  +
/* RustType.kt:534 */
        2186  +
#[derive(::std::fmt::Debug)]
        2187  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum SparseJsonMapsError {
        2188  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        2189  +
    /* ServerOperationErrorGenerator.kt:71 */
        2190  +
    ValidationException(crate::error::ValidationException),
        2191  +
    /* ServerOperationErrorGenerator.kt:66 */
        2192  +
}
        2193  +
/* ServerOperationErrorGenerator.kt:75 */
        2194  +
impl ::std::fmt::Display for SparseJsonMapsError {
        2195  +
    /* ServerOperationErrorGenerator.kt:76 */
        2196  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2197  +
        /* ServerOperationErrorGenerator.kt:139 */
        2198  +
        match &self {
        2199  +
            /* ServerOperationErrorGenerator.kt:142 */
        2200  +
            SparseJsonMapsError::ValidationException(_inner) =>
        2201  +
            /* ServerOperationErrorGenerator.kt:78 */
        2202  +
            {
        2203  +
                _inner.fmt(f)
        2204  +
            }
        2205  +
            /* ServerOperationErrorGenerator.kt:139 */
        2206  +
        }
        2207  +
        /* ServerOperationErrorGenerator.kt:76 */
        2208  +
    }
        2209  +
    /* ServerOperationErrorGenerator.kt:75 */
        2210  +
}
        2211  +
/* ServerOperationErrorGenerator.kt:83 */
        2212  +
impl SparseJsonMapsError {
        2213  +
    /* ServerOperationErrorGenerator.kt:87 */
        2214  +
    /// Returns `true` if the error kind is `SparseJsonMapsError::ValidationException`.
        2215  +
    /* ServerOperationErrorGenerator.kt:88 */
        2216  +
    pub fn is_validation_exception(&self) -> bool {
        2217  +
        /* ServerOperationErrorGenerator.kt:89 */
        2218  +
        matches!(&self, SparseJsonMapsError::ValidationException(_))
        2219  +
        /* ServerOperationErrorGenerator.kt:88 */
        2220  +
    }
        2221  +
    /* ServerOperationErrorGenerator.kt:92 */
        2222  +
    /// Returns the error name string by matching the correct variant.
        2223  +
    /* ServerOperationErrorGenerator.kt:93 */
        2224  +
    pub fn name(&self) -> &'static str {
        2225  +
        /* ServerOperationErrorGenerator.kt:139 */
        2226  +
        match &self {
        2227  +
            /* ServerOperationErrorGenerator.kt:142 */
        2228  +
            SparseJsonMapsError::ValidationException(_inner) =>
        2229  +
            /* ServerOperationErrorGenerator.kt:95 */
        2230  +
            {
        2231  +
                _inner.name()
        2232  +
            }
        2233  +
            /* ServerOperationErrorGenerator.kt:139 */
        2234  +
        }
        2235  +
        /* ServerOperationErrorGenerator.kt:93 */
        2236  +
    }
        2237  +
    /* ServerOperationErrorGenerator.kt:83 */
        2238  +
}
        2239  +
/* ServerOperationErrorGenerator.kt:100 */
        2240  +
impl ::std::error::Error for SparseJsonMapsError {
        2241  +
    /* ServerOperationErrorGenerator.kt:101 */
        2242  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        2243  +
        /* ServerOperationErrorGenerator.kt:139 */
        2244  +
        match &self {
        2245  +
            /* ServerOperationErrorGenerator.kt:142 */
        2246  +
            SparseJsonMapsError::ValidationException(_inner) =>
        2247  +
            /* ServerOperationErrorGenerator.kt:103 */
        2248  +
            {
        2249  +
                Some(_inner)
        2250  +
            }
        2251  +
            /* ServerOperationErrorGenerator.kt:139 */
        2252  +
        }
        2253  +
        /* ServerOperationErrorGenerator.kt:101 */
        2254  +
    }
        2255  +
    /* ServerOperationErrorGenerator.kt:100 */
        2256  +
}
        2257  +
/* ServerOperationErrorGenerator.kt:110 */
        2258  +
impl ::std::convert::From<crate::error::ValidationException> for crate::error::SparseJsonMapsError {
        2259  +
    /* ServerOperationErrorGenerator.kt:111 */
        2260  +
    fn from(variant: crate::error::ValidationException) -> crate::error::SparseJsonMapsError {
        2261  +
        /* ServerOperationErrorGenerator.kt:112 */
        2262  +
        Self::ValidationException(variant)
        2263  +
        /* ServerOperationErrorGenerator.kt:111 */
        2264  +
    }
        2265  +
    /* ServerOperationErrorGenerator.kt:110 */
        2266  +
}
        2267  +
        2268  +
/* ServerOperationErrorGenerator.kt:63 */
        2269  +
/// Error type for the `JsonMaps` operation.
        2270  +
/* ServerOperationErrorGenerator.kt:64 */
        2271  +
/// Each variant represents an error that can occur for the `JsonMaps` operation.
        2272  +
/* RustType.kt:534 */
        2273  +
#[derive(::std::fmt::Debug)]
        2274  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum JsonMapsError {
        2275  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        2276  +
    /* ServerOperationErrorGenerator.kt:71 */
        2277  +
    ValidationException(crate::error::ValidationException),
        2278  +
    /* ServerOperationErrorGenerator.kt:66 */
        2279  +
}
        2280  +
/* ServerOperationErrorGenerator.kt:75 */
        2281  +
impl ::std::fmt::Display for JsonMapsError {
        2282  +
    /* ServerOperationErrorGenerator.kt:76 */
        2283  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2284  +
        /* ServerOperationErrorGenerator.kt:139 */
        2285  +
        match &self {
        2286  +
            /* ServerOperationErrorGenerator.kt:142 */
        2287  +
            JsonMapsError::ValidationException(_inner) =>
        2288  +
            /* ServerOperationErrorGenerator.kt:78 */
        2289  +
            {
        2290  +
                _inner.fmt(f)
        2291  +
            }
        2292  +
            /* ServerOperationErrorGenerator.kt:139 */
        2293  +
        }
        2294  +
        /* ServerOperationErrorGenerator.kt:76 */
        2295  +
    }
        2296  +
    /* ServerOperationErrorGenerator.kt:75 */
        2297  +
}
        2298  +
/* ServerOperationErrorGenerator.kt:83 */
        2299  +
impl JsonMapsError {
        2300  +
    /* ServerOperationErrorGenerator.kt:87 */
        2301  +
    /// Returns `true` if the error kind is `JsonMapsError::ValidationException`.
        2302  +
    /* ServerOperationErrorGenerator.kt:88 */
        2303  +
    pub fn is_validation_exception(&self) -> bool {
        2304  +
        /* ServerOperationErrorGenerator.kt:89 */
        2305  +
        matches!(&self, JsonMapsError::ValidationException(_))
        2306  +
        /* ServerOperationErrorGenerator.kt:88 */
        2307  +
    }
        2308  +
    /* ServerOperationErrorGenerator.kt:92 */
        2309  +
    /// Returns the error name string by matching the correct variant.
        2310  +
    /* ServerOperationErrorGenerator.kt:93 */
        2311  +
    pub fn name(&self) -> &'static str {
        2312  +
        /* ServerOperationErrorGenerator.kt:139 */
        2313  +
        match &self {
        2314  +
            /* ServerOperationErrorGenerator.kt:142 */
        2315  +
            JsonMapsError::ValidationException(_inner) =>
        2316  +
            /* ServerOperationErrorGenerator.kt:95 */
        2317  +
            {
        2318  +
                _inner.name()
        2319  +
            }
        2320  +
            /* ServerOperationErrorGenerator.kt:139 */
        2321  +
        }
        2322  +
        /* ServerOperationErrorGenerator.kt:93 */
        2323  +
    }
        2324  +
    /* ServerOperationErrorGenerator.kt:83 */
        2325  +
}
        2326  +
/* ServerOperationErrorGenerator.kt:100 */
        2327  +
impl ::std::error::Error for JsonMapsError {
        2328  +
    /* ServerOperationErrorGenerator.kt:101 */
        2329  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        2330  +
        /* ServerOperationErrorGenerator.kt:139 */
        2331  +
        match &self {
        2332  +
            /* ServerOperationErrorGenerator.kt:142 */
        2333  +
            JsonMapsError::ValidationException(_inner) =>
        2334  +
            /* ServerOperationErrorGenerator.kt:103 */
        2335  +
            {
        2336  +
                Some(_inner)
        2337  +
            }
        2338  +
            /* ServerOperationErrorGenerator.kt:139 */
        2339  +
        }
        2340  +
        /* ServerOperationErrorGenerator.kt:101 */
        2341  +
    }
        2342  +
    /* ServerOperationErrorGenerator.kt:100 */
        2343  +
}
        2344  +
/* ServerOperationErrorGenerator.kt:110 */
        2345  +
impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonMapsError {
        2346  +
    /* ServerOperationErrorGenerator.kt:111 */
        2347  +
    fn from(variant: crate::error::ValidationException) -> crate::error::JsonMapsError {
        2348  +
        /* ServerOperationErrorGenerator.kt:112 */
        2349  +
        Self::ValidationException(variant)
        2350  +
        /* ServerOperationErrorGenerator.kt:111 */
        2351  +
    }
        2352  +
    /* ServerOperationErrorGenerator.kt:110 */
        2353  +
}
        2354  +
        2355  +
/* ServerOperationErrorGenerator.kt:63 */
        2356  +
/// Error type for the `JsonLists` operation.
        2357  +
/* ServerOperationErrorGenerator.kt:64 */
        2358  +
/// Each variant represents an error that can occur for the `JsonLists` operation.
        2359  +
/* RustType.kt:534 */
        2360  +
#[derive(::std::fmt::Debug)]
        2361  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum JsonListsError {
        2362  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        2363  +
    /* ServerOperationErrorGenerator.kt:71 */
        2364  +
    ValidationException(crate::error::ValidationException),
        2365  +
    /* ServerOperationErrorGenerator.kt:66 */
        2366  +
}
        2367  +
/* ServerOperationErrorGenerator.kt:75 */
        2368  +
impl ::std::fmt::Display for JsonListsError {
        2369  +
    /* ServerOperationErrorGenerator.kt:76 */
        2370  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2371  +
        /* ServerOperationErrorGenerator.kt:139 */
        2372  +
        match &self {
        2373  +
            /* ServerOperationErrorGenerator.kt:142 */
        2374  +
            JsonListsError::ValidationException(_inner) =>
        2375  +
            /* ServerOperationErrorGenerator.kt:78 */
        2376  +
            {
        2377  +
                _inner.fmt(f)
        2378  +
            }
        2379  +
            /* ServerOperationErrorGenerator.kt:139 */
        2380  +
        }
        2381  +
        /* ServerOperationErrorGenerator.kt:76 */
        2382  +
    }
        2383  +
    /* ServerOperationErrorGenerator.kt:75 */
        2384  +
}
        2385  +
/* ServerOperationErrorGenerator.kt:83 */
        2386  +
impl JsonListsError {
        2387  +
    /* ServerOperationErrorGenerator.kt:87 */
        2388  +
    /// Returns `true` if the error kind is `JsonListsError::ValidationException`.
        2389  +
    /* ServerOperationErrorGenerator.kt:88 */
        2390  +
    pub fn is_validation_exception(&self) -> bool {
        2391  +
        /* ServerOperationErrorGenerator.kt:89 */
        2392  +
        matches!(&self, JsonListsError::ValidationException(_))
        2393  +
        /* ServerOperationErrorGenerator.kt:88 */
        2394  +
    }
        2395  +
    /* ServerOperationErrorGenerator.kt:92 */
        2396  +
    /// Returns the error name string by matching the correct variant.
        2397  +
    /* ServerOperationErrorGenerator.kt:93 */
        2398  +
    pub fn name(&self) -> &'static str {
        2399  +
        /* ServerOperationErrorGenerator.kt:139 */
        2400  +
        match &self {
        2401  +
            /* ServerOperationErrorGenerator.kt:142 */
        2402  +
            JsonListsError::ValidationException(_inner) =>
        2403  +
            /* ServerOperationErrorGenerator.kt:95 */
        2404  +
            {
        2405  +
                _inner.name()
        2406  +
            }
        2407  +
            /* ServerOperationErrorGenerator.kt:139 */
        2408  +
        }
        2409  +
        /* ServerOperationErrorGenerator.kt:93 */
        2410  +
    }
        2411  +
    /* ServerOperationErrorGenerator.kt:83 */
        2412  +
}
        2413  +
/* ServerOperationErrorGenerator.kt:100 */
        2414  +
impl ::std::error::Error for JsonListsError {
        2415  +
    /* ServerOperationErrorGenerator.kt:101 */
        2416  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        2417  +
        /* ServerOperationErrorGenerator.kt:139 */
        2418  +
        match &self {
        2419  +
            /* ServerOperationErrorGenerator.kt:142 */
        2420  +
            JsonListsError::ValidationException(_inner) =>
        2421  +
            /* ServerOperationErrorGenerator.kt:103 */
        2422  +
            {
        2423  +
                Some(_inner)
        2424  +
            }
        2425  +
            /* ServerOperationErrorGenerator.kt:139 */
        2426  +
        }
        2427  +
        /* ServerOperationErrorGenerator.kt:101 */
        2428  +
    }
        2429  +
    /* ServerOperationErrorGenerator.kt:100 */
        2430  +
}
        2431  +
/* ServerOperationErrorGenerator.kt:110 */
        2432  +
impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonListsError {
        2433  +
    /* ServerOperationErrorGenerator.kt:111 */
        2434  +
    fn from(variant: crate::error::ValidationException) -> crate::error::JsonListsError {
        2435  +
        /* ServerOperationErrorGenerator.kt:112 */
        2436  +
        Self::ValidationException(variant)
        2437  +
        /* ServerOperationErrorGenerator.kt:111 */
        2438  +
    }
        2439  +
    /* ServerOperationErrorGenerator.kt:110 */
        2440  +
}
        2441  +
        2442  +
/* ServerOperationErrorGenerator.kt:63 */
        2443  +
/// Error type for the `JsonIntEnums` operation.
        2444  +
/* ServerOperationErrorGenerator.kt:64 */
        2445  +
/// Each variant represents an error that can occur for the `JsonIntEnums` operation.
        2446  +
/* RustType.kt:534 */
        2447  +
#[derive(::std::fmt::Debug)]
        2448  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum JsonIntEnumsError {
        2449  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        2450  +
    /* ServerOperationErrorGenerator.kt:71 */
        2451  +
    ValidationException(crate::error::ValidationException),
        2452  +
    /* ServerOperationErrorGenerator.kt:66 */
        2453  +
}
        2454  +
/* ServerOperationErrorGenerator.kt:75 */
        2455  +
impl ::std::fmt::Display for JsonIntEnumsError {
        2456  +
    /* ServerOperationErrorGenerator.kt:76 */
        2457  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2458  +
        /* ServerOperationErrorGenerator.kt:139 */
        2459  +
        match &self {
        2460  +
            /* ServerOperationErrorGenerator.kt:142 */
        2461  +
            JsonIntEnumsError::ValidationException(_inner) =>
        2462  +
            /* ServerOperationErrorGenerator.kt:78 */
        2463  +
            {
        2464  +
                _inner.fmt(f)
        2465  +
            }
        2466  +
            /* ServerOperationErrorGenerator.kt:139 */
        2467  +
        }
        2468  +
        /* ServerOperationErrorGenerator.kt:76 */
        2469  +
    }
        2470  +
    /* ServerOperationErrorGenerator.kt:75 */
        2471  +
}
        2472  +
/* ServerOperationErrorGenerator.kt:83 */
        2473  +
impl JsonIntEnumsError {
        2474  +
    /* ServerOperationErrorGenerator.kt:87 */
        2475  +
    /// Returns `true` if the error kind is `JsonIntEnumsError::ValidationException`.
        2476  +
    /* ServerOperationErrorGenerator.kt:88 */
        2477  +
    pub fn is_validation_exception(&self) -> bool {
        2478  +
        /* ServerOperationErrorGenerator.kt:89 */
        2479  +
        matches!(&self, JsonIntEnumsError::ValidationException(_))
        2480  +
        /* ServerOperationErrorGenerator.kt:88 */
        2481  +
    }
        2482  +
    /* ServerOperationErrorGenerator.kt:92 */
        2483  +
    /// Returns the error name string by matching the correct variant.
        2484  +
    /* ServerOperationErrorGenerator.kt:93 */
        2485  +
    pub fn name(&self) -> &'static str {
        2486  +
        /* ServerOperationErrorGenerator.kt:139 */
        2487  +
        match &self {
        2488  +
            /* ServerOperationErrorGenerator.kt:142 */
        2489  +
            JsonIntEnumsError::ValidationException(_inner) =>
        2490  +
            /* ServerOperationErrorGenerator.kt:95 */
        2491  +
            {
        2492  +
                _inner.name()
        2493  +
            }
        2494  +
            /* ServerOperationErrorGenerator.kt:139 */
        2495  +
        }
        2496  +
        /* ServerOperationErrorGenerator.kt:93 */
        2497  +
    }
        2498  +
    /* ServerOperationErrorGenerator.kt:83 */
        2499  +
}
        2500  +
/* ServerOperationErrorGenerator.kt:100 */
        2501  +
impl ::std::error::Error for JsonIntEnumsError {
        2502  +
    /* ServerOperationErrorGenerator.kt:101 */
        2503  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        2504  +
        /* ServerOperationErrorGenerator.kt:139 */
        2505  +
        match &self {
        2506  +
            /* ServerOperationErrorGenerator.kt:142 */
        2507  +
            JsonIntEnumsError::ValidationException(_inner) =>
        2508  +
            /* ServerOperationErrorGenerator.kt:103 */
        2509  +
            {
        2510  +
                Some(_inner)
        2511  +
            }
        2512  +
            /* ServerOperationErrorGenerator.kt:139 */
        2513  +
        }
        2514  +
        /* ServerOperationErrorGenerator.kt:101 */
        2515  +
    }
        2516  +
    /* ServerOperationErrorGenerator.kt:100 */
        2517  +
}
        2518  +
/* ServerOperationErrorGenerator.kt:110 */
        2519  +
impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonIntEnumsError {
        2520  +
    /* ServerOperationErrorGenerator.kt:111 */
        2521  +
    fn from(variant: crate::error::ValidationException) -> crate::error::JsonIntEnumsError {
        2522  +
        /* ServerOperationErrorGenerator.kt:112 */
        2523  +
        Self::ValidationException(variant)
        2524  +
        /* ServerOperationErrorGenerator.kt:111 */
        2525  +
    }
        2526  +
    /* ServerOperationErrorGenerator.kt:110 */
        2527  +
}
        2528  +
        2529  +
/* ServerOperationErrorGenerator.kt:63 */
        2530  +
/// Error type for the `JsonEnums` operation.
        2531  +
/* ServerOperationErrorGenerator.kt:64 */
        2532  +
/// Each variant represents an error that can occur for the `JsonEnums` operation.
        2533  +
/* RustType.kt:534 */
        2534  +
#[derive(::std::fmt::Debug)]
        2535  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum JsonEnumsError {
        2536  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        2537  +
    /* ServerOperationErrorGenerator.kt:71 */
        2538  +
    ValidationException(crate::error::ValidationException),
        2539  +
    /* ServerOperationErrorGenerator.kt:66 */
        2540  +
}
        2541  +
/* ServerOperationErrorGenerator.kt:75 */
        2542  +
impl ::std::fmt::Display for JsonEnumsError {
        2543  +
    /* ServerOperationErrorGenerator.kt:76 */
        2544  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2545  +
        /* ServerOperationErrorGenerator.kt:139 */
        2546  +
        match &self {
        2547  +
            /* ServerOperationErrorGenerator.kt:142 */
        2548  +
            JsonEnumsError::ValidationException(_inner) =>
        2549  +
            /* ServerOperationErrorGenerator.kt:78 */
        2550  +
            {
        2551  +
                _inner.fmt(f)
        2552  +
            }
        2553  +
            /* ServerOperationErrorGenerator.kt:139 */
        2554  +
        }
        2555  +
        /* ServerOperationErrorGenerator.kt:76 */
        2556  +
    }
        2557  +
    /* ServerOperationErrorGenerator.kt:75 */
        2558  +
}
        2559  +
/* ServerOperationErrorGenerator.kt:83 */
        2560  +
impl JsonEnumsError {
        2561  +
    /* ServerOperationErrorGenerator.kt:87 */
        2562  +
    /// Returns `true` if the error kind is `JsonEnumsError::ValidationException`.
        2563  +
    /* ServerOperationErrorGenerator.kt:88 */
        2564  +
    pub fn is_validation_exception(&self) -> bool {
        2565  +
        /* ServerOperationErrorGenerator.kt:89 */
        2566  +
        matches!(&self, JsonEnumsError::ValidationException(_))
        2567  +
        /* ServerOperationErrorGenerator.kt:88 */
        2568  +
    }
        2569  +
    /* ServerOperationErrorGenerator.kt:92 */
        2570  +
    /// Returns the error name string by matching the correct variant.
        2571  +
    /* ServerOperationErrorGenerator.kt:93 */
        2572  +
    pub fn name(&self) -> &'static str {
        2573  +
        /* ServerOperationErrorGenerator.kt:139 */
        2574  +
        match &self {
        2575  +
            /* ServerOperationErrorGenerator.kt:142 */
        2576  +
            JsonEnumsError::ValidationException(_inner) =>
        2577  +
            /* ServerOperationErrorGenerator.kt:95 */
        2578  +
            {
        2579  +
                _inner.name()
        2580  +
            }
        2581  +
            /* ServerOperationErrorGenerator.kt:139 */
        2582  +
        }
        2583  +
        /* ServerOperationErrorGenerator.kt:93 */
        2584  +
    }
        2585  +
    /* ServerOperationErrorGenerator.kt:83 */
        2586  +
}
        2587  +
/* ServerOperationErrorGenerator.kt:100 */
        2588  +
impl ::std::error::Error for JsonEnumsError {
        2589  +
    /* ServerOperationErrorGenerator.kt:101 */
        2590  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        2591  +
        /* ServerOperationErrorGenerator.kt:139 */
        2592  +
        match &self {
        2593  +
            /* ServerOperationErrorGenerator.kt:142 */
        2594  +
            JsonEnumsError::ValidationException(_inner) =>
        2595  +
            /* ServerOperationErrorGenerator.kt:103 */
        2596  +
            {
        2597  +
                Some(_inner)
        2598  +
            }
        2599  +
            /* ServerOperationErrorGenerator.kt:139 */
        2600  +
        }
        2601  +
        /* ServerOperationErrorGenerator.kt:101 */
        2602  +
    }
        2603  +
    /* ServerOperationErrorGenerator.kt:100 */
        2604  +
}
        2605  +
/* ServerOperationErrorGenerator.kt:110 */
        2606  +
impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonEnumsError {
        2607  +
    /* ServerOperationErrorGenerator.kt:111 */
        2608  +
    fn from(variant: crate::error::ValidationException) -> crate::error::JsonEnumsError {
        2609  +
        /* ServerOperationErrorGenerator.kt:112 */
        2610  +
        Self::ValidationException(variant)
        2611  +
        /* ServerOperationErrorGenerator.kt:111 */
        2612  +
    }
        2613  +
    /* ServerOperationErrorGenerator.kt:110 */
        2614  +
}
        2615  +
        2616  +
/* ServerOperationErrorGenerator.kt:63 */
        2617  +
/// Error type for the `GreetingWithErrors` operation.
        2618  +
/* ServerOperationErrorGenerator.kt:64 */
        2619  +
/// Each variant represents an error that can occur for the `GreetingWithErrors` operation.
        2620  +
/* RustType.kt:534 */
        2621  +
#[derive(::std::fmt::Debug)]
        2622  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum GreetingWithErrorsError {
        2623  +
    /// /* ServerOperationErrorGenerator.kt:68 */This error is thrown when an invalid greeting value is provided.
        2624  +
    /* ServerOperationErrorGenerator.kt:71 */
        2625  +
    InvalidGreeting(crate::error::InvalidGreeting),
        2626  +
    /// /* ServerOperationErrorGenerator.kt:68 */This error is thrown when a request is invalid.
        2627  +
    /* ServerOperationErrorGenerator.kt:71 */
        2628  +
    ComplexError(crate::error::ComplexError),
        2629  +
    /// /* ServerOperationErrorGenerator.kt:68 */This error has test cases that test some of the dark corners of Amazon service framework history. It should only be implemented by clients.
        2630  +
    /* ServerOperationErrorGenerator.kt:71 */
        2631  +
    FooError(crate::error::FooError),
        2632  +
    /* ServerOperationErrorGenerator.kt:66 */
        2633  +
}
        2634  +
/* ServerOperationErrorGenerator.kt:75 */
        2635  +
impl ::std::fmt::Display for GreetingWithErrorsError {
        2636  +
    /* ServerOperationErrorGenerator.kt:76 */
        2637  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2638  +
        /* ServerOperationErrorGenerator.kt:139 */
        2639  +
        match &self {
        2640  +
            /* ServerOperationErrorGenerator.kt:142 */
        2641  +
            GreetingWithErrorsError::InvalidGreeting(_inner) =>
        2642  +
            /* ServerOperationErrorGenerator.kt:78 */
        2643  +
            {
        2644  +
                _inner.fmt(f)
        2645  +
            }
        2646  +
            ,
        2647  +
            /* ServerOperationErrorGenerator.kt:142 */
        2648  +
            GreetingWithErrorsError::ComplexError(_inner) =>
        2649  +
            /* ServerOperationErrorGenerator.kt:78 */
        2650  +
            {
        2651  +
                _inner.fmt(f)
        2652  +
            }
        2653  +
            ,
        2654  +
            /* ServerOperationErrorGenerator.kt:142 */
        2655  +
            GreetingWithErrorsError::FooError(_inner) =>
        2656  +
            /* ServerOperationErrorGenerator.kt:78 */
        2657  +
            {
        2658  +
                _inner.fmt(f)
        2659  +
            }
        2660  +
            /* ServerOperationErrorGenerator.kt:139 */
        2661  +
        }
        2662  +
        /* ServerOperationErrorGenerator.kt:76 */
        2663  +
    }
        2664  +
    /* ServerOperationErrorGenerator.kt:75 */
        2665  +
}
        2666  +
/* ServerOperationErrorGenerator.kt:83 */
        2667  +
impl GreetingWithErrorsError {
        2668  +
    /* ServerOperationErrorGenerator.kt:87 */
        2669  +
    /// Returns `true` if the error kind is `GreetingWithErrorsError::InvalidGreeting`.
        2670  +
    /* ServerOperationErrorGenerator.kt:88 */
        2671  +
    pub fn is_invalid_greeting(&self) -> bool {
        2672  +
        /* ServerOperationErrorGenerator.kt:89 */
        2673  +
        matches!(&self, GreetingWithErrorsError::InvalidGreeting(_))
        2674  +
        /* ServerOperationErrorGenerator.kt:88 */
        2675  +
    }
        2676  +
    /* ServerOperationErrorGenerator.kt:87 */
        2677  +
    /// Returns `true` if the error kind is `GreetingWithErrorsError::ComplexError`.
        2678  +
    /* ServerOperationErrorGenerator.kt:88 */
        2679  +
    pub fn is_complex_error(&self) -> bool {
        2680  +
        /* ServerOperationErrorGenerator.kt:89 */
        2681  +
        matches!(&self, GreetingWithErrorsError::ComplexError(_))
        2682  +
        /* ServerOperationErrorGenerator.kt:88 */
        2683  +
    }
        2684  +
    /* ServerOperationErrorGenerator.kt:87 */
        2685  +
    /// Returns `true` if the error kind is `GreetingWithErrorsError::FooError`.
        2686  +
    /* ServerOperationErrorGenerator.kt:88 */
        2687  +
    pub fn is_foo_error(&self) -> bool {
        2688  +
        /* ServerOperationErrorGenerator.kt:89 */
        2689  +
        matches!(&self, GreetingWithErrorsError::FooError(_))
        2690  +
        /* ServerOperationErrorGenerator.kt:88 */
        2691  +
    }
        2692  +
    /* ServerOperationErrorGenerator.kt:92 */
        2693  +
    /// Returns the error name string by matching the correct variant.
        2694  +
    /* ServerOperationErrorGenerator.kt:93 */
        2695  +
    pub fn name(&self) -> &'static str {
        2696  +
        /* ServerOperationErrorGenerator.kt:139 */
        2697  +
        match &self {
        2698  +
            /* ServerOperationErrorGenerator.kt:142 */
        2699  +
            GreetingWithErrorsError::InvalidGreeting(_inner) =>
        2700  +
            /* ServerOperationErrorGenerator.kt:95 */
        2701  +
            {
        2702  +
                _inner.name()
        2703  +
            }
        2704  +
            ,
        2705  +
            /* ServerOperationErrorGenerator.kt:142 */
        2706  +
            GreetingWithErrorsError::ComplexError(_inner) =>
        2707  +
            /* ServerOperationErrorGenerator.kt:95 */
        2708  +
            {
        2709  +
                _inner.name()
        2710  +
            }
        2711  +
            ,
        2712  +
            /* ServerOperationErrorGenerator.kt:142 */
        2713  +
            GreetingWithErrorsError::FooError(_inner) =>
        2714  +
            /* ServerOperationErrorGenerator.kt:95 */
        2715  +
            {
        2716  +
                _inner.name()
        2717  +
            }
        2718  +
            /* ServerOperationErrorGenerator.kt:139 */
        2719  +
        }
        2720  +
        /* ServerOperationErrorGenerator.kt:93 */
        2721  +
    }
        2722  +
    /* ServerOperationErrorGenerator.kt:83 */
        2723  +
}
        2724  +
/* ServerOperationErrorGenerator.kt:100 */
        2725  +
impl ::std::error::Error for GreetingWithErrorsError {
        2726  +
    /* ServerOperationErrorGenerator.kt:101 */
        2727  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        2728  +
        /* ServerOperationErrorGenerator.kt:139 */
        2729  +
        match &self {
        2730  +
            /* ServerOperationErrorGenerator.kt:142 */
        2731  +
            GreetingWithErrorsError::InvalidGreeting(_inner) =>
        2732  +
            /* ServerOperationErrorGenerator.kt:103 */
        2733  +
            {
        2734  +
                Some(_inner)
        2735  +
            }
        2736  +
            ,
        2737  +
            /* ServerOperationErrorGenerator.kt:142 */
        2738  +
            GreetingWithErrorsError::ComplexError(_inner) =>
        2739  +
            /* ServerOperationErrorGenerator.kt:103 */
        2740  +
            {
        2741  +
                Some(_inner)
        2742  +
            }
        2743  +
            ,
        2744  +
            /* ServerOperationErrorGenerator.kt:142 */
        2745  +
            GreetingWithErrorsError::FooError(_inner) =>
        2746  +
            /* ServerOperationErrorGenerator.kt:103 */
        2747  +
            {
        2748  +
                Some(_inner)
        2749  +
            }
        2750  +
            /* ServerOperationErrorGenerator.kt:139 */
        2751  +
        }
        2752  +
        /* ServerOperationErrorGenerator.kt:101 */
        2753  +
    }
        2754  +
    /* ServerOperationErrorGenerator.kt:100 */
        2755  +
}
        2756  +
/* ServerOperationErrorGenerator.kt:110 */
        2757  +
impl ::std::convert::From<crate::error::InvalidGreeting> for crate::error::GreetingWithErrorsError {
        2758  +
    /* ServerOperationErrorGenerator.kt:111 */
        2759  +
    fn from(variant: crate::error::InvalidGreeting) -> crate::error::GreetingWithErrorsError {
        2760  +
        /* ServerOperationErrorGenerator.kt:112 */
        2761  +
        Self::InvalidGreeting(variant)
        2762  +
        /* ServerOperationErrorGenerator.kt:111 */
        2763  +
    }
        2764  +
    /* ServerOperationErrorGenerator.kt:110 */
        2765  +
}
        2766  +
/* ServerOperationErrorGenerator.kt:110 */
        2767  +
impl ::std::convert::From<crate::error::ComplexError> for crate::error::GreetingWithErrorsError {
        2768  +
    /* ServerOperationErrorGenerator.kt:111 */
        2769  +
    fn from(variant: crate::error::ComplexError) -> crate::error::GreetingWithErrorsError {
        2770  +
        /* ServerOperationErrorGenerator.kt:112 */
        2771  +
        Self::ComplexError(variant)
        2772  +
        /* ServerOperationErrorGenerator.kt:111 */
        2773  +
    }
        2774  +
    /* ServerOperationErrorGenerator.kt:110 */
        2775  +
}
        2776  +
/* ServerOperationErrorGenerator.kt:110 */
        2777  +
impl ::std::convert::From<crate::error::FooError> for crate::error::GreetingWithErrorsError {
        2778  +
    /* ServerOperationErrorGenerator.kt:111 */
        2779  +
    fn from(variant: crate::error::FooError) -> crate::error::GreetingWithErrorsError {
        2780  +
        /* ServerOperationErrorGenerator.kt:112 */
        2781  +
        Self::FooError(variant)
        2782  +
        /* ServerOperationErrorGenerator.kt:111 */
        2783  +
    }
        2784  +
    /* ServerOperationErrorGenerator.kt:110 */
        2785  +
}
        2786  +
        2787  +
/// /* StructureGenerator.kt:197 */This error has test cases that test some of the dark corners of Amazon service framework history. It should only be implemented by clients.
        2788  +
/* RustType.kt:534 */
        2789  +
#[derive(
        2790  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        2791  +
)]
        2792  +
pub /* StructureGenerator.kt:201 */ struct FooError {/* StructureGenerator.kt:201 */}
        2793  +
/* ErrorImplGenerator.kt:99 */
        2794  +
impl FooError {
        2795  +
    /* ErrorImplGenerator.kt:141 */
        2796  +
    #[doc(hidden)]
        2797  +
    /// Returns the error name.
        2798  +
    pub fn name(&self) -> &'static str {
        2799  +
        "FooError"
        2800  +
    }
        2801  +
    /* ErrorImplGenerator.kt:99 */
        2802  +
}
        2803  +
/* ErrorImplGenerator.kt:153 */
        2804  +
impl ::std::fmt::Display for FooError {
        2805  +
    /* ErrorImplGenerator.kt:154 */
        2806  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2807  +
        /* ErrorImplGenerator.kt:161 */
        2808  +
        ::std::write!(f, "FooError")?;
        2809  +
        /* ErrorImplGenerator.kt:176 */
        2810  +
        Ok(())
        2811  +
        /* ErrorImplGenerator.kt:154 */
        2812  +
    }
        2813  +
    /* ErrorImplGenerator.kt:153 */
        2814  +
}
        2815  +
/* ErrorImplGenerator.kt:180 */
        2816  +
impl ::std::error::Error for FooError {}
        2817  +
/* ServerCodegenVisitor.kt:356 */
        2818  +
impl FooError {
        2819  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`FooError`](crate::error::FooError).
        2820  +
    /* ServerBuilderGenerator.kt:295 */
        2821  +
    pub fn builder() -> crate::error::foo_error::Builder {
        2822  +
        /* ServerBuilderGenerator.kt:296 */
        2823  +
        crate::error::foo_error::Builder::default()
        2824  +
        /* ServerBuilderGenerator.kt:295 */
        2825  +
    }
        2826  +
    /* ServerCodegenVisitor.kt:356 */
        2827  +
}
        2828  +
        2829  +
/// /* StructureGenerator.kt:197 */This error is thrown when a request is invalid.
        2830  +
/* RustType.kt:534 */
        2831  +
#[derive(
        2832  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        2833  +
)]
        2834  +
pub /* StructureGenerator.kt:201 */ struct ComplexError {
        2835  +
    /* StructureGenerator.kt:231 */
        2836  +
    #[allow(missing_docs)] // documentation missing in model
        2837  +
    pub header: ::std::option::Option<::std::string::String>,
        2838  +
    /* StructureGenerator.kt:231 */
        2839  +
    #[allow(missing_docs)] // documentation missing in model
        2840  +
    pub top_level: ::std::option::Option<::std::string::String>,
        2841  +
    /* StructureGenerator.kt:231 */
        2842  +
    #[allow(missing_docs)] // documentation missing in model
        2843  +
    pub nested: ::std::option::Option<crate::model::ComplexNestedErrorData>,
        2844  +
    /* StructureGenerator.kt:201 */
        2845  +
}
        2846  +
/* StructureGenerator.kt:135 */
        2847  +
impl ComplexError {
        2848  +
    /* StructureGenerator.kt:231 */
        2849  +
    #[allow(missing_docs)] // documentation missing in model
        2850  +
                           /* StructureGenerator.kt:166 */
        2851  +
    pub fn header(&self) -> ::std::option::Option<&str> {
        2852  +
        /* StructureGenerator.kt:169 */
        2853  +
        self.header.as_deref()
        2854  +
        /* StructureGenerator.kt:166 */
        2855  +
    }
        2856  +
    /* StructureGenerator.kt:231 */
        2857  +
    #[allow(missing_docs)] // documentation missing in model
        2858  +
                           /* StructureGenerator.kt:166 */
        2859  +
    pub fn top_level(&self) -> ::std::option::Option<&str> {
        2860  +
        /* StructureGenerator.kt:169 */
        2861  +
        self.top_level.as_deref()
        2862  +
        /* StructureGenerator.kt:166 */
        2863  +
    }
        2864  +
    /* StructureGenerator.kt:231 */
        2865  +
    #[allow(missing_docs)] // documentation missing in model
        2866  +
                           /* StructureGenerator.kt:166 */
        2867  +
    pub fn nested(&self) -> ::std::option::Option<&crate::model::ComplexNestedErrorData> {
        2868  +
        /* StructureGenerator.kt:170 */
        2869  +
        self.nested.as_ref()
        2870  +
        /* StructureGenerator.kt:166 */
        2871  +
    }
        2872  +
    /* StructureGenerator.kt:135 */
        2873  +
}
        2874  +
/* ErrorImplGenerator.kt:99 */
        2875  +
impl ComplexError {
        2876  +
    /* ErrorImplGenerator.kt:141 */
        2877  +
    #[doc(hidden)]
        2878  +
    /// Returns the error name.
        2879  +
    pub fn name(&self) -> &'static str {
        2880  +
        "ComplexError"
        2881  +
    }
        2882  +
    /* ErrorImplGenerator.kt:99 */
        2883  +
}
        2884  +
/* ErrorImplGenerator.kt:153 */
        2885  +
impl ::std::fmt::Display for ComplexError {
        2886  +
    /* ErrorImplGenerator.kt:154 */
        2887  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2888  +
        /* ErrorImplGenerator.kt:161 */
        2889  +
        ::std::write!(f, "ComplexError")?;
        2890  +
        /* ErrorImplGenerator.kt:176 */
        2891  +
        Ok(())
        2892  +
        /* ErrorImplGenerator.kt:154 */
        2893  +
    }
        2894  +
    /* ErrorImplGenerator.kt:153 */
        2895  +
}
        2896  +
/* ErrorImplGenerator.kt:180 */
        2897  +
impl ::std::error::Error for ComplexError {}
        2898  +
/* ServerCodegenVisitor.kt:356 */
        2899  +
impl ComplexError {
        2900  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ComplexError`](crate::error::ComplexError).
        2901  +
    /* ServerBuilderGenerator.kt:295 */
        2902  +
    pub fn builder() -> crate::error::complex_error::Builder {
        2903  +
        /* ServerBuilderGenerator.kt:296 */
        2904  +
        crate::error::complex_error::Builder::default()
        2905  +
        /* ServerBuilderGenerator.kt:295 */
        2906  +
    }
        2907  +
    /* ServerCodegenVisitor.kt:356 */
        2908  +
}
        2909  +
        2910  +
/// /* StructureGenerator.kt:197 */This error is thrown when an invalid greeting value is provided.
        2911  +
/* RustType.kt:534 */
        2912  +
#[derive(
        2913  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        2914  +
)]
        2915  +
pub /* StructureGenerator.kt:201 */ struct InvalidGreeting {
        2916  +
    /* StructureGenerator.kt:231 */
        2917  +
    #[allow(missing_docs)] // documentation missing in model
        2918  +
    pub message: ::std::option::Option<::std::string::String>,
        2919  +
    /* StructureGenerator.kt:201 */
        2920  +
}
        2921  +
/* ErrorImplGenerator.kt:99 */
        2922  +
impl InvalidGreeting {
        2923  +
    /* ErrorImplGenerator.kt:128 */
        2924  +
    /// Returns the error message.
        2925  +
    pub fn message(&self) -> ::std::option::Option<&str> {
        2926  +
        self.message.as_deref()
        2927  +
    }
        2928  +
    /* ErrorImplGenerator.kt:141 */
        2929  +
    #[doc(hidden)]
        2930  +
    /// Returns the error name.
        2931  +
    pub fn name(&self) -> &'static str {
        2932  +
        "InvalidGreeting"
        2933  +
    }
        2934  +
    /* ErrorImplGenerator.kt:99 */
        2935  +
}
        2936  +
/* ErrorImplGenerator.kt:153 */
        2937  +
impl ::std::fmt::Display for InvalidGreeting {
        2938  +
    /* ErrorImplGenerator.kt:154 */
        2939  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2940  +
        /* ErrorImplGenerator.kt:161 */
        2941  +
        ::std::write!(f, "InvalidGreeting")?;
        2942  +
        /* ErrorImplGenerator.kt:166 */
        2943  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
        2944  +
            /* ErrorImplGenerator.kt:166 */
        2945  +
            {
        2946  +
                /* ErrorImplGenerator.kt:171 */
        2947  +
                ::std::write!(f, ": {inner_1}")?;
        2948  +
                /* ErrorImplGenerator.kt:166 */
        2949  +
            }
        2950  +
            /* ErrorImplGenerator.kt:166 */
        2951  +
        }
        2952  +
        /* ErrorImplGenerator.kt:176 */
        2953  +
        Ok(())
        2954  +
        /* ErrorImplGenerator.kt:154 */
        2955  +
    }
        2956  +
    /* ErrorImplGenerator.kt:153 */
        2957  +
}
        2958  +
/* ErrorImplGenerator.kt:180 */
        2959  +
impl ::std::error::Error for InvalidGreeting {}
        2960  +
/* ServerCodegenVisitor.kt:356 */
        2961  +
impl InvalidGreeting {
        2962  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`InvalidGreeting`](crate::error::InvalidGreeting).
        2963  +
    /* ServerBuilderGenerator.kt:295 */
        2964  +
    pub fn builder() -> crate::error::invalid_greeting::Builder {
        2965  +
        /* ServerBuilderGenerator.kt:296 */
        2966  +
        crate::error::invalid_greeting::Builder::default()
        2967  +
        /* ServerBuilderGenerator.kt:295 */
        2968  +
    }
        2969  +
    /* ServerCodegenVisitor.kt:356 */
        2970  +
}
        2971  +
        2972  +
/* ServerOperationErrorGenerator.kt:63 */
        2973  +
/// Error type for the `HttpEnumPayload` operation.
        2974  +
/* ServerOperationErrorGenerator.kt:64 */
        2975  +
/// Each variant represents an error that can occur for the `HttpEnumPayload` operation.
        2976  +
/* RustType.kt:534 */
        2977  +
#[derive(::std::fmt::Debug)]
        2978  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum HttpEnumPayloadError {
        2979  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        2980  +
    /* ServerOperationErrorGenerator.kt:71 */
        2981  +
    ValidationException(crate::error::ValidationException),
        2982  +
    /* ServerOperationErrorGenerator.kt:66 */
        2983  +
}
        2984  +
/* ServerOperationErrorGenerator.kt:75 */
        2985  +
impl ::std::fmt::Display for HttpEnumPayloadError {
        2986  +
    /* ServerOperationErrorGenerator.kt:76 */
        2987  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2988  +
        /* ServerOperationErrorGenerator.kt:139 */
        2989  +
        match &self {
        2990  +
            /* ServerOperationErrorGenerator.kt:142 */
        2991  +
            HttpEnumPayloadError::ValidationException(_inner) =>
        2992  +
            /* ServerOperationErrorGenerator.kt:78 */
        2993  +
            {
        2994  +
                _inner.fmt(f)
        2995  +
            }
        2996  +
            /* ServerOperationErrorGenerator.kt:139 */
        2997  +
        }
        2998  +
        /* ServerOperationErrorGenerator.kt:76 */
        2999  +
    }
        3000  +
    /* ServerOperationErrorGenerator.kt:75 */
        3001  +
}
        3002  +
/* ServerOperationErrorGenerator.kt:83 */
        3003  +
impl HttpEnumPayloadError {
        3004  +
    /* ServerOperationErrorGenerator.kt:87 */
        3005  +
    /// Returns `true` if the error kind is `HttpEnumPayloadError::ValidationException`.
        3006  +
    /* ServerOperationErrorGenerator.kt:88 */
        3007  +
    pub fn is_validation_exception(&self) -> bool {
        3008  +
        /* ServerOperationErrorGenerator.kt:89 */
        3009  +
        matches!(&self, HttpEnumPayloadError::ValidationException(_))
        3010  +
        /* ServerOperationErrorGenerator.kt:88 */
        3011  +
    }
        3012  +
    /* ServerOperationErrorGenerator.kt:92 */
        3013  +
    /// Returns the error name string by matching the correct variant.
        3014  +
    /* ServerOperationErrorGenerator.kt:93 */
        3015  +
    pub fn name(&self) -> &'static str {
        3016  +
        /* ServerOperationErrorGenerator.kt:139 */
        3017  +
        match &self {
        3018  +
            /* ServerOperationErrorGenerator.kt:142 */
        3019  +
            HttpEnumPayloadError::ValidationException(_inner) =>
        3020  +
            /* ServerOperationErrorGenerator.kt:95 */
        3021  +
            {
        3022  +
                _inner.name()
        3023  +
            }
        3024  +
            /* ServerOperationErrorGenerator.kt:139 */
        3025  +
        }
        3026  +
        /* ServerOperationErrorGenerator.kt:93 */
        3027  +
    }
        3028  +
    /* ServerOperationErrorGenerator.kt:83 */
        3029  +
}
        3030  +
/* ServerOperationErrorGenerator.kt:100 */
        3031  +
impl ::std::error::Error for HttpEnumPayloadError {
        3032  +
    /* ServerOperationErrorGenerator.kt:101 */
        3033  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        3034  +
        /* ServerOperationErrorGenerator.kt:139 */
        3035  +
        match &self {
        3036  +
            /* ServerOperationErrorGenerator.kt:142 */
        3037  +
            HttpEnumPayloadError::ValidationException(_inner) =>
        3038  +
            /* ServerOperationErrorGenerator.kt:103 */
        3039  +
            {
        3040  +
                Some(_inner)
        3041  +
            }
        3042  +
            /* ServerOperationErrorGenerator.kt:139 */
        3043  +
        }
        3044  +
        /* ServerOperationErrorGenerator.kt:101 */
        3045  +
    }
        3046  +
    /* ServerOperationErrorGenerator.kt:100 */
        3047  +
}
        3048  +
/* ServerOperationErrorGenerator.kt:110 */
        3049  +
impl ::std::convert::From<crate::error::ValidationException>
        3050  +
    for crate::error::HttpEnumPayloadError
        3051  +
{
        3052  +
    /* ServerOperationErrorGenerator.kt:111 */
        3053  +
    fn from(variant: crate::error::ValidationException) -> crate::error::HttpEnumPayloadError {
        3054  +
        /* ServerOperationErrorGenerator.kt:112 */
        3055  +
        Self::ValidationException(variant)
        3056  +
        /* ServerOperationErrorGenerator.kt:111 */
        3057  +
    }
        3058  +
    /* ServerOperationErrorGenerator.kt:110 */
        3059  +
}
        3060  +
        3061  +
/* ServerOperationErrorGenerator.kt:63 */
        3062  +
/// Error type for the `OmitsSerializingEmptyLists` operation.
        3063  +
/* ServerOperationErrorGenerator.kt:64 */
        3064  +
/// Each variant represents an error that can occur for the `OmitsSerializingEmptyLists` operation.
        3065  +
/* RustType.kt:534 */
        3066  +
#[derive(::std::fmt::Debug)]
        3067  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum OmitsSerializingEmptyListsError {
        3068  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        3069  +
    /* ServerOperationErrorGenerator.kt:71 */
        3070  +
    ValidationException(crate::error::ValidationException),
        3071  +
    /* ServerOperationErrorGenerator.kt:66 */
        3072  +
}
        3073  +
/* ServerOperationErrorGenerator.kt:75 */
        3074  +
impl ::std::fmt::Display for OmitsSerializingEmptyListsError {
        3075  +
    /* ServerOperationErrorGenerator.kt:76 */
        3076  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3077  +
        /* ServerOperationErrorGenerator.kt:139 */
        3078  +
        match &self {
        3079  +
            /* ServerOperationErrorGenerator.kt:142 */
        3080  +
            OmitsSerializingEmptyListsError::ValidationException(_inner) =>
        3081  +
            /* ServerOperationErrorGenerator.kt:78 */
        3082  +
            {
        3083  +
                _inner.fmt(f)
        3084  +
            }
        3085  +
            /* ServerOperationErrorGenerator.kt:139 */
        3086  +
        }
        3087  +
        /* ServerOperationErrorGenerator.kt:76 */
        3088  +
    }
        3089  +
    /* ServerOperationErrorGenerator.kt:75 */
        3090  +
}
        3091  +
/* ServerOperationErrorGenerator.kt:83 */
        3092  +
impl OmitsSerializingEmptyListsError {
        3093  +
    /* ServerOperationErrorGenerator.kt:87 */
        3094  +
    /// Returns `true` if the error kind is `OmitsSerializingEmptyListsError::ValidationException`.
        3095  +
    /* ServerOperationErrorGenerator.kt:88 */
        3096  +
    pub fn is_validation_exception(&self) -> bool {
        3097  +
        /* ServerOperationErrorGenerator.kt:89 */
        3098  +
        matches!(
        3099  +
            &self,
        3100  +
            OmitsSerializingEmptyListsError::ValidationException(_)
        3101  +
        )
        3102  +
        /* ServerOperationErrorGenerator.kt:88 */
        3103  +
    }
        3104  +
    /* ServerOperationErrorGenerator.kt:92 */
        3105  +
    /// Returns the error name string by matching the correct variant.
        3106  +
    /* ServerOperationErrorGenerator.kt:93 */
        3107  +
    pub fn name(&self) -> &'static str {
        3108  +
        /* ServerOperationErrorGenerator.kt:139 */
        3109  +
        match &self {
        3110  +
            /* ServerOperationErrorGenerator.kt:142 */
        3111  +
            OmitsSerializingEmptyListsError::ValidationException(_inner) =>
        3112  +
            /* ServerOperationErrorGenerator.kt:95 */
        3113  +
            {
        3114  +
                _inner.name()
        3115  +
            }
        3116  +
            /* ServerOperationErrorGenerator.kt:139 */
        3117  +
        }
        3118  +
        /* ServerOperationErrorGenerator.kt:93 */
        3119  +
    }
        3120  +
    /* ServerOperationErrorGenerator.kt:83 */
        3121  +
}
        3122  +
/* ServerOperationErrorGenerator.kt:100 */
        3123  +
impl ::std::error::Error for OmitsSerializingEmptyListsError {
        3124  +
    /* ServerOperationErrorGenerator.kt:101 */
        3125  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        3126  +
        /* ServerOperationErrorGenerator.kt:139 */
        3127  +
        match &self {
        3128  +
            /* ServerOperationErrorGenerator.kt:142 */
        3129  +
            OmitsSerializingEmptyListsError::ValidationException(_inner) =>
        3130  +
            /* ServerOperationErrorGenerator.kt:103 */
        3131  +
            {
        3132  +
                Some(_inner)
        3133  +
            }
        3134  +
            /* ServerOperationErrorGenerator.kt:139 */
        3135  +
        }
        3136  +
        /* ServerOperationErrorGenerator.kt:101 */
        3137  +
    }
        3138  +
    /* ServerOperationErrorGenerator.kt:100 */
        3139  +
}
        3140  +
/* ServerOperationErrorGenerator.kt:110 */
        3141  +
impl ::std::convert::From<crate::error::ValidationException>
        3142  +
    for crate::error::OmitsSerializingEmptyListsError
        3143  +
{
        3144  +
    /* ServerOperationErrorGenerator.kt:111 */
        3145  +
    fn from(
        3146  +
        variant: crate::error::ValidationException,
        3147  +
    ) -> crate::error::OmitsSerializingEmptyListsError {
        3148  +
        /* ServerOperationErrorGenerator.kt:112 */
        3149  +
        Self::ValidationException(variant)
        3150  +
        /* ServerOperationErrorGenerator.kt:111 */
        3151  +
    }
        3152  +
    /* ServerOperationErrorGenerator.kt:110 */
        3153  +
}
        3154  +
        3155  +
/* ServerOperationErrorGenerator.kt:63 */
        3156  +
/// Error type for the `ConstantQueryString` operation.
        3157  +
/* ServerOperationErrorGenerator.kt:64 */
        3158  +
/// Each variant represents an error that can occur for the `ConstantQueryString` operation.
        3159  +
/* RustType.kt:534 */
        3160  +
#[derive(::std::fmt::Debug)]
        3161  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum ConstantQueryStringError {
        3162  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        3163  +
    /* ServerOperationErrorGenerator.kt:71 */
        3164  +
    ValidationException(crate::error::ValidationException),
        3165  +
    /* ServerOperationErrorGenerator.kt:66 */
        3166  +
}
        3167  +
/* ServerOperationErrorGenerator.kt:75 */
        3168  +
impl ::std::fmt::Display for ConstantQueryStringError {
        3169  +
    /* ServerOperationErrorGenerator.kt:76 */
        3170  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3171  +
        /* ServerOperationErrorGenerator.kt:139 */
        3172  +
        match &self {
        3173  +
            /* ServerOperationErrorGenerator.kt:142 */
        3174  +
            ConstantQueryStringError::ValidationException(_inner) =>
        3175  +
            /* ServerOperationErrorGenerator.kt:78 */
        3176  +
            {
        3177  +
                _inner.fmt(f)
        3178  +
            }
        3179  +
            /* ServerOperationErrorGenerator.kt:139 */
        3180  +
        }
        3181  +
        /* ServerOperationErrorGenerator.kt:76 */
        3182  +
    }
        3183  +
    /* ServerOperationErrorGenerator.kt:75 */
        3184  +
}
        3185  +
/* ServerOperationErrorGenerator.kt:83 */
        3186  +
impl ConstantQueryStringError {
        3187  +
    /* ServerOperationErrorGenerator.kt:87 */
        3188  +
    /// Returns `true` if the error kind is `ConstantQueryStringError::ValidationException`.
        3189  +
    /* ServerOperationErrorGenerator.kt:88 */
        3190  +
    pub fn is_validation_exception(&self) -> bool {
        3191  +
        /* ServerOperationErrorGenerator.kt:89 */
        3192  +
        matches!(&self, ConstantQueryStringError::ValidationException(_))
        3193  +
        /* ServerOperationErrorGenerator.kt:88 */
        3194  +
    }
        3195  +
    /* ServerOperationErrorGenerator.kt:92 */
        3196  +
    /// Returns the error name string by matching the correct variant.
        3197  +
    /* ServerOperationErrorGenerator.kt:93 */
        3198  +
    pub fn name(&self) -> &'static str {
        3199  +
        /* ServerOperationErrorGenerator.kt:139 */
        3200  +
        match &self {
        3201  +
            /* ServerOperationErrorGenerator.kt:142 */
        3202  +
            ConstantQueryStringError::ValidationException(_inner) =>
        3203  +
            /* ServerOperationErrorGenerator.kt:95 */
        3204  +
            {
        3205  +
                _inner.name()
        3206  +
            }
        3207  +
            /* ServerOperationErrorGenerator.kt:139 */
        3208  +
        }
        3209  +
        /* ServerOperationErrorGenerator.kt:93 */
        3210  +
    }
        3211  +
    /* ServerOperationErrorGenerator.kt:83 */
        3212  +
}
        3213  +
/* ServerOperationErrorGenerator.kt:100 */
        3214  +
impl ::std::error::Error for ConstantQueryStringError {
        3215  +
    /* ServerOperationErrorGenerator.kt:101 */
        3216  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        3217  +
        /* ServerOperationErrorGenerator.kt:139 */
        3218  +
        match &self {
        3219  +
            /* ServerOperationErrorGenerator.kt:142 */
        3220  +
            ConstantQueryStringError::ValidationException(_inner) =>
        3221  +
            /* ServerOperationErrorGenerator.kt:103 */
        3222  +
            {
        3223  +
                Some(_inner)
        3224  +
            }
        3225  +
            /* ServerOperationErrorGenerator.kt:139 */
        3226  +
        }
        3227  +
        /* ServerOperationErrorGenerator.kt:101 */
        3228  +
    }
        3229  +
    /* ServerOperationErrorGenerator.kt:100 */
        3230  +
}
        3231  +
/* ServerOperationErrorGenerator.kt:110 */
        3232  +
impl ::std::convert::From<crate::error::ValidationException>
        3233  +
    for crate::error::ConstantQueryStringError
        3234  +
{
        3235  +
    /* ServerOperationErrorGenerator.kt:111 */
        3236  +
    fn from(variant: crate::error::ValidationException) -> crate::error::ConstantQueryStringError {
        3237  +
        /* ServerOperationErrorGenerator.kt:112 */
        3238  +
        Self::ValidationException(variant)
        3239  +
        /* ServerOperationErrorGenerator.kt:111 */
        3240  +
    }
        3241  +
    /* ServerOperationErrorGenerator.kt:110 */
        3242  +
}
        3243  +
        3244  +
/* ServerOperationErrorGenerator.kt:63 */
        3245  +
/// Error type for the `AllQueryStringTypes` operation.
        3246  +
/* ServerOperationErrorGenerator.kt:64 */
        3247  +
/// Each variant represents an error that can occur for the `AllQueryStringTypes` operation.
        3248  +
/* RustType.kt:534 */
        3249  +
#[derive(::std::fmt::Debug)]
        3250  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum AllQueryStringTypesError {
        3251  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        3252  +
    /* ServerOperationErrorGenerator.kt:71 */
        3253  +
    ValidationException(crate::error::ValidationException),
        3254  +
    /* ServerOperationErrorGenerator.kt:66 */
        3255  +
}
        3256  +
/* ServerOperationErrorGenerator.kt:75 */
        3257  +
impl ::std::fmt::Display for AllQueryStringTypesError {
        3258  +
    /* ServerOperationErrorGenerator.kt:76 */
        3259  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3260  +
        /* ServerOperationErrorGenerator.kt:139 */
        3261  +
        match &self {
        3262  +
            /* ServerOperationErrorGenerator.kt:142 */
        3263  +
            AllQueryStringTypesError::ValidationException(_inner) =>
        3264  +
            /* ServerOperationErrorGenerator.kt:78 */
        3265  +
            {
        3266  +
                _inner.fmt(f)
        3267  +
            }
        3268  +
            /* ServerOperationErrorGenerator.kt:139 */
        3269  +
        }
        3270  +
        /* ServerOperationErrorGenerator.kt:76 */
        3271  +
    }
        3272  +
    /* ServerOperationErrorGenerator.kt:75 */
        3273  +
}
        3274  +
/* ServerOperationErrorGenerator.kt:83 */
        3275  +
impl AllQueryStringTypesError {
        3276  +
    /* ServerOperationErrorGenerator.kt:87 */
        3277  +
    /// Returns `true` if the error kind is `AllQueryStringTypesError::ValidationException`.
        3278  +
    /* ServerOperationErrorGenerator.kt:88 */
        3279  +
    pub fn is_validation_exception(&self) -> bool {
        3280  +
        /* ServerOperationErrorGenerator.kt:89 */
        3281  +
        matches!(&self, AllQueryStringTypesError::ValidationException(_))
        3282  +
        /* ServerOperationErrorGenerator.kt:88 */
        3283  +
    }
        3284  +
    /* ServerOperationErrorGenerator.kt:92 */
        3285  +
    /// Returns the error name string by matching the correct variant.
        3286  +
    /* ServerOperationErrorGenerator.kt:93 */
        3287  +
    pub fn name(&self) -> &'static str {
        3288  +
        /* ServerOperationErrorGenerator.kt:139 */
        3289  +
        match &self {
        3290  +
            /* ServerOperationErrorGenerator.kt:142 */
        3291  +
            AllQueryStringTypesError::ValidationException(_inner) =>
        3292  +
            /* ServerOperationErrorGenerator.kt:95 */
        3293  +
            {
        3294  +
                _inner.name()
        3295  +
            }
        3296  +
            /* ServerOperationErrorGenerator.kt:139 */
        3297  +
        }
        3298  +
        /* ServerOperationErrorGenerator.kt:93 */
        3299  +
    }
        3300  +
    /* ServerOperationErrorGenerator.kt:83 */
        3301  +
}
        3302  +
/* ServerOperationErrorGenerator.kt:100 */
        3303  +
impl ::std::error::Error for AllQueryStringTypesError {
        3304  +
    /* ServerOperationErrorGenerator.kt:101 */
        3305  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        3306  +
        /* ServerOperationErrorGenerator.kt:139 */
        3307  +
        match &self {
        3308  +
            /* ServerOperationErrorGenerator.kt:142 */
        3309  +
            AllQueryStringTypesError::ValidationException(_inner) =>
        3310  +
            /* ServerOperationErrorGenerator.kt:103 */
        3311  +
            {
        3312  +
                Some(_inner)
        3313  +
            }
        3314  +
            /* ServerOperationErrorGenerator.kt:139 */
        3315  +
        }
        3316  +
        /* ServerOperationErrorGenerator.kt:101 */
        3317  +
    }
        3318  +
    /* ServerOperationErrorGenerator.kt:100 */
        3319  +
}
        3320  +
/* ServerOperationErrorGenerator.kt:110 */
        3321  +
impl ::std::convert::From<crate::error::ValidationException>
        3322  +
    for crate::error::AllQueryStringTypesError
        3323  +
{
        3324  +
    /* ServerOperationErrorGenerator.kt:111 */
        3325  +
    fn from(variant: crate::error::ValidationException) -> crate::error::AllQueryStringTypesError {
        3326  +
        /* ServerOperationErrorGenerator.kt:112 */
        3327  +
        Self::ValidationException(variant)
        3328  +
        /* ServerOperationErrorGenerator.kt:111 */
        3329  +
    }
        3330  +
    /* ServerOperationErrorGenerator.kt:110 */
        3331  +
}
        3332  +
        3333  +
/* ServerOperationErrorGenerator.kt:63 */
        3334  +
/// Error type for the `HttpRequestWithRegexLiteral` operation.
        3335  +
/* ServerOperationErrorGenerator.kt:64 */
        3336  +
/// Each variant represents an error that can occur for the `HttpRequestWithRegexLiteral` operation.
        3337  +
/* RustType.kt:534 */
        3338  +
#[derive(::std::fmt::Debug)]
        3339  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum HttpRequestWithRegexLiteralError {
        3340  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        3341  +
    /* ServerOperationErrorGenerator.kt:71 */
        3342  +
    ValidationException(crate::error::ValidationException),
        3343  +
    /* ServerOperationErrorGenerator.kt:66 */
        3344  +
}
        3345  +
/* ServerOperationErrorGenerator.kt:75 */
        3346  +
impl ::std::fmt::Display for HttpRequestWithRegexLiteralError {
        3347  +
    /* ServerOperationErrorGenerator.kt:76 */
        3348  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3349  +
        /* ServerOperationErrorGenerator.kt:139 */
        3350  +
        match &self {
        3351  +
            /* ServerOperationErrorGenerator.kt:142 */
        3352  +
            HttpRequestWithRegexLiteralError::ValidationException(_inner) =>
        3353  +
            /* ServerOperationErrorGenerator.kt:78 */
        3354  +
            {
        3355  +
                _inner.fmt(f)
        3356  +
            }
        3357  +
            /* ServerOperationErrorGenerator.kt:139 */
        3358  +
        }
        3359  +
        /* ServerOperationErrorGenerator.kt:76 */
        3360  +
    }
        3361  +
    /* ServerOperationErrorGenerator.kt:75 */
        3362  +
}
        3363  +
/* ServerOperationErrorGenerator.kt:83 */
        3364  +
impl HttpRequestWithRegexLiteralError {
        3365  +
    /* ServerOperationErrorGenerator.kt:87 */
        3366  +
    /// Returns `true` if the error kind is `HttpRequestWithRegexLiteralError::ValidationException`.
        3367  +
    /* ServerOperationErrorGenerator.kt:88 */
        3368  +
    pub fn is_validation_exception(&self) -> bool {
        3369  +
        /* ServerOperationErrorGenerator.kt:89 */
        3370  +
        matches!(
        3371  +
            &self,
        3372  +
            HttpRequestWithRegexLiteralError::ValidationException(_)
        3373  +
        )
        3374  +
        /* ServerOperationErrorGenerator.kt:88 */
        3375  +
    }
        3376  +
    /* ServerOperationErrorGenerator.kt:92 */
        3377  +
    /// Returns the error name string by matching the correct variant.
        3378  +
    /* ServerOperationErrorGenerator.kt:93 */
        3379  +
    pub fn name(&self) -> &'static str {
        3380  +
        /* ServerOperationErrorGenerator.kt:139 */
        3381  +
        match &self {
        3382  +
            /* ServerOperationErrorGenerator.kt:142 */
        3383  +
            HttpRequestWithRegexLiteralError::ValidationException(_inner) =>
        3384  +
            /* ServerOperationErrorGenerator.kt:95 */
        3385  +
            {
        3386  +
                _inner.name()
        3387  +
            }
        3388  +
            /* ServerOperationErrorGenerator.kt:139 */
        3389  +
        }
        3390  +
        /* ServerOperationErrorGenerator.kt:93 */
        3391  +
    }
        3392  +
    /* ServerOperationErrorGenerator.kt:83 */
        3393  +
}
        3394  +
/* ServerOperationErrorGenerator.kt:100 */
        3395  +
impl ::std::error::Error for HttpRequestWithRegexLiteralError {
        3396  +
    /* ServerOperationErrorGenerator.kt:101 */
        3397  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        3398  +
        /* ServerOperationErrorGenerator.kt:139 */
        3399  +
        match &self {
        3400  +
            /* ServerOperationErrorGenerator.kt:142 */
        3401  +
            HttpRequestWithRegexLiteralError::ValidationException(_inner) =>
        3402  +
            /* ServerOperationErrorGenerator.kt:103 */
        3403  +
            {
        3404  +
                Some(_inner)
        3405  +
            }
        3406  +
            /* ServerOperationErrorGenerator.kt:139 */
        3407  +
        }
        3408  +
        /* ServerOperationErrorGenerator.kt:101 */
        3409  +
    }
        3410  +
    /* ServerOperationErrorGenerator.kt:100 */
        3411  +
}
        3412  +
/* ServerOperationErrorGenerator.kt:110 */
        3413  +
impl ::std::convert::From<crate::error::ValidationException>
        3414  +
    for crate::error::HttpRequestWithRegexLiteralError
        3415  +
{
        3416  +
    /* ServerOperationErrorGenerator.kt:111 */
        3417  +
    fn from(
        3418  +
        variant: crate::error::ValidationException,
        3419  +
    ) -> crate::error::HttpRequestWithRegexLiteralError {
        3420  +
        /* ServerOperationErrorGenerator.kt:112 */
        3421  +
        Self::ValidationException(variant)
        3422  +
        /* ServerOperationErrorGenerator.kt:111 */
        3423  +
    }
        3424  +
    /* ServerOperationErrorGenerator.kt:110 */
        3425  +
}
        3426  +
        3427  +
/* ServerOperationErrorGenerator.kt:63 */
        3428  +
/// Error type for the `HttpRequestWithFloatLabels` operation.
        3429  +
/* ServerOperationErrorGenerator.kt:64 */
        3430  +
/// Each variant represents an error that can occur for the `HttpRequestWithFloatLabels` operation.
        3431  +
/* RustType.kt:534 */
        3432  +
#[derive(::std::fmt::Debug)]
        3433  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum HttpRequestWithFloatLabelsError {
        3434  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        3435  +
    /* ServerOperationErrorGenerator.kt:71 */
        3436  +
    ValidationException(crate::error::ValidationException),
        3437  +
    /* ServerOperationErrorGenerator.kt:66 */
        3438  +
}
        3439  +
/* ServerOperationErrorGenerator.kt:75 */
        3440  +
impl ::std::fmt::Display for HttpRequestWithFloatLabelsError {
        3441  +
    /* ServerOperationErrorGenerator.kt:76 */
        3442  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3443  +
        /* ServerOperationErrorGenerator.kt:139 */
        3444  +
        match &self {
        3445  +
            /* ServerOperationErrorGenerator.kt:142 */
        3446  +
            HttpRequestWithFloatLabelsError::ValidationException(_inner) =>
        3447  +
            /* ServerOperationErrorGenerator.kt:78 */
        3448  +
            {
        3449  +
                _inner.fmt(f)
        3450  +
            }
        3451  +
            /* ServerOperationErrorGenerator.kt:139 */
        3452  +
        }
        3453  +
        /* ServerOperationErrorGenerator.kt:76 */
        3454  +
    }
        3455  +
    /* ServerOperationErrorGenerator.kt:75 */
        3456  +
}
        3457  +
/* ServerOperationErrorGenerator.kt:83 */
        3458  +
impl HttpRequestWithFloatLabelsError {
        3459  +
    /* ServerOperationErrorGenerator.kt:87 */
        3460  +
    /// Returns `true` if the error kind is `HttpRequestWithFloatLabelsError::ValidationException`.
        3461  +
    /* ServerOperationErrorGenerator.kt:88 */
        3462  +
    pub fn is_validation_exception(&self) -> bool {
        3463  +
        /* ServerOperationErrorGenerator.kt:89 */
        3464  +
        matches!(
        3465  +
            &self,
        3466  +
            HttpRequestWithFloatLabelsError::ValidationException(_)
        3467  +
        )
        3468  +
        /* ServerOperationErrorGenerator.kt:88 */
        3469  +
    }
        3470  +
    /* ServerOperationErrorGenerator.kt:92 */
        3471  +
    /// Returns the error name string by matching the correct variant.
        3472  +
    /* ServerOperationErrorGenerator.kt:93 */
        3473  +
    pub fn name(&self) -> &'static str {
        3474  +
        /* ServerOperationErrorGenerator.kt:139 */
        3475  +
        match &self {
        3476  +
            /* ServerOperationErrorGenerator.kt:142 */
        3477  +
            HttpRequestWithFloatLabelsError::ValidationException(_inner) =>
        3478  +
            /* ServerOperationErrorGenerator.kt:95 */
        3479  +
            {
        3480  +
                _inner.name()
        3481  +
            }
        3482  +
            /* ServerOperationErrorGenerator.kt:139 */
        3483  +
        }
        3484  +
        /* ServerOperationErrorGenerator.kt:93 */
        3485  +
    }
        3486  +
    /* ServerOperationErrorGenerator.kt:83 */
        3487  +
}
        3488  +
/* ServerOperationErrorGenerator.kt:100 */
        3489  +
impl ::std::error::Error for HttpRequestWithFloatLabelsError {
        3490  +
    /* ServerOperationErrorGenerator.kt:101 */
        3491  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        3492  +
        /* ServerOperationErrorGenerator.kt:139 */
        3493  +
        match &self {
        3494  +
            /* ServerOperationErrorGenerator.kt:142 */
        3495  +
            HttpRequestWithFloatLabelsError::ValidationException(_inner) =>
        3496  +
            /* ServerOperationErrorGenerator.kt:103 */
        3497  +
            {
        3498  +
                Some(_inner)
        3499  +
            }
        3500  +
            /* ServerOperationErrorGenerator.kt:139 */
        3501  +
        }
        3502  +
        /* ServerOperationErrorGenerator.kt:101 */
        3503  +
    }
        3504  +
    /* ServerOperationErrorGenerator.kt:100 */
        3505  +
}
        3506  +
/* ServerOperationErrorGenerator.kt:110 */
        3507  +
impl ::std::convert::From<crate::error::ValidationException>
        3508  +
    for crate::error::HttpRequestWithFloatLabelsError
        3509  +
{
        3510  +
    /* ServerOperationErrorGenerator.kt:111 */
        3511  +
    fn from(
        3512  +
        variant: crate::error::ValidationException,
        3513  +
    ) -> crate::error::HttpRequestWithFloatLabelsError {
        3514  +
        /* ServerOperationErrorGenerator.kt:112 */
        3515  +
        Self::ValidationException(variant)
        3516  +
        /* ServerOperationErrorGenerator.kt:111 */
        3517  +
    }
        3518  +
    /* ServerOperationErrorGenerator.kt:110 */
        3519  +
}
        3520  +
        3521  +
/* ServerOperationErrorGenerator.kt:63 */
        3522  +
/// Error type for the `HttpRequestWithGreedyLabelInPath` operation.
        3523  +
/* ServerOperationErrorGenerator.kt:64 */
        3524  +
/// Each variant represents an error that can occur for the `HttpRequestWithGreedyLabelInPath` operation.
        3525  +
/* RustType.kt:534 */
        3526  +
#[derive(::std::fmt::Debug)]
        3527  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum HttpRequestWithGreedyLabelInPathError {
        3528  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        3529  +
    /* ServerOperationErrorGenerator.kt:71 */
        3530  +
    ValidationException(crate::error::ValidationException),
        3531  +
    /* ServerOperationErrorGenerator.kt:66 */
        3532  +
}
        3533  +
/* ServerOperationErrorGenerator.kt:75 */
        3534  +
impl ::std::fmt::Display for HttpRequestWithGreedyLabelInPathError {
        3535  +
    /* ServerOperationErrorGenerator.kt:76 */
        3536  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3537  +
        /* ServerOperationErrorGenerator.kt:139 */
        3538  +
        match &self {
        3539  +
            /* ServerOperationErrorGenerator.kt:142 */
        3540  +
            HttpRequestWithGreedyLabelInPathError::ValidationException(_inner) =>
        3541  +
            /* ServerOperationErrorGenerator.kt:78 */
        3542  +
            {
        3543  +
                _inner.fmt(f)
        3544  +
            }
        3545  +
            /* ServerOperationErrorGenerator.kt:139 */
        3546  +
        }
        3547  +
        /* ServerOperationErrorGenerator.kt:76 */
        3548  +
    }
        3549  +
    /* ServerOperationErrorGenerator.kt:75 */
        3550  +
}
        3551  +
/* ServerOperationErrorGenerator.kt:83 */
        3552  +
impl HttpRequestWithGreedyLabelInPathError {
        3553  +
    /* ServerOperationErrorGenerator.kt:87 */
        3554  +
    /// Returns `true` if the error kind is `HttpRequestWithGreedyLabelInPathError::ValidationException`.
        3555  +
    /* ServerOperationErrorGenerator.kt:88 */
        3556  +
    pub fn is_validation_exception(&self) -> bool {
        3557  +
        /* ServerOperationErrorGenerator.kt:89 */
        3558  +
        matches!(
        3559  +
            &self,
        3560  +
            HttpRequestWithGreedyLabelInPathError::ValidationException(_)
        3561  +
        )
        3562  +
        /* ServerOperationErrorGenerator.kt:88 */
        3563  +
    }
        3564  +
    /* ServerOperationErrorGenerator.kt:92 */
        3565  +
    /// Returns the error name string by matching the correct variant.
        3566  +
    /* ServerOperationErrorGenerator.kt:93 */
        3567  +
    pub fn name(&self) -> &'static str {
        3568  +
        /* ServerOperationErrorGenerator.kt:139 */
        3569  +
        match &self {
        3570  +
            /* ServerOperationErrorGenerator.kt:142 */
        3571  +
            HttpRequestWithGreedyLabelInPathError::ValidationException(_inner) =>
        3572  +
            /* ServerOperationErrorGenerator.kt:95 */
        3573  +
            {
        3574  +
                _inner.name()
        3575  +
            }
        3576  +
            /* ServerOperationErrorGenerator.kt:139 */
        3577  +
        }
        3578  +
        /* ServerOperationErrorGenerator.kt:93 */
        3579  +
    }
        3580  +
    /* ServerOperationErrorGenerator.kt:83 */
        3581  +
}
        3582  +
/* ServerOperationErrorGenerator.kt:100 */
        3583  +
impl ::std::error::Error for HttpRequestWithGreedyLabelInPathError {
        3584  +
    /* ServerOperationErrorGenerator.kt:101 */
        3585  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        3586  +
        /* ServerOperationErrorGenerator.kt:139 */
        3587  +
        match &self {
        3588  +
            /* ServerOperationErrorGenerator.kt:142 */
        3589  +
            HttpRequestWithGreedyLabelInPathError::ValidationException(_inner) =>
        3590  +
            /* ServerOperationErrorGenerator.kt:103 */
        3591  +
            {
        3592  +
                Some(_inner)
        3593  +
            }
        3594  +
            /* ServerOperationErrorGenerator.kt:139 */
        3595  +
        }
        3596  +
        /* ServerOperationErrorGenerator.kt:101 */
        3597  +
    }
        3598  +
    /* ServerOperationErrorGenerator.kt:100 */
        3599  +
}
        3600  +
/* ServerOperationErrorGenerator.kt:110 */
        3601  +
impl ::std::convert::From<crate::error::ValidationException>
        3602  +
    for crate::error::HttpRequestWithGreedyLabelInPathError
        3603  +
{
        3604  +
    /* ServerOperationErrorGenerator.kt:111 */
        3605  +
    fn from(
        3606  +
        variant: crate::error::ValidationException,
        3607  +
    ) -> crate::error::HttpRequestWithGreedyLabelInPathError {
        3608  +
        /* ServerOperationErrorGenerator.kt:112 */
        3609  +
        Self::ValidationException(variant)
        3610  +
        /* ServerOperationErrorGenerator.kt:111 */
        3611  +
    }
        3612  +
    /* ServerOperationErrorGenerator.kt:110 */
        3613  +
}
        3614  +
        3615  +
/* ServerOperationErrorGenerator.kt:63 */
        3616  +
/// Error type for the `HttpRequestWithLabelsAndTimestampFormat` operation.
        3617  +
/* ServerOperationErrorGenerator.kt:64 */
        3618  +
/// Each variant represents an error that can occur for the `HttpRequestWithLabelsAndTimestampFormat` operation.
        3619  +
/* RustType.kt:534 */
        3620  +
#[derive(::std::fmt::Debug)]
        3621  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum HttpRequestWithLabelsAndTimestampFormatError {
        3622  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        3623  +
    /* ServerOperationErrorGenerator.kt:71 */
        3624  +
    ValidationException(crate::error::ValidationException),
        3625  +
    /* ServerOperationErrorGenerator.kt:66 */
        3626  +
}
        3627  +
/* ServerOperationErrorGenerator.kt:75 */
        3628  +
impl ::std::fmt::Display for HttpRequestWithLabelsAndTimestampFormatError {
        3629  +
    /* ServerOperationErrorGenerator.kt:76 */
        3630  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3631  +
        /* ServerOperationErrorGenerator.kt:139 */
        3632  +
        match &self {
        3633  +
            /* ServerOperationErrorGenerator.kt:142 */
        3634  +
            HttpRequestWithLabelsAndTimestampFormatError::ValidationException(_inner) =>
        3635  +
            /* ServerOperationErrorGenerator.kt:78 */
        3636  +
            {
        3637  +
                _inner.fmt(f)
        3638  +
            }
        3639  +
            /* ServerOperationErrorGenerator.kt:139 */
        3640  +
        }
        3641  +
        /* ServerOperationErrorGenerator.kt:76 */
        3642  +
    }
        3643  +
    /* ServerOperationErrorGenerator.kt:75 */
        3644  +
}
        3645  +
/* ServerOperationErrorGenerator.kt:83 */
        3646  +
impl HttpRequestWithLabelsAndTimestampFormatError {
        3647  +
    /* ServerOperationErrorGenerator.kt:87 */
        3648  +
    /// Returns `true` if the error kind is `HttpRequestWithLabelsAndTimestampFormatError::ValidationException`.
        3649  +
    /* ServerOperationErrorGenerator.kt:88 */
        3650  +
    pub fn is_validation_exception(&self) -> bool {
        3651  +
        /* ServerOperationErrorGenerator.kt:89 */
        3652  +
        matches!(
        3653  +
            &self,
        3654  +
            HttpRequestWithLabelsAndTimestampFormatError::ValidationException(_)
        3655  +
        )
        3656  +
        /* ServerOperationErrorGenerator.kt:88 */
        3657  +
    }
        3658  +
    /* ServerOperationErrorGenerator.kt:92 */
        3659  +
    /// Returns the error name string by matching the correct variant.
        3660  +
    /* ServerOperationErrorGenerator.kt:93 */
        3661  +
    pub fn name(&self) -> &'static str {
        3662  +
        /* ServerOperationErrorGenerator.kt:139 */
        3663  +
        match &self {
        3664  +
            /* ServerOperationErrorGenerator.kt:142 */
        3665  +
            HttpRequestWithLabelsAndTimestampFormatError::ValidationException(_inner) =>
        3666  +
            /* ServerOperationErrorGenerator.kt:95 */
        3667  +
            {
        3668  +
                _inner.name()
        3669  +
            }
        3670  +
            /* ServerOperationErrorGenerator.kt:139 */
        3671  +
        }
        3672  +
        /* ServerOperationErrorGenerator.kt:93 */
        3673  +
    }
        3674  +
    /* ServerOperationErrorGenerator.kt:83 */
        3675  +
}
        3676  +
/* ServerOperationErrorGenerator.kt:100 */
        3677  +
impl ::std::error::Error for HttpRequestWithLabelsAndTimestampFormatError {
        3678  +
    /* ServerOperationErrorGenerator.kt:101 */
        3679  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        3680  +
        /* ServerOperationErrorGenerator.kt:139 */
        3681  +
        match &self {
        3682  +
            /* ServerOperationErrorGenerator.kt:142 */
        3683  +
            HttpRequestWithLabelsAndTimestampFormatError::ValidationException(_inner) =>
        3684  +
            /* ServerOperationErrorGenerator.kt:103 */
        3685  +
            {
        3686  +
                Some(_inner)
        3687  +
            }
        3688  +
            /* ServerOperationErrorGenerator.kt:139 */
        3689  +
        }
        3690  +
        /* ServerOperationErrorGenerator.kt:101 */
        3691  +
    }
        3692  +
    /* ServerOperationErrorGenerator.kt:100 */
        3693  +
}
        3694  +
/* ServerOperationErrorGenerator.kt:110 */
        3695  +
impl ::std::convert::From<crate::error::ValidationException>
        3696  +
    for crate::error::HttpRequestWithLabelsAndTimestampFormatError
        3697  +
{
        3698  +
    /* ServerOperationErrorGenerator.kt:111 */
        3699  +
    fn from(
        3700  +
        variant: crate::error::ValidationException,
        3701  +
    ) -> crate::error::HttpRequestWithLabelsAndTimestampFormatError {
        3702  +
        /* ServerOperationErrorGenerator.kt:112 */
        3703  +
        Self::ValidationException(variant)
        3704  +
        /* ServerOperationErrorGenerator.kt:111 */
        3705  +
    }
        3706  +
    /* ServerOperationErrorGenerator.kt:110 */
        3707  +
}
        3708  +
        3709  +
/* ServerOperationErrorGenerator.kt:63 */
        3710  +
/// Error type for the `HttpRequestWithLabels` operation.
        3711  +
/* ServerOperationErrorGenerator.kt:64 */
        3712  +
/// Each variant represents an error that can occur for the `HttpRequestWithLabels` operation.
        3713  +
/* RustType.kt:534 */
        3714  +
#[derive(::std::fmt::Debug)]
        3715  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum HttpRequestWithLabelsError {
        3716  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        3717  +
    /* ServerOperationErrorGenerator.kt:71 */
        3718  +
    ValidationException(crate::error::ValidationException),
        3719  +
    /* ServerOperationErrorGenerator.kt:66 */
        3720  +
}
        3721  +
/* ServerOperationErrorGenerator.kt:75 */
        3722  +
impl ::std::fmt::Display for HttpRequestWithLabelsError {
        3723  +
    /* ServerOperationErrorGenerator.kt:76 */
        3724  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3725  +
        /* ServerOperationErrorGenerator.kt:139 */
        3726  +
        match &self {
        3727  +
            /* ServerOperationErrorGenerator.kt:142 */
        3728  +
            HttpRequestWithLabelsError::ValidationException(_inner) =>
        3729  +
            /* ServerOperationErrorGenerator.kt:78 */
        3730  +
            {
        3731  +
                _inner.fmt(f)
        3732  +
            }
        3733  +
            /* ServerOperationErrorGenerator.kt:139 */
        3734  +
        }
        3735  +
        /* ServerOperationErrorGenerator.kt:76 */
        3736  +
    }
        3737  +
    /* ServerOperationErrorGenerator.kt:75 */
        3738  +
}
        3739  +
/* ServerOperationErrorGenerator.kt:83 */
        3740  +
impl HttpRequestWithLabelsError {
        3741  +
    /* ServerOperationErrorGenerator.kt:87 */
        3742  +
    /// Returns `true` if the error kind is `HttpRequestWithLabelsError::ValidationException`.
        3743  +
    /* ServerOperationErrorGenerator.kt:88 */
        3744  +
    pub fn is_validation_exception(&self) -> bool {
        3745  +
        /* ServerOperationErrorGenerator.kt:89 */
        3746  +
        matches!(&self, HttpRequestWithLabelsError::ValidationException(_))
        3747  +
        /* ServerOperationErrorGenerator.kt:88 */
        3748  +
    }
        3749  +
    /* ServerOperationErrorGenerator.kt:92 */
        3750  +
    /// Returns the error name string by matching the correct variant.
        3751  +
    /* ServerOperationErrorGenerator.kt:93 */
        3752  +
    pub fn name(&self) -> &'static str {
        3753  +
        /* ServerOperationErrorGenerator.kt:139 */
        3754  +
        match &self {
        3755  +
            /* ServerOperationErrorGenerator.kt:142 */
        3756  +
            HttpRequestWithLabelsError::ValidationException(_inner) =>
        3757  +
            /* ServerOperationErrorGenerator.kt:95 */
        3758  +
            {
        3759  +
                _inner.name()
        3760  +
            }
        3761  +
            /* ServerOperationErrorGenerator.kt:139 */
        3762  +
        }
        3763  +
        /* ServerOperationErrorGenerator.kt:93 */
        3764  +
    }
        3765  +
    /* ServerOperationErrorGenerator.kt:83 */
        3766  +
}
        3767  +
/* ServerOperationErrorGenerator.kt:100 */
        3768  +
impl ::std::error::Error for HttpRequestWithLabelsError {
        3769  +
    /* ServerOperationErrorGenerator.kt:101 */
        3770  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        3771  +
        /* ServerOperationErrorGenerator.kt:139 */
        3772  +
        match &self {
        3773  +
            /* ServerOperationErrorGenerator.kt:142 */
        3774  +
            HttpRequestWithLabelsError::ValidationException(_inner) =>
        3775  +
            /* ServerOperationErrorGenerator.kt:103 */
        3776  +
            {
        3777  +
                Some(_inner)
        3778  +
            }
        3779  +
            /* ServerOperationErrorGenerator.kt:139 */
        3780  +
        }
        3781  +
        /* ServerOperationErrorGenerator.kt:101 */
        3782  +
    }
        3783  +
    /* ServerOperationErrorGenerator.kt:100 */
        3784  +
}
        3785  +
/* ServerOperationErrorGenerator.kt:110 */
        3786  +
impl ::std::convert::From<crate::error::ValidationException>
        3787  +
    for crate::error::HttpRequestWithLabelsError
        3788  +
{
        3789  +
    /* ServerOperationErrorGenerator.kt:111 */
        3790  +
    fn from(
        3791  +
        variant: crate::error::ValidationException,
        3792  +
    ) -> crate::error::HttpRequestWithLabelsError {
        3793  +
        /* ServerOperationErrorGenerator.kt:112 */
        3794  +
        Self::ValidationException(variant)
        3795  +
        /* ServerOperationErrorGenerator.kt:111 */
        3796  +
    }
        3797  +
    /* ServerOperationErrorGenerator.kt:110 */
        3798  +
}
        3799  +
        3800  +
/* ServerOperationErrorGenerator.kt:63 */
        3801  +
/// Error type for the `InputAndOutputWithHeaders` operation.
        3802  +
/* ServerOperationErrorGenerator.kt:64 */
        3803  +
/// Each variant represents an error that can occur for the `InputAndOutputWithHeaders` operation.
        3804  +
/* RustType.kt:534 */
        3805  +
#[derive(::std::fmt::Debug)]
        3806  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum InputAndOutputWithHeadersError {
        3807  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        3808  +
    /* ServerOperationErrorGenerator.kt:71 */
        3809  +
    ValidationException(crate::error::ValidationException),
        3810  +
    /* ServerOperationErrorGenerator.kt:66 */
        3811  +
}
        3812  +
/* ServerOperationErrorGenerator.kt:75 */
        3813  +
impl ::std::fmt::Display for InputAndOutputWithHeadersError {
        3814  +
    /* ServerOperationErrorGenerator.kt:76 */
        3815  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3816  +
        /* ServerOperationErrorGenerator.kt:139 */
        3817  +
        match &self {
        3818  +
            /* ServerOperationErrorGenerator.kt:142 */
        3819  +
            InputAndOutputWithHeadersError::ValidationException(_inner) =>
        3820  +
            /* ServerOperationErrorGenerator.kt:78 */
        3821  +
            {
        3822  +
                _inner.fmt(f)
        3823  +
            }
        3824  +
            /* ServerOperationErrorGenerator.kt:139 */
        3825  +
        }
        3826  +
        /* ServerOperationErrorGenerator.kt:76 */
        3827  +
    }
        3828  +
    /* ServerOperationErrorGenerator.kt:75 */
        3829  +
}
        3830  +
/* ServerOperationErrorGenerator.kt:83 */
        3831  +
impl InputAndOutputWithHeadersError {
        3832  +
    /* ServerOperationErrorGenerator.kt:87 */
        3833  +
    /// Returns `true` if the error kind is `InputAndOutputWithHeadersError::ValidationException`.
        3834  +
    /* ServerOperationErrorGenerator.kt:88 */
        3835  +
    pub fn is_validation_exception(&self) -> bool {
        3836  +
        /* ServerOperationErrorGenerator.kt:89 */
        3837  +
        matches!(
        3838  +
            &self,
        3839  +
            InputAndOutputWithHeadersError::ValidationException(_)
        3840  +
        )
        3841  +
        /* ServerOperationErrorGenerator.kt:88 */
        3842  +
    }
        3843  +
    /* ServerOperationErrorGenerator.kt:92 */
        3844  +
    /// Returns the error name string by matching the correct variant.
        3845  +
    /* ServerOperationErrorGenerator.kt:93 */
        3846  +
    pub fn name(&self) -> &'static str {
        3847  +
        /* ServerOperationErrorGenerator.kt:139 */
        3848  +
        match &self {
        3849  +
            /* ServerOperationErrorGenerator.kt:142 */
        3850  +
            InputAndOutputWithHeadersError::ValidationException(_inner) =>
        3851  +
            /* ServerOperationErrorGenerator.kt:95 */
        3852  +
            {
        3853  +
                _inner.name()
        3854  +
            }
        3855  +
            /* ServerOperationErrorGenerator.kt:139 */
        3856  +
        }
        3857  +
        /* ServerOperationErrorGenerator.kt:93 */
        3858  +
    }
        3859  +
    /* ServerOperationErrorGenerator.kt:83 */
        3860  +
}
        3861  +
/* ServerOperationErrorGenerator.kt:100 */
        3862  +
impl ::std::error::Error for InputAndOutputWithHeadersError {
        3863  +
    /* ServerOperationErrorGenerator.kt:101 */
        3864  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        3865  +
        /* ServerOperationErrorGenerator.kt:139 */
        3866  +
        match &self {
        3867  +
            /* ServerOperationErrorGenerator.kt:142 */
        3868  +
            InputAndOutputWithHeadersError::ValidationException(_inner) =>
        3869  +
            /* ServerOperationErrorGenerator.kt:103 */
        3870  +
            {
        3871  +
                Some(_inner)
        3872  +
            }
        3873  +
            /* ServerOperationErrorGenerator.kt:139 */
        3874  +
        }
        3875  +
        /* ServerOperationErrorGenerator.kt:101 */
        3876  +
    }
        3877  +
    /* ServerOperationErrorGenerator.kt:100 */
        3878  +
}
        3879  +
/* ServerOperationErrorGenerator.kt:110 */
        3880  +
impl ::std::convert::From<crate::error::ValidationException>
        3881  +
    for crate::error::InputAndOutputWithHeadersError
        3882  +
{
        3883  +
    /* ServerOperationErrorGenerator.kt:111 */
        3884  +
    fn from(
        3885  +
        variant: crate::error::ValidationException,
        3886  +
    ) -> crate::error::InputAndOutputWithHeadersError {
        3887  +
        /* ServerOperationErrorGenerator.kt:112 */
        3888  +
        Self::ValidationException(variant)
        3889  +
        /* ServerOperationErrorGenerator.kt:111 */
        3890  +
    }
        3891  +
    /* ServerOperationErrorGenerator.kt:110 */
        3892  +
}
        3893  +
        3894  +
/// /* ServerBuilderGenerator.kt:171 */See [`ValidationException`](crate::error::ValidationException).
        3895  +
pub mod validation_exception {
        3896  +
        3897  +
    /* RustType.kt:534 */
        3898  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        3899  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        3900  +
    /* RustType.kt:534 */
        3901  +
    #[non_exhaustive]
        3902  +
    /* ServerBuilderConstraintViolations.kt:75 */
        3903  +
    #[allow(clippy::enum_variant_names)]
        3904  +
    pub enum ConstraintViolation {
        3905  +
        /// /* ServerBuilderConstraintViolations.kt:137 */`message` was not provided but it is required when building `ValidationException`.
        3906  +
        /* ServerBuilderConstraintViolations.kt:144 */
        3907  +
        MissingMessage,
        3908  +
        /* ServerBuilderConstraintViolations.kt:75 */
        3909  +
    }
        3910  +
    /* ServerBuilderConstraintViolations.kt:116 */
        3911  +
    impl ::std::fmt::Display for ConstraintViolation {
        3912  +
        /* ServerBuilderConstraintViolations.kt:117 */
        3913  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3914  +
            /* ServerBuilderConstraintViolations.kt:118 */
        3915  +
            match self {
        3916  +
                /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
        3917  +
            /* ServerBuilderConstraintViolations.kt:118 */}
        3918  +
            /* ServerBuilderConstraintViolations.kt:117 */
        3919  +
        }
        3920  +
        /* ServerBuilderConstraintViolations.kt:116 */
        3921  +
    }
        3922  +
    /* ServerBuilderConstraintViolations.kt:83 */
        3923  +
    impl ::std::error::Error for ConstraintViolation {}
        3924  +
    /* ServerBuilderGenerator.kt:446 */
        3925  +
    impl ::std::convert::TryFrom<Builder> for crate::error::ValidationException {
        3926  +
        type Error = ConstraintViolation;
        3927  +
        3928  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        3929  +
            builder.build()
        3930  +
        }
        3931  +
    }
        3932  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`ValidationException`](crate::error::ValidationException).
        3933  +
    /* RustType.kt:534 */
        3934  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        3935  +
    /* ServerBuilderGenerator.kt:211 */
        3936  +
    pub struct Builder {
        3937  +
        /* ServerBuilderGenerator.kt:308 */
        3938  +
        pub(crate) message: ::std::option::Option<::std::string::String>,
        3939  +
        /* ServerBuilderGenerator.kt:308 */
        3940  +
        pub(crate) field_list:
        3941  +
            ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
        3942  +
        /* ServerBuilderGenerator.kt:211 */
        3943  +
    }
        3944  +
    /* ServerBuilderGenerator.kt:215 */
        3945  +
    impl Builder {
        3946  +
        /// /* ServerBuilderGenerator.kt:331 */A summary of the validation failure.
        3947  +
        /* ServerBuilderGenerator.kt:343 */
        3948  +
        pub fn message(mut self, input: ::std::string::String) -> Self {
        3949  +
            /* ServerBuilderGenerator.kt:344 */
        3950  +
            self.message =
        3951  +
                /* ServerBuilderGenerator.kt:345 */Some(
        3952  +
                    /* ServerBuilderGenerator.kt:376 */input
        3953  +
                /* ServerBuilderGenerator.kt:345 */)
        3954  +
            /* ServerBuilderGenerator.kt:344 */;
        3955  +
            self
        3956  +
            /* ServerBuilderGenerator.kt:343 */
        3957  +
        }
        3958  +
        /// /* ServerBuilderGenerator.kt:331 */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.
        3959  +
        /* ServerBuilderGenerator.kt:343 */
        3960  +
        pub fn field_list(
        3961  +
            mut self,
        3962  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
        3963  +
        ) -> Self {
        3964  +
            /* ServerBuilderGenerator.kt:344 */
        3965  +
            self.field_list =
        3966  +
                /* ServerBuilderGenerator.kt:376 */input
        3967  +
            /* ServerBuilderGenerator.kt:344 */;
        3968  +
            self
        3969  +
            /* ServerBuilderGenerator.kt:343 */
        3970  +
        }
        3971  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
        3972  +
        /// /* ServerBuilderGenerator.kt:260 */
        3973  +
        /// The builder fails to construct a [`ValidationException`](crate::error::ValidationException) if a [`ConstraintViolation`] occurs.
        3974  +
        ///
        3975  +
        /* ServerBuilderGenerator.kt:271 */
        3976  +
        pub fn build(self) -> Result<crate::error::ValidationException, ConstraintViolation> {
        3977  +
            self.build_enforcing_all_constraints()
        3978  +
        }
        3979  +
        /* ServerBuilderGenerator.kt:283 */
        3980  +
        fn build_enforcing_all_constraints(
        3981  +
            self,
        3982  +
        ) -> Result<crate::error::ValidationException, ConstraintViolation> {
        3983  +
            /* ServerBuilderGenerator.kt:287 */
        3984  +
            Ok(
        3985  +
                /* ServerBuilderGenerator.kt:542 */
        3986  +
                crate::error::ValidationException {
        3987  +
                    /* ServerBuilderGenerator.kt:546 */
        3988  +
                    message: self
        3989  +
                        .message
        3990  +
                        /* ServerBuilderGenerator.kt:569 */
        3991  +
                        .ok_or(ConstraintViolation::MissingMessage)?,
        3992  +
                    /* ServerBuilderGenerator.kt:546 */
        3993  +
                    field_list: self.field_list,
        3994  +
                    /* ServerBuilderGenerator.kt:542 */
        3995  +
                }, /* ServerBuilderGenerator.kt:287 */
        3996  +
            )
        3997  +
            /* ServerBuilderGenerator.kt:283 */
        3998  +
        }
        3999  +
        /* ServerBuilderGenerator.kt:215 */
        4000  +
    }
        4001  +
        4002  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
        4003  +
}
        4004  +
/// /* ServerBuilderGenerator.kt:171 */See [`FooError`](crate::error::FooError).
        4005  +
pub mod foo_error {
        4006  +
        4007  +
    /* ServerBuilderGenerator.kt:461 */
        4008  +
    impl ::std::convert::From<Builder> for crate::error::FooError {
        4009  +
        fn from(builder: Builder) -> Self {
        4010  +
            builder.build()
        4011  +
        }
        4012  +
    }
        4013  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`FooError`](crate::error::FooError).
        4014  +
    /* RustType.kt:534 */
        4015  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        4016  +
    /* ServerBuilderGenerator.kt:211 */
        4017  +
    pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
        4018  +
    /* ServerBuilderGenerator.kt:215 */
        4019  +
    impl Builder {
        4020  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`FooError`](crate::error::FooError).
        4021  +
        /* ServerBuilderGenerator.kt:271 */
        4022  +
        pub fn build(self) -> crate::error::FooError {
        4023  +
            self.build_enforcing_all_constraints()
        4024  +
        }
        4025  +
        /* ServerBuilderGenerator.kt:283 */
        4026  +
        fn build_enforcing_all_constraints(self) -> crate::error::FooError {
        4027  +
            /* ServerBuilderGenerator.kt:542 */
        4028  +
            crate::error::FooError {
        4029  +
            /* ServerBuilderGenerator.kt:542 */}
        4030  +
            /* ServerBuilderGenerator.kt:283 */
        4031  +
        }
        4032  +
        /* ServerBuilderGenerator.kt:215 */
        4033  +
    }
        4034  +
        4035  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
        4036  +
}
        4037  +
/// /* ServerBuilderGenerator.kt:171 */See [`ComplexError`](crate::error::ComplexError).
        4038  +
pub mod complex_error {
        4039  +
        4040  +
    /* ServerBuilderGenerator.kt:461 */
        4041  +
    impl ::std::convert::From<Builder> for crate::error::ComplexError {
        4042  +
        fn from(builder: Builder) -> Self {
        4043  +
            builder.build()
        4044  +
        }
        4045  +
    }
        4046  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`ComplexError`](crate::error::ComplexError).
        4047  +
    /* RustType.kt:534 */
        4048  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        4049  +
    /* ServerBuilderGenerator.kt:211 */
        4050  +
    pub struct Builder {
        4051  +
        /* ServerBuilderGenerator.kt:308 */
        4052  +
        pub(crate) header: ::std::option::Option<::std::string::String>,
        4053  +
        /* ServerBuilderGenerator.kt:308 */
        4054  +
        pub(crate) top_level: ::std::option::Option<::std::string::String>,
        4055  +
        /* ServerBuilderGenerator.kt:308 */
        4056  +
        pub(crate) nested: ::std::option::Option<crate::model::ComplexNestedErrorData>,
        4057  +
        /* ServerBuilderGenerator.kt:211 */
        4058  +
    }
        4059  +
    /* ServerBuilderGenerator.kt:215 */
        4060  +
    impl Builder {
        4061  +
        /* ServerBuilderGenerator.kt:331 */
        4062  +
        #[allow(missing_docs)] // documentation missing in model
        4063  +
                               /* ServerBuilderGenerator.kt:343 */
        4064  +
        pub fn header(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        4065  +
            /* ServerBuilderGenerator.kt:344 */
        4066  +
            self.header =
        4067  +
                /* ServerBuilderGenerator.kt:376 */input
        4068  +
            /* ServerBuilderGenerator.kt:344 */;
        4069  +
            self
        4070  +
            /* ServerBuilderGenerator.kt:343 */
        4071  +
        }
        4072  +
        /* ServerBuilderGenerator.kt:331 */
        4073  +
        #[allow(missing_docs)] // documentation missing in model
        4074  +
                               /* ServerBuilderGenerator.kt:343 */
        4075  +
        pub fn top_level(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        4076  +
            /* ServerBuilderGenerator.kt:344 */
        4077  +
            self.top_level =
        4078  +
                /* ServerBuilderGenerator.kt:376 */input
        4079  +
            /* ServerBuilderGenerator.kt:344 */;
        4080  +
            self
        4081  +
            /* ServerBuilderGenerator.kt:343 */
        4082  +
        }
        4083  +
        /* ServerBuilderGenerator.kt:331 */
        4084  +
        #[allow(missing_docs)] // documentation missing in model
        4085  +
                               /* ServerBuilderGenerator.kt:343 */
        4086  +
        pub fn nested(
        4087  +
            mut self,
        4088  +
            input: ::std::option::Option<crate::model::ComplexNestedErrorData>,
        4089  +
        ) -> Self {
        4090  +
            /* ServerBuilderGenerator.kt:344 */
        4091  +
            self.nested =
        4092  +
                /* ServerBuilderGenerator.kt:376 */input
        4093  +
            /* ServerBuilderGenerator.kt:344 */;
        4094  +
            self
        4095  +
            /* ServerBuilderGenerator.kt:343 */
        4096  +
        }
        4097  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ComplexError`](crate::error::ComplexError).
        4098  +
        /* ServerBuilderGenerator.kt:271 */
        4099  +
        pub fn build(self) -> crate::error::ComplexError {
        4100  +
            self.build_enforcing_all_constraints()
        4101  +
        }
        4102  +
        /* ServerBuilderGenerator.kt:283 */
        4103  +
        fn build_enforcing_all_constraints(self) -> crate::error::ComplexError {
        4104  +
            /* ServerBuilderGenerator.kt:542 */
        4105  +
            crate::error::ComplexError {
        4106  +
                /* ServerBuilderGenerator.kt:546 */
        4107  +
                header: self.header,
        4108  +
                /* ServerBuilderGenerator.kt:546 */
        4109  +
                top_level: self.top_level,
        4110  +
                /* ServerBuilderGenerator.kt:546 */
        4111  +
                nested: self.nested,
        4112  +
                /* ServerBuilderGenerator.kt:542 */
        4113  +
            }
        4114  +
            /* ServerBuilderGenerator.kt:283 */
        4115  +
        }
        4116  +
        /* ServerBuilderGenerator.kt:215 */
        4117  +
    }
        4118  +
        4119  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
        4120  +
}
        4121  +
/// /* ServerBuilderGenerator.kt:171 */See [`InvalidGreeting`](crate::error::InvalidGreeting).
        4122  +
pub mod invalid_greeting {
        4123  +
        4124  +
    /* ServerBuilderGenerator.kt:461 */
        4125  +
    impl ::std::convert::From<Builder> for crate::error::InvalidGreeting {
        4126  +
        fn from(builder: Builder) -> Self {
        4127  +
            builder.build()
        4128  +
        }
        4129  +
    }
        4130  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`InvalidGreeting`](crate::error::InvalidGreeting).
        4131  +
    /* RustType.kt:534 */
        4132  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        4133  +
    /* ServerBuilderGenerator.kt:211 */
        4134  +
    pub struct Builder {
        4135  +
        /* ServerBuilderGenerator.kt:308 */
        4136  +
        pub(crate) message: ::std::option::Option<::std::string::String>,
        4137  +
        /* ServerBuilderGenerator.kt:211 */
        4138  +
    }
        4139  +
    /* ServerBuilderGenerator.kt:215 */
        4140  +
    impl Builder {
        4141  +
        /* ServerBuilderGenerator.kt:331 */
        4142  +
        #[allow(missing_docs)] // documentation missing in model
        4143  +
                               /* ServerBuilderGenerator.kt:343 */
        4144  +
        pub fn message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        4145  +
            /* ServerBuilderGenerator.kt:344 */
        4146  +
            self.message =
        4147  +
                /* ServerBuilderGenerator.kt:376 */input
        4148  +
            /* ServerBuilderGenerator.kt:344 */;
        4149  +
            self
        4150  +
            /* ServerBuilderGenerator.kt:343 */
        4151  +
        }
        4152  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`InvalidGreeting`](crate::error::InvalidGreeting).
        4153  +
        /* ServerBuilderGenerator.kt:271 */
        4154  +
        pub fn build(self) -> crate::error::InvalidGreeting {
        4155  +
            self.build_enforcing_all_constraints()
        4156  +
        }
        4157  +
        /* ServerBuilderGenerator.kt:283 */
        4158  +
        fn build_enforcing_all_constraints(self) -> crate::error::InvalidGreeting {
        4159  +
            /* ServerBuilderGenerator.kt:542 */
        4160  +
            crate::error::InvalidGreeting {
        4161  +
                /* ServerBuilderGenerator.kt:546 */
        4162  +
                message: self.message,
        4163  +
                /* ServerBuilderGenerator.kt:542 */
        4164  +
            }
        4165  +
            /* ServerBuilderGenerator.kt:283 */
        4166  +
        }
        4167  +
        /* ServerBuilderGenerator.kt:215 */
        4168  +
    }
        4169  +
        4170  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
        4171  +
}