Server Test Python

Server Test Python

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

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

@@ -1,1 +0,7 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* SmithyTypesPubUseExtra.kt:66 */
    2      3   
pub use ::aws_smithy_types::date_time::Format as DateTimeFormat;
           4  +
/* ServerRequiredCustomizations.kt:69 */
    3      5   
pub use ::aws_smithy_types::error::display::DisplayErrorContext;
    4      6   
pub use ::aws_smithy_types::Blob;
    5         -
pub use ::aws_smithy_types::DateTime;
           7  +
/* SmithyTypesPubUseExtra.kt:69 */ pub use ::aws_smithy_types::DateTime;

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

@@ -1,1 +74,85 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
           3  +
/* UnconstrainedUnionGenerator.kt:121 */
    3      4   
impl crate::constrained::Constrained for crate::model::MyUnion {
    4      5   
    type Unconstrained = crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained;
    5      6   
}
    6      7   
    7      8   
impl From<crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained>
    8      9   
    for crate::constrained::MaybeConstrained<crate::model::MyUnion>
    9     10   
{
   10     11   
    fn from(value: crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained) -> Self {
   11     12   
        Self::Unconstrained(value)
   12     13   
    }
   13     14   
}
   14     15   
pub(crate) mod my_union_unconstrained {
   15     16   
          17  +
    /* UnconstrainedUnionGenerator.kt:82 */
   16     18   
    #[allow(clippy::enum_variant_names)]
   17     19   
    #[derive(Debug, Clone)]
   18     20   
    pub(crate) enum MyUnionUnconstrained {
          21  +
        /* UnconstrainedUnionGenerator.kt:95 */
   19     22   
        BlobValue(::aws_smithy_http_server_python::types::Blob),
   20         -
        BooleanValue(bool),
   21         -
        EnumValue(::std::string::String),
   22         -
        IntEnumValue(i32),
          23  +
        /* UnconstrainedUnionGenerator.kt:95 */ BooleanValue(bool),
          24  +
        /* UnconstrainedUnionGenerator.kt:95 */ EnumValue(::std::string::String),
          25  +
        /* UnconstrainedUnionGenerator.kt:95 */ IntEnumValue(i32),
          26  +
        /* UnconstrainedUnionGenerator.kt:95 */
   23     27   
        ListValue(::std::vec::Vec<::std::string::String>),
          28  +
        /* UnconstrainedUnionGenerator.kt:95 */
   24     29   
        MapValue(::std::collections::HashMap<::std::string::String, ::std::string::String>),
   25         -
        NumberValue(i32),
   26         -
        StringValue(::std::string::String),
          30  +
        /* UnconstrainedUnionGenerator.kt:95 */ NumberValue(i32),
          31  +
        /* UnconstrainedUnionGenerator.kt:95 */ StringValue(::std::string::String),
          32  +
        /* UnconstrainedUnionGenerator.kt:95 */
   27     33   
        StructureValue(crate::model::GreetingStruct),
          34  +
        /* UnconstrainedUnionGenerator.kt:95 */
   28     35   
        TimestampValue(::aws_smithy_http_server_python::types::DateTime),
          36  +
        /* UnconstrainedUnionGenerator.kt:82 */
   29     37   
    }
          38  +
    /* UnconstrainedUnionGenerator.kt:103 */
   30     39   
    impl ::std::convert::TryFrom<MyUnionUnconstrained> for crate::model::MyUnion {
   31     40   
        type Error = crate::model::my_union_internal::ConstraintViolation;
   32     41   
   33     42   
        fn try_from(value: MyUnionUnconstrained) -> ::std::result::Result<Self, Self::Error> {
   34     43   
            Ok(
   35     44   
        match value {
   36     45   
            crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained::BlobValue(unconstrained) => Self::BlobValue(
   37     46   
                unconstrained
   38     47   
            ),
   39     48   
            crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained::BooleanValue(unconstrained) => Self::BooleanValue(
   40     49   
                unconstrained
   41     50   
            ),
   42     51   
            crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained::EnumValue(unconstrained) => Self::EnumValue(
   43     52   
                unconstrained
   44     53   
                                        .try_into()
   45     54   
                                        
   46     55   
                                        
   47     56   
                                        .map_err(Self::Error::EnumValue)?
   48     57   
            ),
   49     58   
            crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained::IntEnumValue(unconstrained) => Self::IntEnumValue(
   50     59   
                unconstrained
   51     60   
            ),
   52     61   
            crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained::ListValue(unconstrained) => Self::ListValue(
   53     62   
                unconstrained
   54     63   
            ),
   55     64   
            crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained::MapValue(unconstrained) => Self::MapValue(
   56     65   
                unconstrained
   57     66   
            ),
   58     67   
            crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained::NumberValue(unconstrained) => Self::NumberValue(
   59     68   
                unconstrained
   60     69   
            ),
   61     70   
            crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained::StringValue(unconstrained) => Self::StringValue(
   62     71   
                unconstrained
   63     72   
            ),
   64     73   
            crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained::StructureValue(unconstrained) => Self::StructureValue(
   65     74   
                unconstrained
   66     75   
            ),
   67     76   
            crate::unconstrained::my_union_unconstrained::MyUnionUnconstrained::TimestampValue(unconstrained) => Self::TimestampValue(
   68     77   
                unconstrained
   69     78   
            ),
   70     79   
        }
   71     80   
    )
   72     81   
        }
   73     82   
    }
          83  +
          84  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
   74     85   
}

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

@@ -6,6 +58,58 @@
   26     26   
version = "0.2.9"
   27     27   
[dependencies.hyper]
   28     28   
version = "0.14.26"
   29     29   
[dependencies.mime]
   30     30   
version = "0.3"
   31     31   
[dependencies.parking_lot]
   32     32   
version = "0.12"
   33     33   
[dependencies.pin-project-lite]
   34     34   
version = "0.2"
   35     35   
[dependencies.pyo3]
   36         -
version = "0.18"
          36  +
version = "0.20"
   37     37   
[dependencies.pyo3-asyncio]
   38         -
version = "0.18"
          38  +
version = "0.20"
   39     39   
features = ["attributes", "tokio-runtime"]
   40     40   
[dependencies.tower]
   41     41   
version = "0.4"
   42     42   
[dependencies.tracing]
   43     43   
version = "0.1"
   44     44   
[dev-dependencies.hyper]
   45     45   
version = "0.14.12"
   46     46   
[dev-dependencies.tokio]
   47     47   
version = "1.23.1"
   48     48   
[features]

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

@@ -1,1 +88,88 @@
    1      1   
import json_rpc11.model
    2      2   
import typing
    3      3   
    4      4   
class ComplexError(Exception):
    5      5   
    """
    6         -
    This error is thrown when a request is invalid.
           6  +
    /* StructureGenerator.kt:197 */This error is thrown when a request is invalid.
    7      7   
    """
    8      8   
    9      9   
    nested: typing.Optional[json_rpc11.model.ComplexNestedErrorData]
   10     10   
   11     11   
    top_level: typing.Optional[str]
   12     12   
   13     13   
    def __init__(self, top_level: typing.Optional[str] = ..., nested: typing.Optional[json_rpc11.model.ComplexNestedErrorData] = ...) -> None:
   14     14   
        ...
   15     15   
   16     16   
   17     17   
class ErrorWithMembers(Exception):
   18     18   
    code: typing.Optional[str]
   19     19   
   20     20   
    complex_data: typing.Optional[json_rpc11.model.KitchenSink]
   21     21   
   22     22   
    integer_field: typing.Optional[int]
   23     23   
   24     24   
    list_field: typing.Optional[typing.List[str]]
   25     25   
   26     26   
    map_field: typing.Optional[typing.Dict[str, str]]
   27     27   
   28     28   
    message: typing.Optional[str]
   29     29   
   30     30   
    string_field: typing.Optional[str]
   31     31   
    """
   32         -
    abc
          32  +
    /* StructureGenerator.kt:231 */abc
   33     33   
    """
   34     34   
   35     35   
    def __init__(self, code: typing.Optional[str] = ..., complex_data: typing.Optional[json_rpc11.model.KitchenSink] = ..., integer_field: typing.Optional[int] = ..., list_field: typing.Optional[typing.List[str]] = ..., map_field: typing.Optional[typing.Dict[str, str]] = ..., message: typing.Optional[str] = ..., string_field: typing.Optional[str] = ...) -> None:
   36     36   
        ...
   37     37   
   38     38   
   39     39   
class ErrorWithoutMembers(Exception):
   40     40   
    def __init__(self) -> None:
   41     41   
        ...
   42     42   
   43     43   
   44     44   
class FooError(Exception):
   45     45   
    """
   46         -
    This error has test cases that test some of the dark corners of Amazon service framework history. It should only be implemented by clients.
          46  +
    /* 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.
   47     47   
    """
   48     48   
   49     49   
    def __init__(self) -> None:
   50     50   
        ...
   51     51   
   52     52   
   53     53   
class InternalServerError(Exception):
   54     54   
    message: str
   55     55   
   56     56   
    def __init__(self, message: str) -> None:
   57     57   
        ...
   58     58   
   59     59   
   60     60   
class InvalidGreeting(Exception):
   61     61   
    """
   62         -
    This error is thrown when an invalid greeting value is provided.
          62  +
    /* StructureGenerator.kt:197 */This error is thrown when an invalid greeting value is provided.
   63     63   
    """
   64     64   
   65     65   
    message: typing.Optional[str]
   66     66   
   67     67   
    def __init__(self, message: typing.Optional[str] = ...) -> None:
   68     68   
        ...
   69     69   
   70     70   
   71     71   
class ValidationException(Exception):
   72     72   
    """
   73         -
    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.
          73  +
    /* 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.
   74     74   
    """
   75     75   
   76     76   
    field_list: typing.Optional[typing.List[json_rpc11.model.ValidationExceptionField]]
   77     77   
    """
   78         -
    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.
          78  +
    /* 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.
   79     79   
    """
   80     80   
   81     81   
    message: str
   82     82   
    """
   83         -
    A summary of the validation failure.
          83  +
    /* StructureGenerator.kt:231 */A summary of the validation failure.
   84     84   
    """
   85     85   
   86     86   
    def __init__(self, message: str, field_list: typing.Optional[typing.List[json_rpc11.model.ValidationExceptionField]] = ...) -> None:
   87     87   
        ...
   88     88   

tmp-codegen-diff/codegen-server-test-python/json_rpc11/rust-server-codegen-python/python/json_rpc11/input/__init__.pyi

@@ -38,38 +103,103 @@
   58     58   
    foo_enum_map: typing.Optional[typing.Dict[str, json_rpc11.model.FooEnum]]
   59     59   
   60     60   
    foo_enum_set: typing.Optional[typing.List[json_rpc11.model.FooEnum]]
   61     61   
   62     62   
    def __init__(self, foo_enum1: typing.Optional[json_rpc11.model.FooEnum] = ..., foo_enum2: typing.Optional[json_rpc11.model.FooEnum] = ..., foo_enum3: typing.Optional[json_rpc11.model.FooEnum] = ..., foo_enum_list: typing.Optional[typing.List[json_rpc11.model.FooEnum]] = ..., foo_enum_set: typing.Optional[typing.List[json_rpc11.model.FooEnum]] = ..., foo_enum_map: typing.Optional[typing.Dict[str, json_rpc11.model.FooEnum]] = ...) -> None:
   63     63   
        ...
   64     64   
   65     65   
   66     66   
class JsonUnionsInput:
   67     67   
    """
   68         -
    A shared structure that contains a single union member.
          68  +
    /* StructureGenerator.kt:197 */A shared structure that contains a single union member.
   69     69   
    """
   70     70   
   71     71   
    contents: typing.Optional[json_rpc11.model.MyUnion]
   72     72   
    """
   73         -
    A union with a representative set of types for members.
          73  +
    /* StructureGenerator.kt:231 */A union with a representative set of types for members.
   74     74   
    """
   75     75   
   76     76   
    def __init__(self, contents: typing.Optional[json_rpc11.model.MyUnion] = ...) -> None:
   77     77   
        ...
   78     78   
   79     79   
   80     80   
class KitchenSinkOperationInput:
   81     81   
    blob: typing.Optional[json_rpc11.types.Blob]
   82     82   
   83     83   
    boolean: typing.Optional[bool]

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

@@ -281,281 +326,326 @@
  301    301   
  302    302   
class StructWithJsonName:
  303    303   
    value: typing.Optional[str]
  304    304   
  305    305   
    def __init__(self, value: typing.Optional[str] = ...) -> None:
  306    306   
        ...
  307    307   
  308    308   
  309    309   
class ValidationExceptionField:
  310    310   
    """
  311         -
    Describes one specific validation failure for an input member.
         311  +
    /* StructureGenerator.kt:197 */Describes one specific validation failure for an input member.
  312    312   
    """
  313    313   
  314    314   
    message: str
  315    315   
    """
  316         -
    A detailed description of the validation failure.
         316  +
    /* StructureGenerator.kt:231 */A detailed description of the validation failure.
  317    317   
    """
  318    318   
  319    319   
    path: str
  320    320   
    """
  321         -
    A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
         321  +
    /* StructureGenerator.kt:231 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
  322    322   
    """
  323    323   
  324    324   
    def __init__(self, path: str, message: str) -> None:
  325    325   
        ...
  326    326   

tmp-codegen-diff/codegen-server-test-python/json_rpc11/rust-server-codegen-python/python/json_rpc11/output/__init__.pyi

@@ -40,40 +105,105 @@
   60     60   
    foo_enum_map: typing.Optional[typing.Dict[str, json_rpc11.model.FooEnum]]
   61     61   
   62     62   
    foo_enum_set: typing.Optional[typing.List[json_rpc11.model.FooEnum]]
   63     63   
   64     64   
    def __init__(self, foo_enum1: typing.Optional[json_rpc11.model.FooEnum] = ..., foo_enum2: typing.Optional[json_rpc11.model.FooEnum] = ..., foo_enum3: typing.Optional[json_rpc11.model.FooEnum] = ..., foo_enum_list: typing.Optional[typing.List[json_rpc11.model.FooEnum]] = ..., foo_enum_set: typing.Optional[typing.List[json_rpc11.model.FooEnum]] = ..., foo_enum_map: typing.Optional[typing.Dict[str, json_rpc11.model.FooEnum]] = ...) -> None:
   65     65   
        ...
   66     66   
   67     67   
   68     68   
class JsonUnionsOutput:
   69     69   
    """
   70         -
    A shared structure that contains a single union member.
          70  +
    /* StructureGenerator.kt:197 */A shared structure that contains a single union member.
   71     71   
    """
   72     72   
   73     73   
    contents: typing.Optional[json_rpc11.model.MyUnion]
   74     74   
    """
   75         -
    A union with a representative set of types for members.
          75  +
    /* StructureGenerator.kt:231 */A union with a representative set of types for members.
   76     76   
    """
   77     77   
   78     78   
    def __init__(self, contents: typing.Optional[json_rpc11.model.MyUnion] = ...) -> None:
   79     79   
        ...
   80     80   
   81     81   
   82     82   
class KitchenSinkOperationOutput:
   83     83   
    blob: typing.Optional[json_rpc11.types.Blob]
   84     84   
   85     85   
    boolean: typing.Optional[bool]

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

@@ -1,1 +52,68 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
    3      3   
pub(crate) mod foo_enum_map_constrained {
    4      4   
           5  +
    /* PubCrateConstrainedMapGenerator.kt:80 */
    5      6   
    #[derive(Debug, Clone)]
    6      7   
    pub(crate) struct FooEnumMapConstrained(
    7      8   
        pub(crate) std::collections::HashMap<::std::string::String, crate::model::FooEnum>,
    8      9   
    );
    9     10   
   10     11   
    impl crate::constrained::Constrained for FooEnumMapConstrained {
   11     12   
        type Unconstrained =
   12     13   
            crate::unconstrained::foo_enum_map_unconstrained::FooEnumMapUnconstrained;
   13     14   
    }
          15  +
    /* PubCrateConstrainedMapGenerator.kt:127 */
   14     16   
    impl ::std::convert::From<FooEnumMapConstrained>
   15     17   
        for ::std::collections::HashMap<::std::string::String, crate::model::FooEnum>
   16     18   
    {
          19  +
        /* PubCrateConstrainedMapGenerator.kt:128 */
   17     20   
        fn from(v: FooEnumMapConstrained) -> Self {
          21  +
            /* PubCrateConstrainedMapGenerator.kt:144 */
   18     22   
            v.0
          23  +
            /* PubCrateConstrainedMapGenerator.kt:128 */
   19     24   
        }
          25  +
        /* PubCrateConstrainedMapGenerator.kt:127 */
   20     26   
    }
          27  +
          28  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
   21     29   
}
   22     30   
pub(crate) mod foo_enum_list_constrained {
   23     31   
          32  +
    /* PubCrateConstrainedCollectionGenerator.kt:79 */
   24     33   
    #[derive(Debug, Clone)]
   25     34   
    pub(crate) struct FooEnumListConstrained(pub(crate) std::vec::Vec<crate::model::FooEnum>);
   26     35   
   27     36   
    impl crate::constrained::Constrained for FooEnumListConstrained {
   28     37   
        type Unconstrained =
   29     38   
            crate::unconstrained::foo_enum_list_unconstrained::FooEnumListUnconstrained;
   30     39   
    }
          40  +
    /* PubCrateConstrainedCollectionGenerator.kt:140 */
   31     41   
    impl ::std::convert::From<FooEnumListConstrained> for ::std::vec::Vec<crate::model::FooEnum> {
          42  +
        /* PubCrateConstrainedCollectionGenerator.kt:141 */
   32     43   
        fn from(v: FooEnumListConstrained) -> Self {
          44  +
            /* PubCrateConstrainedCollectionGenerator.kt:149 */
   33     45   
            v.0
          46  +
            /* PubCrateConstrainedCollectionGenerator.kt:141 */
   34     47   
        }
          48  +
        /* PubCrateConstrainedCollectionGenerator.kt:140 */
   35     49   
    }
          50  +
          51  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
   36     52   
}
   37     53   
   38     54   
/*
   39     55   
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
   40     56   
 * SPDX-License-Identifier: Apache-2.0
   41     57   
 */
   42     58   
   43     59   
pub(crate) trait Constrained {
   44     60   
    type Unconstrained;
   45     61   
}

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

@@ -1,1 +1862,3420 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ServerOperationErrorGenerator.kt:63 */
    2      3   
/// Error type for the `ContentTypeParameters` operation.
           4  +
/* ServerOperationErrorGenerator.kt:64 */
    3      5   
/// Each variant represents an error that can occur for the `ContentTypeParameters` operation.
           6  +
/* RustType.kt:516 */
    4      7   
#[derive(::std::fmt::Debug)]
    5         -
pub enum ContentTypeParametersError {
           8  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum ContentTypeParametersError {
           9  +
    /* ServerOperationErrorGenerator.kt:68 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
          11  +
    /* ServerOperationErrorGenerator.kt:71 */
    7     12   
    InternalServerError(crate::error::InternalServerError),
          13  +
    /* ServerOperationErrorGenerator.kt:66 */
    8     14   
}
          15  +
/* ServerOperationErrorGenerator.kt:75 */
    9     16   
impl ::std::fmt::Display for ContentTypeParametersError {
          17  +
    /* ServerOperationErrorGenerator.kt:76 */
   10     18   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          19  +
        /* ServerOperationErrorGenerator.kt:139 */
   11     20   
        match &self {
   12         -
            ContentTypeParametersError::InternalServerError(_inner) => _inner.fmt(f),
          21  +
            /* ServerOperationErrorGenerator.kt:142 */
          22  +
            ContentTypeParametersError::InternalServerError(_inner) =>
          23  +
            /* ServerOperationErrorGenerator.kt:78 */
          24  +
            {
          25  +
                _inner.fmt(f)
          26  +
            }
          27  +
            /* ServerOperationErrorGenerator.kt:139 */
   13     28   
        }
          29  +
        /* ServerOperationErrorGenerator.kt:76 */
   14     30   
    }
          31  +
    /* ServerOperationErrorGenerator.kt:75 */
   15     32   
}
          33  +
/* ServerOperationErrorGenerator.kt:83 */
   16     34   
impl ContentTypeParametersError {
          35  +
    /* ServerOperationErrorGenerator.kt:87 */
   17     36   
    /// Returns `true` if the error kind is `ContentTypeParametersError::InternalServerError`.
          37  +
    /* ServerOperationErrorGenerator.kt:88 */
   18     38   
    pub fn is_internal_server_error(&self) -> bool {
          39  +
        /* ServerOperationErrorGenerator.kt:89 */
   19     40   
        matches!(&self, ContentTypeParametersError::InternalServerError(_))
          41  +
        /* ServerOperationErrorGenerator.kt:88 */
   20     42   
    }
          43  +
    /* ServerOperationErrorGenerator.kt:92 */
   21     44   
    /// Returns the error name string by matching the correct variant.
          45  +
    /* ServerOperationErrorGenerator.kt:93 */
   22     46   
    pub fn name(&self) -> &'static str {
          47  +
        /* ServerOperationErrorGenerator.kt:139 */
   23     48   
        match &self {
   24         -
            ContentTypeParametersError::InternalServerError(_inner) => _inner.name(),
          49  +
            /* ServerOperationErrorGenerator.kt:142 */
          50  +
            ContentTypeParametersError::InternalServerError(_inner) =>
          51  +
            /* ServerOperationErrorGenerator.kt:95 */
          52  +
            {
          53  +
                _inner.name()
   25     54   
            }
          55  +
            /* ServerOperationErrorGenerator.kt:139 */
   26     56   
        }
          57  +
        /* ServerOperationErrorGenerator.kt:93 */
          58  +
    }
          59  +
    /* ServerOperationErrorGenerator.kt:83 */
   27     60   
}
          61  +
/* ServerOperationErrorGenerator.kt:100 */
   28     62   
impl ::std::error::Error for ContentTypeParametersError {
          63  +
    /* ServerOperationErrorGenerator.kt:101 */
   29     64   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
          65  +
        /* ServerOperationErrorGenerator.kt:139 */
   30     66   
        match &self {
   31         -
            ContentTypeParametersError::InternalServerError(_inner) => Some(_inner),
          67  +
            /* ServerOperationErrorGenerator.kt:142 */
          68  +
            ContentTypeParametersError::InternalServerError(_inner) =>
          69  +
            /* ServerOperationErrorGenerator.kt:103 */
          70  +
            {
          71  +
                Some(_inner)
          72  +
            }
          73  +
            /* ServerOperationErrorGenerator.kt:139 */
   32     74   
        }
          75  +
        /* ServerOperationErrorGenerator.kt:101 */
   33     76   
    }
          77  +
    /* ServerOperationErrorGenerator.kt:100 */
   34     78   
}
          79  +
/* ServerOperationErrorGenerator.kt:110 */
   35     80   
impl ::std::convert::From<crate::error::InternalServerError>
   36     81   
    for crate::error::ContentTypeParametersError
   37     82   
{
          83  +
    /* ServerOperationErrorGenerator.kt:111 */
   38     84   
    fn from(
   39     85   
        variant: crate::error::InternalServerError,
   40     86   
    ) -> crate::error::ContentTypeParametersError {
          87  +
        /* ServerOperationErrorGenerator.kt:112 */
   41     88   
        Self::InternalServerError(variant)
          89  +
        /* ServerOperationErrorGenerator.kt:111 */
   42     90   
    }
          91  +
    /* ServerOperationErrorGenerator.kt:110 */
   43     92   
}
   44     93   
          94  +
/* PythonServerOperationErrorGenerator.kt:38 */
   45     95   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::ContentTypeParametersError {
   46     96   
    fn from(variant: ::pyo3::PyErr) -> crate::error::ContentTypeParametersError {
   47     97   
        ::pyo3::Python::with_gil(|py| {
   48     98   
            let error = variant.value(py);
   49     99   
   50    100   
            crate::error::InternalServerError {
   51    101   
                message: error.to_string(),
   52    102   
            }
   53    103   
            .into()
   54    104   
        })
   55    105   
    }
   56    106   
}
   57    107   
         108  +
/* RustType.kt:516 */
   58    109   
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
         110  +
/* PythonServerStructureGenerator.kt:63 */
   59    111   
/// :param message str:
   60    112   
/// :rtype None:
         113  +
/* StructureGenerator.kt:197 */
   61    114   
#[allow(missing_docs)] // documentation missing in model
         115  +
/* RustType.kt:516 */
   62    116   
#[derive(
   63    117   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   64    118   
)]
   65         -
pub struct InternalServerError {
         119  +
pub /* StructureGenerator.kt:201 */ struct InternalServerError {
         120  +
    /* RustType.kt:516 */
   66    121   
    #[pyo3(get, set)]
         122  +
    /* PythonServerStructureGenerator.kt:80 */
   67    123   
    /// :type str:
         124  +
    /* StructureGenerator.kt:231 */
   68    125   
    #[allow(missing_docs)] // documentation missing in model
   69    126   
    pub message: ::std::string::String,
         127  +
    /* StructureGenerator.kt:201 */
   70    128   
}
         129  +
/* RustType.kt:516 */
   71    130   
#[allow(clippy::new_without_default)]
         131  +
/* RustType.kt:516 */
   72    132   
#[allow(clippy::too_many_arguments)]
         133  +
/* RustType.kt:516 */
   73    134   
#[::pyo3::pymethods]
         135  +
/* PythonServerStructureGenerator.kt:88 */
   74    136   
impl InternalServerError {
   75    137   
    #[new]
   76    138   
    pub fn new(message: ::std::string::String) -> Self {
   77    139   
        Self { message }
   78    140   
    }
   79    141   
    fn __repr__(&self) -> String {
   80    142   
        format!("{self:?}")
   81    143   
    }
   82    144   
    fn __str__(&self) -> String {
   83    145   
        format!("{self:?}")
   84    146   
    }
   85    147   
}
         148  +
/* ErrorImplGenerator.kt:99 */
   86    149   
impl InternalServerError {
         150  +
    /* ErrorImplGenerator.kt:128 */
   87    151   
    /// Returns the error message.
   88    152   
    pub fn message(&self) -> &str {
   89    153   
        &self.message
   90    154   
    }
         155  +
    /* ErrorImplGenerator.kt:141 */
   91    156   
    #[doc(hidden)]
   92    157   
    /// Returns the error name.
   93    158   
    pub fn name(&self) -> &'static str {
   94    159   
        "InternalServerError"
   95    160   
    }
         161  +
    /* ErrorImplGenerator.kt:99 */
   96    162   
}
         163  +
/* ErrorImplGenerator.kt:153 */
   97    164   
impl ::std::fmt::Display for InternalServerError {
         165  +
    /* ErrorImplGenerator.kt:154 */
   98    166   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         167  +
        /* ErrorImplGenerator.kt:161 */
   99    168   
        ::std::write!(f, "InternalServerError")?;
         169  +
        /* ErrorImplGenerator.kt:166 */
  100    170   
        {
         171  +
            /* ErrorImplGenerator.kt:167 */
  101    172   
            ::std::write!(f, ": {}", &self.message)?;
         173  +
            /* ErrorImplGenerator.kt:166 */
  102    174   
        }
         175  +
        /* ErrorImplGenerator.kt:171 */
  103    176   
        Ok(())
         177  +
        /* ErrorImplGenerator.kt:154 */
  104    178   
    }
         179  +
    /* ErrorImplGenerator.kt:153 */
  105    180   
}
         181  +
/* ErrorImplGenerator.kt:175 */
  106    182   
impl ::std::error::Error for InternalServerError {}
         183  +
/* ServerCodegenVisitor.kt:370 */
  107    184   
impl InternalServerError {
  108         -
    /// Creates a new builder-style object to manufacture [`InternalServerError`](crate::error::InternalServerError).
         185  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`InternalServerError`](crate::error::InternalServerError).
         186  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  109    187   
    pub fn builder() -> crate::error::internal_server_error::Builder {
         188  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  110    189   
        crate::error::internal_server_error::Builder::default()
         190  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  111    191   
    }
         192  +
    /* ServerCodegenVisitor.kt:370 */
  112    193   
}
  113    194   
         195  +
/* ServerOperationErrorGenerator.kt:63 */
  114    196   
/// Error type for the `PutWithContentEncoding` operation.
         197  +
/* ServerOperationErrorGenerator.kt:64 */
  115    198   
/// Each variant represents an error that can occur for the `PutWithContentEncoding` operation.
         199  +
/* RustType.kt:516 */
  116    200   
#[derive(::std::fmt::Debug)]
  117         -
pub enum PutWithContentEncodingError {
         201  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum PutWithContentEncodingError {
         202  +
    /* ServerOperationErrorGenerator.kt:68 */
  118    203   
    #[allow(missing_docs)] // documentation missing in model
         204  +
    /* ServerOperationErrorGenerator.kt:71 */
  119    205   
    InternalServerError(crate::error::InternalServerError),
         206  +
    /* ServerOperationErrorGenerator.kt:66 */
  120    207   
}
         208  +
/* ServerOperationErrorGenerator.kt:75 */
  121    209   
impl ::std::fmt::Display for PutWithContentEncodingError {
         210  +
    /* ServerOperationErrorGenerator.kt:76 */
  122    211   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         212  +
        /* ServerOperationErrorGenerator.kt:139 */
  123    213   
        match &self {
  124         -
            PutWithContentEncodingError::InternalServerError(_inner) => _inner.fmt(f),
         214  +
            /* ServerOperationErrorGenerator.kt:142 */
         215  +
            PutWithContentEncodingError::InternalServerError(_inner) =>
         216  +
            /* ServerOperationErrorGenerator.kt:78 */
         217  +
            {
         218  +
                _inner.fmt(f)
         219  +
            }
         220  +
            /* ServerOperationErrorGenerator.kt:139 */
  125    221   
        }
         222  +
        /* ServerOperationErrorGenerator.kt:76 */
  126    223   
    }
         224  +
    /* ServerOperationErrorGenerator.kt:75 */
  127    225   
}
         226  +
/* ServerOperationErrorGenerator.kt:83 */
  128    227   
impl PutWithContentEncodingError {
         228  +
    /* ServerOperationErrorGenerator.kt:87 */
  129    229   
    /// Returns `true` if the error kind is `PutWithContentEncodingError::InternalServerError`.
         230  +
    /* ServerOperationErrorGenerator.kt:88 */
  130    231   
    pub fn is_internal_server_error(&self) -> bool {
         232  +
        /* ServerOperationErrorGenerator.kt:89 */
  131    233   
        matches!(&self, PutWithContentEncodingError::InternalServerError(_))
         234  +
        /* ServerOperationErrorGenerator.kt:88 */
  132    235   
    }
         236  +
    /* ServerOperationErrorGenerator.kt:92 */
  133    237   
    /// Returns the error name string by matching the correct variant.
         238  +
    /* ServerOperationErrorGenerator.kt:93 */
  134    239   
    pub fn name(&self) -> &'static str {
         240  +
        /* ServerOperationErrorGenerator.kt:139 */
  135    241   
        match &self {
  136         -
            PutWithContentEncodingError::InternalServerError(_inner) => _inner.name(),
         242  +
            /* ServerOperationErrorGenerator.kt:142 */
         243  +
            PutWithContentEncodingError::InternalServerError(_inner) =>
         244  +
            /* ServerOperationErrorGenerator.kt:95 */
         245  +
            {
         246  +
                _inner.name()
  137    247   
            }
         248  +
            /* ServerOperationErrorGenerator.kt:139 */
  138    249   
        }
         250  +
        /* ServerOperationErrorGenerator.kt:93 */
         251  +
    }
         252  +
    /* ServerOperationErrorGenerator.kt:83 */
  139    253   
}
         254  +
/* ServerOperationErrorGenerator.kt:100 */
  140    255   
impl ::std::error::Error for PutWithContentEncodingError {
         256  +
    /* ServerOperationErrorGenerator.kt:101 */
  141    257   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         258  +
        /* ServerOperationErrorGenerator.kt:139 */
  142    259   
        match &self {
  143         -
            PutWithContentEncodingError::InternalServerError(_inner) => Some(_inner),
         260  +
            /* ServerOperationErrorGenerator.kt:142 */
         261  +
            PutWithContentEncodingError::InternalServerError(_inner) =>
         262  +
            /* ServerOperationErrorGenerator.kt:103 */
         263  +
            {
         264  +
                Some(_inner)
  144    265   
            }
         266  +
            /* ServerOperationErrorGenerator.kt:139 */
  145    267   
        }
         268  +
        /* ServerOperationErrorGenerator.kt:101 */
         269  +
    }
         270  +
    /* ServerOperationErrorGenerator.kt:100 */
  146    271   
}
         272  +
/* ServerOperationErrorGenerator.kt:110 */
  147    273   
impl ::std::convert::From<crate::error::InternalServerError>
  148    274   
    for crate::error::PutWithContentEncodingError
  149    275   
{
         276  +
    /* ServerOperationErrorGenerator.kt:111 */
  150    277   
    fn from(
  151    278   
        variant: crate::error::InternalServerError,
  152    279   
    ) -> crate::error::PutWithContentEncodingError {
         280  +
        /* ServerOperationErrorGenerator.kt:112 */
  153    281   
        Self::InternalServerError(variant)
         282  +
        /* ServerOperationErrorGenerator.kt:111 */
  154    283   
    }
         284  +
    /* ServerOperationErrorGenerator.kt:110 */
  155    285   
}
  156    286   
         287  +
/* PythonServerOperationErrorGenerator.kt:38 */
  157    288   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::PutWithContentEncodingError {
  158    289   
    fn from(variant: ::pyo3::PyErr) -> crate::error::PutWithContentEncodingError {
  159    290   
        ::pyo3::Python::with_gil(|py| {
  160    291   
            let error = variant.value(py);
  161    292   
  162    293   
            crate::error::InternalServerError {
  163    294   
                message: error.to_string(),
  164    295   
            }
  165    296   
            .into()
  166    297   
        })
  167    298   
    }
  168    299   
}
  169    300   
         301  +
/* ServerOperationErrorGenerator.kt:63 */
  170    302   
/// Error type for the `FractionalSeconds` operation.
         303  +
/* ServerOperationErrorGenerator.kt:64 */
  171    304   
/// Each variant represents an error that can occur for the `FractionalSeconds` operation.
         305  +
/* RustType.kt:516 */
  172    306   
#[derive(::std::fmt::Debug)]
  173         -
pub enum FractionalSecondsError {
         307  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum FractionalSecondsError {
         308  +
    /* ServerOperationErrorGenerator.kt:68 */
  174    309   
    #[allow(missing_docs)] // documentation missing in model
         310  +
    /* ServerOperationErrorGenerator.kt:71 */
  175    311   
    InternalServerError(crate::error::InternalServerError),
         312  +
    /* ServerOperationErrorGenerator.kt:66 */
  176    313   
}
         314  +
/* ServerOperationErrorGenerator.kt:75 */
  177    315   
impl ::std::fmt::Display for FractionalSecondsError {
         316  +
    /* ServerOperationErrorGenerator.kt:76 */
  178    317   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         318  +
        /* ServerOperationErrorGenerator.kt:139 */
  179    319   
        match &self {
  180         -
            FractionalSecondsError::InternalServerError(_inner) => _inner.fmt(f),
         320  +
            /* ServerOperationErrorGenerator.kt:142 */
         321  +
            FractionalSecondsError::InternalServerError(_inner) =>
         322  +
            /* ServerOperationErrorGenerator.kt:78 */
         323  +
            {
         324  +
                _inner.fmt(f)
         325  +
            }
         326  +
            /* ServerOperationErrorGenerator.kt:139 */
  181    327   
        }
         328  +
        /* ServerOperationErrorGenerator.kt:76 */
  182    329   
    }
         330  +
    /* ServerOperationErrorGenerator.kt:75 */
  183    331   
}
         332  +
/* ServerOperationErrorGenerator.kt:83 */
  184    333   
impl FractionalSecondsError {
         334  +
    /* ServerOperationErrorGenerator.kt:87 */
  185    335   
    /// Returns `true` if the error kind is `FractionalSecondsError::InternalServerError`.
         336  +
    /* ServerOperationErrorGenerator.kt:88 */
  186    337   
    pub fn is_internal_server_error(&self) -> bool {
         338  +
        /* ServerOperationErrorGenerator.kt:89 */
  187    339   
        matches!(&self, FractionalSecondsError::InternalServerError(_))
         340  +
        /* ServerOperationErrorGenerator.kt:88 */
  188    341   
    }
         342  +
    /* ServerOperationErrorGenerator.kt:92 */
  189    343   
    /// Returns the error name string by matching the correct variant.
         344  +
    /* ServerOperationErrorGenerator.kt:93 */
  190    345   
    pub fn name(&self) -> &'static str {
         346  +
        /* ServerOperationErrorGenerator.kt:139 */
  191    347   
        match &self {
  192         -
            FractionalSecondsError::InternalServerError(_inner) => _inner.name(),
         348  +
            /* ServerOperationErrorGenerator.kt:142 */
         349  +
            FractionalSecondsError::InternalServerError(_inner) =>
         350  +
            /* ServerOperationErrorGenerator.kt:95 */
         351  +
            {
         352  +
                _inner.name()
         353  +
            }
         354  +
            /* ServerOperationErrorGenerator.kt:139 */
  193    355   
        }
         356  +
        /* ServerOperationErrorGenerator.kt:93 */
  194    357   
    }
         358  +
    /* ServerOperationErrorGenerator.kt:83 */
  195    359   
}
         360  +
/* ServerOperationErrorGenerator.kt:100 */
  196    361   
impl ::std::error::Error for FractionalSecondsError {
         362  +
    /* ServerOperationErrorGenerator.kt:101 */
  197    363   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         364  +
        /* ServerOperationErrorGenerator.kt:139 */
  198    365   
        match &self {
  199         -
            FractionalSecondsError::InternalServerError(_inner) => Some(_inner),
         366  +
            /* ServerOperationErrorGenerator.kt:142 */
         367  +
            FractionalSecondsError::InternalServerError(_inner) =>
         368  +
            /* ServerOperationErrorGenerator.kt:103 */
         369  +
            {
         370  +
                Some(_inner)
         371  +
            }
         372  +
            /* ServerOperationErrorGenerator.kt:139 */
  200    373   
        }
         374  +
        /* ServerOperationErrorGenerator.kt:101 */
  201    375   
    }
         376  +
    /* ServerOperationErrorGenerator.kt:100 */
  202    377   
}
         378  +
/* ServerOperationErrorGenerator.kt:110 */
  203    379   
impl ::std::convert::From<crate::error::InternalServerError>
  204    380   
    for crate::error::FractionalSecondsError
  205    381   
{
         382  +
    /* ServerOperationErrorGenerator.kt:111 */
  206    383   
    fn from(variant: crate::error::InternalServerError) -> crate::error::FractionalSecondsError {
         384  +
        /* ServerOperationErrorGenerator.kt:112 */
  207    385   
        Self::InternalServerError(variant)
         386  +
        /* ServerOperationErrorGenerator.kt:111 */
  208    387   
    }
         388  +
    /* ServerOperationErrorGenerator.kt:110 */
  209    389   
}
  210    390   
         391  +
/* PythonServerOperationErrorGenerator.kt:38 */
  211    392   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::FractionalSecondsError {
  212    393   
    fn from(variant: ::pyo3::PyErr) -> crate::error::FractionalSecondsError {
  213    394   
        ::pyo3::Python::with_gil(|py| {
  214    395   
            let error = variant.value(py);
  215    396   
  216    397   
            crate::error::InternalServerError {
  217    398   
                message: error.to_string(),
  218    399   
            }
  219    400   
            .into()
  220    401   
        })
  221    402   
    }
  222    403   
}
  223    404   
         405  +
/* ServerOperationErrorGenerator.kt:63 */
  224    406   
/// Error type for the `DatetimeOffsets` operation.
         407  +
/* ServerOperationErrorGenerator.kt:64 */
  225    408   
/// Each variant represents an error that can occur for the `DatetimeOffsets` operation.
         409  +
/* RustType.kt:516 */
  226    410   
#[derive(::std::fmt::Debug)]
  227         -
pub enum DatetimeOffsetsError {
         411  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum DatetimeOffsetsError {
         412  +
    /* ServerOperationErrorGenerator.kt:68 */
  228    413   
    #[allow(missing_docs)] // documentation missing in model
         414  +
    /* ServerOperationErrorGenerator.kt:71 */
  229    415   
    InternalServerError(crate::error::InternalServerError),
         416  +
    /* ServerOperationErrorGenerator.kt:66 */
  230    417   
}
         418  +
/* ServerOperationErrorGenerator.kt:75 */
  231    419   
impl ::std::fmt::Display for DatetimeOffsetsError {
         420  +
    /* ServerOperationErrorGenerator.kt:76 */
  232    421   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         422  +
        /* ServerOperationErrorGenerator.kt:139 */
  233    423   
        match &self {
  234         -
            DatetimeOffsetsError::InternalServerError(_inner) => _inner.fmt(f),
         424  +
            /* ServerOperationErrorGenerator.kt:142 */
         425  +
            DatetimeOffsetsError::InternalServerError(_inner) =>
         426  +
            /* ServerOperationErrorGenerator.kt:78 */
         427  +
            {
         428  +
                _inner.fmt(f)
  235    429   
            }
         430  +
            /* ServerOperationErrorGenerator.kt:139 */
  236    431   
        }
         432  +
        /* ServerOperationErrorGenerator.kt:76 */
         433  +
    }
         434  +
    /* ServerOperationErrorGenerator.kt:75 */
  237    435   
}
         436  +
/* ServerOperationErrorGenerator.kt:83 */
  238    437   
impl DatetimeOffsetsError {
         438  +
    /* ServerOperationErrorGenerator.kt:87 */
  239    439   
    /// Returns `true` if the error kind is `DatetimeOffsetsError::InternalServerError`.
         440  +
    /* ServerOperationErrorGenerator.kt:88 */
  240    441   
    pub fn is_internal_server_error(&self) -> bool {
         442  +
        /* ServerOperationErrorGenerator.kt:89 */
  241    443   
        matches!(&self, DatetimeOffsetsError::InternalServerError(_))
         444  +
        /* ServerOperationErrorGenerator.kt:88 */
  242    445   
    }
         446  +
    /* ServerOperationErrorGenerator.kt:92 */
  243    447   
    /// Returns the error name string by matching the correct variant.
         448  +
    /* ServerOperationErrorGenerator.kt:93 */
  244    449   
    pub fn name(&self) -> &'static str {
         450  +
        /* ServerOperationErrorGenerator.kt:139 */
  245    451   
        match &self {
  246         -
            DatetimeOffsetsError::InternalServerError(_inner) => _inner.name(),
         452  +
            /* ServerOperationErrorGenerator.kt:142 */
         453  +
            DatetimeOffsetsError::InternalServerError(_inner) =>
         454  +
            /* ServerOperationErrorGenerator.kt:95 */
         455  +
            {
         456  +
                _inner.name()
  247    457   
            }
         458  +
            /* ServerOperationErrorGenerator.kt:139 */
  248    459   
        }
         460  +
        /* ServerOperationErrorGenerator.kt:93 */
         461  +
    }
         462  +
    /* ServerOperationErrorGenerator.kt:83 */
  249    463   
}
         464  +
/* ServerOperationErrorGenerator.kt:100 */
  250    465   
impl ::std::error::Error for DatetimeOffsetsError {
         466  +
    /* ServerOperationErrorGenerator.kt:101 */
  251    467   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         468  +
        /* ServerOperationErrorGenerator.kt:139 */
  252    469   
        match &self {
  253         -
            DatetimeOffsetsError::InternalServerError(_inner) => Some(_inner),
         470  +
            /* ServerOperationErrorGenerator.kt:142 */
         471  +
            DatetimeOffsetsError::InternalServerError(_inner) =>
         472  +
            /* ServerOperationErrorGenerator.kt:103 */
         473  +
            {
         474  +
                Some(_inner)
         475  +
            }
         476  +
            /* ServerOperationErrorGenerator.kt:139 */
  254    477   
        }
         478  +
        /* ServerOperationErrorGenerator.kt:101 */
  255    479   
    }
         480  +
    /* ServerOperationErrorGenerator.kt:100 */
  256    481   
}
         482  +
/* ServerOperationErrorGenerator.kt:110 */
  257    483   
impl ::std::convert::From<crate::error::InternalServerError>
  258    484   
    for crate::error::DatetimeOffsetsError
  259    485   
{
         486  +
    /* ServerOperationErrorGenerator.kt:111 */
  260    487   
    fn from(variant: crate::error::InternalServerError) -> crate::error::DatetimeOffsetsError {
         488  +
        /* ServerOperationErrorGenerator.kt:112 */
  261    489   
        Self::InternalServerError(variant)
         490  +
        /* ServerOperationErrorGenerator.kt:111 */
  262    491   
    }
         492  +
    /* ServerOperationErrorGenerator.kt:110 */
  263    493   
}
  264    494   
         495  +
/* PythonServerOperationErrorGenerator.kt:38 */
  265    496   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::DatetimeOffsetsError {
  266    497   
    fn from(variant: ::pyo3::PyErr) -> crate::error::DatetimeOffsetsError {
  267    498   
        ::pyo3::Python::with_gil(|py| {
  268    499   
            let error = variant.value(py);
  269    500   
  270    501   
            crate::error::InternalServerError {
  271    502   
                message: error.to_string(),
  272    503   
            }
  273    504   
            .into()
  274    505   
        })
  275    506   
    }
  276    507   
}
  277    508   
         509  +
/* ServerOperationErrorGenerator.kt:63 */
  278    510   
/// Error type for the `HostWithPathOperation` operation.
         511  +
/* ServerOperationErrorGenerator.kt:64 */
  279    512   
/// Each variant represents an error that can occur for the `HostWithPathOperation` operation.
         513  +
/* RustType.kt:516 */
  280    514   
#[derive(::std::fmt::Debug)]
  281         -
pub enum HostWithPathOperationError {
         515  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum HostWithPathOperationError {
         516  +
    /* ServerOperationErrorGenerator.kt:68 */
  282    517   
    #[allow(missing_docs)] // documentation missing in model
         518  +
    /* ServerOperationErrorGenerator.kt:71 */
  283    519   
    InternalServerError(crate::error::InternalServerError),
         520  +
    /* ServerOperationErrorGenerator.kt:66 */
  284    521   
}
         522  +
/* ServerOperationErrorGenerator.kt:75 */
  285    523   
impl ::std::fmt::Display for HostWithPathOperationError {
         524  +
    /* ServerOperationErrorGenerator.kt:76 */
  286    525   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         526  +
        /* ServerOperationErrorGenerator.kt:139 */
  287    527   
        match &self {
  288         -
            HostWithPathOperationError::InternalServerError(_inner) => _inner.fmt(f),
         528  +
            /* ServerOperationErrorGenerator.kt:142 */
         529  +
            HostWithPathOperationError::InternalServerError(_inner) =>
         530  +
            /* ServerOperationErrorGenerator.kt:78 */
         531  +
            {
         532  +
                _inner.fmt(f)
         533  +
            }
         534  +
            /* ServerOperationErrorGenerator.kt:139 */
  289    535   
        }
         536  +
        /* ServerOperationErrorGenerator.kt:76 */
  290    537   
    }
         538  +
    /* ServerOperationErrorGenerator.kt:75 */
  291    539   
}
         540  +
/* ServerOperationErrorGenerator.kt:83 */
  292    541   
impl HostWithPathOperationError {
         542  +
    /* ServerOperationErrorGenerator.kt:87 */
  293    543   
    /// Returns `true` if the error kind is `HostWithPathOperationError::InternalServerError`.
         544  +
    /* ServerOperationErrorGenerator.kt:88 */
  294    545   
    pub fn is_internal_server_error(&self) -> bool {
         546  +
        /* ServerOperationErrorGenerator.kt:89 */
  295    547   
        matches!(&self, HostWithPathOperationError::InternalServerError(_))
         548  +
        /* ServerOperationErrorGenerator.kt:88 */
  296    549   
    }
         550  +
    /* ServerOperationErrorGenerator.kt:92 */
  297    551   
    /// Returns the error name string by matching the correct variant.
         552  +
    /* ServerOperationErrorGenerator.kt:93 */
  298    553   
    pub fn name(&self) -> &'static str {
         554  +
        /* ServerOperationErrorGenerator.kt:139 */
  299    555   
        match &self {
  300         -
            HostWithPathOperationError::InternalServerError(_inner) => _inner.name(),
         556  +
            /* ServerOperationErrorGenerator.kt:142 */
         557  +
            HostWithPathOperationError::InternalServerError(_inner) =>
         558  +
            /* ServerOperationErrorGenerator.kt:95 */
         559  +
            {
         560  +
                _inner.name()
  301    561   
            }
         562  +
            /* ServerOperationErrorGenerator.kt:139 */
  302    563   
        }
         564  +
        /* ServerOperationErrorGenerator.kt:93 */
         565  +
    }
         566  +
    /* ServerOperationErrorGenerator.kt:83 */
  303    567   
}
         568  +
/* ServerOperationErrorGenerator.kt:100 */
  304    569   
impl ::std::error::Error for HostWithPathOperationError {
         570  +
    /* ServerOperationErrorGenerator.kt:101 */
  305    571   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         572  +
        /* ServerOperationErrorGenerator.kt:139 */
  306    573   
        match &self {
  307         -
            HostWithPathOperationError::InternalServerError(_inner) => Some(_inner),
         574  +
            /* ServerOperationErrorGenerator.kt:142 */
         575  +
            HostWithPathOperationError::InternalServerError(_inner) =>
         576  +
            /* ServerOperationErrorGenerator.kt:103 */
         577  +
            {
         578  +
                Some(_inner)
         579  +
            }
         580  +
            /* ServerOperationErrorGenerator.kt:139 */
  308    581   
        }
         582  +
        /* ServerOperationErrorGenerator.kt:101 */
  309    583   
    }
         584  +
    /* ServerOperationErrorGenerator.kt:100 */
  310    585   
}
         586  +
/* ServerOperationErrorGenerator.kt:110 */
  311    587   
impl ::std::convert::From<crate::error::InternalServerError>
  312    588   
    for crate::error::HostWithPathOperationError
  313    589   
{
         590  +
    /* ServerOperationErrorGenerator.kt:111 */
  314    591   
    fn from(
  315    592   
        variant: crate::error::InternalServerError,
  316    593   
    ) -> crate::error::HostWithPathOperationError {
         594  +
        /* ServerOperationErrorGenerator.kt:112 */
  317    595   
        Self::InternalServerError(variant)
         596  +
        /* ServerOperationErrorGenerator.kt:111 */
  318    597   
    }
         598  +
    /* ServerOperationErrorGenerator.kt:110 */
  319    599   
}
  320    600   
         601  +
/* PythonServerOperationErrorGenerator.kt:38 */
  321    602   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::HostWithPathOperationError {
  322    603   
    fn from(variant: ::pyo3::PyErr) -> crate::error::HostWithPathOperationError {
  323    604   
        ::pyo3::Python::with_gil(|py| {
  324    605   
            let error = variant.value(py);
  325    606   
  326    607   
            crate::error::InternalServerError {
  327    608   
                message: error.to_string(),
  328    609   
            }
  329    610   
            .into()
  330    611   
        })
  331    612   
    }
  332    613   
}
  333    614   
         615  +
/* ServerOperationErrorGenerator.kt:63 */
  334    616   
/// Error type for the `EndpointWithHostLabelOperation` operation.
         617  +
/* ServerOperationErrorGenerator.kt:64 */
  335    618   
/// Each variant represents an error that can occur for the `EndpointWithHostLabelOperation` operation.
         619  +
/* RustType.kt:516 */
  336    620   
#[derive(::std::fmt::Debug)]
  337         -
pub enum EndpointWithHostLabelOperationError {
  338         -
    /// 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.
         621  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum EndpointWithHostLabelOperationError {
         622  +
    /// /* 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.
         623  +
    /* ServerOperationErrorGenerator.kt:71 */
  339    624   
    ValidationException(crate::error::ValidationException),
         625  +
    /* ServerOperationErrorGenerator.kt:68 */
  340    626   
    #[allow(missing_docs)] // documentation missing in model
         627  +
    /* ServerOperationErrorGenerator.kt:71 */
  341    628   
    InternalServerError(crate::error::InternalServerError),
         629  +
    /* ServerOperationErrorGenerator.kt:66 */
  342    630   
}
         631  +
/* ServerOperationErrorGenerator.kt:75 */
  343    632   
impl ::std::fmt::Display for EndpointWithHostLabelOperationError {
         633  +
    /* ServerOperationErrorGenerator.kt:76 */
  344    634   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         635  +
        /* ServerOperationErrorGenerator.kt:139 */
  345    636   
        match &self {
  346         -
            EndpointWithHostLabelOperationError::ValidationException(_inner) => _inner.fmt(f),
  347         -
            EndpointWithHostLabelOperationError::InternalServerError(_inner) => _inner.fmt(f),
         637  +
            /* ServerOperationErrorGenerator.kt:142 */
         638  +
            EndpointWithHostLabelOperationError::ValidationException(_inner) =>
         639  +
            /* ServerOperationErrorGenerator.kt:78 */
         640  +
            {
         641  +
                _inner.fmt(f)
  348    642   
            }
         643  +
            ,
         644  +
            /* ServerOperationErrorGenerator.kt:142 */
         645  +
            EndpointWithHostLabelOperationError::InternalServerError(_inner) =>
         646  +
            /* ServerOperationErrorGenerator.kt:78 */
         647  +
            {
         648  +
                _inner.fmt(f)
  349    649   
            }
         650  +
            /* ServerOperationErrorGenerator.kt:139 */
         651  +
        }
         652  +
        /* ServerOperationErrorGenerator.kt:76 */
         653  +
    }
         654  +
    /* ServerOperationErrorGenerator.kt:75 */
  350    655   
}
         656  +
/* ServerOperationErrorGenerator.kt:83 */
  351    657   
impl EndpointWithHostLabelOperationError {
         658  +
    /* ServerOperationErrorGenerator.kt:87 */
  352    659   
    /// Returns `true` if the error kind is `EndpointWithHostLabelOperationError::ValidationException`.
         660  +
    /* ServerOperationErrorGenerator.kt:88 */
  353    661   
    pub fn is_validation_exception(&self) -> bool {
         662  +
        /* ServerOperationErrorGenerator.kt:89 */
  354    663   
        matches!(
  355    664   
            &self,
  356    665   
            EndpointWithHostLabelOperationError::ValidationException(_)
  357    666   
        )
         667  +
        /* ServerOperationErrorGenerator.kt:88 */
  358    668   
    }
         669  +
    /* ServerOperationErrorGenerator.kt:87 */
  359    670   
    /// Returns `true` if the error kind is `EndpointWithHostLabelOperationError::InternalServerError`.
         671  +
    /* ServerOperationErrorGenerator.kt:88 */
  360    672   
    pub fn is_internal_server_error(&self) -> bool {
         673  +
        /* ServerOperationErrorGenerator.kt:89 */
  361    674   
        matches!(
  362    675   
            &self,
  363    676   
            EndpointWithHostLabelOperationError::InternalServerError(_)
  364    677   
        )
         678  +
        /* ServerOperationErrorGenerator.kt:88 */
  365    679   
    }
         680  +
    /* ServerOperationErrorGenerator.kt:92 */
  366    681   
    /// Returns the error name string by matching the correct variant.
         682  +
    /* ServerOperationErrorGenerator.kt:93 */
  367    683   
    pub fn name(&self) -> &'static str {
         684  +
        /* ServerOperationErrorGenerator.kt:139 */
  368    685   
        match &self {
  369         -
            EndpointWithHostLabelOperationError::ValidationException(_inner) => _inner.name(),
  370         -
            EndpointWithHostLabelOperationError::InternalServerError(_inner) => _inner.name(),
         686  +
            /* ServerOperationErrorGenerator.kt:142 */
         687  +
            EndpointWithHostLabelOperationError::ValidationException(_inner) =>
         688  +
            /* ServerOperationErrorGenerator.kt:95 */
         689  +
            {
         690  +
                _inner.name()
         691  +
            }
         692  +
            ,
         693  +
            /* ServerOperationErrorGenerator.kt:142 */
         694  +
            EndpointWithHostLabelOperationError::InternalServerError(_inner) =>
         695  +
            /* ServerOperationErrorGenerator.kt:95 */
         696  +
            {
         697  +
                _inner.name()
  371    698   
            }
         699  +
            /* ServerOperationErrorGenerator.kt:139 */
  372    700   
        }
         701  +
        /* ServerOperationErrorGenerator.kt:93 */
         702  +
    }
         703  +
    /* ServerOperationErrorGenerator.kt:83 */
  373    704   
}
         705  +
/* ServerOperationErrorGenerator.kt:100 */
  374    706   
impl ::std::error::Error for EndpointWithHostLabelOperationError {
         707  +
    /* ServerOperationErrorGenerator.kt:101 */
  375    708   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         709  +
        /* ServerOperationErrorGenerator.kt:139 */
  376    710   
        match &self {
  377         -
            EndpointWithHostLabelOperationError::ValidationException(_inner) => Some(_inner),
  378         -
            EndpointWithHostLabelOperationError::InternalServerError(_inner) => Some(_inner),
         711  +
            /* ServerOperationErrorGenerator.kt:142 */
         712  +
            EndpointWithHostLabelOperationError::ValidationException(_inner) =>
         713  +
            /* ServerOperationErrorGenerator.kt:103 */
         714  +
            {
         715  +
                Some(_inner)
         716  +
            }
         717  +
            ,
         718  +
            /* ServerOperationErrorGenerator.kt:142 */
         719  +
            EndpointWithHostLabelOperationError::InternalServerError(_inner) =>
         720  +
            /* ServerOperationErrorGenerator.kt:103 */
         721  +
            {
         722  +
                Some(_inner)
         723  +
            }
         724  +
            /* ServerOperationErrorGenerator.kt:139 */
  379    725   
        }
         726  +
        /* ServerOperationErrorGenerator.kt:101 */
  380    727   
    }
         728  +
    /* ServerOperationErrorGenerator.kt:100 */
  381    729   
}
         730  +
/* ServerOperationErrorGenerator.kt:110 */
  382    731   
impl ::std::convert::From<crate::error::ValidationException>
  383    732   
    for crate::error::EndpointWithHostLabelOperationError
  384    733   
{
         734  +
    /* ServerOperationErrorGenerator.kt:111 */
  385    735   
    fn from(
  386    736   
        variant: crate::error::ValidationException,
  387    737   
    ) -> crate::error::EndpointWithHostLabelOperationError {
         738  +
        /* ServerOperationErrorGenerator.kt:112 */
  388    739   
        Self::ValidationException(variant)
         740  +
        /* ServerOperationErrorGenerator.kt:111 */
  389    741   
    }
         742  +
    /* ServerOperationErrorGenerator.kt:110 */
  390    743   
}
         744  +
/* ServerOperationErrorGenerator.kt:110 */
  391    745   
impl ::std::convert::From<crate::error::InternalServerError>
  392    746   
    for crate::error::EndpointWithHostLabelOperationError
  393    747   
{
         748  +
    /* ServerOperationErrorGenerator.kt:111 */
  394    749   
    fn from(
  395    750   
        variant: crate::error::InternalServerError,
  396    751   
    ) -> crate::error::EndpointWithHostLabelOperationError {
         752  +
        /* ServerOperationErrorGenerator.kt:112 */
  397    753   
        Self::InternalServerError(variant)
         754  +
        /* ServerOperationErrorGenerator.kt:111 */
  398    755   
    }
         756  +
    /* ServerOperationErrorGenerator.kt:110 */
  399    757   
}
  400    758   
         759  +
/* PythonServerOperationErrorGenerator.kt:38 */
  401    760   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::EndpointWithHostLabelOperationError {
  402    761   
    fn from(variant: ::pyo3::PyErr) -> crate::error::EndpointWithHostLabelOperationError {
  403    762   
        ::pyo3::Python::with_gil(|py| {
  404    763   
            let error = variant.value(py);
  405    764   
            if let Ok(error) = error.extract::<crate::error::ValidationException>() {
  406    765   
                return error.into();
  407    766   
            }
  408    767   
            crate::error::InternalServerError {
  409    768   
                message: error.to_string(),
  410    769   
            }
  411    770   
            .into()
  412    771   
        })
  413    772   
    }
  414    773   
}
  415    774   
         775  +
/* RustType.kt:516 */
  416    776   
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
         777  +
/* PythonServerStructureGenerator.kt:63 */
  417    778   
/// :param message str:
  418    779   
/// :param field_list typing.Optional\[typing.List\[json_rpc11.model.ValidationExceptionField\]\]:
  419    780   
/// :rtype None:
  420         -
/// 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.
         781  +
/// /* 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.
         782  +
/* RustType.kt:516 */
  421    783   
#[derive(
  422    784   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  423    785   
)]
  424         -
pub struct ValidationException {
         786  +
pub /* StructureGenerator.kt:201 */ struct ValidationException {
         787  +
    /* RustType.kt:516 */
  425    788   
    #[pyo3(get, set)]
         789  +
    /* PythonServerStructureGenerator.kt:80 */
  426    790   
    /// :type str:
  427         -
    /// A summary of the validation failure.
         791  +
    /// /* StructureGenerator.kt:231 */A summary of the validation failure.
  428    792   
    pub message: ::std::string::String,
         793  +
    /* RustType.kt:516 */
  429    794   
    #[pyo3(get, set)]
         795  +
    /* PythonServerStructureGenerator.kt:80 */
  430    796   
    /// :type typing.Optional\[typing.List\[json_rpc11.model.ValidationExceptionField\]\]:
  431         -
    /// 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.
         797  +
    /// /* 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.
  432    798   
    pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
         799  +
    /* StructureGenerator.kt:201 */
  433    800   
}
         801  +
/* StructureGenerator.kt:135 */
  434    802   
impl ValidationException {
  435         -
    /// 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.
         803  +
    /// /* 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.
         804  +
    /* StructureGenerator.kt:166 */
  436    805   
    pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
         806  +
        /* StructureGenerator.kt:169 */
  437    807   
        self.field_list.as_deref()
         808  +
        /* StructureGenerator.kt:166 */
  438    809   
    }
         810  +
    /* StructureGenerator.kt:135 */
  439    811   
}
         812  +
/* RustType.kt:516 */
  440    813   
#[allow(clippy::new_without_default)]
         814  +
/* RustType.kt:516 */
  441    815   
#[allow(clippy::too_many_arguments)]
         816  +
/* RustType.kt:516 */
  442    817   
#[::pyo3::pymethods]
         818  +
/* PythonServerStructureGenerator.kt:88 */
  443    819   
impl ValidationException {
  444    820   
    #[new]
  445    821   
    pub fn new(
  446    822   
        message: ::std::string::String,
  447    823   
        field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
  448    824   
    ) -> Self {
  449    825   
        Self {
  450    826   
            message,
  451    827   
            field_list,
  452    828   
        }
  453    829   
    }
  454    830   
    fn __repr__(&self) -> String {
  455    831   
        format!("{self:?}")
  456    832   
    }
  457    833   
    fn __str__(&self) -> String {
  458    834   
        format!("{self:?}")
  459    835   
    }
  460    836   
}
         837  +
/* ErrorImplGenerator.kt:99 */
  461    838   
impl ValidationException {
         839  +
    /* ErrorImplGenerator.kt:128 */
  462    840   
    /// Returns the error message.
  463    841   
    pub fn message(&self) -> &str {
  464    842   
        &self.message
  465    843   
    }
         844  +
    /* ErrorImplGenerator.kt:141 */
  466    845   
    #[doc(hidden)]
  467    846   
    /// Returns the error name.
  468    847   
    pub fn name(&self) -> &'static str {
  469    848   
        "ValidationException"
  470    849   
    }
         850  +
    /* ErrorImplGenerator.kt:99 */
  471    851   
}
         852  +
/* ErrorImplGenerator.kt:153 */
  472    853   
impl ::std::fmt::Display for ValidationException {
         854  +
    /* ErrorImplGenerator.kt:154 */
  473    855   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         856  +
        /* ErrorImplGenerator.kt:161 */
  474    857   
        ::std::write!(f, "ValidationException")?;
         858  +
        /* ErrorImplGenerator.kt:166 */
  475    859   
        {
         860  +
            /* ErrorImplGenerator.kt:167 */
  476    861   
            ::std::write!(f, ": {}", &self.message)?;
         862  +
            /* ErrorImplGenerator.kt:166 */
  477    863   
        }
         864  +
        /* ErrorImplGenerator.kt:171 */
  478    865   
        Ok(())
         866  +
        /* ErrorImplGenerator.kt:154 */
  479    867   
    }
         868  +
    /* ErrorImplGenerator.kt:153 */
  480    869   
}
         870  +
/* ErrorImplGenerator.kt:175 */
  481    871   
impl ::std::error::Error for ValidationException {}
         872  +
/* ServerCodegenVisitor.kt:370 */
  482    873   
impl ValidationException {
  483         -
    /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
         874  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
         875  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  484    876   
    pub fn builder() -> crate::error::validation_exception::Builder {
         877  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  485    878   
        crate::error::validation_exception::Builder::default()
         879  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  486    880   
    }
         881  +
    /* ServerCodegenVisitor.kt:370 */
  487    882   
}
  488    883   
         884  +
/* ServerOperationErrorGenerator.kt:63 */
  489    885   
/// Error type for the `EndpointOperation` operation.
         886  +
/* ServerOperationErrorGenerator.kt:64 */
  490    887   
/// Each variant represents an error that can occur for the `EndpointOperation` operation.
         888  +
/* RustType.kt:516 */
  491    889   
#[derive(::std::fmt::Debug)]
  492         -
pub enum EndpointOperationError {
         890  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum EndpointOperationError {
         891  +
    /* ServerOperationErrorGenerator.kt:68 */
  493    892   
    #[allow(missing_docs)] // documentation missing in model
         893  +
    /* ServerOperationErrorGenerator.kt:71 */
  494    894   
    InternalServerError(crate::error::InternalServerError),
         895  +
    /* ServerOperationErrorGenerator.kt:66 */
  495    896   
}
         897  +
/* ServerOperationErrorGenerator.kt:75 */
  496    898   
impl ::std::fmt::Display for EndpointOperationError {
         899  +
    /* ServerOperationErrorGenerator.kt:76 */
  497    900   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         901  +
        /* ServerOperationErrorGenerator.kt:139 */
  498    902   
        match &self {
  499         -
            EndpointOperationError::InternalServerError(_inner) => _inner.fmt(f),
         903  +
            /* ServerOperationErrorGenerator.kt:142 */
         904  +
            EndpointOperationError::InternalServerError(_inner) =>
         905  +
            /* ServerOperationErrorGenerator.kt:78 */
         906  +
            {
         907  +
                _inner.fmt(f)
         908  +
            }
         909  +
            /* ServerOperationErrorGenerator.kt:139 */
  500    910   
        }
         911  +
        /* ServerOperationErrorGenerator.kt:76 */
  501    912   
    }
         913  +
    /* ServerOperationErrorGenerator.kt:75 */
  502    914   
}
         915  +
/* ServerOperationErrorGenerator.kt:83 */
  503    916   
impl EndpointOperationError {
         917  +
    /* ServerOperationErrorGenerator.kt:87 */
  504    918   
    /// Returns `true` if the error kind is `EndpointOperationError::InternalServerError`.
         919  +
    /* ServerOperationErrorGenerator.kt:88 */
  505    920   
    pub fn is_internal_server_error(&self) -> bool {
         921  +
        /* ServerOperationErrorGenerator.kt:89 */
  506    922   
        matches!(&self, EndpointOperationError::InternalServerError(_))
         923  +
        /* ServerOperationErrorGenerator.kt:88 */
  507    924   
    }
         925  +
    /* ServerOperationErrorGenerator.kt:92 */
  508    926   
    /// Returns the error name string by matching the correct variant.
         927  +
    /* ServerOperationErrorGenerator.kt:93 */
  509    928   
    pub fn name(&self) -> &'static str {
         929  +
        /* ServerOperationErrorGenerator.kt:139 */
  510    930   
        match &self {
  511         -
            EndpointOperationError::InternalServerError(_inner) => _inner.name(),
         931  +
            /* ServerOperationErrorGenerator.kt:142 */
         932  +
            EndpointOperationError::InternalServerError(_inner) =>
         933  +
            /* ServerOperationErrorGenerator.kt:95 */
         934  +
            {
         935  +
                _inner.name()
  512    936   
            }
         937  +
            /* ServerOperationErrorGenerator.kt:139 */
  513    938   
        }
         939  +
        /* ServerOperationErrorGenerator.kt:93 */
         940  +
    }
         941  +
    /* ServerOperationErrorGenerator.kt:83 */
  514    942   
}
         943  +
/* ServerOperationErrorGenerator.kt:100 */
  515    944   
impl ::std::error::Error for EndpointOperationError {
         945  +
    /* ServerOperationErrorGenerator.kt:101 */
  516    946   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         947  +
        /* ServerOperationErrorGenerator.kt:139 */
  517    948   
        match &self {
  518         -
            EndpointOperationError::InternalServerError(_inner) => Some(_inner),
         949  +
            /* ServerOperationErrorGenerator.kt:142 */
         950  +
            EndpointOperationError::InternalServerError(_inner) =>
         951  +
            /* ServerOperationErrorGenerator.kt:103 */
         952  +
            {
         953  +
                Some(_inner)
         954  +
            }
         955  +
            /* ServerOperationErrorGenerator.kt:139 */
  519    956   
        }
         957  +
        /* ServerOperationErrorGenerator.kt:101 */
  520    958   
    }
         959  +
    /* ServerOperationErrorGenerator.kt:100 */
  521    960   
}
         961  +
/* ServerOperationErrorGenerator.kt:110 */
  522    962   
impl ::std::convert::From<crate::error::InternalServerError>
  523    963   
    for crate::error::EndpointOperationError
  524    964   
{
         965  +
    /* ServerOperationErrorGenerator.kt:111 */
  525    966   
    fn from(variant: crate::error::InternalServerError) -> crate::error::EndpointOperationError {
         967  +
        /* ServerOperationErrorGenerator.kt:112 */
  526    968   
        Self::InternalServerError(variant)
         969  +
        /* ServerOperationErrorGenerator.kt:111 */
  527    970   
    }
         971  +
    /* ServerOperationErrorGenerator.kt:110 */
  528    972   
}
  529    973   
         974  +
/* PythonServerOperationErrorGenerator.kt:38 */
  530    975   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::EndpointOperationError {
  531    976   
    fn from(variant: ::pyo3::PyErr) -> crate::error::EndpointOperationError {
  532    977   
        ::pyo3::Python::with_gil(|py| {
  533    978   
            let error = variant.value(py);
  534    979   
  535    980   
            crate::error::InternalServerError {
  536    981   
                message: error.to_string(),
  537    982   
            }
  538    983   
            .into()
  539    984   
        })
  540    985   
    }
  541    986   
}
  542    987   
         988  +
/* ServerOperationErrorGenerator.kt:63 */
  543    989   
/// Error type for the `JsonUnions` operation.
         990  +
/* ServerOperationErrorGenerator.kt:64 */
  544    991   
/// Each variant represents an error that can occur for the `JsonUnions` operation.
         992  +
/* RustType.kt:516 */
  545    993   
#[derive(::std::fmt::Debug)]
  546         -
pub enum JsonUnionsError {
  547         -
    /// 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.
         994  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum JsonUnionsError {
         995  +
    /// /* 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.
         996  +
    /* ServerOperationErrorGenerator.kt:71 */
  548    997   
    ValidationException(crate::error::ValidationException),
         998  +
    /* ServerOperationErrorGenerator.kt:68 */
  549    999   
    #[allow(missing_docs)] // documentation missing in model
        1000  +
    /* ServerOperationErrorGenerator.kt:71 */
  550   1001   
    InternalServerError(crate::error::InternalServerError),
        1002  +
    /* ServerOperationErrorGenerator.kt:66 */
  551   1003   
}
        1004  +
/* ServerOperationErrorGenerator.kt:75 */
  552   1005   
impl ::std::fmt::Display for JsonUnionsError {
        1006  +
    /* ServerOperationErrorGenerator.kt:76 */
  553   1007   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1008  +
        /* ServerOperationErrorGenerator.kt:139 */
  554   1009   
        match &self {
  555         -
            JsonUnionsError::ValidationException(_inner) => _inner.fmt(f),
  556         -
            JsonUnionsError::InternalServerError(_inner) => _inner.fmt(f),
        1010  +
            /* ServerOperationErrorGenerator.kt:142 */
        1011  +
            JsonUnionsError::ValidationException(_inner) =>
        1012  +
            /* ServerOperationErrorGenerator.kt:78 */
        1013  +
            {
        1014  +
                _inner.fmt(f)
        1015  +
            }
        1016  +
            ,
        1017  +
            /* ServerOperationErrorGenerator.kt:142 */
        1018  +
            JsonUnionsError::InternalServerError(_inner) =>
        1019  +
            /* ServerOperationErrorGenerator.kt:78 */
        1020  +
            {
        1021  +
                _inner.fmt(f)
  557   1022   
            }
        1023  +
            /* ServerOperationErrorGenerator.kt:139 */
  558   1024   
        }
        1025  +
        /* ServerOperationErrorGenerator.kt:76 */
        1026  +
    }
        1027  +
    /* ServerOperationErrorGenerator.kt:75 */
  559   1028   
}
        1029  +
/* ServerOperationErrorGenerator.kt:83 */
  560   1030   
impl JsonUnionsError {
        1031  +
    /* ServerOperationErrorGenerator.kt:87 */
  561   1032   
    /// Returns `true` if the error kind is `JsonUnionsError::ValidationException`.
        1033  +
    /* ServerOperationErrorGenerator.kt:88 */
  562   1034   
    pub fn is_validation_exception(&self) -> bool {
        1035  +
        /* ServerOperationErrorGenerator.kt:89 */
  563   1036   
        matches!(&self, JsonUnionsError::ValidationException(_))
        1037  +
        /* ServerOperationErrorGenerator.kt:88 */
  564   1038   
    }
        1039  +
    /* ServerOperationErrorGenerator.kt:87 */
  565   1040   
    /// Returns `true` if the error kind is `JsonUnionsError::InternalServerError`.
        1041  +
    /* ServerOperationErrorGenerator.kt:88 */
  566   1042   
    pub fn is_internal_server_error(&self) -> bool {
        1043  +
        /* ServerOperationErrorGenerator.kt:89 */
  567   1044   
        matches!(&self, JsonUnionsError::InternalServerError(_))
        1045  +
        /* ServerOperationErrorGenerator.kt:88 */
  568   1046   
    }
        1047  +
    /* ServerOperationErrorGenerator.kt:92 */
  569   1048   
    /// Returns the error name string by matching the correct variant.
        1049  +
    /* ServerOperationErrorGenerator.kt:93 */
  570   1050   
    pub fn name(&self) -> &'static str {
        1051  +
        /* ServerOperationErrorGenerator.kt:139 */
  571   1052   
        match &self {
  572         -
            JsonUnionsError::ValidationException(_inner) => _inner.name(),
  573         -
            JsonUnionsError::InternalServerError(_inner) => _inner.name(),
        1053  +
            /* ServerOperationErrorGenerator.kt:142 */
        1054  +
            JsonUnionsError::ValidationException(_inner) =>
        1055  +
            /* ServerOperationErrorGenerator.kt:95 */
        1056  +
            {
        1057  +
                _inner.name()
  574   1058   
            }
        1059  +
            ,
        1060  +
            /* ServerOperationErrorGenerator.kt:142 */
        1061  +
            JsonUnionsError::InternalServerError(_inner) =>
        1062  +
            /* ServerOperationErrorGenerator.kt:95 */
        1063  +
            {
        1064  +
                _inner.name()
        1065  +
            }
        1066  +
            /* ServerOperationErrorGenerator.kt:139 */
        1067  +
        }
        1068  +
        /* ServerOperationErrorGenerator.kt:93 */
  575   1069   
    }
        1070  +
    /* ServerOperationErrorGenerator.kt:83 */
  576   1071   
}
        1072  +
/* ServerOperationErrorGenerator.kt:100 */
  577   1073   
impl ::std::error::Error for JsonUnionsError {
        1074  +
    /* ServerOperationErrorGenerator.kt:101 */
  578   1075   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1076  +
        /* ServerOperationErrorGenerator.kt:139 */
  579   1077   
        match &self {
  580         -
            JsonUnionsError::ValidationException(_inner) => Some(_inner),
  581         -
            JsonUnionsError::InternalServerError(_inner) => Some(_inner),
        1078  +
            /* ServerOperationErrorGenerator.kt:142 */
        1079  +
            JsonUnionsError::ValidationException(_inner) =>
        1080  +
            /* ServerOperationErrorGenerator.kt:103 */
        1081  +
            {
        1082  +
                Some(_inner)
        1083  +
            }
        1084  +
            ,
        1085  +
            /* ServerOperationErrorGenerator.kt:142 */
        1086  +
            JsonUnionsError::InternalServerError(_inner) =>
        1087  +
            /* ServerOperationErrorGenerator.kt:103 */
        1088  +
            {
        1089  +
                Some(_inner)
        1090  +
            }
        1091  +
            /* ServerOperationErrorGenerator.kt:139 */
  582   1092   
        }
        1093  +
        /* ServerOperationErrorGenerator.kt:101 */
  583   1094   
    }
        1095  +
    /* ServerOperationErrorGenerator.kt:100 */
  584   1096   
}
        1097  +
/* ServerOperationErrorGenerator.kt:110 */
  585   1098   
impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonUnionsError {
        1099  +
    /* ServerOperationErrorGenerator.kt:111 */
  586   1100   
    fn from(variant: crate::error::ValidationException) -> crate::error::JsonUnionsError {
        1101  +
        /* ServerOperationErrorGenerator.kt:112 */
  587   1102   
        Self::ValidationException(variant)
        1103  +
        /* ServerOperationErrorGenerator.kt:111 */
  588   1104   
    }
        1105  +
    /* ServerOperationErrorGenerator.kt:110 */
  589   1106   
}
        1107  +
/* ServerOperationErrorGenerator.kt:110 */
  590   1108   
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::JsonUnionsError {
        1109  +
    /* ServerOperationErrorGenerator.kt:111 */
  591   1110   
    fn from(variant: crate::error::InternalServerError) -> crate::error::JsonUnionsError {
        1111  +
        /* ServerOperationErrorGenerator.kt:112 */
  592   1112   
        Self::InternalServerError(variant)
        1113  +
        /* ServerOperationErrorGenerator.kt:111 */
  593   1114   
    }
        1115  +
    /* ServerOperationErrorGenerator.kt:110 */
  594   1116   
}
  595   1117   
        1118  +
/* PythonServerOperationErrorGenerator.kt:38 */
  596   1119   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::JsonUnionsError {
  597   1120   
    fn from(variant: ::pyo3::PyErr) -> crate::error::JsonUnionsError {
  598   1121   
        ::pyo3::Python::with_gil(|py| {
  599   1122   
            let error = variant.value(py);
  600   1123   
            if let Ok(error) = error.extract::<crate::error::ValidationException>() {
  601   1124   
                return error.into();
  602   1125   
            }
  603   1126   
            crate::error::InternalServerError {
  604   1127   
                message: error.to_string(),
  605   1128   
            }
  606   1129   
            .into()
  607   1130   
        })
  608   1131   
    }
  609   1132   
}
  610   1133   
        1134  +
/* ServerOperationErrorGenerator.kt:63 */
  611   1135   
/// Error type for the `GreetingWithErrors` operation.
        1136  +
/* ServerOperationErrorGenerator.kt:64 */
  612   1137   
/// Each variant represents an error that can occur for the `GreetingWithErrors` operation.
        1138  +
/* RustType.kt:516 */
  613   1139   
#[derive(::std::fmt::Debug)]
  614         -
pub enum GreetingWithErrorsError {
  615         -
    /// This error is thrown when an invalid greeting value is provided.
        1140  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum GreetingWithErrorsError {
        1141  +
    /// /* ServerOperationErrorGenerator.kt:68 */This error is thrown when an invalid greeting value is provided.
        1142  +
    /* ServerOperationErrorGenerator.kt:71 */
  616   1143   
    InvalidGreeting(crate::error::InvalidGreeting),
  617         -
    /// This error is thrown when a request is invalid.
        1144  +
    /// /* ServerOperationErrorGenerator.kt:68 */This error is thrown when a request is invalid.
        1145  +
    /* ServerOperationErrorGenerator.kt:71 */
  618   1146   
    ComplexError(crate::error::ComplexError),
  619         -
    /// This error has test cases that test some of the dark corners of Amazon service framework history. It should only be implemented by clients.
        1147  +
    /// /* 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.
        1148  +
    /* ServerOperationErrorGenerator.kt:71 */
  620   1149   
    FooError(crate::error::FooError),
        1150  +
    /* ServerOperationErrorGenerator.kt:68 */
  621   1151   
    #[allow(missing_docs)] // documentation missing in model
        1152  +
    /* ServerOperationErrorGenerator.kt:71 */
  622   1153   
    InternalServerError(crate::error::InternalServerError),
        1154  +
    /* ServerOperationErrorGenerator.kt:66 */
  623   1155   
}
        1156  +
/* ServerOperationErrorGenerator.kt:75 */
  624   1157   
impl ::std::fmt::Display for GreetingWithErrorsError {
        1158  +
    /* ServerOperationErrorGenerator.kt:76 */
  625   1159   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1160  +
        /* ServerOperationErrorGenerator.kt:139 */
  626   1161   
        match &self {
  627         -
            GreetingWithErrorsError::InvalidGreeting(_inner) => _inner.fmt(f),
  628         -
            GreetingWithErrorsError::ComplexError(_inner) => _inner.fmt(f),
  629         -
            GreetingWithErrorsError::FooError(_inner) => _inner.fmt(f),
  630         -
            GreetingWithErrorsError::InternalServerError(_inner) => _inner.fmt(f),
        1162  +
            /* ServerOperationErrorGenerator.kt:142 */
        1163  +
            GreetingWithErrorsError::InvalidGreeting(_inner) =>
        1164  +
            /* ServerOperationErrorGenerator.kt:78 */
        1165  +
            {
        1166  +
                _inner.fmt(f)
        1167  +
            }
        1168  +
            ,
        1169  +
            /* ServerOperationErrorGenerator.kt:142 */
        1170  +
            GreetingWithErrorsError::ComplexError(_inner) =>
        1171  +
            /* ServerOperationErrorGenerator.kt:78 */
        1172  +
            {
        1173  +
                _inner.fmt(f)
  631   1174   
            }
        1175  +
            ,
        1176  +
            /* ServerOperationErrorGenerator.kt:142 */
        1177  +
            GreetingWithErrorsError::FooError(_inner) =>
        1178  +
            /* ServerOperationErrorGenerator.kt:78 */
        1179  +
            {
        1180  +
                _inner.fmt(f)
        1181  +
            }
        1182  +
            ,
        1183  +
            /* ServerOperationErrorGenerator.kt:142 */
        1184  +
            GreetingWithErrorsError::InternalServerError(_inner) =>
        1185  +
            /* ServerOperationErrorGenerator.kt:78 */
        1186  +
            {
        1187  +
                _inner.fmt(f)
  632   1188   
            }
        1189  +
            /* ServerOperationErrorGenerator.kt:139 */
        1190  +
        }
        1191  +
        /* ServerOperationErrorGenerator.kt:76 */
        1192  +
    }
        1193  +
    /* ServerOperationErrorGenerator.kt:75 */
  633   1194   
}
        1195  +
/* ServerOperationErrorGenerator.kt:83 */
  634   1196   
impl GreetingWithErrorsError {
        1197  +
    /* ServerOperationErrorGenerator.kt:87 */
  635   1198   
    /// Returns `true` if the error kind is `GreetingWithErrorsError::InvalidGreeting`.
        1199  +
    /* ServerOperationErrorGenerator.kt:88 */
  636   1200   
    pub fn is_invalid_greeting(&self) -> bool {
        1201  +
        /* ServerOperationErrorGenerator.kt:89 */
  637   1202   
        matches!(&self, GreetingWithErrorsError::InvalidGreeting(_))
        1203  +
        /* ServerOperationErrorGenerator.kt:88 */
  638   1204   
    }
        1205  +
    /* ServerOperationErrorGenerator.kt:87 */
  639   1206   
    /// Returns `true` if the error kind is `GreetingWithErrorsError::ComplexError`.
        1207  +
    /* ServerOperationErrorGenerator.kt:88 */
  640   1208   
    pub fn is_complex_error(&self) -> bool {
        1209  +
        /* ServerOperationErrorGenerator.kt:89 */
  641   1210   
        matches!(&self, GreetingWithErrorsError::ComplexError(_))
        1211  +
        /* ServerOperationErrorGenerator.kt:88 */
  642   1212   
    }
        1213  +
    /* ServerOperationErrorGenerator.kt:87 */
  643   1214   
    /// Returns `true` if the error kind is `GreetingWithErrorsError::FooError`.
        1215  +
    /* ServerOperationErrorGenerator.kt:88 */
  644   1216   
    pub fn is_foo_error(&self) -> bool {
        1217  +
        /* ServerOperationErrorGenerator.kt:89 */
  645   1218   
        matches!(&self, GreetingWithErrorsError::FooError(_))
        1219  +
        /* ServerOperationErrorGenerator.kt:88 */
  646   1220   
    }
        1221  +
    /* ServerOperationErrorGenerator.kt:87 */
  647   1222   
    /// Returns `true` if the error kind is `GreetingWithErrorsError::InternalServerError`.
        1223  +
    /* ServerOperationErrorGenerator.kt:88 */
  648   1224   
    pub fn is_internal_server_error(&self) -> bool {
        1225  +
        /* ServerOperationErrorGenerator.kt:89 */
  649   1226   
        matches!(&self, GreetingWithErrorsError::InternalServerError(_))
        1227  +
        /* ServerOperationErrorGenerator.kt:88 */
  650   1228   
    }
        1229  +
    /* ServerOperationErrorGenerator.kt:92 */
  651   1230   
    /// Returns the error name string by matching the correct variant.
        1231  +
    /* ServerOperationErrorGenerator.kt:93 */
  652   1232   
    pub fn name(&self) -> &'static str {
        1233  +
        /* ServerOperationErrorGenerator.kt:139 */
  653   1234   
        match &self {
  654         -
            GreetingWithErrorsError::InvalidGreeting(_inner) => _inner.name(),
  655         -
            GreetingWithErrorsError::ComplexError(_inner) => _inner.name(),
  656         -
            GreetingWithErrorsError::FooError(_inner) => _inner.name(),
  657         -
            GreetingWithErrorsError::InternalServerError(_inner) => _inner.name(),
        1235  +
            /* ServerOperationErrorGenerator.kt:142 */
        1236  +
            GreetingWithErrorsError::InvalidGreeting(_inner) =>
        1237  +
            /* ServerOperationErrorGenerator.kt:95 */
        1238  +
            {
        1239  +
                _inner.name()
  658   1240   
            }
        1241  +
            ,
        1242  +
            /* ServerOperationErrorGenerator.kt:142 */
        1243  +
            GreetingWithErrorsError::ComplexError(_inner) =>
        1244  +
            /* ServerOperationErrorGenerator.kt:95 */
        1245  +
            {
        1246  +
                _inner.name()
        1247  +
            }
        1248  +
            ,
        1249  +
            /* ServerOperationErrorGenerator.kt:142 */
        1250  +
            GreetingWithErrorsError::FooError(_inner) =>
        1251  +
            /* ServerOperationErrorGenerator.kt:95 */
        1252  +
            {
        1253  +
                _inner.name()
        1254  +
            }
        1255  +
            ,
        1256  +
            /* ServerOperationErrorGenerator.kt:142 */
        1257  +
            GreetingWithErrorsError::InternalServerError(_inner) =>
        1258  +
            /* ServerOperationErrorGenerator.kt:95 */
        1259  +
            {
        1260  +
                _inner.name()
  659   1261   
            }
        1262  +
            /* ServerOperationErrorGenerator.kt:139 */
        1263  +
        }
        1264  +
        /* ServerOperationErrorGenerator.kt:93 */
        1265  +
    }
        1266  +
    /* ServerOperationErrorGenerator.kt:83 */
  660   1267   
}
        1268  +
/* ServerOperationErrorGenerator.kt:100 */
  661   1269   
impl ::std::error::Error for GreetingWithErrorsError {
        1270  +
    /* ServerOperationErrorGenerator.kt:101 */
  662   1271   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1272  +
        /* ServerOperationErrorGenerator.kt:139 */
  663   1273   
        match &self {
  664         -
            GreetingWithErrorsError::InvalidGreeting(_inner) => Some(_inner),
  665         -
            GreetingWithErrorsError::ComplexError(_inner) => Some(_inner),
  666         -
            GreetingWithErrorsError::FooError(_inner) => Some(_inner),
  667         -
            GreetingWithErrorsError::InternalServerError(_inner) => Some(_inner),
        1274  +
            /* ServerOperationErrorGenerator.kt:142 */
        1275  +
            GreetingWithErrorsError::InvalidGreeting(_inner) =>
        1276  +
            /* ServerOperationErrorGenerator.kt:103 */
        1277  +
            {
        1278  +
                Some(_inner)
        1279  +
            }
        1280  +
            ,
        1281  +
            /* ServerOperationErrorGenerator.kt:142 */
        1282  +
            GreetingWithErrorsError::ComplexError(_inner) =>
        1283  +
            /* ServerOperationErrorGenerator.kt:103 */
        1284  +
            {
        1285  +
                Some(_inner)
        1286  +
            }
        1287  +
            ,
        1288  +
            /* ServerOperationErrorGenerator.kt:142 */
        1289  +
            GreetingWithErrorsError::FooError(_inner) =>
        1290  +
            /* ServerOperationErrorGenerator.kt:103 */
        1291  +
            {
        1292  +
                Some(_inner)
        1293  +
            }
        1294  +
            ,
        1295  +
            /* ServerOperationErrorGenerator.kt:142 */
        1296  +
            GreetingWithErrorsError::InternalServerError(_inner) =>
        1297  +
            /* ServerOperationErrorGenerator.kt:103 */
        1298  +
            {
        1299  +
                Some(_inner)
        1300  +
            }
        1301  +
            /* ServerOperationErrorGenerator.kt:139 */
  668   1302   
        }
        1303  +
        /* ServerOperationErrorGenerator.kt:101 */
  669   1304   
    }
        1305  +
    /* ServerOperationErrorGenerator.kt:100 */
  670   1306   
}
        1307  +
/* ServerOperationErrorGenerator.kt:110 */
  671   1308   
impl ::std::convert::From<crate::error::InvalidGreeting> for crate::error::GreetingWithErrorsError {
        1309  +
    /* ServerOperationErrorGenerator.kt:111 */
  672   1310   
    fn from(variant: crate::error::InvalidGreeting) -> crate::error::GreetingWithErrorsError {
        1311  +
        /* ServerOperationErrorGenerator.kt:112 */
  673   1312   
        Self::InvalidGreeting(variant)
        1313  +
        /* ServerOperationErrorGenerator.kt:111 */
  674   1314   
    }
        1315  +
    /* ServerOperationErrorGenerator.kt:110 */
  675   1316   
}
        1317  +
/* ServerOperationErrorGenerator.kt:110 */
  676   1318   
impl ::std::convert::From<crate::error::ComplexError> for crate::error::GreetingWithErrorsError {
        1319  +
    /* ServerOperationErrorGenerator.kt:111 */
  677   1320   
    fn from(variant: crate::error::ComplexError) -> crate::error::GreetingWithErrorsError {
        1321  +
        /* ServerOperationErrorGenerator.kt:112 */
  678   1322   
        Self::ComplexError(variant)
        1323  +
        /* ServerOperationErrorGenerator.kt:111 */
  679   1324   
    }
        1325  +
    /* ServerOperationErrorGenerator.kt:110 */
  680   1326   
}
        1327  +
/* ServerOperationErrorGenerator.kt:110 */
  681   1328   
impl ::std::convert::From<crate::error::FooError> for crate::error::GreetingWithErrorsError {
        1329  +
    /* ServerOperationErrorGenerator.kt:111 */
  682   1330   
    fn from(variant: crate::error::FooError) -> crate::error::GreetingWithErrorsError {
        1331  +
        /* ServerOperationErrorGenerator.kt:112 */
  683   1332   
        Self::FooError(variant)
        1333  +
        /* ServerOperationErrorGenerator.kt:111 */
  684   1334   
    }
        1335  +
    /* ServerOperationErrorGenerator.kt:110 */
  685   1336   
}
        1337  +
/* ServerOperationErrorGenerator.kt:110 */
  686   1338   
impl ::std::convert::From<crate::error::InternalServerError>
  687   1339   
    for crate::error::GreetingWithErrorsError
  688   1340   
{
        1341  +
    /* ServerOperationErrorGenerator.kt:111 */
  689   1342   
    fn from(variant: crate::error::InternalServerError) -> crate::error::GreetingWithErrorsError {
        1343  +
        /* ServerOperationErrorGenerator.kt:112 */
  690   1344   
        Self::InternalServerError(variant)
        1345  +
        /* ServerOperationErrorGenerator.kt:111 */
  691   1346   
    }
        1347  +
    /* ServerOperationErrorGenerator.kt:110 */
  692   1348   
}
  693   1349   
        1350  +
/* PythonServerOperationErrorGenerator.kt:38 */
  694   1351   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::GreetingWithErrorsError {
  695   1352   
    fn from(variant: ::pyo3::PyErr) -> crate::error::GreetingWithErrorsError {
  696   1353   
        ::pyo3::Python::with_gil(|py| {
  697   1354   
            let error = variant.value(py);
  698   1355   
            if let Ok(error) = error.extract::<crate::error::InvalidGreeting>() {
  699   1356   
                return error.into();
  700   1357   
            }
  701   1358   
            if let Ok(error) = error.extract::<crate::error::ComplexError>() {
  702   1359   
                return error.into();
  703   1360   
            }
  704   1361   
            if let Ok(error) = error.extract::<crate::error::FooError>() {
  705   1362   
                return error.into();
  706   1363   
            }
  707   1364   
            crate::error::InternalServerError {
  708   1365   
                message: error.to_string(),
  709   1366   
            }
  710   1367   
            .into()
  711   1368   
        })
  712   1369   
    }
  713   1370   
}
  714   1371   
        1372  +
/* RustType.kt:516 */
  715   1373   
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
        1374  +
/* PythonServerStructureGenerator.kt:63 */
  716   1375   
/// :rtype None:
  717         -
/// This error has test cases that test some of the dark corners of Amazon service framework history. It should only be implemented by clients.
        1376  +
/// /* 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.
        1377  +
/* RustType.kt:516 */
  718   1378   
#[derive(
  719   1379   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  720   1380   
)]
  721         -
pub struct FooError {}
        1381  +
pub /* StructureGenerator.kt:201 */ struct FooError {/* StructureGenerator.kt:201 */}
        1382  +
/* RustType.kt:516 */
  722   1383   
#[allow(clippy::new_without_default)]
        1384  +
/* RustType.kt:516 */
  723   1385   
#[allow(clippy::too_many_arguments)]
        1386  +
/* RustType.kt:516 */
  724   1387   
#[::pyo3::pymethods]
        1388  +
/* PythonServerStructureGenerator.kt:88 */
  725   1389   
impl FooError {
  726   1390   
    #[new]
  727   1391   
    pub fn new() -> Self {
  728   1392   
        Self {}
  729   1393   
    }
  730   1394   
    fn __repr__(&self) -> String {
  731   1395   
        format!("{self:?}")
  732   1396   
    }
  733   1397   
    fn __str__(&self) -> String {
  734   1398   
        format!("{self:?}")
  735   1399   
    }
  736   1400   
}
        1401  +
/* ErrorImplGenerator.kt:99 */
  737   1402   
impl FooError {
        1403  +
    /* ErrorImplGenerator.kt:141 */
  738   1404   
    #[doc(hidden)]
  739   1405   
    /// Returns the error name.
  740   1406   
    pub fn name(&self) -> &'static str {
  741   1407   
        "FooError"
  742   1408   
    }
        1409  +
    /* ErrorImplGenerator.kt:99 */
  743   1410   
}
        1411  +
/* ErrorImplGenerator.kt:153 */
  744   1412   
impl ::std::fmt::Display for FooError {
        1413  +
    /* ErrorImplGenerator.kt:154 */
  745   1414   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1415  +
        /* ErrorImplGenerator.kt:161 */
  746   1416   
        ::std::write!(f, "FooError")?;
        1417  +
        /* ErrorImplGenerator.kt:171 */
  747   1418   
        Ok(())
        1419  +
        /* ErrorImplGenerator.kt:154 */
  748   1420   
    }
        1421  +
    /* ErrorImplGenerator.kt:153 */
  749   1422   
}
        1423  +
/* ErrorImplGenerator.kt:175 */
  750   1424   
impl ::std::error::Error for FooError {}
        1425  +
/* ServerCodegenVisitor.kt:370 */
  751   1426   
impl FooError {
  752         -
    /// Creates a new builder-style object to manufacture [`FooError`](crate::error::FooError).
        1427  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`FooError`](crate::error::FooError).
        1428  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  753   1429   
    pub fn builder() -> crate::error::foo_error::Builder {
        1430  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  754   1431   
        crate::error::foo_error::Builder::default()
        1432  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  755   1433   
    }
        1434  +
    /* ServerCodegenVisitor.kt:370 */
  756   1435   
}
  757   1436   
        1437  +
/* RustType.kt:516 */
  758   1438   
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
        1439  +
/* PythonServerStructureGenerator.kt:63 */
  759   1440   
/// :param top_level typing.Optional\[str\]:
  760   1441   
/// :param nested typing.Optional\[json_rpc11.model.ComplexNestedErrorData\]:
  761   1442   
/// :rtype None:
  762         -
/// This error is thrown when a request is invalid.
        1443  +
/// /* StructureGenerator.kt:197 */This error is thrown when a request is invalid.
        1444  +
/* RustType.kt:516 */
  763   1445   
#[derive(
  764   1446   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  765   1447   
)]
  766         -
pub struct ComplexError {
        1448  +
pub /* StructureGenerator.kt:201 */ struct ComplexError {
        1449  +
    /* RustType.kt:516 */
  767   1450   
    #[pyo3(get, set)]
        1451  +
    /* PythonServerStructureGenerator.kt:80 */
  768   1452   
    /// :type typing.Optional\[str\]:
        1453  +
    /* StructureGenerator.kt:231 */
  769   1454   
    #[allow(missing_docs)] // documentation missing in model
  770   1455   
    pub top_level: ::std::option::Option<::std::string::String>,
        1456  +
    /* RustType.kt:516 */
  771   1457   
    #[pyo3(get, set)]
        1458  +
    /* PythonServerStructureGenerator.kt:80 */
  772   1459   
    /// :type typing.Optional\[json_rpc11.model.ComplexNestedErrorData\]:
        1460  +
    /* StructureGenerator.kt:231 */
  773   1461   
    #[allow(missing_docs)] // documentation missing in model
  774   1462   
    pub nested: ::std::option::Option<crate::model::ComplexNestedErrorData>,
        1463  +
    /* StructureGenerator.kt:201 */
  775   1464   
}
        1465  +
/* StructureGenerator.kt:135 */
  776   1466   
impl ComplexError {
        1467  +
    /* StructureGenerator.kt:231 */
  777   1468   
    #[allow(missing_docs)] // documentation missing in model
        1469  +
                           /* StructureGenerator.kt:166 */
  778   1470   
    pub fn top_level(&self) -> ::std::option::Option<&str> {
        1471  +
        /* StructureGenerator.kt:169 */
  779   1472   
        self.top_level.as_deref()
        1473  +
        /* StructureGenerator.kt:166 */
  780   1474   
    }
        1475  +
    /* StructureGenerator.kt:231 */
  781   1476   
    #[allow(missing_docs)] // documentation missing in model
        1477  +
                           /* StructureGenerator.kt:166 */
  782   1478   
    pub fn nested(&self) -> ::std::option::Option<&crate::model::ComplexNestedErrorData> {
        1479  +
        /* StructureGenerator.kt:170 */
  783   1480   
        self.nested.as_ref()
        1481  +
        /* StructureGenerator.kt:166 */
  784   1482   
    }
        1483  +
    /* StructureGenerator.kt:135 */
  785   1484   
}
        1485  +
/* RustType.kt:516 */
  786   1486   
#[allow(clippy::new_without_default)]
        1487  +
/* RustType.kt:516 */
  787   1488   
#[allow(clippy::too_many_arguments)]
        1489  +
/* RustType.kt:516 */
  788   1490   
#[::pyo3::pymethods]
        1491  +
/* PythonServerStructureGenerator.kt:88 */
  789   1492   
impl ComplexError {
  790   1493   
    #[new]
  791   1494   
    pub fn new(
  792   1495   
        top_level: ::std::option::Option<::std::string::String>,
  793   1496   
        nested: ::std::option::Option<crate::model::ComplexNestedErrorData>,
  794   1497   
    ) -> Self {
  795   1498   
        Self { top_level, nested }
  796   1499   
    }
  797   1500   
    fn __repr__(&self) -> String {
  798   1501   
        format!("{self:?}")
  799   1502   
    }
  800   1503   
    fn __str__(&self) -> String {
  801   1504   
        format!("{self:?}")
  802   1505   
    }
  803   1506   
}
        1507  +
/* ErrorImplGenerator.kt:99 */
  804   1508   
impl ComplexError {
        1509  +
    /* ErrorImplGenerator.kt:141 */
  805   1510   
    #[doc(hidden)]
  806   1511   
    /// Returns the error name.
  807   1512   
    pub fn name(&self) -> &'static str {
  808   1513   
        "ComplexError"
  809   1514   
    }
        1515  +
    /* ErrorImplGenerator.kt:99 */
  810   1516   
}
        1517  +
/* ErrorImplGenerator.kt:153 */
  811   1518   
impl ::std::fmt::Display for ComplexError {
        1519  +
    /* ErrorImplGenerator.kt:154 */
  812   1520   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1521  +
        /* ErrorImplGenerator.kt:161 */
  813   1522   
        ::std::write!(f, "ComplexError")?;
        1523  +
        /* ErrorImplGenerator.kt:171 */
  814   1524   
        Ok(())
        1525  +
        /* ErrorImplGenerator.kt:154 */
  815   1526   
    }
        1527  +
    /* ErrorImplGenerator.kt:153 */
  816   1528   
}
        1529  +
/* ErrorImplGenerator.kt:175 */
  817   1530   
impl ::std::error::Error for ComplexError {}
        1531  +
/* ServerCodegenVisitor.kt:370 */
  818   1532   
impl ComplexError {
  819         -
    /// Creates a new builder-style object to manufacture [`ComplexError`](crate::error::ComplexError).
        1533  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ComplexError`](crate::error::ComplexError).
        1534  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  820   1535   
    pub fn builder() -> crate::error::complex_error::Builder {
        1536  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  821   1537   
        crate::error::complex_error::Builder::default()
        1538  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  822   1539   
    }
        1540  +
    /* ServerCodegenVisitor.kt:370 */
  823   1541   
}
  824   1542   
        1543  +
/* RustType.kt:516 */
  825   1544   
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
        1545  +
/* PythonServerStructureGenerator.kt:63 */
  826   1546   
/// :param message typing.Optional\[str\]:
  827   1547   
/// :rtype None:
  828         -
/// This error is thrown when an invalid greeting value is provided.
        1548  +
/// /* StructureGenerator.kt:197 */This error is thrown when an invalid greeting value is provided.
        1549  +
/* RustType.kt:516 */
  829   1550   
#[derive(
  830   1551   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  831   1552   
)]
  832         -
pub struct InvalidGreeting {
        1553  +
pub /* StructureGenerator.kt:201 */ struct InvalidGreeting {
        1554  +
    /* RustType.kt:516 */
  833   1555   
    #[pyo3(get, set)]
        1556  +
    /* PythonServerStructureGenerator.kt:80 */
  834   1557   
    /// :type typing.Optional\[str\]:
        1558  +
    /* StructureGenerator.kt:231 */
  835   1559   
    #[allow(missing_docs)] // documentation missing in model
  836   1560   
    pub message: ::std::option::Option<::std::string::String>,
        1561  +
    /* StructureGenerator.kt:201 */
  837   1562   
}
        1563  +
/* RustType.kt:516 */
  838   1564   
#[allow(clippy::new_without_default)]
        1565  +
/* RustType.kt:516 */
  839   1566   
#[allow(clippy::too_many_arguments)]
        1567  +
/* RustType.kt:516 */
  840   1568   
#[::pyo3::pymethods]
        1569  +
/* PythonServerStructureGenerator.kt:88 */
  841   1570   
impl InvalidGreeting {
  842   1571   
    #[new]
  843   1572   
    pub fn new(message: ::std::option::Option<::std::string::String>) -> Self {
  844   1573   
        Self { message }
  845   1574   
    }
  846   1575   
    fn __repr__(&self) -> String {
  847   1576   
        format!("{self:?}")
  848   1577   
    }
  849   1578   
    fn __str__(&self) -> String {
  850   1579   
        format!("{self:?}")
  851   1580   
    }
  852   1581   
}
        1582  +
/* ErrorImplGenerator.kt:99 */
  853   1583   
impl InvalidGreeting {
        1584  +
    /* ErrorImplGenerator.kt:128 */
  854   1585   
    /// Returns the error message.
  855   1586   
    pub fn message(&self) -> ::std::option::Option<&str> {
  856   1587   
        self.message.as_deref()
  857   1588   
    }
        1589  +
    /* ErrorImplGenerator.kt:141 */
  858   1590   
    #[doc(hidden)]
  859   1591   
    /// Returns the error name.
  860   1592   
    pub fn name(&self) -> &'static str {
  861   1593   
        "InvalidGreeting"
  862   1594   
    }
        1595  +
    /* ErrorImplGenerator.kt:99 */
  863   1596   
}
        1597  +
/* ErrorImplGenerator.kt:153 */
  864   1598   
impl ::std::fmt::Display for InvalidGreeting {
        1599  +
    /* ErrorImplGenerator.kt:154 */
  865   1600   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1601  +
        /* ErrorImplGenerator.kt:161 */
  866   1602   
        ::std::write!(f, "InvalidGreeting")?;
        1603  +
        /* ErrorImplGenerator.kt:166 */
  867   1604   
        if let ::std::option::Option::Some(inner_1) = &self.message {
        1605  +
            /* ErrorImplGenerator.kt:166 */
  868   1606   
            {
        1607  +
                /* ErrorImplGenerator.kt:167 */
  869   1608   
                ::std::write!(f, ": {}", inner_1)?;
        1609  +
                /* ErrorImplGenerator.kt:166 */
  870   1610   
            }
        1611  +
            /* ErrorImplGenerator.kt:166 */
  871   1612   
        }
        1613  +
        /* ErrorImplGenerator.kt:171 */
  872   1614   
        Ok(())
        1615  +
        /* ErrorImplGenerator.kt:154 */
  873   1616   
    }
        1617  +
    /* ErrorImplGenerator.kt:153 */
  874   1618   
}
        1619  +
/* ErrorImplGenerator.kt:175 */
  875   1620   
impl ::std::error::Error for InvalidGreeting {}
        1621  +
/* ServerCodegenVisitor.kt:370 */
  876   1622   
impl InvalidGreeting {
  877         -
    /// Creates a new builder-style object to manufacture [`InvalidGreeting`](crate::error::InvalidGreeting).
        1623  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`InvalidGreeting`](crate::error::InvalidGreeting).
        1624  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  878   1625   
    pub fn builder() -> crate::error::invalid_greeting::Builder {
        1626  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  879   1627   
        crate::error::invalid_greeting::Builder::default()
        1628  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  880   1629   
    }
        1630  +
    /* ServerCodegenVisitor.kt:370 */
  881   1631   
}
  882   1632   
        1633  +
/* ServerOperationErrorGenerator.kt:63 */
  883   1634   
/// Error type for the `SparseNullsOperation` operation.
        1635  +
/* ServerOperationErrorGenerator.kt:64 */
  884   1636   
/// Each variant represents an error that can occur for the `SparseNullsOperation` operation.
        1637  +
/* RustType.kt:516 */
  885   1638   
#[derive(::std::fmt::Debug)]
  886         -
pub enum SparseNullsOperationError {
        1639  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum SparseNullsOperationError {
        1640  +
    /* ServerOperationErrorGenerator.kt:68 */
  887   1641   
    #[allow(missing_docs)] // documentation missing in model
        1642  +
    /* ServerOperationErrorGenerator.kt:71 */
  888   1643   
    InternalServerError(crate::error::InternalServerError),
        1644  +
    /* ServerOperationErrorGenerator.kt:66 */
  889   1645   
}
        1646  +
/* ServerOperationErrorGenerator.kt:75 */
  890   1647   
impl ::std::fmt::Display for SparseNullsOperationError {
        1648  +
    /* ServerOperationErrorGenerator.kt:76 */
  891   1649   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1650  +
        /* ServerOperationErrorGenerator.kt:139 */
  892   1651   
        match &self {
  893         -
            SparseNullsOperationError::InternalServerError(_inner) => _inner.fmt(f),
        1652  +
            /* ServerOperationErrorGenerator.kt:142 */
        1653  +
            SparseNullsOperationError::InternalServerError(_inner) =>
        1654  +
            /* ServerOperationErrorGenerator.kt:78 */
        1655  +
            {
        1656  +
                _inner.fmt(f)
        1657  +
            }
        1658  +
            /* ServerOperationErrorGenerator.kt:139 */
  894   1659   
        }
        1660  +
        /* ServerOperationErrorGenerator.kt:76 */
  895   1661   
    }
        1662  +
    /* ServerOperationErrorGenerator.kt:75 */
  896   1663   
}
        1664  +
/* ServerOperationErrorGenerator.kt:83 */
  897   1665   
impl SparseNullsOperationError {
        1666  +
    /* ServerOperationErrorGenerator.kt:87 */
  898   1667   
    /// Returns `true` if the error kind is `SparseNullsOperationError::InternalServerError`.
        1668  +
    /* ServerOperationErrorGenerator.kt:88 */
  899   1669   
    pub fn is_internal_server_error(&self) -> bool {
        1670  +
        /* ServerOperationErrorGenerator.kt:89 */
  900   1671   
        matches!(&self, SparseNullsOperationError::InternalServerError(_))
        1672  +
        /* ServerOperationErrorGenerator.kt:88 */
  901   1673   
    }
        1674  +
    /* ServerOperationErrorGenerator.kt:92 */
  902   1675   
    /// Returns the error name string by matching the correct variant.
        1676  +
    /* ServerOperationErrorGenerator.kt:93 */
  903   1677   
    pub fn name(&self) -> &'static str {
        1678  +
        /* ServerOperationErrorGenerator.kt:139 */
  904   1679   
        match &self {
  905         -
            SparseNullsOperationError::InternalServerError(_inner) => _inner.name(),
        1680  +
            /* ServerOperationErrorGenerator.kt:142 */
        1681  +
            SparseNullsOperationError::InternalServerError(_inner) =>
        1682  +
            /* ServerOperationErrorGenerator.kt:95 */
        1683  +
            {
        1684  +
                _inner.name()
  906   1685   
            }
        1686  +
            /* ServerOperationErrorGenerator.kt:139 */
  907   1687   
        }
        1688  +
        /* ServerOperationErrorGenerator.kt:93 */
        1689  +
    }
        1690  +
    /* ServerOperationErrorGenerator.kt:83 */
  908   1691   
}
        1692  +
/* ServerOperationErrorGenerator.kt:100 */
  909   1693   
impl ::std::error::Error for SparseNullsOperationError {
        1694  +
    /* ServerOperationErrorGenerator.kt:101 */
  910   1695   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1696  +
        /* ServerOperationErrorGenerator.kt:139 */
  911   1697   
        match &self {
  912         -
            SparseNullsOperationError::InternalServerError(_inner) => Some(_inner),
        1698  +
            /* ServerOperationErrorGenerator.kt:142 */
        1699  +
            SparseNullsOperationError::InternalServerError(_inner) =>
        1700  +
            /* ServerOperationErrorGenerator.kt:103 */
        1701  +
            {
        1702  +
                Some(_inner)
        1703  +
            }
        1704  +
            /* ServerOperationErrorGenerator.kt:139 */
  913   1705   
        }
        1706  +
        /* ServerOperationErrorGenerator.kt:101 */
  914   1707   
    }
        1708  +
    /* ServerOperationErrorGenerator.kt:100 */
  915   1709   
}
        1710  +
/* ServerOperationErrorGenerator.kt:110 */
  916   1711   
impl ::std::convert::From<crate::error::InternalServerError>
  917   1712   
    for crate::error::SparseNullsOperationError
  918   1713   
{
        1714  +
    /* ServerOperationErrorGenerator.kt:111 */
  919   1715   
    fn from(variant: crate::error::InternalServerError) -> crate::error::SparseNullsOperationError {
        1716  +
        /* ServerOperationErrorGenerator.kt:112 */
  920   1717   
        Self::InternalServerError(variant)
        1718  +
        /* ServerOperationErrorGenerator.kt:111 */
  921   1719   
    }
        1720  +
    /* ServerOperationErrorGenerator.kt:110 */
  922   1721   
}
  923   1722   
        1723  +
/* PythonServerOperationErrorGenerator.kt:38 */
  924   1724   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::SparseNullsOperationError {
  925   1725   
    fn from(variant: ::pyo3::PyErr) -> crate::error::SparseNullsOperationError {
  926   1726   
        ::pyo3::Python::with_gil(|py| {
  927   1727   
            let error = variant.value(py);
  928   1728   
  929   1729   
            crate::error::InternalServerError {
  930   1730   
                message: error.to_string(),
  931   1731   
            }
  932   1732   
            .into()
  933   1733   
        })
  934   1734   
    }
  935   1735   
}
  936   1736   
        1737  +
/* ServerOperationErrorGenerator.kt:63 */
  937   1738   
/// Error type for the `NullOperation` operation.
        1739  +
/* ServerOperationErrorGenerator.kt:64 */
  938   1740   
/// Each variant represents an error that can occur for the `NullOperation` operation.
        1741  +
/* RustType.kt:516 */
  939   1742   
#[derive(::std::fmt::Debug)]
  940         -
pub enum NullOperationError {
        1743  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum NullOperationError {
        1744  +
    /* ServerOperationErrorGenerator.kt:68 */
  941   1745   
    #[allow(missing_docs)] // documentation missing in model
        1746  +
    /* ServerOperationErrorGenerator.kt:71 */
  942   1747   
    InternalServerError(crate::error::InternalServerError),
        1748  +
    /* ServerOperationErrorGenerator.kt:66 */
  943   1749   
}
        1750  +
/* ServerOperationErrorGenerator.kt:75 */
  944   1751   
impl ::std::fmt::Display for NullOperationError {
        1752  +
    /* ServerOperationErrorGenerator.kt:76 */
  945   1753   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1754  +
        /* ServerOperationErrorGenerator.kt:139 */
  946   1755   
        match &self {
  947         -
            NullOperationError::InternalServerError(_inner) => _inner.fmt(f),
        1756  +
            /* ServerOperationErrorGenerator.kt:142 */
        1757  +
            NullOperationError::InternalServerError(_inner) =>
        1758  +
            /* ServerOperationErrorGenerator.kt:78 */
        1759  +
            {
        1760  +
                _inner.fmt(f)
        1761  +
            }
        1762  +
            /* ServerOperationErrorGenerator.kt:139 */
  948   1763   
        }
        1764  +
        /* ServerOperationErrorGenerator.kt:76 */
  949   1765   
    }
        1766  +
    /* ServerOperationErrorGenerator.kt:75 */
  950   1767   
}
        1768  +
/* ServerOperationErrorGenerator.kt:83 */
  951   1769   
impl NullOperationError {
        1770  +
    /* ServerOperationErrorGenerator.kt:87 */
  952   1771   
    /// Returns `true` if the error kind is `NullOperationError::InternalServerError`.
        1772  +
    /* ServerOperationErrorGenerator.kt:88 */
  953   1773   
    pub fn is_internal_server_error(&self) -> bool {
        1774  +
        /* ServerOperationErrorGenerator.kt:89 */
  954   1775   
        matches!(&self, NullOperationError::InternalServerError(_))
        1776  +
        /* ServerOperationErrorGenerator.kt:88 */
  955   1777   
    }
        1778  +
    /* ServerOperationErrorGenerator.kt:92 */
  956   1779   
    /// Returns the error name string by matching the correct variant.
        1780  +
    /* ServerOperationErrorGenerator.kt:93 */
  957   1781   
    pub fn name(&self) -> &'static str {
        1782  +
        /* ServerOperationErrorGenerator.kt:139 */
  958   1783   
        match &self {
  959         -
            NullOperationError::InternalServerError(_inner) => _inner.name(),
        1784  +
            /* ServerOperationErrorGenerator.kt:142 */
        1785  +
            NullOperationError::InternalServerError(_inner) =>
        1786  +
            /* ServerOperationErrorGenerator.kt:95 */
        1787  +
            {
        1788  +
                _inner.name()
  960   1789   
            }
        1790  +
            /* ServerOperationErrorGenerator.kt:139 */
  961   1791   
        }
        1792  +
        /* ServerOperationErrorGenerator.kt:93 */
        1793  +
    }
        1794  +
    /* ServerOperationErrorGenerator.kt:83 */
  962   1795   
}
        1796  +
/* ServerOperationErrorGenerator.kt:100 */
  963   1797   
impl ::std::error::Error for NullOperationError {
        1798  +
    /* ServerOperationErrorGenerator.kt:101 */
  964   1799   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1800  +
        /* ServerOperationErrorGenerator.kt:139 */
  965   1801   
        match &self {
  966         -
            NullOperationError::InternalServerError(_inner) => Some(_inner),
        1802  +
            /* ServerOperationErrorGenerator.kt:142 */
        1803  +
            NullOperationError::InternalServerError(_inner) =>
        1804  +
            /* ServerOperationErrorGenerator.kt:103 */
        1805  +
            {
        1806  +
                Some(_inner)
  967   1807   
            }
        1808  +
            /* ServerOperationErrorGenerator.kt:139 */
  968   1809   
        }
        1810  +
        /* ServerOperationErrorGenerator.kt:101 */
        1811  +
    }
        1812  +
    /* ServerOperationErrorGenerator.kt:100 */
  969   1813   
}
        1814  +
/* ServerOperationErrorGenerator.kt:110 */
  970   1815   
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::NullOperationError {
        1816  +
    /* ServerOperationErrorGenerator.kt:111 */
  971   1817   
    fn from(variant: crate::error::InternalServerError) -> crate::error::NullOperationError {
        1818  +
        /* ServerOperationErrorGenerator.kt:112 */
  972   1819   
        Self::InternalServerError(variant)
        1820  +
        /* ServerOperationErrorGenerator.kt:111 */
  973   1821   
    }
        1822  +
    /* ServerOperationErrorGenerator.kt:110 */
  974   1823   
}
  975   1824   
        1825  +
/* PythonServerOperationErrorGenerator.kt:38 */
  976   1826   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::NullOperationError {
  977   1827   
    fn from(variant: ::pyo3::PyErr) -> crate::error::NullOperationError {
  978   1828   
        ::pyo3::Python::with_gil(|py| {
  979   1829   
            let error = variant.value(py);
  980   1830   
  981   1831   
            crate::error::InternalServerError {
  982   1832   
                message: error.to_string(),
  983   1833   
            }
  984   1834   
            .into()
  985   1835   
        })
  986   1836   
    }
  987   1837   
}
  988   1838   
        1839  +
/* ServerOperationErrorGenerator.kt:63 */
  989   1840   
/// Error type for the `JsonEnums` operation.
        1841  +
/* ServerOperationErrorGenerator.kt:64 */
  990   1842   
/// Each variant represents an error that can occur for the `JsonEnums` operation.
        1843  +
/* RustType.kt:516 */
  991   1844   
#[derive(::std::fmt::Debug)]
  992         -
pub enum JsonEnumsError {
  993         -
    /// 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.
        1845  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum JsonEnumsError {
        1846  +
    /// /* 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.
        1847  +
    /* ServerOperationErrorGenerator.kt:71 */
  994   1848   
    ValidationException(crate::error::ValidationException),
        1849  +
    /* ServerOperationErrorGenerator.kt:68 */
  995   1850   
    #[allow(missing_docs)] // documentation missing in model
        1851  +
    /* ServerOperationErrorGenerator.kt:71 */
  996   1852   
    InternalServerError(crate::error::InternalServerError),
        1853  +
    /* ServerOperationErrorGenerator.kt:66 */
  997   1854   
}
        1855  +
/* ServerOperationErrorGenerator.kt:75 */
  998   1856   
impl ::std::fmt::Display for JsonEnumsError {
        1857  +
    /* ServerOperationErrorGenerator.kt:76 */
  999   1858   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1859  +
        /* ServerOperationErrorGenerator.kt:139 */
 1000   1860   
        match &self {
 1001         -
            JsonEnumsError::ValidationException(_inner) => _inner.fmt(f),
 1002         -
            JsonEnumsError::InternalServerError(_inner) => _inner.fmt(f),
        1861  +
            /* ServerOperationErrorGenerator.kt:142 */
        1862  +
            JsonEnumsError::ValidationException(_inner) =>
        1863  +
            /* ServerOperationErrorGenerator.kt:78 */
        1864  +
            {
        1865  +
                _inner.fmt(f)
        1866  +
            }
        1867  +
            ,
        1868  +
            /* ServerOperationErrorGenerator.kt:142 */
        1869  +
            JsonEnumsError::InternalServerError(_inner) =>
        1870  +
            /* ServerOperationErrorGenerator.kt:78 */
        1871  +
            {
        1872  +
                _inner.fmt(f)
        1873  +
            }
        1874  +
            /* ServerOperationErrorGenerator.kt:139 */
 1003   1875   
        }
        1876  +
        /* ServerOperationErrorGenerator.kt:76 */
 1004   1877   
    }
        1878  +
    /* ServerOperationErrorGenerator.kt:75 */
 1005   1879   
}
        1880  +
/* ServerOperationErrorGenerator.kt:83 */
 1006   1881   
impl JsonEnumsError {
        1882  +
    /* ServerOperationErrorGenerator.kt:87 */
 1007   1883   
    /// Returns `true` if the error kind is `JsonEnumsError::ValidationException`.
        1884  +
    /* ServerOperationErrorGenerator.kt:88 */
 1008   1885   
    pub fn is_validation_exception(&self) -> bool {
        1886  +
        /* ServerOperationErrorGenerator.kt:89 */
 1009   1887   
        matches!(&self, JsonEnumsError::ValidationException(_))
        1888  +
        /* ServerOperationErrorGenerator.kt:88 */
 1010   1889   
    }
        1890  +
    /* ServerOperationErrorGenerator.kt:87 */
 1011   1891   
    /// Returns `true` if the error kind is `JsonEnumsError::InternalServerError`.
        1892  +
    /* ServerOperationErrorGenerator.kt:88 */
 1012   1893   
    pub fn is_internal_server_error(&self) -> bool {
        1894  +
        /* ServerOperationErrorGenerator.kt:89 */
 1013   1895   
        matches!(&self, JsonEnumsError::InternalServerError(_))
        1896  +
        /* ServerOperationErrorGenerator.kt:88 */
 1014   1897   
    }
        1898  +
    /* ServerOperationErrorGenerator.kt:92 */
 1015   1899   
    /// Returns the error name string by matching the correct variant.
        1900  +
    /* ServerOperationErrorGenerator.kt:93 */
 1016   1901   
    pub fn name(&self) -> &'static str {
        1902  +
        /* ServerOperationErrorGenerator.kt:139 */
 1017   1903   
        match &self {
 1018         -
            JsonEnumsError::ValidationException(_inner) => _inner.name(),
 1019         -
            JsonEnumsError::InternalServerError(_inner) => _inner.name(),
        1904  +
            /* ServerOperationErrorGenerator.kt:142 */
        1905  +
            JsonEnumsError::ValidationException(_inner) =>
        1906  +
            /* ServerOperationErrorGenerator.kt:95 */
        1907  +
            {
        1908  +
                _inner.name()
        1909  +
            }
        1910  +
            ,
        1911  +
            /* ServerOperationErrorGenerator.kt:142 */
        1912  +
            JsonEnumsError::InternalServerError(_inner) =>
        1913  +
            /* ServerOperationErrorGenerator.kt:95 */
        1914  +
            {
        1915  +
                _inner.name()
 1020   1916   
            }
        1917  +
            /* ServerOperationErrorGenerator.kt:139 */
 1021   1918   
        }
        1919  +
        /* ServerOperationErrorGenerator.kt:93 */
        1920  +
    }
        1921  +
    /* ServerOperationErrorGenerator.kt:83 */
 1022   1922   
}
        1923  +
/* ServerOperationErrorGenerator.kt:100 */
 1023   1924   
impl ::std::error::Error for JsonEnumsError {
        1925  +
    /* ServerOperationErrorGenerator.kt:101 */
 1024   1926   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1927  +
        /* ServerOperationErrorGenerator.kt:139 */
 1025   1928   
        match &self {
 1026         -
            JsonEnumsError::ValidationException(_inner) => Some(_inner),
 1027         -
            JsonEnumsError::InternalServerError(_inner) => Some(_inner),
        1929  +
            /* ServerOperationErrorGenerator.kt:142 */
        1930  +
            JsonEnumsError::ValidationException(_inner) =>
        1931  +
            /* ServerOperationErrorGenerator.kt:103 */
        1932  +
            {
        1933  +
                Some(_inner)
 1028   1934   
            }
        1935  +
            ,
        1936  +
            /* ServerOperationErrorGenerator.kt:142 */
        1937  +
            JsonEnumsError::InternalServerError(_inner) =>
        1938  +
            /* ServerOperationErrorGenerator.kt:103 */
        1939  +
            {
        1940  +
                Some(_inner)
        1941  +
            }
        1942  +
            /* ServerOperationErrorGenerator.kt:139 */
        1943  +
        }
        1944  +
        /* ServerOperationErrorGenerator.kt:101 */
 1029   1945   
    }
        1946  +
    /* ServerOperationErrorGenerator.kt:100 */
 1030   1947   
}
        1948  +
/* ServerOperationErrorGenerator.kt:110 */
 1031   1949   
impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonEnumsError {
        1950  +
    /* ServerOperationErrorGenerator.kt:111 */
 1032   1951   
    fn from(variant: crate::error::ValidationException) -> crate::error::JsonEnumsError {
        1952  +
        /* ServerOperationErrorGenerator.kt:112 */
 1033   1953   
        Self::ValidationException(variant)
        1954  +
        /* ServerOperationErrorGenerator.kt:111 */
 1034   1955   
    }
        1956  +
    /* ServerOperationErrorGenerator.kt:110 */
 1035   1957   
}
        1958  +
/* ServerOperationErrorGenerator.kt:110 */
 1036   1959   
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::JsonEnumsError {
        1960  +
    /* ServerOperationErrorGenerator.kt:111 */
 1037   1961   
    fn from(variant: crate::error::InternalServerError) -> crate::error::JsonEnumsError {
        1962  +
        /* ServerOperationErrorGenerator.kt:112 */
 1038   1963   
        Self::InternalServerError(variant)
        1964  +
        /* ServerOperationErrorGenerator.kt:111 */
 1039   1965   
    }
        1966  +
    /* ServerOperationErrorGenerator.kt:110 */
 1040   1967   
}
 1041   1968   
        1969  +
/* PythonServerOperationErrorGenerator.kt:38 */
 1042   1970   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::JsonEnumsError {
 1043   1971   
    fn from(variant: ::pyo3::PyErr) -> crate::error::JsonEnumsError {
 1044   1972   
        ::pyo3::Python::with_gil(|py| {
 1045   1973   
            let error = variant.value(py);
 1046   1974   
            if let Ok(error) = error.extract::<crate::error::ValidationException>() {
 1047   1975   
                return error.into();
 1048   1976   
            }
 1049   1977   
            crate::error::InternalServerError {
 1050   1978   
                message: error.to_string(),
 1051   1979   
            }
 1052   1980   
            .into()
 1053   1981   
        })
 1054   1982   
    }
 1055   1983   
}
 1056   1984   
        1985  +
/* ServerOperationErrorGenerator.kt:63 */
 1057   1986   
/// Error type for the `PutAndGetInlineDocuments` operation.
        1987  +
/* ServerOperationErrorGenerator.kt:64 */
 1058   1988   
/// Each variant represents an error that can occur for the `PutAndGetInlineDocuments` operation.
        1989  +
/* RustType.kt:516 */
 1059   1990   
#[derive(::std::fmt::Debug)]
 1060         -
pub enum PutAndGetInlineDocumentsError {
        1991  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum PutAndGetInlineDocumentsError {
        1992  +
    /* ServerOperationErrorGenerator.kt:68 */
 1061   1993   
    #[allow(missing_docs)] // documentation missing in model
        1994  +
    /* ServerOperationErrorGenerator.kt:71 */
 1062   1995   
    InternalServerError(crate::error::InternalServerError),
        1996  +
    /* ServerOperationErrorGenerator.kt:66 */
 1063   1997   
}
        1998  +
/* ServerOperationErrorGenerator.kt:75 */
 1064   1999   
impl ::std::fmt::Display for PutAndGetInlineDocumentsError {
        2000  +
    /* ServerOperationErrorGenerator.kt:76 */
 1065   2001   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2002  +
        /* ServerOperationErrorGenerator.kt:139 */
 1066   2003   
        match &self {
 1067         -
            PutAndGetInlineDocumentsError::InternalServerError(_inner) => _inner.fmt(f),
        2004  +
            /* ServerOperationErrorGenerator.kt:142 */
        2005  +
            PutAndGetInlineDocumentsError::InternalServerError(_inner) =>
        2006  +
            /* ServerOperationErrorGenerator.kt:78 */
        2007  +
            {
        2008  +
                _inner.fmt(f)
        2009  +
            }
        2010  +
            /* ServerOperationErrorGenerator.kt:139 */
 1068   2011   
        }
        2012  +
        /* ServerOperationErrorGenerator.kt:76 */
 1069   2013   
    }
        2014  +
    /* ServerOperationErrorGenerator.kt:75 */
 1070   2015   
}
        2016  +
/* ServerOperationErrorGenerator.kt:83 */
 1071   2017   
impl PutAndGetInlineDocumentsError {
        2018  +
    /* ServerOperationErrorGenerator.kt:87 */
 1072   2019   
    /// Returns `true` if the error kind is `PutAndGetInlineDocumentsError::InternalServerError`.
        2020  +
    /* ServerOperationErrorGenerator.kt:88 */
 1073   2021   
    pub fn is_internal_server_error(&self) -> bool {
        2022  +
        /* ServerOperationErrorGenerator.kt:89 */
 1074   2023   
        matches!(&self, PutAndGetInlineDocumentsError::InternalServerError(_))
        2024  +
        /* ServerOperationErrorGenerator.kt:88 */
 1075   2025   
    }
        2026  +
    /* ServerOperationErrorGenerator.kt:92 */
 1076   2027   
    /// Returns the error name string by matching the correct variant.
        2028  +
    /* ServerOperationErrorGenerator.kt:93 */
 1077   2029   
    pub fn name(&self) -> &'static str {
        2030  +
        /* ServerOperationErrorGenerator.kt:139 */
 1078   2031   
        match &self {
 1079         -
            PutAndGetInlineDocumentsError::InternalServerError(_inner) => _inner.name(),
        2032  +
            /* ServerOperationErrorGenerator.kt:142 */
        2033  +
            PutAndGetInlineDocumentsError::InternalServerError(_inner) =>
        2034  +
            /* ServerOperationErrorGenerator.kt:95 */
        2035  +
            {
        2036  +
                _inner.name()
 1080   2037   
            }
        2038  +
            /* ServerOperationErrorGenerator.kt:139 */
 1081   2039   
        }
        2040  +
        /* ServerOperationErrorGenerator.kt:93 */
        2041  +
    }
        2042  +
    /* ServerOperationErrorGenerator.kt:83 */
 1082   2043   
}
        2044  +
/* ServerOperationErrorGenerator.kt:100 */
 1083   2045   
impl ::std::error::Error for PutAndGetInlineDocumentsError {
        2046  +
    /* ServerOperationErrorGenerator.kt:101 */
 1084   2047   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        2048  +
        /* ServerOperationErrorGenerator.kt:139 */
 1085   2049   
        match &self {
 1086         -
            PutAndGetInlineDocumentsError::InternalServerError(_inner) => Some(_inner),
        2050  +
            /* ServerOperationErrorGenerator.kt:142 */
        2051  +
            PutAndGetInlineDocumentsError::InternalServerError(_inner) =>
        2052  +
            /* ServerOperationErrorGenerator.kt:103 */
        2053  +
            {
        2054  +
                Some(_inner)
        2055  +
            }
        2056  +
            /* ServerOperationErrorGenerator.kt:139 */
 1087   2057   
        }
        2058  +
        /* ServerOperationErrorGenerator.kt:101 */
 1088   2059   
    }
        2060  +
    /* ServerOperationErrorGenerator.kt:100 */
 1089   2061   
}
        2062  +
/* ServerOperationErrorGenerator.kt:110 */
 1090   2063   
impl ::std::convert::From<crate::error::InternalServerError>
 1091   2064   
    for crate::error::PutAndGetInlineDocumentsError
 1092   2065   
{
        2066  +
    /* ServerOperationErrorGenerator.kt:111 */
 1093   2067   
    fn from(
 1094   2068   
        variant: crate::error::InternalServerError,
 1095   2069   
    ) -> crate::error::PutAndGetInlineDocumentsError {
        2070  +
        /* ServerOperationErrorGenerator.kt:112 */
 1096   2071   
        Self::InternalServerError(variant)
        2072  +
        /* ServerOperationErrorGenerator.kt:111 */
 1097   2073   
    }
        2074  +
    /* ServerOperationErrorGenerator.kt:110 */
 1098   2075   
}
 1099   2076   
        2077  +
/* PythonServerOperationErrorGenerator.kt:38 */
 1100   2078   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::PutAndGetInlineDocumentsError {
 1101   2079   
    fn from(variant: ::pyo3::PyErr) -> crate::error::PutAndGetInlineDocumentsError {
 1102   2080   
        ::pyo3::Python::with_gil(|py| {
 1103   2081   
            let error = variant.value(py);
 1104   2082   
 1105   2083   
            crate::error::InternalServerError {
 1106   2084   
                message: error.to_string(),
 1107   2085   
            }
 1108   2086   
            .into()
 1109   2087   
        })
 1110   2088   
    }
 1111   2089   
}
 1112   2090   
        2091  +
/* ServerOperationErrorGenerator.kt:63 */
 1113   2092   
/// Error type for the `OperationWithOptionalInputOutput` operation.
        2093  +
/* ServerOperationErrorGenerator.kt:64 */
 1114   2094   
/// Each variant represents an error that can occur for the `OperationWithOptionalInputOutput` operation.
        2095  +
/* RustType.kt:516 */
 1115   2096   
#[derive(::std::fmt::Debug)]
 1116         -
pub enum OperationWithOptionalInputOutputError {
        2097  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum OperationWithOptionalInputOutputError {
        2098  +
    /* ServerOperationErrorGenerator.kt:68 */
 1117   2099   
    #[allow(missing_docs)] // documentation missing in model
        2100  +
    /* ServerOperationErrorGenerator.kt:71 */
 1118   2101   
    InternalServerError(crate::error::InternalServerError),
        2102  +
    /* ServerOperationErrorGenerator.kt:66 */
 1119   2103   
}
        2104  +
/* ServerOperationErrorGenerator.kt:75 */
 1120   2105   
impl ::std::fmt::Display for OperationWithOptionalInputOutputError {
        2106  +
    /* ServerOperationErrorGenerator.kt:76 */
 1121   2107   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2108  +
        /* ServerOperationErrorGenerator.kt:139 */
 1122   2109   
        match &self {
 1123         -
            OperationWithOptionalInputOutputError::InternalServerError(_inner) => _inner.fmt(f),
        2110  +
            /* ServerOperationErrorGenerator.kt:142 */
        2111  +
            OperationWithOptionalInputOutputError::InternalServerError(_inner) =>
        2112  +
            /* ServerOperationErrorGenerator.kt:78 */
        2113  +
            {
        2114  +
                _inner.fmt(f)
        2115  +
            }
        2116  +
            /* ServerOperationErrorGenerator.kt:139 */
 1124   2117   
        }
        2118  +
        /* ServerOperationErrorGenerator.kt:76 */
 1125   2119   
    }
        2120  +
    /* ServerOperationErrorGenerator.kt:75 */
 1126   2121   
}
        2122  +
/* ServerOperationErrorGenerator.kt:83 */
 1127   2123   
impl OperationWithOptionalInputOutputError {
        2124  +
    /* ServerOperationErrorGenerator.kt:87 */
 1128   2125   
    /// Returns `true` if the error kind is `OperationWithOptionalInputOutputError::InternalServerError`.
        2126  +
    /* ServerOperationErrorGenerator.kt:88 */
 1129   2127   
    pub fn is_internal_server_error(&self) -> bool {
        2128  +
        /* ServerOperationErrorGenerator.kt:89 */
 1130   2129   
        matches!(
 1131   2130   
            &self,
 1132   2131   
            OperationWithOptionalInputOutputError::InternalServerError(_)
 1133   2132   
        )
        2133  +
        /* ServerOperationErrorGenerator.kt:88 */
 1134   2134   
    }
        2135  +
    /* ServerOperationErrorGenerator.kt:92 */
 1135   2136   
    /// Returns the error name string by matching the correct variant.
        2137  +
    /* ServerOperationErrorGenerator.kt:93 */
 1136   2138   
    pub fn name(&self) -> &'static str {
        2139  +
        /* ServerOperationErrorGenerator.kt:139 */
 1137   2140   
        match &self {
 1138         -
            OperationWithOptionalInputOutputError::InternalServerError(_inner) => _inner.name(),
        2141  +
            /* ServerOperationErrorGenerator.kt:142 */
        2142  +
            OperationWithOptionalInputOutputError::InternalServerError(_inner) =>
        2143  +
            /* ServerOperationErrorGenerator.kt:95 */
        2144  +
            {
        2145  +
                _inner.name()
        2146  +
            }
        2147  +
            /* ServerOperationErrorGenerator.kt:139 */
 1139   2148   
        }
        2149  +
        /* ServerOperationErrorGenerator.kt:93 */
 1140   2150   
    }
        2151  +
    /* ServerOperationErrorGenerator.kt:83 */
 1141   2152   
}
        2153  +
/* ServerOperationErrorGenerator.kt:100 */
 1142   2154   
impl ::std::error::Error for OperationWithOptionalInputOutputError {
        2155  +
    /* ServerOperationErrorGenerator.kt:101 */
 1143   2156   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        2157  +
        /* ServerOperationErrorGenerator.kt:139 */
 1144   2158   
        match &self {
 1145         -
            OperationWithOptionalInputOutputError::InternalServerError(_inner) => Some(_inner),
        2159  +
            /* ServerOperationErrorGenerator.kt:142 */
        2160  +
            OperationWithOptionalInputOutputError::InternalServerError(_inner) =>
        2161  +
            /* ServerOperationErrorGenerator.kt:103 */
        2162  +
            {
        2163  +
                Some(_inner)
 1146   2164   
            }
        2165  +
            /* ServerOperationErrorGenerator.kt:139 */
 1147   2166   
        }
        2167  +
        /* ServerOperationErrorGenerator.kt:101 */
        2168  +
    }
        2169  +
    /* ServerOperationErrorGenerator.kt:100 */
 1148   2170   
}
        2171  +
/* ServerOperationErrorGenerator.kt:110 */
 1149   2172   
impl ::std::convert::From<crate::error::InternalServerError>
 1150   2173   
    for crate::error::OperationWithOptionalInputOutputError
 1151   2174   
{
        2175  +
    /* ServerOperationErrorGenerator.kt:111 */
 1152   2176   
    fn from(
 1153   2177   
        variant: crate::error::InternalServerError,
 1154   2178   
    ) -> crate::error::OperationWithOptionalInputOutputError {
        2179  +
        /* ServerOperationErrorGenerator.kt:112 */
 1155   2180   
        Self::InternalServerError(variant)
        2181  +
        /* ServerOperationErrorGenerator.kt:111 */
 1156   2182   
    }
        2183  +
    /* ServerOperationErrorGenerator.kt:110 */
 1157   2184   
}
 1158   2185   
        2186  +
/* PythonServerOperationErrorGenerator.kt:38 */
 1159   2187   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::OperationWithOptionalInputOutputError {
 1160   2188   
    fn from(variant: ::pyo3::PyErr) -> crate::error::OperationWithOptionalInputOutputError {
 1161   2189   
        ::pyo3::Python::with_gil(|py| {
 1162   2190   
            let error = variant.value(py);
 1163   2191   
 1164   2192   
            crate::error::InternalServerError {
 1165   2193   
                message: error.to_string(),
 1166   2194   
            }
 1167   2195   
            .into()
 1168   2196   
        })
 1169   2197   
    }
 1170   2198   
}
 1171   2199   
        2200  +
/* ServerOperationErrorGenerator.kt:63 */
 1172   2201   
/// Error type for the `SimpleScalarProperties` operation.
        2202  +
/* ServerOperationErrorGenerator.kt:64 */
 1173   2203   
/// Each variant represents an error that can occur for the `SimpleScalarProperties` operation.
        2204  +
/* RustType.kt:516 */
 1174   2205   
#[derive(::std::fmt::Debug)]
 1175         -
pub enum SimpleScalarPropertiesError {
        2206  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum SimpleScalarPropertiesError {
        2207  +
    /* ServerOperationErrorGenerator.kt:68 */
 1176   2208   
    #[allow(missing_docs)] // documentation missing in model
        2209  +
    /* ServerOperationErrorGenerator.kt:71 */
 1177   2210   
    InternalServerError(crate::error::InternalServerError),
        2211  +
    /* ServerOperationErrorGenerator.kt:66 */
 1178   2212   
}
        2213  +
/* ServerOperationErrorGenerator.kt:75 */
 1179   2214   
impl ::std::fmt::Display for SimpleScalarPropertiesError {
        2215  +
    /* ServerOperationErrorGenerator.kt:76 */
 1180   2216   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2217  +
        /* ServerOperationErrorGenerator.kt:139 */
 1181   2218   
        match &self {
 1182         -
            SimpleScalarPropertiesError::InternalServerError(_inner) => _inner.fmt(f),
        2219  +
            /* ServerOperationErrorGenerator.kt:142 */
        2220  +
            SimpleScalarPropertiesError::InternalServerError(_inner) =>
        2221  +
            /* ServerOperationErrorGenerator.kt:78 */
        2222  +
            {
        2223  +
                _inner.fmt(f)
 1183   2224   
            }
        2225  +
            /* ServerOperationErrorGenerator.kt:139 */
 1184   2226   
        }
        2227  +
        /* ServerOperationErrorGenerator.kt:76 */
        2228  +
    }
        2229  +
    /* ServerOperationErrorGenerator.kt:75 */
 1185   2230   
}
        2231  +
/* ServerOperationErrorGenerator.kt:83 */
 1186   2232   
impl SimpleScalarPropertiesError {
        2233  +
    /* ServerOperationErrorGenerator.kt:87 */
 1187   2234   
    /// Returns `true` if the error kind is `SimpleScalarPropertiesError::InternalServerError`.
        2235  +
    /* ServerOperationErrorGenerator.kt:88 */
 1188   2236   
    pub fn is_internal_server_error(&self) -> bool {
        2237  +
        /* ServerOperationErrorGenerator.kt:89 */
 1189   2238   
        matches!(&self, SimpleScalarPropertiesError::InternalServerError(_))
        2239  +
        /* ServerOperationErrorGenerator.kt:88 */
 1190   2240   
    }
        2241  +
    /* ServerOperationErrorGenerator.kt:92 */
 1191   2242   
    /// Returns the error name string by matching the correct variant.
        2243  +
    /* ServerOperationErrorGenerator.kt:93 */
 1192   2244   
    pub fn name(&self) -> &'static str {
        2245  +
        /* ServerOperationErrorGenerator.kt:139 */
 1193   2246   
        match &self {
 1194         -
            SimpleScalarPropertiesError::InternalServerError(_inner) => _inner.name(),
        2247  +
            /* ServerOperationErrorGenerator.kt:142 */
        2248  +
            SimpleScalarPropertiesError::InternalServerError(_inner) =>
        2249  +
            /* ServerOperationErrorGenerator.kt:95 */
        2250  +
            {
        2251  +
                _inner.name()
        2252  +
            }
        2253  +
            /* ServerOperationErrorGenerator.kt:139 */
 1195   2254   
        }
        2255  +
        /* ServerOperationErrorGenerator.kt:93 */
 1196   2256   
    }
        2257  +
    /* ServerOperationErrorGenerator.kt:83 */
 1197   2258   
}
        2259  +
/* ServerOperationErrorGenerator.kt:100 */
 1198   2260   
impl ::std::error::Error for SimpleScalarPropertiesError {
        2261  +
    /* ServerOperationErrorGenerator.kt:101 */
 1199   2262   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        2263  +
        /* ServerOperationErrorGenerator.kt:139 */
 1200   2264   
        match &self {
 1201         -
            SimpleScalarPropertiesError::InternalServerError(_inner) => Some(_inner),
        2265  +
            /* ServerOperationErrorGenerator.kt:142 */
        2266  +
            SimpleScalarPropertiesError::InternalServerError(_inner) =>
        2267  +
            /* ServerOperationErrorGenerator.kt:103 */
        2268  +
            {
        2269  +
                Some(_inner)
        2270  +
            }
        2271  +
            /* ServerOperationErrorGenerator.kt:139 */
 1202   2272   
        }
        2273  +
        /* ServerOperationErrorGenerator.kt:101 */
 1203   2274   
    }
        2275  +
    /* ServerOperationErrorGenerator.kt:100 */
 1204   2276   
}
        2277  +
/* ServerOperationErrorGenerator.kt:110 */
 1205   2278   
impl ::std::convert::From<crate::error::InternalServerError>
 1206   2279   
    for crate::error::SimpleScalarPropertiesError
 1207   2280   
{
        2281  +
    /* ServerOperationErrorGenerator.kt:111 */
 1208   2282   
    fn from(
 1209   2283   
        variant: crate::error::InternalServerError,
 1210   2284   
    ) -> crate::error::SimpleScalarPropertiesError {
        2285  +
        /* ServerOperationErrorGenerator.kt:112 */
 1211   2286   
        Self::InternalServerError(variant)
        2287  +
        /* ServerOperationErrorGenerator.kt:111 */
 1212   2288   
    }
        2289  +
    /* ServerOperationErrorGenerator.kt:110 */
 1213   2290   
}
 1214   2291   
        2292  +
/* PythonServerOperationErrorGenerator.kt:38 */
 1215   2293   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::SimpleScalarPropertiesError {
 1216   2294   
    fn from(variant: ::pyo3::PyErr) -> crate::error::SimpleScalarPropertiesError {
 1217   2295   
        ::pyo3::Python::with_gil(|py| {
 1218   2296   
            let error = variant.value(py);
 1219   2297   
 1220   2298   
            crate::error::InternalServerError {
 1221   2299   
                message: error.to_string(),
 1222   2300   
            }
 1223   2301   
            .into()
 1224   2302   
        })
 1225   2303   
    }
 1226   2304   
}
 1227   2305   
        2306  +
/* ServerOperationErrorGenerator.kt:63 */
 1228   2307   
/// Error type for the `KitchenSinkOperation` operation.
        2308  +
/* ServerOperationErrorGenerator.kt:64 */
 1229   2309   
/// Each variant represents an error that can occur for the `KitchenSinkOperation` operation.
        2310  +
/* RustType.kt:516 */
 1230   2311   
#[derive(::std::fmt::Debug)]
 1231         -
pub enum KitchenSinkOperationError {
        2312  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum KitchenSinkOperationError {
        2313  +
    /* ServerOperationErrorGenerator.kt:68 */
 1232   2314   
    #[allow(missing_docs)] // documentation missing in model
        2315  +
    /* ServerOperationErrorGenerator.kt:71 */
 1233   2316   
    ErrorWithMembers(crate::error::ErrorWithMembers),
        2317  +
    /* ServerOperationErrorGenerator.kt:68 */
 1234   2318   
    #[allow(missing_docs)] // documentation missing in model
        2319  +
    /* ServerOperationErrorGenerator.kt:71 */
 1235   2320   
    ErrorWithoutMembers(crate::error::ErrorWithoutMembers),
        2321  +
    /* ServerOperationErrorGenerator.kt:68 */
 1236   2322   
    #[allow(missing_docs)] // documentation missing in model
        2323  +
    /* ServerOperationErrorGenerator.kt:71 */
 1237   2324   
    InternalServerError(crate::error::InternalServerError),
        2325  +
    /* ServerOperationErrorGenerator.kt:66 */
 1238   2326   
}
        2327  +
/* ServerOperationErrorGenerator.kt:75 */
 1239   2328   
impl ::std::fmt::Display for KitchenSinkOperationError {
        2329  +
    /* ServerOperationErrorGenerator.kt:76 */
 1240   2330   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2331  +
        /* ServerOperationErrorGenerator.kt:139 */
 1241   2332   
        match &self {
 1242         -
            KitchenSinkOperationError::ErrorWithMembers(_inner) => _inner.fmt(f),
 1243         -
            KitchenSinkOperationError::ErrorWithoutMembers(_inner) => _inner.fmt(f),
 1244         -
            KitchenSinkOperationError::InternalServerError(_inner) => _inner.fmt(f),
        2333  +
            /* ServerOperationErrorGenerator.kt:142 */
        2334  +
            KitchenSinkOperationError::ErrorWithMembers(_inner) =>
        2335  +
            /* ServerOperationErrorGenerator.kt:78 */
        2336  +
            {
        2337  +
                _inner.fmt(f)
        2338  +
            }
        2339  +
            ,
        2340  +
            /* ServerOperationErrorGenerator.kt:142 */
        2341  +
            KitchenSinkOperationError::ErrorWithoutMembers(_inner) =>
        2342  +
            /* ServerOperationErrorGenerator.kt:78 */
        2343  +
            {
        2344  +
                _inner.fmt(f)
        2345  +
            }
        2346  +
            ,
        2347  +
            /* ServerOperationErrorGenerator.kt:142 */
        2348  +
            KitchenSinkOperationError::InternalServerError(_inner) =>
        2349  +
            /* ServerOperationErrorGenerator.kt:78 */
        2350  +
            {
        2351  +
                _inner.fmt(f)
        2352  +
            }
        2353  +
            /* ServerOperationErrorGenerator.kt:139 */
 1245   2354   
        }
        2355  +
        /* ServerOperationErrorGenerator.kt:76 */
 1246   2356   
    }
        2357  +
    /* ServerOperationErrorGenerator.kt:75 */
 1247   2358   
}
        2359  +
/* ServerOperationErrorGenerator.kt:83 */
 1248   2360   
impl KitchenSinkOperationError {
        2361  +
    /* ServerOperationErrorGenerator.kt:87 */
 1249   2362   
    /// Returns `true` if the error kind is `KitchenSinkOperationError::ErrorWithMembers`.
        2363  +
    /* ServerOperationErrorGenerator.kt:88 */
 1250   2364   
    pub fn is_error_with_members(&self) -> bool {
        2365  +
        /* ServerOperationErrorGenerator.kt:89 */
 1251   2366   
        matches!(&self, KitchenSinkOperationError::ErrorWithMembers(_))
        2367  +
        /* ServerOperationErrorGenerator.kt:88 */
 1252   2368   
    }
        2369  +
    /* ServerOperationErrorGenerator.kt:87 */
 1253   2370   
    /// Returns `true` if the error kind is `KitchenSinkOperationError::ErrorWithoutMembers`.
        2371  +
    /* ServerOperationErrorGenerator.kt:88 */
 1254   2372   
    pub fn is_error_without_members(&self) -> bool {
        2373  +
        /* ServerOperationErrorGenerator.kt:89 */
 1255   2374   
        matches!(&self, KitchenSinkOperationError::ErrorWithoutMembers(_))
        2375  +
        /* ServerOperationErrorGenerator.kt:88 */
 1256   2376   
    }
        2377  +
    /* ServerOperationErrorGenerator.kt:87 */
 1257   2378   
    /// Returns `true` if the error kind is `KitchenSinkOperationError::InternalServerError`.
        2379  +
    /* ServerOperationErrorGenerator.kt:88 */
 1258   2380   
    pub fn is_internal_server_error(&self) -> bool {
        2381  +
        /* ServerOperationErrorGenerator.kt:89 */
 1259   2382   
        matches!(&self, KitchenSinkOperationError::InternalServerError(_))
        2383  +
        /* ServerOperationErrorGenerator.kt:88 */
 1260   2384   
    }
        2385  +
    /* ServerOperationErrorGenerator.kt:92 */
 1261   2386   
    /// Returns the error name string by matching the correct variant.
        2387  +
    /* ServerOperationErrorGenerator.kt:93 */
 1262   2388   
    pub fn name(&self) -> &'static str {
        2389  +
        /* ServerOperationErrorGenerator.kt:139 */
 1263   2390   
        match &self {
 1264         -
            KitchenSinkOperationError::ErrorWithMembers(_inner) => _inner.name(),
 1265         -
            KitchenSinkOperationError::ErrorWithoutMembers(_inner) => _inner.name(),
 1266         -
            KitchenSinkOperationError::InternalServerError(_inner) => _inner.name(),
        2391  +
            /* ServerOperationErrorGenerator.kt:142 */
        2392  +
            KitchenSinkOperationError::ErrorWithMembers(_inner) =>
        2393  +
            /* ServerOperationErrorGenerator.kt:95 */
        2394  +
            {
        2395  +
                _inner.name()
        2396  +
            }
        2397  +
            ,
        2398  +
            /* ServerOperationErrorGenerator.kt:142 */
        2399  +
            KitchenSinkOperationError::ErrorWithoutMembers(_inner) =>
        2400  +
            /* ServerOperationErrorGenerator.kt:95 */
        2401  +
            {
        2402  +
                _inner.name()
        2403  +
            }
        2404  +
            ,
        2405  +
            /* ServerOperationErrorGenerator.kt:142 */
        2406  +
            KitchenSinkOperationError::InternalServerError(_inner) =>
        2407  +
            /* ServerOperationErrorGenerator.kt:95 */
        2408  +
            {
        2409  +
                _inner.name()
 1267   2410   
            }
        2411  +
            /* ServerOperationErrorGenerator.kt:139 */
 1268   2412   
        }
        2413  +
        /* ServerOperationErrorGenerator.kt:93 */
        2414  +
    }
        2415  +
    /* ServerOperationErrorGenerator.kt:83 */
 1269   2416   
}
        2417  +
/* ServerOperationErrorGenerator.kt:100 */
 1270   2418   
impl ::std::error::Error for KitchenSinkOperationError {
        2419  +
    /* ServerOperationErrorGenerator.kt:101 */
 1271   2420   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        2421  +
        /* ServerOperationErrorGenerator.kt:139 */
 1272   2422   
        match &self {
 1273         -
            KitchenSinkOperationError::ErrorWithMembers(_inner) => Some(_inner),
 1274         -
            KitchenSinkOperationError::ErrorWithoutMembers(_inner) => Some(_inner),
 1275         -
            KitchenSinkOperationError::InternalServerError(_inner) => Some(_inner),
        2423  +
            /* ServerOperationErrorGenerator.kt:142 */
        2424  +
            KitchenSinkOperationError::ErrorWithMembers(_inner) =>
        2425  +
            /* ServerOperationErrorGenerator.kt:103 */
        2426  +
            {
        2427  +
                Some(_inner)
        2428  +
            }
        2429  +
            ,
        2430  +
            /* ServerOperationErrorGenerator.kt:142 */
        2431  +
            KitchenSinkOperationError::ErrorWithoutMembers(_inner) =>
        2432  +
            /* ServerOperationErrorGenerator.kt:103 */
        2433  +
            {
        2434  +
                Some(_inner)
        2435  +
            }
        2436  +
            ,
        2437  +
            /* ServerOperationErrorGenerator.kt:142 */
        2438  +
            KitchenSinkOperationError::InternalServerError(_inner) =>
        2439  +
            /* ServerOperationErrorGenerator.kt:103 */
        2440  +
            {
        2441  +
                Some(_inner)
        2442  +
            }
        2443  +
            /* ServerOperationErrorGenerator.kt:139 */
 1276   2444   
        }
        2445  +
        /* ServerOperationErrorGenerator.kt:101 */
 1277   2446   
    }
        2447  +
    /* ServerOperationErrorGenerator.kt:100 */
 1278   2448   
}
        2449  +
/* ServerOperationErrorGenerator.kt:110 */
 1279   2450   
impl ::std::convert::From<crate::error::ErrorWithMembers>
 1280   2451   
    for crate::error::KitchenSinkOperationError
 1281   2452   
{
        2453  +
    /* ServerOperationErrorGenerator.kt:111 */
 1282   2454   
    fn from(variant: crate::error::ErrorWithMembers) -> crate::error::KitchenSinkOperationError {
        2455  +
        /* ServerOperationErrorGenerator.kt:112 */
 1283   2456   
        Self::ErrorWithMembers(variant)
        2457  +
        /* ServerOperationErrorGenerator.kt:111 */
 1284   2458   
    }
        2459  +
    /* ServerOperationErrorGenerator.kt:110 */
 1285   2460   
}
        2461  +
/* ServerOperationErrorGenerator.kt:110 */
 1286   2462   
impl ::std::convert::From<crate::error::ErrorWithoutMembers>
 1287   2463   
    for crate::error::KitchenSinkOperationError
 1288   2464   
{
        2465  +
    /* ServerOperationErrorGenerator.kt:111 */
 1289   2466   
    fn from(variant: crate::error::ErrorWithoutMembers) -> crate::error::KitchenSinkOperationError {
        2467  +
        /* ServerOperationErrorGenerator.kt:112 */
 1290   2468   
        Self::ErrorWithoutMembers(variant)
        2469  +
        /* ServerOperationErrorGenerator.kt:111 */
 1291   2470   
    }
        2471  +
    /* ServerOperationErrorGenerator.kt:110 */
 1292   2472   
}
        2473  +
/* ServerOperationErrorGenerator.kt:110 */
 1293   2474   
impl ::std::convert::From<crate::error::InternalServerError>
 1294   2475   
    for crate::error::KitchenSinkOperationError
 1295   2476   
{
        2477  +
    /* ServerOperationErrorGenerator.kt:111 */
 1296   2478   
    fn from(variant: crate::error::InternalServerError) -> crate::error::KitchenSinkOperationError {
        2479  +
        /* ServerOperationErrorGenerator.kt:112 */
 1297   2480   
        Self::InternalServerError(variant)
        2481  +
        /* ServerOperationErrorGenerator.kt:111 */
 1298   2482   
    }
        2483  +
    /* ServerOperationErrorGenerator.kt:110 */
 1299   2484   
}
 1300   2485   
        2486  +
/* PythonServerOperationErrorGenerator.kt:38 */
 1301   2487   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::KitchenSinkOperationError {
 1302   2488   
    fn from(variant: ::pyo3::PyErr) -> crate::error::KitchenSinkOperationError {
 1303   2489   
        ::pyo3::Python::with_gil(|py| {
 1304   2490   
            let error = variant.value(py);
 1305   2491   
            if let Ok(error) = error.extract::<crate::error::ErrorWithMembers>() {
 1306   2492   
                return error.into();
 1307   2493   
            }
 1308   2494   
            if let Ok(error) = error.extract::<crate::error::ErrorWithoutMembers>() {
 1309   2495   
                return error.into();
 1310   2496   
            }
 1311   2497   
            crate::error::InternalServerError {
 1312   2498   
                message: error.to_string(),
 1313   2499   
            }
 1314   2500   
            .into()
 1315   2501   
        })
 1316   2502   
    }
 1317   2503   
}
 1318   2504   
        2505  +
/* RustType.kt:516 */
 1319   2506   
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
        2507  +
/* PythonServerStructureGenerator.kt:63 */
 1320   2508   
/// :rtype None:
        2509  +
/* StructureGenerator.kt:197 */
 1321   2510   
#[allow(missing_docs)] // documentation missing in model
        2511  +
/* RustType.kt:516 */
 1322   2512   
#[derive(
 1323   2513   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
 1324   2514   
)]
 1325         -
pub struct ErrorWithoutMembers {}
        2515  +
pub /* StructureGenerator.kt:201 */ struct ErrorWithoutMembers {/* StructureGenerator.kt:201 */}
        2516  +
/* RustType.kt:516 */
 1326   2517   
#[allow(clippy::new_without_default)]
        2518  +
/* RustType.kt:516 */
 1327   2519   
#[allow(clippy::too_many_arguments)]
        2520  +
/* RustType.kt:516 */
 1328   2521   
#[::pyo3::pymethods]
        2522  +
/* PythonServerStructureGenerator.kt:88 */
 1329   2523   
impl ErrorWithoutMembers {
 1330   2524   
    #[new]
 1331   2525   
    pub fn new() -> Self {
 1332   2526   
        Self {}
 1333   2527   
    }
 1334   2528   
    fn __repr__(&self) -> String {
 1335   2529   
        format!("{self:?}")
 1336   2530   
    }
 1337   2531   
    fn __str__(&self) -> String {
 1338   2532   
        format!("{self:?}")
 1339   2533   
    }
 1340   2534   
}
        2535  +
/* ErrorImplGenerator.kt:99 */
 1341   2536   
impl ErrorWithoutMembers {
        2537  +
    /* ErrorImplGenerator.kt:141 */
 1342   2538   
    #[doc(hidden)]
 1343   2539   
    /// Returns the error name.
 1344   2540   
    pub fn name(&self) -> &'static str {
 1345   2541   
        "ErrorWithoutMembers"
 1346   2542   
    }
        2543  +
    /* ErrorImplGenerator.kt:99 */
 1347   2544   
}
        2545  +
/* ErrorImplGenerator.kt:153 */
 1348   2546   
impl ::std::fmt::Display for ErrorWithoutMembers {
        2547  +
    /* ErrorImplGenerator.kt:154 */
 1349   2548   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2549  +
        /* ErrorImplGenerator.kt:161 */
 1350   2550   
        ::std::write!(f, "ErrorWithoutMembers")?;
        2551  +
        /* ErrorImplGenerator.kt:171 */
 1351   2552   
        Ok(())
        2553  +
        /* ErrorImplGenerator.kt:154 */
 1352   2554   
    }
        2555  +
    /* ErrorImplGenerator.kt:153 */
 1353   2556   
}
        2557  +
/* ErrorImplGenerator.kt:175 */
 1354   2558   
impl ::std::error::Error for ErrorWithoutMembers {}
        2559  +
/* ServerCodegenVisitor.kt:370 */
 1355   2560   
impl ErrorWithoutMembers {
 1356         -
    /// Creates a new builder-style object to manufacture [`ErrorWithoutMembers`](crate::error::ErrorWithoutMembers).
        2561  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ErrorWithoutMembers`](crate::error::ErrorWithoutMembers).
        2562  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
 1357   2563   
    pub fn builder() -> crate::error::error_without_members::Builder {
        2564  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
 1358   2565   
        crate::error::error_without_members::Builder::default()
        2566  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
 1359   2567   
    }
        2568  +
    /* ServerCodegenVisitor.kt:370 */
 1360   2569   
}
 1361   2570   
        2571  +
/* RustType.kt:516 */
 1362   2572   
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
        2573  +
/* PythonServerStructureGenerator.kt:63 */
 1363   2574   
/// :param code typing.Optional\[str\]:
 1364   2575   
/// :param complex_data typing.Optional\[json_rpc11.model.KitchenSink\]:
 1365   2576   
/// :param integer_field typing.Optional\[int\]:
 1366   2577   
/// :param list_field typing.Optional\[typing.List\[str\]\]:
 1367   2578   
/// :param map_field typing.Optional\[typing.Dict\[str, str\]\]:
 1368   2579   
/// :param message typing.Optional\[str\]:
 1369   2580   
/// :param string_field typing.Optional\[str\]:
 1370   2581   
/// :rtype None:
        2582  +
/* StructureGenerator.kt:197 */
 1371   2583   
#[allow(missing_docs)] // documentation missing in model
        2584  +
/* RustType.kt:516 */
 1372   2585   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
 1373         -
pub struct ErrorWithMembers {
        2586  +
pub /* StructureGenerator.kt:201 */ struct ErrorWithMembers {
        2587  +
    /* RustType.kt:516 */
 1374   2588   
    #[pyo3(get, set)]
        2589  +
    /* PythonServerStructureGenerator.kt:80 */
 1375   2590   
    /// :type typing.Optional\[str\]:
        2591  +
    /* StructureGenerator.kt:231 */
 1376   2592   
    #[allow(missing_docs)] // documentation missing in model
 1377   2593   
    pub code: ::std::option::Option<::std::string::String>,
        2594  +
    /* RustType.kt:516 */
 1378   2595   
    #[pyo3(get, set)]
        2596  +
    /* PythonServerStructureGenerator.kt:80 */
 1379   2597   
    /// :type typing.Optional\[json_rpc11.model.KitchenSink\]:
        2598  +
    /* StructureGenerator.kt:231 */
 1380   2599   
    #[allow(missing_docs)] // documentation missing in model
 1381   2600   
    pub complex_data: ::std::option::Option<crate::model::KitchenSink>,
        2601  +
    /* RustType.kt:516 */
 1382   2602   
    #[pyo3(get, set)]
        2603  +
    /* PythonServerStructureGenerator.kt:80 */
 1383   2604   
    /// :type typing.Optional\[int\]:
        2605  +
    /* StructureGenerator.kt:231 */
 1384   2606   
    #[allow(missing_docs)] // documentation missing in model
 1385   2607   
    pub integer_field: ::std::option::Option<i32>,
        2608  +
    /* RustType.kt:516 */
 1386   2609   
    #[pyo3(get, set)]
        2610  +
    /* PythonServerStructureGenerator.kt:80 */
 1387   2611   
    /// :type typing.Optional\[typing.List\[str\]\]:
        2612  +
    /* StructureGenerator.kt:231 */
 1388   2613   
    #[allow(missing_docs)] // documentation missing in model
 1389   2614   
    pub list_field: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
        2615  +
    /* RustType.kt:516 */
 1390   2616   
    #[pyo3(get, set)]
        2617  +
    /* PythonServerStructureGenerator.kt:80 */
 1391   2618   
    /// :type typing.Optional\[typing.Dict\[str, str\]\]:
        2619  +
    /* StructureGenerator.kt:231 */
 1392   2620   
    #[allow(missing_docs)] // documentation missing in model
 1393   2621   
    pub map_field: ::std::option::Option<
 1394   2622   
        ::std::collections::HashMap<::std::string::String, ::std::string::String>,
 1395   2623   
    >,
        2624  +
    /* RustType.kt:516 */
 1396   2625   
    #[pyo3(get, set)]
        2626  +
    /* PythonServerStructureGenerator.kt:80 */
 1397   2627   
    /// :type typing.Optional\[str\]:
        2628  +
    /* StructureGenerator.kt:231 */
 1398   2629   
    #[allow(missing_docs)] // documentation missing in model
 1399   2630   
    pub message: ::std::option::Option<::std::string::String>,
        2631  +
    /* RustType.kt:516 */
 1400   2632   
    #[pyo3(get, set)]
        2633  +
    /* PythonServerStructureGenerator.kt:80 */
 1401   2634   
    /// :type typing.Optional\[str\]:
 1402         -
    /// abc
        2635  +
    /// /* StructureGenerator.kt:231 */abc
 1403   2636   
    pub string_field: ::std::option::Option<::std::string::String>,
        2637  +
    /* StructureGenerator.kt:201 */
 1404   2638   
}
        2639  +
/* StructureGenerator.kt:135 */
 1405   2640   
impl ErrorWithMembers {
        2641  +
    /* StructureGenerator.kt:231 */
 1406   2642   
    #[allow(missing_docs)] // documentation missing in model
        2643  +
                           /* StructureGenerator.kt:166 */
 1407   2644   
    pub fn code(&self) -> ::std::option::Option<&str> {
        2645  +
        /* StructureGenerator.kt:169 */
 1408   2646   
        self.code.as_deref()
        2647  +
        /* StructureGenerator.kt:166 */
 1409   2648   
    }
        2649  +
    /* StructureGenerator.kt:231 */
 1410   2650   
    #[allow(missing_docs)] // documentation missing in model
        2651  +
                           /* StructureGenerator.kt:166 */
 1411   2652   
    pub fn complex_data(&self) -> ::std::option::Option<&crate::model::KitchenSink> {
        2653  +
        /* StructureGenerator.kt:170 */
 1412   2654   
        self.complex_data.as_ref()
        2655  +
        /* StructureGenerator.kt:166 */
 1413   2656   
    }
        2657  +
    /* StructureGenerator.kt:231 */
 1414   2658   
    #[allow(missing_docs)] // documentation missing in model
        2659  +
                           /* StructureGenerator.kt:166 */
 1415   2660   
    pub fn integer_field(&self) -> ::std::option::Option<i32> {
        2661  +
        /* StructureGenerator.kt:168 */
 1416   2662   
        self.integer_field
        2663  +
        /* StructureGenerator.kt:166 */
 1417   2664   
    }
        2665  +
    /* StructureGenerator.kt:231 */
 1418   2666   
    #[allow(missing_docs)] // documentation missing in model
        2667  +
                           /* StructureGenerator.kt:166 */
 1419   2668   
    pub fn list_field(&self) -> ::std::option::Option<&[::std::string::String]> {
        2669  +
        /* StructureGenerator.kt:169 */
 1420   2670   
        self.list_field.as_deref()
        2671  +
        /* StructureGenerator.kt:166 */
 1421   2672   
    }
        2673  +
    /* StructureGenerator.kt:231 */
 1422   2674   
    #[allow(missing_docs)] // documentation missing in model
        2675  +
                           /* StructureGenerator.kt:166 */
 1423   2676   
    pub fn map_field(
 1424   2677   
        &self,
 1425   2678   
    ) -> ::std::option::Option<
 1426   2679   
        &::std::collections::HashMap<::std::string::String, ::std::string::String>,
 1427   2680   
    > {
        2681  +
        /* StructureGenerator.kt:170 */
 1428   2682   
        self.map_field.as_ref()
        2683  +
        /* StructureGenerator.kt:166 */
 1429   2684   
    }
 1430         -
    /// abc
        2685  +
    /// /* StructureGenerator.kt:231 */abc
        2686  +
    /* StructureGenerator.kt:166 */
 1431   2687   
    pub fn string_field(&self) -> ::std::option::Option<&str> {
        2688  +
        /* StructureGenerator.kt:169 */
 1432   2689   
        self.string_field.as_deref()
        2690  +
        /* StructureGenerator.kt:166 */
 1433   2691   
    }
        2692  +
    /* StructureGenerator.kt:135 */
 1434   2693   
}
        2694  +
/* RustType.kt:516 */
 1435   2695   
#[allow(clippy::new_without_default)]
        2696  +
/* RustType.kt:516 */
 1436   2697   
#[allow(clippy::too_many_arguments)]
        2698  +
/* RustType.kt:516 */
 1437   2699   
#[::pyo3::pymethods]
        2700  +
/* PythonServerStructureGenerator.kt:88 */
 1438   2701   
impl ErrorWithMembers {
 1439   2702   
    #[new]
 1440   2703   
    pub fn new(
 1441   2704   
        code: ::std::option::Option<::std::string::String>,
 1442   2705   
        complex_data: ::std::option::Option<crate::model::KitchenSink>,
 1443   2706   
        integer_field: ::std::option::Option<i32>,
 1444   2707   
        list_field: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
 1445   2708   
        map_field: ::std::option::Option<
 1446   2709   
            ::std::collections::HashMap<::std::string::String, ::std::string::String>,
 1447   2710   
        >,
 1448   2711   
        message: ::std::option::Option<::std::string::String>,
 1449   2712   
        string_field: ::std::option::Option<::std::string::String>,
 1450   2713   
    ) -> Self {
 1451   2714   
        Self {
 1452   2715   
            code,
 1453   2716   
            complex_data,
 1454   2717   
            integer_field,
 1455   2718   
            list_field,
 1456   2719   
            map_field,
 1457   2720   
            message,
 1458   2721   
            string_field,
 1459   2722   
        }
 1460   2723   
    }
 1461   2724   
    fn __repr__(&self) -> String {
 1462   2725   
        format!("{self:?}")
 1463   2726   
    }
 1464   2727   
    fn __str__(&self) -> String {
 1465   2728   
        format!("{self:?}")
 1466   2729   
    }
 1467   2730   
}
        2731  +
/* ErrorImplGenerator.kt:99 */
 1468   2732   
impl ErrorWithMembers {
        2733  +
    /* ErrorImplGenerator.kt:128 */
 1469   2734   
    /// Returns the error message.
 1470   2735   
    pub fn message(&self) -> ::std::option::Option<&str> {
 1471   2736   
        self.message.as_deref()
 1472   2737   
    }
        2738  +
    /* ErrorImplGenerator.kt:141 */
 1473   2739   
    #[doc(hidden)]
 1474   2740   
    /// Returns the error name.
 1475   2741   
    pub fn name(&self) -> &'static str {
 1476   2742   
        "ErrorWithMembers"
 1477   2743   
    }
        2744  +
    /* ErrorImplGenerator.kt:99 */
 1478   2745   
}
        2746  +
/* ErrorImplGenerator.kt:153 */
 1479   2747   
impl ::std::fmt::Display for ErrorWithMembers {
        2748  +
    /* ErrorImplGenerator.kt:154 */
 1480   2749   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2750  +
        /* ErrorImplGenerator.kt:161 */
 1481   2751   
        ::std::write!(f, "ErrorWithMembers")?;
        2752  +
        /* ErrorImplGenerator.kt:166 */
 1482   2753   
        if let ::std::option::Option::Some(inner_2) = &self.message {
        2754  +
            /* ErrorImplGenerator.kt:166 */
 1483   2755   
            {
        2756  +
                /* ErrorImplGenerator.kt:167 */
 1484   2757   
                ::std::write!(f, ": {}", inner_2)?;
        2758  +
                /* ErrorImplGenerator.kt:166 */
 1485   2759   
            }
        2760  +
            /* ErrorImplGenerator.kt:166 */
 1486   2761   
        }
        2762  +
        /* ErrorImplGenerator.kt:171 */
 1487   2763   
        Ok(())
        2764  +
        /* ErrorImplGenerator.kt:154 */
 1488   2765   
    }
        2766  +
    /* ErrorImplGenerator.kt:153 */
 1489   2767   
}
        2768  +
/* ErrorImplGenerator.kt:175 */
 1490   2769   
impl ::std::error::Error for ErrorWithMembers {}
        2770  +
/* ServerCodegenVisitor.kt:370 */
 1491   2771   
impl ErrorWithMembers {
 1492         -
    /// Creates a new builder-style object to manufacture [`ErrorWithMembers`](crate::error::ErrorWithMembers).
        2772  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ErrorWithMembers`](crate::error::ErrorWithMembers).
        2773  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
 1493   2774   
    pub fn builder() -> crate::error::error_with_members::Builder {
        2775  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
 1494   2776   
        crate::error::error_with_members::Builder::default()
        2777  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
 1495   2778   
    }
        2779  +
    /* ServerCodegenVisitor.kt:370 */
 1496   2780   
}
 1497   2781   
        2782  +
/* ServerOperationErrorGenerator.kt:63 */
 1498   2783   
/// Error type for the `EmptyOperation` operation.
        2784  +
/* ServerOperationErrorGenerator.kt:64 */
 1499   2785   
/// Each variant represents an error that can occur for the `EmptyOperation` operation.
        2786  +
/* RustType.kt:516 */
 1500   2787   
#[derive(::std::fmt::Debug)]
 1501         -
pub enum EmptyOperationError {
        2788  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum EmptyOperationError {
        2789  +
    /* ServerOperationErrorGenerator.kt:68 */
 1502   2790   
    #[allow(missing_docs)] // documentation missing in model
        2791  +
    /* ServerOperationErrorGenerator.kt:71 */
 1503   2792   
    InternalServerError(crate::error::InternalServerError),
        2793  +
    /* ServerOperationErrorGenerator.kt:66 */
 1504   2794   
}
        2795  +
/* ServerOperationErrorGenerator.kt:75 */
 1505   2796   
impl ::std::fmt::Display for EmptyOperationError {
        2797  +
    /* ServerOperationErrorGenerator.kt:76 */
 1506   2798   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2799  +
        /* ServerOperationErrorGenerator.kt:139 */
 1507   2800   
        match &self {
 1508         -
            EmptyOperationError::InternalServerError(_inner) => _inner.fmt(f),
        2801  +
            /* ServerOperationErrorGenerator.kt:142 */
        2802  +
            EmptyOperationError::InternalServerError(_inner) =>
        2803  +
            /* ServerOperationErrorGenerator.kt:78 */
        2804  +
            {
        2805  +
                _inner.fmt(f)
 1509   2806   
            }
        2807  +
            /* ServerOperationErrorGenerator.kt:139 */
 1510   2808   
        }
        2809  +
        /* ServerOperationErrorGenerator.kt:76 */
        2810  +
    }
        2811  +
    /* ServerOperationErrorGenerator.kt:75 */
 1511   2812   
}
        2813  +
/* ServerOperationErrorGenerator.kt:83 */
 1512   2814   
impl EmptyOperationError {
        2815  +
    /* ServerOperationErrorGenerator.kt:87 */
 1513   2816   
    /// Returns `true` if the error kind is `EmptyOperationError::InternalServerError`.
        2817  +
    /* ServerOperationErrorGenerator.kt:88 */
 1514   2818   
    pub fn is_internal_server_error(&self) -> bool {
        2819  +
        /* ServerOperationErrorGenerator.kt:89 */
 1515   2820   
        matches!(&self, EmptyOperationError::InternalServerError(_))
        2821  +
        /* ServerOperationErrorGenerator.kt:88 */
 1516   2822   
    }
        2823  +
    /* ServerOperationErrorGenerator.kt:92 */
 1517   2824   
    /// Returns the error name string by matching the correct variant.
        2825  +
    /* ServerOperationErrorGenerator.kt:93 */
 1518   2826   
    pub fn name(&self) -> &'static str {
        2827  +
        /* ServerOperationErrorGenerator.kt:139 */
 1519   2828   
        match &self {
 1520         -
            EmptyOperationError::InternalServerError(_inner) => _inner.name(),
        2829  +
            /* ServerOperationErrorGenerator.kt:142 */
        2830  +
            EmptyOperationError::InternalServerError(_inner) =>
        2831  +
            /* ServerOperationErrorGenerator.kt:95 */
        2832  +
            {
        2833  +
                _inner.name()
 1521   2834   
            }
        2835  +
            /* ServerOperationErrorGenerator.kt:139 */
 1522   2836   
        }
        2837  +
        /* ServerOperationErrorGenerator.kt:93 */
        2838  +
    }
        2839  +
    /* ServerOperationErrorGenerator.kt:83 */
 1523   2840   
}
        2841  +
/* ServerOperationErrorGenerator.kt:100 */
 1524   2842   
impl ::std::error::Error for EmptyOperationError {
        2843  +
    /* ServerOperationErrorGenerator.kt:101 */
 1525   2844   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        2845  +
        /* ServerOperationErrorGenerator.kt:139 */
 1526   2846   
        match &self {
 1527         -
            EmptyOperationError::InternalServerError(_inner) => Some(_inner),
        2847  +
            /* ServerOperationErrorGenerator.kt:142 */
        2848  +
            EmptyOperationError::InternalServerError(_inner) =>
        2849  +
            /* ServerOperationErrorGenerator.kt:103 */
        2850  +
            {
        2851  +
                Some(_inner)
        2852  +
            }
        2853  +
            /* ServerOperationErrorGenerator.kt:139 */
 1528   2854   
        }
        2855  +
        /* ServerOperationErrorGenerator.kt:101 */
 1529   2856   
    }
        2857  +
    /* ServerOperationErrorGenerator.kt:100 */
 1530   2858   
}
        2859  +
/* ServerOperationErrorGenerator.kt:110 */
 1531   2860   
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::EmptyOperationError {
        2861  +
    /* ServerOperationErrorGenerator.kt:111 */
 1532   2862   
    fn from(variant: crate::error::InternalServerError) -> crate::error::EmptyOperationError {
        2863  +
        /* ServerOperationErrorGenerator.kt:112 */
 1533   2864   
        Self::InternalServerError(variant)
        2865  +
        /* ServerOperationErrorGenerator.kt:111 */
 1534   2866   
    }
        2867  +
    /* ServerOperationErrorGenerator.kt:110 */
 1535   2868   
}
 1536   2869   
        2870  +
/* PythonServerOperationErrorGenerator.kt:38 */
 1537   2871   
impl ::std::convert::From<::pyo3::PyErr> for crate::error::EmptyOperationError {
 1538   2872   
    fn from(variant: ::pyo3::PyErr) -> crate::error::EmptyOperationError {
 1539   2873   
        ::pyo3::Python::with_gil(|py| {
 1540   2874   
            let error = variant.value(py);
 1541   2875   
 1542   2876   
            crate::error::InternalServerError {
 1543   2877   
                message: error.to_string(),
 1544   2878   
            }
 1545   2879   
            .into()
 1546   2880   
        })
 1547   2881   
    }
 1548   2882   
}
 1549         -
/// See [`InternalServerError`](crate::error::InternalServerError).
        2883  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`InternalServerError`](crate::error::InternalServerError).
 1550   2884   
pub mod internal_server_error {
 1551   2885   
        2886  +
    /* RustType.kt:516 */
 1552   2887   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1553         -
    /// Holds one variant for each of the ways the builder can fail.
 1554         -
        2888  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        2889  +
    /* ServerBuilderConstraintViolations.kt:75 */
 1555   2890   
    #[allow(clippy::enum_variant_names)]
 1556   2891   
    pub enum ConstraintViolation {
 1557         -
        /// `message` was not provided but it is required when building `InternalServerError`.
        2892  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`message` was not provided but it is required when building `InternalServerError`.
        2893  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1558   2894   
        MissingMessage,
        2895  +
        /* ServerBuilderConstraintViolations.kt:75 */
 1559   2896   
    }
        2897  +
    /* ServerBuilderConstraintViolations.kt:117 */
 1560   2898   
    impl ::std::fmt::Display for ConstraintViolation {
        2899  +
        /* ServerBuilderConstraintViolations.kt:118 */
 1561   2900   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2901  +
            /* ServerBuilderConstraintViolations.kt:119 */
 1562   2902   
            match self {
 1563         -
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `InternalServerError`"),
 1564         -
            }
        2903  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `InternalServerError`"),
        2904  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        2905  +
            /* ServerBuilderConstraintViolations.kt:118 */
 1565   2906   
        }
        2907  +
        /* ServerBuilderConstraintViolations.kt:117 */
 1566   2908   
    }
        2909  +
    /* ServerBuilderConstraintViolations.kt:84 */
 1567   2910   
    impl ::std::error::Error for ConstraintViolation {}
        2911  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
 1568   2912   
    impl ::std::convert::TryFrom<Builder> for crate::error::InternalServerError {
 1569   2913   
        type Error = ConstraintViolation;
 1570   2914   
 1571   2915   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1572   2916   
            builder.build()
 1573   2917   
        }
 1574   2918   
    }
 1575         -
    /// A builder for [`InternalServerError`](crate::error::InternalServerError).
        2919  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`InternalServerError`](crate::error::InternalServerError).
        2920  +
    /* RustType.kt:516 */
 1576   2921   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2922  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1577   2923   
    pub struct Builder {
        2924  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1578   2925   
        pub(crate) message: ::std::option::Option<::std::string::String>,
        2926  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1579   2927   
    }
        2928  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1580   2929   
    impl Builder {
        2930  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1581   2931   
        #[allow(missing_docs)] // documentation missing in model
        2932  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1582   2933   
        pub fn message(mut self, input: ::std::string::String) -> Self {
 1583         -
            self.message = Some(input);
        2934  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        2935  +
            self.message =
        2936  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        2937  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        2938  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        2939  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1584   2940   
            self
        2941  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1585   2942   
        }
 1586         -
        /// Consumes the builder and constructs a [`InternalServerError`](crate::error::InternalServerError).
 1587         -
        ///
        2943  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`InternalServerError`](crate::error::InternalServerError).
        2944  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
 1588   2945   
        /// The builder fails to construct a [`InternalServerError`](crate::error::InternalServerError) if you do not provide a value for all non-`Option`al members.
 1589   2946   
        ///
        2947  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
 1590   2948   
        pub fn build(self) -> Result<crate::error::InternalServerError, ConstraintViolation> {
 1591   2949   
            self.build_enforcing_required_and_enum_traits()
 1592   2950   
        }
        2951  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1593   2952   
        fn build_enforcing_required_and_enum_traits(
 1594   2953   
            self,
 1595   2954   
        ) -> Result<crate::error::InternalServerError, ConstraintViolation> {
 1596         -
            Ok(crate::error::InternalServerError {
 1597         -
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
 1598         -
            })
        2955  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        2956  +
            Ok(
        2957  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        2958  +
                crate::error::InternalServerError {
        2959  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        2960  +
                    message: self
        2961  +
                        .message
        2962  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        2963  +
                        .ok_or(ConstraintViolation::MissingMessage)?,
        2964  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        2965  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        2966  +
            )
        2967  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1599   2968   
        }
        2969  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1600   2970   
    }
        2971  +
        2972  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1601   2973   
}
 1602         -
/// See [`ValidationException`](crate::error::ValidationException).
        2974  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ValidationException`](crate::error::ValidationException).
 1603   2975   
pub mod validation_exception {
 1604   2976   
        2977  +
    /* RustType.kt:516 */
 1605   2978   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1606         -
    /// Holds one variant for each of the ways the builder can fail.
 1607         -
        2979  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        2980  +
    /* ServerBuilderConstraintViolations.kt:75 */
 1608   2981   
    #[allow(clippy::enum_variant_names)]
 1609   2982   
    pub enum ConstraintViolation {
 1610         -
        /// `message` was not provided but it is required when building `ValidationException`.
        2983  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`message` was not provided but it is required when building `ValidationException`.
        2984  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1611   2985   
        MissingMessage,
        2986  +
        /* ServerBuilderConstraintViolations.kt:75 */
 1612   2987   
    }
        2988  +
    /* ServerBuilderConstraintViolations.kt:117 */
 1613   2989   
    impl ::std::fmt::Display for ConstraintViolation {
        2990  +
        /* ServerBuilderConstraintViolations.kt:118 */
 1614   2991   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2992  +
            /* ServerBuilderConstraintViolations.kt:119 */
 1615   2993   
            match self {
 1616         -
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
 1617         -
            }
        2994  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
        2995  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        2996  +
            /* ServerBuilderConstraintViolations.kt:118 */
 1618   2997   
        }
        2998  +
        /* ServerBuilderConstraintViolations.kt:117 */
 1619   2999   
    }
        3000  +
    /* ServerBuilderConstraintViolations.kt:84 */
 1620   3001   
    impl ::std::error::Error for ConstraintViolation {}
        3002  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
 1621   3003   
    impl ::std::convert::TryFrom<Builder> for crate::error::ValidationException {
 1622   3004   
        type Error = ConstraintViolation;
 1623   3005   
 1624   3006   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1625   3007   
            builder.build()
 1626   3008   
        }
 1627   3009   
    }
 1628         -
    /// A builder for [`ValidationException`](crate::error::ValidationException).
        3010  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ValidationException`](crate::error::ValidationException).
        3011  +
    /* RustType.kt:516 */
 1629   3012   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        3013  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1630   3014   
    pub struct Builder {
        3015  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1631   3016   
        pub(crate) message: ::std::option::Option<::std::string::String>,
        3017  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1632   3018   
        pub(crate) field_list:
 1633   3019   
            ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
        3020  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1634   3021   
    }
        3022  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1635   3023   
    impl Builder {
 1636         -
        /// A summary of the validation failure.
        3024  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A summary of the validation failure.
        3025  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1637   3026   
        pub fn message(mut self, input: ::std::string::String) -> Self {
 1638         -
            self.message = Some(input);
        3027  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3028  +
            self.message =
        3029  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        3030  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3031  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        3032  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1639   3033   
            self
        3034  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1640   3035   
        }
 1641         -
        /// 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.
        3036  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
        3037  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1642   3038   
        pub fn field_list(
 1643   3039   
            mut self,
 1644   3040   
            input: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
 1645   3041   
        ) -> Self {
 1646         -
            self.field_list = input;
        3042  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3043  +
            self.field_list =
        3044  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3045  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1647   3046   
            self
        3047  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1648   3048   
        }
 1649         -
        /// Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
 1650         -
        ///
        3049  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
        3050  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
 1651   3051   
        /// The builder fails to construct a [`ValidationException`](crate::error::ValidationException) if you do not provide a value for all non-`Option`al members.
 1652   3052   
        ///
        3053  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
 1653   3054   
        pub fn build(self) -> Result<crate::error::ValidationException, ConstraintViolation> {
 1654   3055   
            self.build_enforcing_required_and_enum_traits()
 1655   3056   
        }
        3057  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1656   3058   
        fn build_enforcing_required_and_enum_traits(
 1657   3059   
            self,
 1658   3060   
        ) -> Result<crate::error::ValidationException, ConstraintViolation> {
 1659         -
            Ok(crate::error::ValidationException {
 1660         -
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
        3061  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        3062  +
            Ok(
        3063  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        3064  +
                crate::error::ValidationException {
        3065  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        3066  +
                    message: self
        3067  +
                        .message
        3068  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        3069  +
                        .ok_or(ConstraintViolation::MissingMessage)?,
        3070  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1661   3071   
                    field_list: self.field_list,
 1662         -
            })
        3072  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        3073  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        3074  +
            )
        3075  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1663   3076   
        }
        3077  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1664   3078   
    }
        3079  +
        3080  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1665   3081   
}
 1666         -
/// See [`FooError`](crate::error::FooError).
        3082  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`FooError`](crate::error::FooError).
 1667   3083   
pub mod foo_error {
 1668   3084   
        3085  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
 1669   3086   
    impl ::std::convert::From<Builder> for crate::error::FooError {
 1670   3087   
        fn from(builder: Builder) -> Self {
 1671   3088   
            builder.build()
 1672   3089   
        }
 1673   3090   
    }
 1674         -
    /// A builder for [`FooError`](crate::error::FooError).
        3091  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`FooError`](crate::error::FooError).
        3092  +
    /* RustType.kt:516 */
 1675   3093   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1676         -
    pub struct Builder {}
        3094  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
        3095  +
    pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
        3096  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1677   3097   
    impl Builder {
 1678         -
        /// Consumes the builder and constructs a [`FooError`](crate::error::FooError).
        3098  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`FooError`](crate::error::FooError).
        3099  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
 1679   3100   
        pub fn build(self) -> crate::error::FooError {
 1680   3101   
            self.build_enforcing_required_and_enum_traits()
 1681   3102   
        }
        3103  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1682   3104   
        fn build_enforcing_required_and_enum_traits(self) -> crate::error::FooError {
 1683         -
            crate::error::FooError {}
        3105  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        3106  +
            crate::error::FooError {
        3107  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
        3108  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1684   3109   
        }
        3110  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1685   3111   
    }
        3112  +
        3113  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1686   3114   
}
 1687         -
/// See [`ComplexError`](crate::error::ComplexError).
        3115  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ComplexError`](crate::error::ComplexError).
 1688   3116   
pub mod complex_error {
 1689   3117   
        3118  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
 1690   3119   
    impl ::std::convert::From<Builder> for crate::error::ComplexError {
 1691   3120   
        fn from(builder: Builder) -> Self {
 1692   3121   
            builder.build()
 1693   3122   
        }
 1694   3123   
    }
 1695         -
    /// A builder for [`ComplexError`](crate::error::ComplexError).
        3124  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ComplexError`](crate::error::ComplexError).
        3125  +
    /* RustType.kt:516 */
 1696   3126   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        3127  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1697   3128   
    pub struct Builder {
        3129  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1698   3130   
        pub(crate) top_level: ::std::option::Option<::std::string::String>,
        3131  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1699   3132   
        pub(crate) nested: ::std::option::Option<crate::model::ComplexNestedErrorData>,
        3133  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1700   3134   
    }
        3135  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1701   3136   
    impl Builder {
        3137  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1702   3138   
        #[allow(missing_docs)] // documentation missing in model
        3139  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1703   3140   
        pub fn top_level(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 1704         -
            self.top_level = input;
        3141  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3142  +
            self.top_level =
        3143  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3144  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1705   3145   
            self
        3146  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1706   3147   
        }
        3148  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1707   3149   
        #[allow(missing_docs)] // documentation missing in model
        3150  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1708   3151   
        pub fn nested(
 1709   3152   
            mut self,
 1710   3153   
            input: ::std::option::Option<crate::model::ComplexNestedErrorData>,
 1711   3154   
        ) -> Self {
 1712         -
            self.nested = input;
        3155  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3156  +
            self.nested =
        3157  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3158  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1713   3159   
            self
        3160  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1714   3161   
        }
 1715         -
        /// Consumes the builder and constructs a [`ComplexError`](crate::error::ComplexError).
        3162  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ComplexError`](crate::error::ComplexError).
        3163  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
 1716   3164   
        pub fn build(self) -> crate::error::ComplexError {
 1717   3165   
            self.build_enforcing_required_and_enum_traits()
 1718   3166   
        }
        3167  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1719   3168   
        fn build_enforcing_required_and_enum_traits(self) -> crate::error::ComplexError {
        3169  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
 1720   3170   
            crate::error::ComplexError {
        3171  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1721   3172   
                top_level: self.top_level,
        3173  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1722   3174   
                nested: self.nested,
        3175  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
 1723   3176   
            }
        3177  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1724   3178   
        }
        3179  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1725   3180   
    }
        3181  +
        3182  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1726   3183   
}
 1727         -
/// See [`InvalidGreeting`](crate::error::InvalidGreeting).
        3184  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`InvalidGreeting`](crate::error::InvalidGreeting).
 1728   3185   
pub mod invalid_greeting {
 1729   3186   
        3187  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
 1730   3188   
    impl ::std::convert::From<Builder> for crate::error::InvalidGreeting {
 1731   3189   
        fn from(builder: Builder) -> Self {
 1732   3190   
            builder.build()
 1733   3191   
        }
 1734   3192   
    }
 1735         -
    /// A builder for [`InvalidGreeting`](crate::error::InvalidGreeting).
        3193  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`InvalidGreeting`](crate::error::InvalidGreeting).
        3194  +
    /* RustType.kt:516 */
 1736   3195   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        3196  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1737   3197   
    pub struct Builder {
        3198  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1738   3199   
        pub(crate) message: ::std::option::Option<::std::string::String>,
        3200  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1739   3201   
    }
        3202  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1740   3203   
    impl Builder {
        3204  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1741   3205   
        #[allow(missing_docs)] // documentation missing in model
        3206  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1742   3207   
        pub fn message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 1743         -
            self.message = input;
        3208  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3209  +
            self.message =
        3210  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3211  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1744   3212   
            self
        3213  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1745   3214   
        }
 1746         -
        /// Consumes the builder and constructs a [`InvalidGreeting`](crate::error::InvalidGreeting).
        3215  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`InvalidGreeting`](crate::error::InvalidGreeting).
        3216  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
 1747   3217   
        pub fn build(self) -> crate::error::InvalidGreeting {
 1748   3218   
            self.build_enforcing_required_and_enum_traits()
 1749   3219   
        }
        3220  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1750   3221   
        fn build_enforcing_required_and_enum_traits(self) -> crate::error::InvalidGreeting {
        3222  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
 1751   3223   
            crate::error::InvalidGreeting {
        3224  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1752   3225   
                message: self.message,
        3226  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
 1753   3227   
            }
        3228  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1754   3229   
        }
        3230  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1755   3231   
    }
        3232  +
        3233  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1756   3234   
}
 1757         -
/// See [`ErrorWithoutMembers`](crate::error::ErrorWithoutMembers).
        3235  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ErrorWithoutMembers`](crate::error::ErrorWithoutMembers).
 1758   3236   
pub mod error_without_members {
 1759   3237   
        3238  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
 1760   3239   
    impl ::std::convert::From<Builder> for crate::error::ErrorWithoutMembers {
 1761   3240   
        fn from(builder: Builder) -> Self {
 1762   3241   
            builder.build()
 1763   3242   
        }
 1764   3243   
    }
 1765         -
    /// A builder for [`ErrorWithoutMembers`](crate::error::ErrorWithoutMembers).
        3244  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ErrorWithoutMembers`](crate::error::ErrorWithoutMembers).
        3245  +
    /* RustType.kt:516 */
 1766   3246   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1767         -
    pub struct Builder {}
        3247  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
        3248  +
    pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
        3249  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1768   3250   
    impl Builder {
 1769         -
        /// Consumes the builder and constructs a [`ErrorWithoutMembers`](crate::error::ErrorWithoutMembers).
        3251  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ErrorWithoutMembers`](crate::error::ErrorWithoutMembers).
        3252  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
 1770   3253   
        pub fn build(self) -> crate::error::ErrorWithoutMembers {
 1771   3254   
            self.build_enforcing_required_and_enum_traits()
 1772   3255   
        }
        3256  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1773   3257   
        fn build_enforcing_required_and_enum_traits(self) -> crate::error::ErrorWithoutMembers {
 1774         -
            crate::error::ErrorWithoutMembers {}
        3258  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        3259  +
            crate::error::ErrorWithoutMembers {
        3260  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
        3261  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1775   3262   
        }
        3263  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1776   3264   
    }
        3265  +
        3266  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1777   3267   
}
 1778         -
/// See [`ErrorWithMembers`](crate::error::ErrorWithMembers).
        3268  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ErrorWithMembers`](crate::error::ErrorWithMembers).
 1779   3269   
pub mod error_with_members {
 1780   3270   
        3271  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
 1781   3272   
    impl ::std::convert::From<Builder> for crate::error::ErrorWithMembers {
 1782   3273   
        fn from(builder: Builder) -> Self {
 1783   3274   
            builder.build()
 1784   3275   
        }
 1785   3276   
    }
 1786         -
    /// A builder for [`ErrorWithMembers`](crate::error::ErrorWithMembers).
        3277  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ErrorWithMembers`](crate::error::ErrorWithMembers).
        3278  +
    /* RustType.kt:516 */
 1787   3279   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        3280  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1788   3281   
    pub struct Builder {
        3282  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1789   3283   
        pub(crate) code: ::std::option::Option<::std::string::String>,
        3284  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1790   3285   
        pub(crate) complex_data: ::std::option::Option<crate::model::KitchenSink>,
        3286  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1791   3287   
        pub(crate) integer_field: ::std::option::Option<i32>,
        3288  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1792   3289   
        pub(crate) list_field: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
        3290  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1793   3291   
        pub(crate) map_field: ::std::option::Option<
 1794   3292   
            ::std::collections::HashMap<::std::string::String, ::std::string::String>,
 1795   3293   
        >,
        3294  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1796   3295   
        pub(crate) message: ::std::option::Option<::std::string::String>,
        3296  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
 1797   3297   
        pub(crate) string_field: ::std::option::Option<::std::string::String>,
        3298  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
 1798   3299   
    }
        3300  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1799   3301   
    impl Builder {
        3302  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1800   3303   
        #[allow(missing_docs)] // documentation missing in model
        3304  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1801   3305   
        pub fn code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 1802         -
            self.code = input;
        3306  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3307  +
            self.code =
        3308  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3309  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1803   3310   
            self
        3311  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1804   3312   
        }
        3313  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1805   3314   
        #[allow(missing_docs)] // documentation missing in model
        3315  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1806   3316   
        pub fn complex_data(
 1807   3317   
            mut self,
 1808   3318   
            input: ::std::option::Option<crate::model::KitchenSink>,
 1809   3319   
        ) -> Self {
 1810         -
            self.complex_data = input;
        3320  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3321  +
            self.complex_data =
        3322  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3323  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1811   3324   
            self
        3325  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1812   3326   
        }
        3327  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1813   3328   
        #[allow(missing_docs)] // documentation missing in model
        3329  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1814   3330   
        pub fn integer_field(mut self, input: ::std::option::Option<i32>) -> Self {
 1815         -
            self.integer_field = input;
        3331  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3332  +
            self.integer_field =
        3333  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3334  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1816   3335   
            self
        3336  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1817   3337   
        }
        3338  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1818   3339   
        #[allow(missing_docs)] // documentation missing in model
        3340  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1819   3341   
        pub fn list_field(
 1820   3342   
            mut self,
 1821   3343   
            input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
 1822   3344   
        ) -> Self {
 1823         -
            self.list_field = input;
        3345  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3346  +
            self.list_field =
        3347  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3348  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1824   3349   
            self
        3350  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1825   3351   
        }
        3352  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1826   3353   
        #[allow(missing_docs)] // documentation missing in model
        3354  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1827   3355   
        pub fn map_field(
 1828   3356   
            mut self,
 1829   3357   
            input: ::std::option::Option<
 1830   3358   
                ::std::collections::HashMap<::std::string::String, ::std::string::String>,
 1831   3359   
            >,
 1832   3360   
        ) -> Self {
 1833         -
            self.map_field = input;
        3361  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3362  +
            self.map_field =
        3363  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3364  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1834   3365   
            self
        3366  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1835   3367   
        }
        3368  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
 1836   3369   
        #[allow(missing_docs)] // documentation missing in model
        3370  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1837   3371   
        pub fn message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 1838         -
            self.message = input;
        3372  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3373  +
            self.message =
        3374  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3375  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1839   3376   
            self
        3377  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1840   3378   
        }
 1841         -
        /// abc
        3379  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */abc
        3380  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1842   3381   
        pub fn string_field(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 1843         -
            self.string_field = input;
        3382  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        3383  +
            self.string_field =
        3384  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        3385  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
 1844   3386   
            self
        3387  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
 1845   3388   
        }
 1846         -
        /// Consumes the builder and constructs a [`ErrorWithMembers`](crate::error::ErrorWithMembers).
        3389  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ErrorWithMembers`](crate::error::ErrorWithMembers).
        3390  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
 1847   3391   
        pub fn build(self) -> crate::error::ErrorWithMembers {
 1848   3392   
            self.build_enforcing_required_and_enum_traits()
 1849   3393   
        }
        3394  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1850   3395   
        fn build_enforcing_required_and_enum_traits(self) -> crate::error::ErrorWithMembers {
        3396  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
 1851   3397   
            crate::error::ErrorWithMembers {
        3398  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1852   3399   
                code: self.code,
        3400  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1853   3401   
                complex_data: self.complex_data,
        3402  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1854   3403   
                integer_field: self.integer_field,
        3404  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1855   3405   
                list_field: self.list_field,
        3406  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1856   3407   
                map_field: self.map_field,
        3408  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1857   3409   
                message: self.message,
        3410  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
 1858   3411   
                string_field: self.string_field,
        3412  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
 1859   3413   
            }
        3414  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1860   3415   
        }
        3416  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1861   3417   
    }
        3418  +
        3419  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1862   3420   
}