Server Test Python

Server Test Python

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-server-test-python/pokemon-service-server-sdk/rust-server-codegen-python/src/event_stream_serde.rs

@@ -1,1 +203,229 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* EventStreamErrorMarshallerGenerator.kt:79 */
    2      3   
#[non_exhaustive]
    3      4   
#[derive(Debug)]
    4      5   
pub struct CapturePokemonEventsErrorMarshaller;
    5      6   
    6      7   
impl CapturePokemonEventsErrorMarshaller {
    7      8   
    pub fn new() -> Self {
    8      9   
        CapturePokemonEventsErrorMarshaller
    9     10   
    }
   10     11   
}
          12  +
/* EventStreamErrorMarshallerGenerator.kt:93 */
   11     13   
impl ::aws_smithy_eventstream::frame::MarshallMessage for CapturePokemonEventsErrorMarshaller {
          14  +
    /* EventStreamErrorMarshallerGenerator.kt:97 */
   12     15   
    type Input = crate::error::CapturePokemonEventsError;
          16  +
    /* EventStreamErrorMarshallerGenerator.kt:99 */
   13     17   
    fn marshall(
   14     18   
        &self,
   15     19   
        _input: Self::Input,
   16     20   
    ) -> std::result::Result<
   17     21   
        ::aws_smithy_types::event_stream::Message,
   18     22   
        ::aws_smithy_eventstream::error::Error,
   19     23   
    > {
          24  +
        /* EventStreamErrorMarshallerGenerator.kt:103 */
   20     25   
        let mut headers = Vec::new();
          26  +
        /* EventStreamMarshallerGenerator.kt:322 */
   21     27   
        headers.push(::aws_smithy_types::event_stream::Header::new(
   22     28   
            ":message-type",
   23     29   
            ::aws_smithy_types::event_stream::HeaderValue::String("exception".into()),
   24     30   
        ));
          31  +
        /* EventStreamErrorMarshallerGenerator.kt:108 */
   25     32   
        let payload = match _input {
   26         -
            crate::error::CapturePokemonEventsError::InvalidPokeballError(inner) => {
   27         -
                headers.push(::aws_smithy_types::event_stream::Header::new(
   28         -
                    ":exception-type",
   29         -
                    ::aws_smithy_types::event_stream::HeaderValue::String(
   30         -
                        "invalid_pokeball".into(),
   31         -
                    ),
   32         -
                ));
   33         -
                headers.push(::aws_smithy_types::event_stream::Header::new(
   34         -
                    ":content-type",
   35         -
                    ::aws_smithy_types::event_stream::HeaderValue::String(
   36         -
                        "application/json".into(),
   37         -
                    ),
   38         -
                ));
   39         -
                crate::protocol_serde::shape_invalid_pokeball_error::ser_invalid_pokeball_error_error(&inner)
          33  +
            /* EventStreamErrorMarshallerGenerator.kt:113 */crate::error::CapturePokemonEventsError::InvalidPokeballError(inner) =>  {
          34  +
                /* EventStreamMarshallerGenerator.kt:322 */headers.push(::aws_smithy_types::event_stream::Header::new(":exception-type", ::aws_smithy_types::event_stream::HeaderValue::String("invalid_pokeball".into())));
          35  +
                /* EventStreamMarshallerGenerator.kt:322 */headers.push(::aws_smithy_types::event_stream::Header::new(":content-type", ::aws_smithy_types::event_stream::HeaderValue::String("application/json".into())));
          36  +
                /* EventStreamMarshallerGenerator.kt:283 */crate::protocol_serde::shape_invalid_pokeball_error::ser_invalid_pokeball_error_error(&inner)
   40     37   
                                            .map_err(|err| ::aws_smithy_eventstream::error::Error::marshalling(format!("{}", err)))?
   41         -
            }
   42         -
            crate::error::CapturePokemonEventsError::ThrottlingError(inner) => {
   43         -
                headers.push(::aws_smithy_types::event_stream::Header::new(
   44         -
                    ":exception-type",
   45         -
                    ::aws_smithy_types::event_stream::HeaderValue::String("throttlingError".into()),
   46         -
                ));
   47         -
                headers.push(::aws_smithy_types::event_stream::Header::new(
   48         -
                    ":content-type",
   49         -
                    ::aws_smithy_types::event_stream::HeaderValue::String(
   50         -
                        "application/json".into(),
   51         -
                    ),
   52         -
                ));
   53         -
                crate::protocol_serde::shape_throttling_error::ser_throttling_error_error(&inner)
   54         -
                    .map_err(|err| {
   55         -
                        ::aws_smithy_eventstream::error::Error::marshalling(format!("{}", err))
   56         -
                    })?
   57         -
            }
   58         -
        };
          38  +
            /* EventStreamErrorMarshallerGenerator.kt:113 */}
          39  +
            /* EventStreamErrorMarshallerGenerator.kt:113 */crate::error::CapturePokemonEventsError::ThrottlingError(inner) =>  {
          40  +
                /* EventStreamMarshallerGenerator.kt:322 */headers.push(::aws_smithy_types::event_stream::Header::new(":exception-type", ::aws_smithy_types::event_stream::HeaderValue::String("throttlingError".into())));
          41  +
                /* EventStreamMarshallerGenerator.kt:322 */headers.push(::aws_smithy_types::event_stream::Header::new(":content-type", ::aws_smithy_types::event_stream::HeaderValue::String("application/json".into())));
          42  +
                /* EventStreamMarshallerGenerator.kt:283 */crate::protocol_serde::shape_throttling_error::ser_throttling_error_error(&inner)
          43  +
                                            .map_err(|err| ::aws_smithy_eventstream::error::Error::marshalling(format!("{}", err)))?
          44  +
            /* EventStreamErrorMarshallerGenerator.kt:113 */}
          45  +
        /* EventStreamErrorMarshallerGenerator.kt:108 */}
          46  +
        /* EventStreamErrorMarshallerGenerator.kt:131 */;
   59     47   
        Ok(::aws_smithy_types::event_stream::Message::new_from_parts(
   60     48   
            headers, payload,
   61     49   
        ))
          50  +
        /* EventStreamErrorMarshallerGenerator.kt:99 */
   62     51   
    }
          52  +
    /* EventStreamErrorMarshallerGenerator.kt:93 */
   63     53   
}
   64     54   
          55  +
/* EventStreamMarshallerGenerator.kt:115 */
   65     56   
#[non_exhaustive]
   66     57   
#[derive(Debug)]
   67     58   
pub struct CapturePokemonEventsMarshaller;
   68     59   
   69     60   
impl CapturePokemonEventsMarshaller {
   70     61   
    pub fn new() -> Self {
   71     62   
        CapturePokemonEventsMarshaller
   72     63   
    }
   73     64   
}
          65  +
/* EventStreamMarshallerGenerator.kt:129 */
   74     66   
impl ::aws_smithy_eventstream::frame::MarshallMessage for CapturePokemonEventsMarshaller {
          67  +
    /* EventStreamMarshallerGenerator.kt:133 */
   75     68   
    type Input = crate::model::CapturePokemonEvents;
          69  +
    /* EventStreamMarshallerGenerator.kt:135 */
   76     70   
    fn marshall(
   77     71   
        &self,
   78     72   
        input: Self::Input,
   79     73   
    ) -> std::result::Result<
   80     74   
        ::aws_smithy_types::event_stream::Message,
   81     75   
        ::aws_smithy_eventstream::error::Error,
   82     76   
    > {
          77  +
        /* EventStreamMarshallerGenerator.kt:139 */
   83     78   
        let mut headers = Vec::new();
          79  +
        /* EventStreamMarshallerGenerator.kt:322 */
   84     80   
        headers.push(::aws_smithy_types::event_stream::Header::new(
   85     81   
            ":message-type",
   86     82   
            ::aws_smithy_types::event_stream::HeaderValue::String("event".into()),
   87     83   
        ));
          84  +
        /* EventStreamMarshallerGenerator.kt:141 */
   88     85   
        let payload = match input {
   89         -
            Self::Input::Event(inner) => {
   90         -
                headers.push(::aws_smithy_types::event_stream::Header::new(
   91         -
                    ":event-type",
   92         -
                    ::aws_smithy_types::event_stream::HeaderValue::String("event".into()),
   93         -
                ));
   94         -
                if let Some(value) = inner.name {
   95         -
                    headers.push(::aws_smithy_types::event_stream::Header::new(
   96         -
                        "name",
   97         -
                        ::aws_smithy_types::event_stream::HeaderValue::String(value.into()),
   98         -
                    ));
   99         -
                }
  100         -
                if let Some(value) = inner.captured {
  101         -
                    headers.push(::aws_smithy_types::event_stream::Header::new(
  102         -
                        "captured",
  103         -
                        ::aws_smithy_types::event_stream::HeaderValue::Bool(value),
  104         -
                    ));
  105         -
                }
  106         -
                if let Some(value) = inner.shiny {
  107         -
                    headers.push(::aws_smithy_types::event_stream::Header::new(
  108         -
                        "shiny",
  109         -
                        ::aws_smithy_types::event_stream::HeaderValue::Bool(value),
  110         -
                    ));
  111         -
                }
  112         -
                headers.push(::aws_smithy_types::event_stream::Header::new(
  113         -
                    ":content-type",
  114         -
                    ::aws_smithy_types::event_stream::HeaderValue::String(
  115         -
                        "application/octet-stream".into(),
  116         -
                    ),
  117         -
                ));
  118         -
                if let Some(inner_payload) = inner.pokedex_update {
  119         -
                    inner_payload.into_inner()
  120         -
                } else {
  121         -
                    Vec::new()
  122         -
                }
  123         -
            }
  124         -
        };
          86  +
            /* EventStreamMarshallerGenerator.kt:152 */Self::Input::Event(inner) =>  {
          87  +
                /* EventStreamMarshallerGenerator.kt:322 */headers.push(::aws_smithy_types::event_stream::Header::new(":event-type", ::aws_smithy_types::event_stream::HeaderValue::String("event".into())));
          88  +
                /* EventStreamMarshallerGenerator.kt:305 */if let Some(value) = inner.name {
          89  +
                    /* EventStreamMarshallerGenerator.kt:225 */headers.push(
          90  +
                        /* EventStreamMarshallerGenerator.kt:226 */::aws_smithy_types::event_stream::Header::new("name", ::aws_smithy_types::event_stream::HeaderValue::String(value.into()))
          91  +
                    /* EventStreamMarshallerGenerator.kt:225 */);
          92  +
                /* EventStreamMarshallerGenerator.kt:305 */}
          93  +
                /* EventStreamMarshallerGenerator.kt:305 */if let Some(value) = inner.captured {
          94  +
                    /* EventStreamMarshallerGenerator.kt:225 */headers.push(
          95  +
                        /* EventStreamMarshallerGenerator.kt:226 */::aws_smithy_types::event_stream::Header::new("captured", ::aws_smithy_types::event_stream::HeaderValue::Bool(value))
          96  +
                    /* EventStreamMarshallerGenerator.kt:225 */);
          97  +
                /* EventStreamMarshallerGenerator.kt:305 */}
          98  +
                /* EventStreamMarshallerGenerator.kt:305 */if let Some(value) = inner.shiny {
          99  +
                    /* EventStreamMarshallerGenerator.kt:225 */headers.push(
         100  +
                        /* EventStreamMarshallerGenerator.kt:226 */::aws_smithy_types::event_stream::Header::new("shiny", ::aws_smithy_types::event_stream::HeaderValue::Bool(value))
         101  +
                    /* EventStreamMarshallerGenerator.kt:225 */);
         102  +
                /* EventStreamMarshallerGenerator.kt:305 */}
         103  +
                /* EventStreamMarshallerGenerator.kt:322 */headers.push(::aws_smithy_types::event_stream::Header::new(":content-type", ::aws_smithy_types::event_stream::HeaderValue::String("application/octet-stream".into())));
         104  +
                /* EventStreamMarshallerGenerator.kt:305 */if let Some(inner_payload) = inner.pokedex_update {
         105  +
                    /* EventStreamMarshallerGenerator.kt:272 */inner_payload.into_inner()
         106  +
                /* EventStreamMarshallerGenerator.kt:305 */}
         107  +
                /* EventStreamMarshallerGenerator.kt:309 */ else  {
         108  +
                    /* EventStreamMarshallerGenerator.kt:273 */Vec::new()
         109  +
                /* EventStreamMarshallerGenerator.kt:309 */}
         110  +
            /* EventStreamMarshallerGenerator.kt:152 */}
         111  +
        /* EventStreamMarshallerGenerator.kt:141 */}
         112  +
        /* EventStreamMarshallerGenerator.kt:169 */;
  125    113   
        Ok(::aws_smithy_types::event_stream::Message::new_from_parts(
  126    114   
            headers, payload,
  127    115   
        ))
         116  +
        /* EventStreamMarshallerGenerator.kt:135 */
  128    117   
    }
         118  +
    /* EventStreamMarshallerGenerator.kt:129 */
  129    119   
}
  130    120   
         121  +
/* EventStreamUnmarshallerGenerator.kt:98 */
  131    122   
#[non_exhaustive]
  132    123   
#[derive(Debug)]
  133    124   
pub struct AttemptCapturingPokemonEventUnmarshaller;
  134    125   
  135    126   
impl AttemptCapturingPokemonEventUnmarshaller {
  136    127   
    pub fn new() -> Self {
  137    128   
        AttemptCapturingPokemonEventUnmarshaller
  138    129   
    }
  139    130   
}
         131  +
/* EventStreamUnmarshallerGenerator.kt:112 */
  140    132   
impl ::aws_smithy_eventstream::frame::UnmarshallMessage
  141    133   
    for AttemptCapturingPokemonEventUnmarshaller
  142    134   
{
         135  +
    /* EventStreamUnmarshallerGenerator.kt:116 */
  143    136   
    type Output = crate::model::AttemptCapturingPokemonEvent;
         137  +
    /* EventStreamUnmarshallerGenerator.kt:117 */
  144    138   
    type Error = crate::error::AttemptCapturingPokemonEventError;
         139  +
    /* EventStreamUnmarshallerGenerator.kt:119 */
  145    140   
    fn unmarshall(
  146    141   
        &self,
  147    142   
        message: &::aws_smithy_types::event_stream::Message,
  148    143   
    ) -> std::result::Result<
  149    144   
        ::aws_smithy_eventstream::frame::UnmarshalledMessage<Self::Output, Self::Error>,
  150    145   
        ::aws_smithy_eventstream::error::Error,
  151    146   
    > {
         147  +
        /* EventStreamUnmarshallerGenerator.kt:128 */
  152    148   
        let response_headers = ::aws_smithy_eventstream::smithy::parse_response_headers(message)?;
         149  +
        /* EventStreamUnmarshallerGenerator.kt:129 */
  153    150   
        match response_headers.message_type.as_str() {
  154         -
            "event" => match response_headers.smithy_type.as_str() {
         151  +
            /* EventStreamUnmarshallerGenerator.kt:130 */
  155    152   
            "event" => {
  156         -
                    let mut builder = crate::model::capturing_event_internal::Builder::default();
         153  +
                /* EventStreamUnmarshallerGenerator.kt:155 */
         154  +
                match response_headers.smithy_type.as_str() {
         155  +
                    /* EventStreamUnmarshallerGenerator.kt:158 */
         156  +
                    "event" => {
         157  +
                        /* EventStreamUnmarshallerGenerator.kt:221 */
         158  +
                        let mut builder =
         159  +
                            crate::model::capturing_event_internal::Builder::default();
         160  +
                        /* EventStreamUnmarshallerGenerator.kt:288 */
  157    161   
                        builder = builder.set_payload(
  158         -
                            Some(
  159         -
                                crate::protocol_serde::shape_capturing_payload::de_capturing_payload_payload(&message.payload()[..])
         162  +
                            /* EventStreamUnmarshallerGenerator.kt:289 */Some(
         163  +
                                /* EventStreamUnmarshallerGenerator.kt:317 */crate::protocol_serde::shape_capturing_payload::de_capturing_payload_payload(&message.payload()[..])
  160    164   
                                                .map_err(|err| {
  161    165   
                                                    ::aws_smithy_eventstream::error::Error::unmarshalling(format!("failed to unmarshall payload: {}", err))
  162    166   
                                                })?
  163         -
                            )
  164         -
                        );
         167  +
                            /* EventStreamUnmarshallerGenerator.kt:289 */)
         168  +
                        /* EventStreamUnmarshallerGenerator.kt:288 */);
         169  +
                        /* EventStreamUnmarshallerGenerator.kt:245 */
  165    170   
                        Ok(::aws_smithy_eventstream::frame::UnmarshalledMessage::Event(
  166    171   
                            crate::model::AttemptCapturingPokemonEvent::Event(builder.build()),
  167    172   
                        ))
         173  +
                        /* EventStreamUnmarshallerGenerator.kt:158 */
  168    174   
                    }
         175  +
                    /* EventStreamUnmarshallerGenerator.kt:162 */
  169    176   
                    _unknown_variant => {
         177  +
                        /* EventStreamUnmarshallerGenerator.kt:172 */
  170    178   
                        return Err(::aws_smithy_eventstream::error::Error::unmarshalling(
  171    179   
                            format!("unrecognized :event-type: {}", _unknown_variant),
  172    180   
                        ));
         181  +
                        /* EventStreamUnmarshallerGenerator.kt:162 */
         182  +
                    } /* EventStreamUnmarshallerGenerator.kt:155 */
  173    183   
                }
  174         -
            },
         184  +
                /* EventStreamUnmarshallerGenerator.kt:130 */
         185  +
            }
         186  +
            /* EventStreamUnmarshallerGenerator.kt:133 */
  175    187   
            "exception" => {
  176         -
                if response_headers.smithy_type.as_str() == "masterball_unsuccessful" {
         188  +
                /* EventStreamUnmarshallerGenerator.kt:356 */
         189  +
                if response_headers.smithy_type.as_str() ==
         190  +
                /* EventStreamUnmarshallerGenerator.kt:358 */"masterball_unsuccessful"
         191  +
                {
         192  +
                    /* EventStreamUnmarshallerGenerator.kt:405 */
  177    193   
                    let mut builder =
  178    194   
                        crate::error::master_ball_unsuccessful_internal::Builder::default();
         195  +
                    /* EventStreamUnmarshallerGenerator.kt:407 */
  179    196   
                    builder = crate::protocol_serde::shape_master_ball_unsuccessful::de_master_ball_unsuccessful_json_err(&message.payload()[..], builder)
  180    197   
                                                            .map_err(|err| {
  181    198   
                                                                ::aws_smithy_eventstream::error::Error::unmarshalling(format!("failed to unmarshall masterball_unsuccessful: {}", err))
  182    199   
                                                            })?;
         200  +
                    /* EventStreamUnmarshallerGenerator.kt:418 */
  183    201   
                    return Ok(::aws_smithy_eventstream::frame::UnmarshalledMessage::Error(
  184    202   
                        crate::error::AttemptCapturingPokemonEventError::MasterBallUnsuccessful(
  185    203   
                            builder.build(),
  186    204   
                        ),
  187    205   
                    ));
         206  +
                    /* EventStreamUnmarshallerGenerator.kt:358 */
  188    207   
                }
         208  +
                /* EventStreamUnmarshallerGenerator.kt:444 */
  189    209   
                return Err(aws_smithy_eventstream::error::Error::unmarshalling(
  190    210   
                    format!(
  191    211   
                        "unrecognized exception: {}",
  192    212   
                        response_headers.smithy_type.as_str()
  193    213   
                    ),
  194    214   
                ));
         215  +
                /* EventStreamUnmarshallerGenerator.kt:133 */
  195    216   
            }
         217  +
            /* EventStreamUnmarshallerGenerator.kt:136 */
  196    218   
            value => {
         219  +
                /* EventStreamUnmarshallerGenerator.kt:137 */
  197    220   
                return Err(::aws_smithy_eventstream::error::Error::unmarshalling(
  198    221   
                    format!("unrecognized :message-type: {}", value),
  199    222   
                ));
         223  +
                /* EventStreamUnmarshallerGenerator.kt:136 */
         224  +
            } /* EventStreamUnmarshallerGenerator.kt:129 */
  200    225   
        }
         226  +
        /* EventStreamUnmarshallerGenerator.kt:119 */
  201    227   
    }
  202         -
    }
         228  +
    /* EventStreamUnmarshallerGenerator.kt:112 */
  203    229   
}

tmp-codegen-diff/codegen-server-test-python/pokemon-service-server-sdk/rust-server-codegen-python/src/input.rs

@@ -1,1 +1054,1593 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* RustType.kt:516 */
    2      3   
#[::pyo3::pyclass]
           4  +
/* PythonServerStructureGenerator.kt:63 */
    3      5   
/// :param user str:
    4      6   
/// :param passcode str:
    5      7   
/// :rtype None:
    6         -
/// A request to access Pokémon storage.
           8  +
/// /* StructureGenerator.kt:197 */A request to access Pokémon storage.
           9  +
/* RustType.kt:516 */
    7     10   
#[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::hash::Hash)]
    8         -
pub struct GetStorageInput {
          11  +
pub /* StructureGenerator.kt:201 */ struct GetStorageInput {
          12  +
    /* RustType.kt:516 */
    9     13   
    #[pyo3(get, set)]
          14  +
    /* PythonServerStructureGenerator.kt:80 */
   10     15   
    /// :type str:
          16  +
    /* StructureGenerator.kt:231 */
   11     17   
    #[allow(missing_docs)] // documentation missing in model
   12     18   
    pub user: ::std::string::String,
          19  +
    /* RustType.kt:516 */
   13     20   
    #[pyo3(get, set)]
          21  +
    /* PythonServerStructureGenerator.kt:80 */
   14     22   
    /// :type str:
          23  +
    /* StructureGenerator.kt:231 */
   15     24   
    #[allow(missing_docs)] // documentation missing in model
   16     25   
    pub passcode: ::std::string::String,
          26  +
    /* StructureGenerator.kt:201 */
   17     27   
}
          28  +
/* StructureGenerator.kt:135 */
   18     29   
impl GetStorageInput {
          30  +
    /* StructureGenerator.kt:231 */
   19     31   
    #[allow(missing_docs)] // documentation missing in model
          32  +
                           /* StructureGenerator.kt:166 */
   20     33   
    pub fn user(&self) -> &str {
          34  +
        /* StructureGenerator.kt:171 */
   21     35   
        use std::ops::Deref;
   22     36   
        self.user.deref()
          37  +
        /* StructureGenerator.kt:166 */
   23     38   
    }
          39  +
    /* StructureGenerator.kt:231 */
   24     40   
    #[allow(missing_docs)] // documentation missing in model
          41  +
                           /* StructureGenerator.kt:166 */
   25     42   
    pub fn passcode(&self) -> &str {
          43  +
        /* StructureGenerator.kt:171 */
   26     44   
        use std::ops::Deref;
   27     45   
        self.passcode.deref()
          46  +
        /* StructureGenerator.kt:166 */
   28     47   
    }
          48  +
    /* StructureGenerator.kt:135 */
   29     49   
}
          50  +
/* StructureGenerator.kt:101 */
   30     51   
impl ::std::fmt::Debug for GetStorageInput {
          52  +
    /* StructureGenerator.kt:105 */
   31     53   
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
          54  +
        /* StructureGenerator.kt:106 */
   32     55   
        let mut formatter = f.debug_struct("GetStorageInput");
          56  +
        /* StructureGenerator.kt:121 */
   33     57   
        formatter.field("user", &"*** Sensitive Data Redacted ***");
          58  +
        /* StructureGenerator.kt:121 */
   34     59   
        formatter.field("passcode", &"*** Sensitive Data Redacted ***");
          60  +
        /* StructureGenerator.kt:126 */
   35     61   
        formatter.finish()
          62  +
        /* StructureGenerator.kt:105 */
   36     63   
    }
          64  +
    /* StructureGenerator.kt:101 */
   37     65   
}
          66  +
/* RustType.kt:516 */
   38     67   
#[allow(clippy::new_without_default)]
          68  +
/* RustType.kt:516 */
   39     69   
#[allow(clippy::too_many_arguments)]
          70  +
/* RustType.kt:516 */
   40     71   
#[::pyo3::pymethods]
          72  +
/* PythonServerStructureGenerator.kt:88 */
   41     73   
impl GetStorageInput {
   42     74   
    #[new]
   43     75   
    pub fn new(user: ::std::string::String, passcode: ::std::string::String) -> Self {
   44     76   
        Self { user, passcode }
   45     77   
    }
   46     78   
    fn __repr__(&self) -> String {
   47     79   
        format!("{self:?}")
   48     80   
    }
   49     81   
    fn __str__(&self) -> String {
   50     82   
        format!("{self:?}")
   51     83   
    }
   52     84   
}
          85  +
/* PythonServerStructureGenerator.kt:111 */
   53     86   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<GetStorageInput> {
   54     87   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
   55     88   
        ob.extract::<GetStorageInput>().map(Box::new)
   56     89   
    }
   57     90   
}
   58     91   
   59     92   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<GetStorageInput> {
   60     93   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
   61     94   
        (*self).into_py(py)
   62     95   
    }
   63     96   
}
          97  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
   64     98   
impl crate::constrained::Constrained for crate::input::GetStorageInput {
   65     99   
    type Unconstrained = crate::input::get_storage_input_internal::Builder;
   66    100   
}
         101  +
/* ServerCodegenVisitor.kt:370 */
   67    102   
impl GetStorageInput {
   68         -
    /// Creates a new builder-style object to manufacture [`GetStorageInput`](crate::input::GetStorageInput).
         103  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`GetStorageInput`](crate::input::GetStorageInput).
         104  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
   69    105   
    pub fn builder() -> crate::input::get_storage_input::Builder {
         106  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
   70    107   
        crate::input::get_storage_input::Builder::default()
         108  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
   71    109   
    }
         110  +
    /* ServerCodegenVisitor.kt:370 */
   72    111   
}
   73    112   
         113  +
/* RustType.kt:516 */
   74    114   
#[::pyo3::pyclass]
         115  +
/* PythonServerStructureGenerator.kt:63 */
   75    116   
/// :param name str:
   76    117   
/// :rtype None:
         118  +
/* StructureGenerator.kt:197 */
   77    119   
#[allow(missing_docs)] // documentation missing in model
         120  +
/* RustType.kt:516 */
   78    121   
#[derive(
   79    122   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   80    123   
)]
   81         -
pub struct GetPokemonSpeciesInput {
         124  +
pub /* StructureGenerator.kt:201 */ struct GetPokemonSpeciesInput {
         125  +
    /* RustType.kt:516 */
   82    126   
    #[pyo3(get, set)]
         127  +
    /* PythonServerStructureGenerator.kt:80 */
   83    128   
    /// :type str:
         129  +
    /* StructureGenerator.kt:231 */
   84    130   
    #[allow(missing_docs)] // documentation missing in model
   85    131   
    pub name: ::std::string::String,
         132  +
    /* StructureGenerator.kt:201 */
   86    133   
}
         134  +
/* StructureGenerator.kt:135 */
   87    135   
impl GetPokemonSpeciesInput {
         136  +
    /* StructureGenerator.kt:231 */
   88    137   
    #[allow(missing_docs)] // documentation missing in model
         138  +
                           /* StructureGenerator.kt:166 */
   89    139   
    pub fn name(&self) -> &str {
         140  +
        /* StructureGenerator.kt:171 */
   90    141   
        use std::ops::Deref;
   91    142   
        self.name.deref()
         143  +
        /* StructureGenerator.kt:166 */
   92    144   
    }
         145  +
    /* StructureGenerator.kt:135 */
   93    146   
}
         147  +
/* RustType.kt:516 */
   94    148   
#[allow(clippy::new_without_default)]
         149  +
/* RustType.kt:516 */
   95    150   
#[allow(clippy::too_many_arguments)]
         151  +
/* RustType.kt:516 */
   96    152   
#[::pyo3::pymethods]
         153  +
/* PythonServerStructureGenerator.kt:88 */
   97    154   
impl GetPokemonSpeciesInput {
   98    155   
    #[new]
   99    156   
    pub fn new(name: ::std::string::String) -> Self {
  100    157   
        Self { name }
  101    158   
    }
  102    159   
    fn __repr__(&self) -> String {
  103    160   
        format!("{self:?}")
  104    161   
    }
  105    162   
    fn __str__(&self) -> String {
  106    163   
        format!("{self:?}")
  107    164   
    }
  108    165   
}
         166  +
/* PythonServerStructureGenerator.kt:111 */
  109    167   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<GetPokemonSpeciesInput> {
  110    168   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  111    169   
        ob.extract::<GetPokemonSpeciesInput>().map(Box::new)
  112    170   
    }
  113    171   
}
  114    172   
  115    173   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<GetPokemonSpeciesInput> {
  116    174   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  117    175   
        (*self).into_py(py)
  118    176   
    }
  119    177   
}
         178  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  120    179   
impl crate::constrained::Constrained for crate::input::GetPokemonSpeciesInput {
  121    180   
    type Unconstrained = crate::input::get_pokemon_species_input_internal::Builder;
  122    181   
}
         182  +
/* ServerCodegenVisitor.kt:370 */
  123    183   
impl GetPokemonSpeciesInput {
  124         -
    /// Creates a new builder-style object to manufacture [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
         184  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
         185  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  125    186   
    pub fn builder() -> crate::input::get_pokemon_species_input::Builder {
         187  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  126    188   
        crate::input::get_pokemon_species_input::Builder::default()
         189  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  127    190   
    }
         191  +
    /* ServerCodegenVisitor.kt:370 */
  128    192   
}
  129    193   
         194  +
/* RustType.kt:516 */
  130    195   
#[::pyo3::pyclass]
         196  +
/* PythonServerStructureGenerator.kt:63 */
  131    197   
/// :rtype None:
         198  +
/* StructureGenerator.kt:197 */
  132    199   
#[allow(missing_docs)] // documentation missing in model
         200  +
/* RustType.kt:516 */
  133    201   
#[derive(
  134    202   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  135    203   
)]
  136         -
pub struct StreamPokemonRadioInput {}
         204  +
pub /* StructureGenerator.kt:201 */ struct StreamPokemonRadioInput {/* StructureGenerator.kt:201 */}
         205  +
/* RustType.kt:516 */
  137    206   
#[allow(clippy::new_without_default)]
         207  +
/* RustType.kt:516 */
  138    208   
#[allow(clippy::too_many_arguments)]
         209  +
/* RustType.kt:516 */
  139    210   
#[::pyo3::pymethods]
         211  +
/* PythonServerStructureGenerator.kt:88 */
  140    212   
impl StreamPokemonRadioInput {
  141    213   
    #[new]
  142    214   
    pub fn new() -> Self {
  143    215   
        Self {}
  144    216   
    }
  145    217   
    fn __repr__(&self) -> String {
  146    218   
        format!("{self:?}")
  147    219   
    }
  148    220   
    fn __str__(&self) -> String {
  149    221   
        format!("{self:?}")
  150    222   
    }
  151    223   
}
         224  +
/* PythonServerStructureGenerator.kt:111 */
  152    225   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<StreamPokemonRadioInput> {
  153    226   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  154    227   
        ob.extract::<StreamPokemonRadioInput>().map(Box::new)
  155    228   
    }
  156    229   
}
  157    230   
  158    231   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<StreamPokemonRadioInput> {
  159    232   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  160    233   
        (*self).into_py(py)
  161    234   
    }
  162    235   
}
         236  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  163    237   
impl crate::constrained::Constrained for crate::input::StreamPokemonRadioInput {
  164    238   
    type Unconstrained = crate::input::stream_pokemon_radio_input_internal::Builder;
  165    239   
}
         240  +
/* ServerCodegenVisitor.kt:370 */
  166    241   
impl StreamPokemonRadioInput {
  167         -
    /// Creates a new builder-style object to manufacture [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput).
         242  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput).
         243  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  168    244   
    pub fn builder() -> crate::input::stream_pokemon_radio_input::Builder {
         245  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  169    246   
        crate::input::stream_pokemon_radio_input::Builder::default()
         247  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  170    248   
    }
         249  +
    /* ServerCodegenVisitor.kt:370 */
  171    250   
}
  172    251   
         252  +
/* RustType.kt:516 */
  173    253   
#[::pyo3::pyclass]
         254  +
/* PythonServerStructureGenerator.kt:63 */
  174    255   
/// :rtype None:
         256  +
/* StructureGenerator.kt:197 */
  175    257   
#[allow(missing_docs)] // documentation missing in model
         258  +
/* RustType.kt:516 */
  176    259   
#[derive(
  177    260   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  178    261   
)]
  179         -
pub struct CheckHealthInput {}
         262  +
pub /* StructureGenerator.kt:201 */ struct CheckHealthInput {/* StructureGenerator.kt:201 */}
         263  +
/* RustType.kt:516 */
  180    264   
#[allow(clippy::new_without_default)]
         265  +
/* RustType.kt:516 */
  181    266   
#[allow(clippy::too_many_arguments)]
         267  +
/* RustType.kt:516 */
  182    268   
#[::pyo3::pymethods]
         269  +
/* PythonServerStructureGenerator.kt:88 */
  183    270   
impl CheckHealthInput {
  184    271   
    #[new]
  185    272   
    pub fn new() -> Self {
  186    273   
        Self {}
  187    274   
    }
  188    275   
    fn __repr__(&self) -> String {
  189    276   
        format!("{self:?}")
  190    277   
    }
  191    278   
    fn __str__(&self) -> String {
  192    279   
        format!("{self:?}")
  193    280   
    }
  194    281   
}
         282  +
/* PythonServerStructureGenerator.kt:111 */
  195    283   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<CheckHealthInput> {
  196    284   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  197    285   
        ob.extract::<CheckHealthInput>().map(Box::new)
  198    286   
    }
  199    287   
}
  200    288   
  201    289   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<CheckHealthInput> {
  202    290   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  203    291   
        (*self).into_py(py)
  204    292   
    }
  205    293   
}
         294  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  206    295   
impl crate::constrained::Constrained for crate::input::CheckHealthInput {
  207    296   
    type Unconstrained = crate::input::check_health_input_internal::Builder;
  208    297   
}
         298  +
/* ServerCodegenVisitor.kt:370 */
  209    299   
impl CheckHealthInput {
  210         -
    /// Creates a new builder-style object to manufacture [`CheckHealthInput`](crate::input::CheckHealthInput).
         300  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`CheckHealthInput`](crate::input::CheckHealthInput).
         301  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  211    302   
    pub fn builder() -> crate::input::check_health_input::Builder {
         303  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  212    304   
        crate::input::check_health_input::Builder::default()
         305  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  213    306   
    }
         307  +
    /* ServerCodegenVisitor.kt:370 */
  214    308   
}
  215    309   
         310  +
/* RustType.kt:516 */
  216    311   
#[::pyo3::pyclass]
         312  +
/* PythonServerStructureGenerator.kt:63 */
  217    313   
/// :param events typing.AsyncIterator\[pokemon_service_server_sdk.model.AttemptCapturingPokemonEvent\]:
  218    314   
/// :param region str:
  219    315   
/// :rtype None:
         316  +
/* StructureGenerator.kt:197 */
  220    317   
#[allow(missing_docs)] // documentation missing in model
         318  +
/* RustType.kt:516 */
  221    319   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
  222         -
pub struct CapturePokemonInput {
         320  +
pub /* StructureGenerator.kt:201 */ struct CapturePokemonInput {
         321  +
    /* RustType.kt:516 */
  223    322   
    #[pyo3(get, set)]
         323  +
    /* PythonServerStructureGenerator.kt:80 */
  224    324   
    /// :type typing.AsyncIterator\[pokemon_service_server_sdk.model.AttemptCapturingPokemonEvent\]:
         325  +
    /* StructureGenerator.kt:231 */
  225    326   
    #[allow(missing_docs)] // documentation missing in model
  226    327   
    pub events: crate::python_event_stream::CapturePokemonInputEventsReceiver,
         328  +
    /* RustType.kt:516 */
  227    329   
    #[pyo3(get, set)]
         330  +
    /* PythonServerStructureGenerator.kt:80 */
  228    331   
    /// :type str:
         332  +
    /* StructureGenerator.kt:231 */
  229    333   
    #[allow(missing_docs)] // documentation missing in model
  230    334   
    pub region: ::std::string::String,
         335  +
    /* StructureGenerator.kt:201 */
  231    336   
}
         337  +
/* StructureGenerator.kt:135 */
  232    338   
impl CapturePokemonInput {
         339  +
    /* StructureGenerator.kt:231 */
  233    340   
    #[allow(missing_docs)] // documentation missing in model
         341  +
                           /* StructureGenerator.kt:166 */
  234    342   
    pub fn events(&self) -> &crate::python_event_stream::CapturePokemonInputEventsReceiver {
         343  +
        /* StructureGenerator.kt:172 */
  235    344   
        &self.events
         345  +
        /* StructureGenerator.kt:166 */
  236    346   
    }
         347  +
    /* StructureGenerator.kt:231 */
  237    348   
    #[allow(missing_docs)] // documentation missing in model
         349  +
                           /* StructureGenerator.kt:166 */
  238    350   
    pub fn region(&self) -> &str {
         351  +
        /* StructureGenerator.kt:171 */
  239    352   
        use std::ops::Deref;
  240    353   
        self.region.deref()
         354  +
        /* StructureGenerator.kt:166 */
  241    355   
    }
         356  +
    /* StructureGenerator.kt:135 */
  242    357   
}
         358  +
/* RustType.kt:516 */
  243    359   
#[allow(clippy::new_without_default)]
         360  +
/* RustType.kt:516 */
  244    361   
#[allow(clippy::too_many_arguments)]
         362  +
/* RustType.kt:516 */
  245    363   
#[::pyo3::pymethods]
         364  +
/* PythonServerStructureGenerator.kt:88 */
  246    365   
impl CapturePokemonInput {
  247    366   
    #[new]
  248    367   
    pub fn new(
  249    368   
        events: crate::python_event_stream::CapturePokemonInputEventsReceiver,
  250    369   
        region: ::std::string::String,
  251    370   
    ) -> Self {
  252    371   
        Self { events, region }
  253    372   
    }
  254    373   
    fn __repr__(&self) -> String {
  255    374   
        format!("{self:?}")
  256    375   
    }
  257    376   
    fn __str__(&self) -> String {
  258    377   
        format!("{self:?}")
  259    378   
    }
  260    379   
}
         380  +
/* PythonServerStructureGenerator.kt:111 */
  261    381   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<CapturePokemonInput> {
  262    382   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  263    383   
        ob.extract::<CapturePokemonInput>().map(Box::new)
  264    384   
    }
  265    385   
}
  266    386   
  267    387   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<CapturePokemonInput> {
  268    388   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  269    389   
        (*self).into_py(py)
  270    390   
    }
  271    391   
}
         392  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  272    393   
impl crate::constrained::Constrained for crate::input::CapturePokemonInput {
  273    394   
    type Unconstrained = crate::input::capture_pokemon_input_internal::Builder;
  274    395   
}
         396  +
/* ServerCodegenVisitor.kt:370 */
  275    397   
impl CapturePokemonInput {
  276         -
    /// Creates a new builder-style object to manufacture [`CapturePokemonInput`](crate::input::CapturePokemonInput).
         398  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`CapturePokemonInput`](crate::input::CapturePokemonInput).
         399  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  277    400   
    pub fn builder() -> crate::input::capture_pokemon_input::Builder {
         401  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  278    402   
        crate::input::capture_pokemon_input::Builder::default()
         403  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  279    404   
    }
         405  +
    /* ServerCodegenVisitor.kt:370 */
  280    406   
}
  281    407   
         408  +
/* RustType.kt:516 */
  282    409   
#[::pyo3::pyclass]
         410  +
/* PythonServerStructureGenerator.kt:63 */
  283    411   
/// :rtype None:
         412  +
/* StructureGenerator.kt:197 */
  284    413   
#[allow(missing_docs)] // documentation missing in model
         414  +
/* RustType.kt:516 */
  285    415   
#[derive(
  286    416   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  287    417   
)]
  288         -
pub struct DoNothingInput {}
         418  +
pub /* StructureGenerator.kt:201 */ struct DoNothingInput {/* StructureGenerator.kt:201 */}
         419  +
/* RustType.kt:516 */
  289    420   
#[allow(clippy::new_without_default)]
         421  +
/* RustType.kt:516 */
  290    422   
#[allow(clippy::too_many_arguments)]
         423  +
/* RustType.kt:516 */
  291    424   
#[::pyo3::pymethods]
         425  +
/* PythonServerStructureGenerator.kt:88 */
  292    426   
impl DoNothingInput {
  293    427   
    #[new]
  294    428   
    pub fn new() -> Self {
  295    429   
        Self {}
  296    430   
    }
  297    431   
    fn __repr__(&self) -> String {
  298    432   
        format!("{self:?}")
  299    433   
    }
  300    434   
    fn __str__(&self) -> String {
  301    435   
        format!("{self:?}")
  302    436   
    }
  303    437   
}
         438  +
/* PythonServerStructureGenerator.kt:111 */
  304    439   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<DoNothingInput> {
  305    440   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  306    441   
        ob.extract::<DoNothingInput>().map(Box::new)
  307    442   
    }
  308    443   
}
  309    444   
  310    445   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<DoNothingInput> {
  311    446   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  312    447   
        (*self).into_py(py)
  313    448   
    }
  314    449   
}
         450  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  315    451   
impl crate::constrained::Constrained for crate::input::DoNothingInput {
  316    452   
    type Unconstrained = crate::input::do_nothing_input_internal::Builder;
  317    453   
}
         454  +
/* ServerCodegenVisitor.kt:370 */
  318    455   
impl DoNothingInput {
  319         -
    /// Creates a new builder-style object to manufacture [`DoNothingInput`](crate::input::DoNothingInput).
         456  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`DoNothingInput`](crate::input::DoNothingInput).
         457  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  320    458   
    pub fn builder() -> crate::input::do_nothing_input::Builder {
         459  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  321    460   
        crate::input::do_nothing_input::Builder::default()
         461  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  322    462   
    }
         463  +
    /* ServerCodegenVisitor.kt:370 */
  323    464   
}
  324    465   
         466  +
/* RustType.kt:516 */
  325    467   
#[::pyo3::pyclass]
         468  +
/* PythonServerStructureGenerator.kt:63 */
  326    469   
/// :rtype None:
         470  +
/* StructureGenerator.kt:197 */
  327    471   
#[allow(missing_docs)] // documentation missing in model
         472  +
/* RustType.kt:516 */
  328    473   
#[derive(
  329    474   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  330    475   
)]
  331         -
pub struct GetServerStatisticsInput {}
         476  +
pub /* StructureGenerator.kt:201 */ struct GetServerStatisticsInput {/* StructureGenerator.kt:201 */}
         477  +
/* RustType.kt:516 */
  332    478   
#[allow(clippy::new_without_default)]
         479  +
/* RustType.kt:516 */
  333    480   
#[allow(clippy::too_many_arguments)]
         481  +
/* RustType.kt:516 */
  334    482   
#[::pyo3::pymethods]
         483  +
/* PythonServerStructureGenerator.kt:88 */
  335    484   
impl GetServerStatisticsInput {
  336    485   
    #[new]
  337    486   
    pub fn new() -> Self {
  338    487   
        Self {}
  339    488   
    }
  340    489   
    fn __repr__(&self) -> String {
  341    490   
        format!("{self:?}")
  342    491   
    }
  343    492   
    fn __str__(&self) -> String {
  344    493   
        format!("{self:?}")
  345    494   
    }
  346    495   
}
         496  +
/* PythonServerStructureGenerator.kt:111 */
  347    497   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<GetServerStatisticsInput> {
  348    498   
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  349    499   
        ob.extract::<GetServerStatisticsInput>().map(Box::new)
  350    500   
    }
  351    501   
}
  352    502   
  353    503   
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<GetServerStatisticsInput> {
  354    504   
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  355    505   
        (*self).into_py(py)
  356    506   
    }
  357    507   
}
         508  +
/* ServerStructureConstrainedTraitImpl.kt:21 */
  358    509   
impl crate::constrained::Constrained for crate::input::GetServerStatisticsInput {
  359    510   
    type Unconstrained = crate::input::get_server_statistics_input_internal::Builder;
  360    511   
}
         512  +
/* ServerCodegenVisitor.kt:370 */
  361    513   
impl GetServerStatisticsInput {
  362         -
    /// Creates a new builder-style object to manufacture [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
         514  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
         515  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  363    516   
    pub fn builder() -> crate::input::get_server_statistics_input::Builder {
         517  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  364    518   
        crate::input::get_server_statistics_input::Builder::default()
         519  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  365    520   
    }
         521  +
    /* ServerCodegenVisitor.kt:370 */
  366    522   
}
  367         -
/// See [`GetStorageInput`](crate::input::GetStorageInput).
         523  +
/// /* ServerBuilderGenerator.kt:171 */See [`GetStorageInput`](crate::input::GetStorageInput).
  368    524   
pub(crate) mod get_storage_input_internal {
  369    525   
         526  +
    /* RustType.kt:516 */
  370    527   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  371         -
    /// Holds one variant for each of the ways the builder can fail.
         528  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
         529  +
    /* RustType.kt:516 */
  372    530   
    #[non_exhaustive]
         531  +
    /* ServerBuilderConstraintViolations.kt:75 */
  373    532   
    #[allow(clippy::enum_variant_names)]
  374    533   
    pub(crate) enum ConstraintViolation {
  375         -
        /// `user` was not provided but it is required when building `GetStorageInput`.
         534  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`user` was not provided but it is required when building `GetStorageInput`.
         535  +
        /* ServerBuilderConstraintViolations.kt:143 */
  376    536   
        MissingUser,
  377         -
        /// `passcode` was not provided but it is required when building `GetStorageInput`.
         537  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`passcode` was not provided but it is required when building `GetStorageInput`.
         538  +
        /* ServerBuilderConstraintViolations.kt:143 */
  378    539   
        MissingPasscode,
         540  +
        /* ServerBuilderConstraintViolations.kt:75 */
  379    541   
    }
         542  +
    /* ServerBuilderConstraintViolations.kt:117 */
  380    543   
    impl ::std::fmt::Display for ConstraintViolation {
         544  +
        /* ServerBuilderConstraintViolations.kt:118 */
  381    545   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         546  +
            /* ServerBuilderConstraintViolations.kt:119 */
  382    547   
            match self {
  383         -
                ConstraintViolation::MissingUser => write!(f, "`user` was not provided but it is required when building `GetStorageInput`"),
  384         -
                ConstraintViolation::MissingPasscode => write!(f, "`passcode` was not provided but it is required when building `GetStorageInput`"),
  385         -
            }
         548  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingUser => write!(f, "`user` was not provided but it is required when building `GetStorageInput`"),
         549  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingPasscode => write!(f, "`passcode` was not provided but it is required when building `GetStorageInput`"),
         550  +
            /* ServerBuilderConstraintViolations.kt:119 */}
         551  +
            /* ServerBuilderConstraintViolations.kt:118 */
  386    552   
        }
         553  +
        /* ServerBuilderConstraintViolations.kt:117 */
  387    554   
    }
         555  +
    /* ServerBuilderConstraintViolations.kt:84 */
  388    556   
    impl ::std::error::Error for ConstraintViolation {}
         557  +
    /* ServerBuilderConstraintViolations.kt:171 */
  389    558   
    impl ConstraintViolation {
  390    559   
        pub(crate) fn as_validation_exception_field(
  391    560   
            self,
  392    561   
            path: ::std::string::String,
  393    562   
        ) -> crate::model::ValidationExceptionField {
  394    563   
            match self {
  395    564   
            ConstraintViolation::MissingUser => crate::model::ValidationExceptionField {
  396    565   
                                                message: format!("Value at '{}/user' failed to satisfy constraint: Member must not be null", path),
  397    566   
                                                path: path + "/user",
  398    567   
                                            },
  399    568   
            ConstraintViolation::MissingPasscode => crate::model::ValidationExceptionField {
  400    569   
                                                message: format!("Value at '{}/passcode' failed to satisfy constraint: Member must not be null", path),
  401    570   
                                                path: path + "/passcode",
  402    571   
                                            },
  403    572   
        }
  404    573   
        }
  405    574   
    }
         575  +
    /* ServerBuilderGenerator.kt:234 */
  406    576   
    impl ::std::convert::From<ConstraintViolation>
  407    577   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
  408    578   
    {
  409    579   
        fn from(constraint_violation: ConstraintViolation) -> Self {
  410    580   
            let first_validation_exception_field =
  411    581   
                constraint_violation.as_validation_exception_field("".to_owned());
  412    582   
            let validation_exception = crate::error::ValidationException {
  413    583   
                message: format!(
  414    584   
                    "1 validation error detected. {}",
  415    585   
                    &first_validation_exception_field.message
  416    586   
                ),
  417    587   
                field_list: Some(vec![first_validation_exception_field]),
  418    588   
            };
  419    589   
            Self::ConstraintViolation(
  420    590   
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
  421    591   
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
  422    592   
                            )
  423    593   
        }
  424    594   
    }
         595  +
    /* ServerBuilderGenerator.kt:244 */
  425    596   
    impl ::std::convert::From<Builder>
  426    597   
        for crate::constrained::MaybeConstrained<crate::input::GetStorageInput>
  427    598   
    {
  428    599   
        fn from(builder: Builder) -> Self {
  429    600   
            Self::Unconstrained(builder)
  430    601   
        }
  431    602   
    }
         603  +
    /* ServerBuilderGenerator.kt:446 */
  432    604   
    impl ::std::convert::TryFrom<Builder> for crate::input::GetStorageInput {
  433    605   
        type Error = ConstraintViolation;
  434    606   
  435    607   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  436    608   
            builder.build()
  437    609   
        }
  438    610   
    }
  439         -
    /// A builder for [`GetStorageInput`](crate::input::GetStorageInput).
         611  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`GetStorageInput`](crate::input::GetStorageInput).
         612  +
    /* RustType.kt:516 */
  440    613   
    #[derive(::std::clone::Clone, ::std::default::Default)]
         614  +
    /* ServerBuilderGenerator.kt:211 */
  441    615   
    pub(crate) struct Builder {
         616  +
        /* ServerBuilderGenerator.kt:308 */
  442    617   
        pub(crate) user: ::std::option::Option<::std::string::String>,
         618  +
        /* ServerBuilderGenerator.kt:308 */
  443    619   
        pub(crate) passcode: ::std::option::Option<::std::string::String>,
         620  +
        /* ServerBuilderGenerator.kt:211 */
  444    621   
    }
         622  +
    /* ServerBuilderGenerator.kt:215 */
  445    623   
    impl Builder {
         624  +
        /* ServerBuilderGenerator.kt:426 */
  446    625   
        #[allow(missing_docs)] // documentation missing in model
         626  +
                               /* ServerBuilderGenerator.kt:428 */
  447    627   
        pub(crate) fn set_user(
  448    628   
            mut self,
  449    629   
            input: impl ::std::convert::Into<::std::string::String>,
  450    630   
        ) -> Self {
         631  +
            /* ServerBuilderGenerator.kt:429 */
  451    632   
            self.user = Some(input.into());
  452    633   
            self
         634  +
            /* ServerBuilderGenerator.kt:428 */
  453    635   
        }
         636  +
        /* ServerBuilderGenerator.kt:426 */
  454    637   
        #[allow(missing_docs)] // documentation missing in model
         638  +
                               /* ServerBuilderGenerator.kt:428 */
  455    639   
        pub(crate) fn set_passcode(
  456    640   
            mut self,
  457    641   
            input: impl ::std::convert::Into<::std::string::String>,
  458    642   
        ) -> Self {
         643  +
            /* ServerBuilderGenerator.kt:429 */
  459    644   
            self.passcode = Some(input.into());
  460    645   
            self
         646  +
            /* ServerBuilderGenerator.kt:428 */
  461    647   
        }
  462         -
        /// Consumes the builder and constructs a [`GetStorageInput`](crate::input::GetStorageInput).
  463         -
        ///
         648  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`GetStorageInput`](crate::input::GetStorageInput).
         649  +
        /// /* ServerBuilderGenerator.kt:260 */
  464    650   
        /// The builder fails to construct a [`GetStorageInput`](crate::input::GetStorageInput) if a [`ConstraintViolation`] occurs.
  465    651   
        ///
  466         -
        /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
         652  +
        /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
         653  +
        /* ServerBuilderGenerator.kt:271 */
  467    654   
        pub fn build(self) -> Result<crate::input::GetStorageInput, ConstraintViolation> {
  468    655   
            self.build_enforcing_all_constraints()
  469    656   
        }
         657  +
        /* ServerBuilderGenerator.kt:283 */
  470    658   
        fn build_enforcing_all_constraints(
  471    659   
            self,
  472    660   
        ) -> Result<crate::input::GetStorageInput, ConstraintViolation> {
  473         -
            Ok(crate::input::GetStorageInput {
  474         -
                user: self.user.ok_or(ConstraintViolation::MissingUser)?,
  475         -
                passcode: self.passcode.ok_or(ConstraintViolation::MissingPasscode)?,
  476         -
            })
         661  +
            /* ServerBuilderGenerator.kt:287 */
         662  +
            Ok(
         663  +
                /* ServerBuilderGenerator.kt:542 */
         664  +
                crate::input::GetStorageInput {
         665  +
                    /* ServerBuilderGenerator.kt:546 */
         666  +
                    user: self
         667  +
                        .user
         668  +
                        /* ServerBuilderGenerator.kt:569 */
         669  +
                        .ok_or(ConstraintViolation::MissingUser)?,
         670  +
                    /* ServerBuilderGenerator.kt:546 */
         671  +
                    passcode: self
         672  +
                        .passcode
         673  +
                        /* ServerBuilderGenerator.kt:569 */
         674  +
                        .ok_or(ConstraintViolation::MissingPasscode)?,
         675  +
                    /* ServerBuilderGenerator.kt:542 */
         676  +
                }, /* ServerBuilderGenerator.kt:287 */
         677  +
            )
         678  +
            /* ServerBuilderGenerator.kt:283 */
  477    679   
        }
         680  +
        /* ServerBuilderGenerator.kt:215 */
  478    681   
    }
         682  +
    /* ServerBuilderGenerator.kt:474 */
  479    683   
    impl ::std::fmt::Debug for Builder {
         684  +
        /* ServerBuilderGenerator.kt:475 */
  480    685   
        fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         686  +
            /* ServerBuilderGenerator.kt:476 */
  481    687   
            let mut formatter = f.debug_struct("Builder");
         688  +
            /* ServerBuilderGenerator.kt:481 */
  482    689   
            formatter.field("user", &self.user);
         690  +
            /* ServerBuilderGenerator.kt:481 */
  483    691   
            formatter.field("passcode", &self.passcode);
         692  +
            /* ServerBuilderGenerator.kt:485 */
  484    693   
            formatter.finish()
         694  +
            /* ServerBuilderGenerator.kt:475 */
  485    695   
        }
         696  +
        /* ServerBuilderGenerator.kt:474 */
  486    697   
    }
         698  +
         699  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  487    700   
}
  488         -
/// See [`GetStorageInput`](crate::input::GetStorageInput).
         701  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`GetStorageInput`](crate::input::GetStorageInput).
  489    702   
pub mod get_storage_input {
  490    703   
         704  +
    /* RustType.kt:516 */
  491    705   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  492         -
    /// Holds one variant for each of the ways the builder can fail.
  493         -
         706  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
         707  +
    /* ServerBuilderConstraintViolations.kt:75 */
  494    708   
    #[allow(clippy::enum_variant_names)]
  495    709   
    pub enum ConstraintViolation {
  496         -
        /// `user` was not provided but it is required when building `GetStorageInput`.
         710  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`user` was not provided but it is required when building `GetStorageInput`.
         711  +
        /* ServerBuilderConstraintViolations.kt:143 */
  497    712   
        MissingUser,
  498         -
        /// `passcode` was not provided but it is required when building `GetStorageInput`.
         713  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`passcode` was not provided but it is required when building `GetStorageInput`.
         714  +
        /* ServerBuilderConstraintViolations.kt:143 */
  499    715   
        MissingPasscode,
         716  +
        /* ServerBuilderConstraintViolations.kt:75 */
  500    717   
    }
         718  +
    /* ServerBuilderConstraintViolations.kt:117 */
  501    719   
    impl ::std::fmt::Display for ConstraintViolation {
         720  +
        /* ServerBuilderConstraintViolations.kt:118 */
  502    721   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         722  +
            /* ServerBuilderConstraintViolations.kt:119 */
  503    723   
            match self {
  504         -
                ConstraintViolation::MissingUser => write!(f, "`user` was not provided but it is required when building `GetStorageInput`"),
  505         -
                ConstraintViolation::MissingPasscode => write!(f, "`passcode` was not provided but it is required when building `GetStorageInput`"),
  506         -
            }
         724  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingUser => write!(f, "`user` was not provided but it is required when building `GetStorageInput`"),
         725  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingPasscode => write!(f, "`passcode` was not provided but it is required when building `GetStorageInput`"),
         726  +
            /* ServerBuilderConstraintViolations.kt:119 */}
         727  +
            /* ServerBuilderConstraintViolations.kt:118 */
  507    728   
        }
         729  +
        /* ServerBuilderConstraintViolations.kt:117 */
  508    730   
    }
         731  +
    /* ServerBuilderConstraintViolations.kt:84 */
  509    732   
    impl ::std::error::Error for ConstraintViolation {}
         733  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
  510    734   
    impl ::std::convert::TryFrom<Builder> for crate::input::GetStorageInput {
  511    735   
        type Error = ConstraintViolation;
  512    736   
  513    737   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  514    738   
            builder.build()
  515    739   
        }
  516    740   
    }
  517         -
    /// A builder for [`GetStorageInput`](crate::input::GetStorageInput).
         741  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`GetStorageInput`](crate::input::GetStorageInput).
         742  +
    /* RustType.kt:516 */
  518    743   
    #[derive(::std::clone::Clone, ::std::default::Default)]
         744  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  519    745   
    pub struct Builder {
         746  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  520    747   
        pub(crate) user: ::std::option::Option<::std::string::String>,
         748  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  521    749   
        pub(crate) passcode: ::std::option::Option<::std::string::String>,
         750  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  522    751   
    }
         752  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  523    753   
    impl Builder {
         754  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
  524    755   
        #[allow(missing_docs)] // documentation missing in model
         756  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  525    757   
        pub fn user(mut self, input: ::std::string::String) -> Self {
  526         -
            self.user = Some(input);
         758  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         759  +
            self.user =
         760  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
         761  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         762  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
         763  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  527    764   
            self
         765  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  528    766   
        }
         767  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
  529    768   
        #[allow(missing_docs)] // documentation missing in model
         769  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  530    770   
        pub fn passcode(mut self, input: ::std::string::String) -> Self {
  531         -
            self.passcode = Some(input);
         771  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         772  +
            self.passcode =
         773  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
         774  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         775  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
         776  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  532    777   
            self
         778  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  533    779   
        }
  534         -
        /// Consumes the builder and constructs a [`GetStorageInput`](crate::input::GetStorageInput).
  535         -
        ///
         780  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`GetStorageInput`](crate::input::GetStorageInput).
         781  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
  536    782   
        /// The builder fails to construct a [`GetStorageInput`](crate::input::GetStorageInput) if you do not provide a value for all non-`Option`al members.
  537    783   
        ///
         784  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  538    785   
        pub fn build(self) -> Result<crate::input::GetStorageInput, ConstraintViolation> {
  539    786   
            self.build_enforcing_required_and_enum_traits()
  540    787   
        }
         788  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  541    789   
        fn build_enforcing_required_and_enum_traits(
  542    790   
            self,
  543    791   
        ) -> Result<crate::input::GetStorageInput, ConstraintViolation> {
  544         -
            Ok(crate::input::GetStorageInput {
  545         -
                user: self.user.ok_or(ConstraintViolation::MissingUser)?,
  546         -
                passcode: self.passcode.ok_or(ConstraintViolation::MissingPasscode)?,
  547         -
            })
         792  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         793  +
            Ok(
         794  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         795  +
                crate::input::GetStorageInput {
         796  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
         797  +
                    user: self
         798  +
                        .user
         799  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
         800  +
                        .ok_or(ConstraintViolation::MissingUser)?,
         801  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
         802  +
                    passcode: self
         803  +
                        .passcode
         804  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
         805  +
                        .ok_or(ConstraintViolation::MissingPasscode)?,
         806  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         807  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         808  +
            )
         809  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  548    810   
        }
         811  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  549    812   
    }
         813  +
         814  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  550    815   
}
  551         -
/// See [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
         816  +
/// /* ServerBuilderGenerator.kt:171 */See [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
  552    817   
pub(crate) mod get_pokemon_species_input_internal {
  553    818   
         819  +
    /* RustType.kt:516 */
  554    820   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  555         -
    /// Holds one variant for each of the ways the builder can fail.
         821  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
         822  +
    /* RustType.kt:516 */
  556    823   
    #[non_exhaustive]
         824  +
    /* ServerBuilderConstraintViolations.kt:75 */
  557    825   
    #[allow(clippy::enum_variant_names)]
  558    826   
    pub(crate) enum ConstraintViolation {
  559         -
        /// `name` was not provided but it is required when building `GetPokemonSpeciesInput`.
         827  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`name` was not provided but it is required when building `GetPokemonSpeciesInput`.
         828  +
        /* ServerBuilderConstraintViolations.kt:143 */
  560    829   
        MissingName,
         830  +
        /* ServerBuilderConstraintViolations.kt:75 */
  561    831   
    }
         832  +
    /* ServerBuilderConstraintViolations.kt:117 */
  562    833   
    impl ::std::fmt::Display for ConstraintViolation {
         834  +
        /* ServerBuilderConstraintViolations.kt:118 */
  563    835   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         836  +
            /* ServerBuilderConstraintViolations.kt:119 */
  564    837   
            match self {
  565         -
                ConstraintViolation::MissingName => write!(f, "`name` was not provided but it is required when building `GetPokemonSpeciesInput`"),
  566         -
            }
         838  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingName => write!(f, "`name` was not provided but it is required when building `GetPokemonSpeciesInput`"),
         839  +
            /* ServerBuilderConstraintViolations.kt:119 */}
         840  +
            /* ServerBuilderConstraintViolations.kt:118 */
  567    841   
        }
         842  +
        /* ServerBuilderConstraintViolations.kt:117 */
  568    843   
    }
         844  +
    /* ServerBuilderConstraintViolations.kt:84 */
  569    845   
    impl ::std::error::Error for ConstraintViolation {}
         846  +
    /* ServerBuilderConstraintViolations.kt:171 */
  570    847   
    impl ConstraintViolation {
  571    848   
        pub(crate) fn as_validation_exception_field(
  572    849   
            self,
  573    850   
            path: ::std::string::String,
  574    851   
        ) -> crate::model::ValidationExceptionField {
  575    852   
            match self {
  576    853   
                ConstraintViolation::MissingName => crate::model::ValidationExceptionField {
  577    854   
                    message: format!(
  578    855   
                        "Value at '{}/name' failed to satisfy constraint: Member must not be null",
  579    856   
                        path
  580    857   
                    ),
  581    858   
                    path: path + "/name",
  582    859   
                },
  583    860   
            }
  584    861   
        }
  585    862   
    }
         863  +
    /* ServerBuilderGenerator.kt:234 */
  586    864   
    impl ::std::convert::From<ConstraintViolation>
  587    865   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
  588    866   
    {
  589    867   
        fn from(constraint_violation: ConstraintViolation) -> Self {
  590    868   
            let first_validation_exception_field =
  591    869   
                constraint_violation.as_validation_exception_field("".to_owned());
  592    870   
            let validation_exception = crate::error::ValidationException {
  593    871   
                message: format!(
  594    872   
                    "1 validation error detected. {}",
  595    873   
                    &first_validation_exception_field.message
  596    874   
                ),
  597    875   
                field_list: Some(vec![first_validation_exception_field]),
  598    876   
            };
  599    877   
            Self::ConstraintViolation(
  600    878   
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
  601    879   
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
  602    880   
                            )
  603    881   
        }
  604    882   
    }
         883  +
    /* ServerBuilderGenerator.kt:244 */
  605    884   
    impl ::std::convert::From<Builder>
  606    885   
        for crate::constrained::MaybeConstrained<crate::input::GetPokemonSpeciesInput>
  607    886   
    {
  608    887   
        fn from(builder: Builder) -> Self {
  609    888   
            Self::Unconstrained(builder)
  610    889   
        }
  611    890   
    }
         891  +
    /* ServerBuilderGenerator.kt:446 */
  612    892   
    impl ::std::convert::TryFrom<Builder> for crate::input::GetPokemonSpeciesInput {
  613    893   
        type Error = ConstraintViolation;
  614    894   
  615    895   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  616    896   
            builder.build()
  617    897   
        }
  618    898   
    }
  619         -
    /// A builder for [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
         899  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
         900  +
    /* RustType.kt:516 */
  620    901   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         902  +
    /* ServerBuilderGenerator.kt:211 */
  621    903   
    pub(crate) struct Builder {
         904  +
        /* ServerBuilderGenerator.kt:308 */
  622    905   
        pub(crate) name: ::std::option::Option<::std::string::String>,
         906  +
        /* ServerBuilderGenerator.kt:211 */
  623    907   
    }
         908  +
    /* ServerBuilderGenerator.kt:215 */
  624    909   
    impl Builder {
         910  +
        /* ServerBuilderGenerator.kt:426 */
  625    911   
        #[allow(missing_docs)] // documentation missing in model
         912  +
                               /* ServerBuilderGenerator.kt:428 */
  626    913   
        pub(crate) fn set_name(
  627    914   
            mut self,
  628    915   
            input: impl ::std::convert::Into<::std::string::String>,
  629    916   
        ) -> Self {
         917  +
            /* ServerBuilderGenerator.kt:429 */
  630    918   
            self.name = Some(input.into());
  631    919   
            self
         920  +
            /* ServerBuilderGenerator.kt:428 */
  632    921   
        }
  633         -
        /// Consumes the builder and constructs a [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
  634         -
        ///
         922  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
         923  +
        /// /* ServerBuilderGenerator.kt:260 */
  635    924   
        /// The builder fails to construct a [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput) if a [`ConstraintViolation`] occurs.
  636    925   
        ///
         926  +
        /* ServerBuilderGenerator.kt:271 */
  637    927   
        pub fn build(self) -> Result<crate::input::GetPokemonSpeciesInput, ConstraintViolation> {
  638    928   
            self.build_enforcing_all_constraints()
  639    929   
        }
         930  +
        /* ServerBuilderGenerator.kt:283 */
  640    931   
        fn build_enforcing_all_constraints(
  641    932   
            self,
  642    933   
        ) -> Result<crate::input::GetPokemonSpeciesInput, ConstraintViolation> {
  643         -
            Ok(crate::input::GetPokemonSpeciesInput {
  644         -
                name: self.name.ok_or(ConstraintViolation::MissingName)?,
  645         -
            })
         934  +
            /* ServerBuilderGenerator.kt:287 */
         935  +
            Ok(
         936  +
                /* ServerBuilderGenerator.kt:542 */
         937  +
                crate::input::GetPokemonSpeciesInput {
         938  +
                    /* ServerBuilderGenerator.kt:546 */
         939  +
                    name: self
         940  +
                        .name
         941  +
                        /* ServerBuilderGenerator.kt:569 */
         942  +
                        .ok_or(ConstraintViolation::MissingName)?,
         943  +
                    /* ServerBuilderGenerator.kt:542 */
         944  +
                }, /* ServerBuilderGenerator.kt:287 */
         945  +
            )
         946  +
            /* ServerBuilderGenerator.kt:283 */
  646    947   
        }
         948  +
        /* ServerBuilderGenerator.kt:215 */
  647    949   
    }
         950  +
         951  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  648    952   
}
  649         -
/// See [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
         953  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
  650    954   
pub mod get_pokemon_species_input {
  651    955   
         956  +
    /* RustType.kt:516 */
  652    957   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  653         -
    /// Holds one variant for each of the ways the builder can fail.
  654         -
         958  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
         959  +
    /* ServerBuilderConstraintViolations.kt:75 */
  655    960   
    #[allow(clippy::enum_variant_names)]
  656    961   
    pub enum ConstraintViolation {
  657         -
        /// `name` was not provided but it is required when building `GetPokemonSpeciesInput`.
         962  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`name` was not provided but it is required when building `GetPokemonSpeciesInput`.
         963  +
        /* ServerBuilderConstraintViolations.kt:143 */
  658    964   
        MissingName,
         965  +
        /* ServerBuilderConstraintViolations.kt:75 */
  659    966   
    }
         967  +
    /* ServerBuilderConstraintViolations.kt:117 */
  660    968   
    impl ::std::fmt::Display for ConstraintViolation {
         969  +
        /* ServerBuilderConstraintViolations.kt:118 */
  661    970   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         971  +
            /* ServerBuilderConstraintViolations.kt:119 */
  662    972   
            match self {
  663         -
                ConstraintViolation::MissingName => write!(f, "`name` was not provided but it is required when building `GetPokemonSpeciesInput`"),
  664         -
            }
         973  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingName => write!(f, "`name` was not provided but it is required when building `GetPokemonSpeciesInput`"),
         974  +
            /* ServerBuilderConstraintViolations.kt:119 */}
         975  +
            /* ServerBuilderConstraintViolations.kt:118 */
  665    976   
        }
         977  +
        /* ServerBuilderConstraintViolations.kt:117 */
  666    978   
    }
         979  +
    /* ServerBuilderConstraintViolations.kt:84 */
  667    980   
    impl ::std::error::Error for ConstraintViolation {}
         981  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
  668    982   
    impl ::std::convert::TryFrom<Builder> for crate::input::GetPokemonSpeciesInput {
  669    983   
        type Error = ConstraintViolation;
  670    984   
  671    985   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  672    986   
            builder.build()
  673    987   
        }
  674    988   
    }
  675         -
    /// A builder for [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
         989  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
         990  +
    /* RustType.kt:516 */
  676    991   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         992  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  677    993   
    pub struct Builder {
         994  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  678    995   
        pub(crate) name: ::std::option::Option<::std::string::String>,
         996  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  679    997   
    }
         998  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  680    999   
    impl Builder {
        1000  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
  681   1001   
        #[allow(missing_docs)] // documentation missing in model
        1002  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  682   1003   
        pub fn name(mut self, input: ::std::string::String) -> Self {
  683         -
            self.name = Some(input);
        1004  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1005  +
            self.name =
        1006  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        1007  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1008  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        1009  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  684   1010   
            self
        1011  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  685   1012   
        }
  686         -
        /// Consumes the builder and constructs a [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
  687         -
        ///
        1013  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
        1014  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
  688   1015   
        /// The builder fails to construct a [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput) if you do not provide a value for all non-`Option`al members.
  689   1016   
        ///
        1017  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  690   1018   
        pub fn build(self) -> Result<crate::input::GetPokemonSpeciesInput, ConstraintViolation> {
  691   1019   
            self.build_enforcing_required_and_enum_traits()
  692   1020   
        }
        1021  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  693   1022   
        fn build_enforcing_required_and_enum_traits(
  694   1023   
            self,
  695   1024   
        ) -> Result<crate::input::GetPokemonSpeciesInput, ConstraintViolation> {
  696         -
            Ok(crate::input::GetPokemonSpeciesInput {
  697         -
                name: self.name.ok_or(ConstraintViolation::MissingName)?,
  698         -
            })
        1025  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        1026  +
            Ok(
        1027  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        1028  +
                crate::input::GetPokemonSpeciesInput {
        1029  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        1030  +
                    name: self
        1031  +
                        .name
        1032  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        1033  +
                        .ok_or(ConstraintViolation::MissingName)?,
        1034  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        1035  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        1036  +
            )
        1037  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  699   1038   
        }
        1039  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  700   1040   
    }
        1041  +
        1042  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  701   1043   
}
  702         -
/// See [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput).
        1044  +
/// /* ServerBuilderGenerator.kt:171 */See [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput).
  703   1045   
pub(crate) mod stream_pokemon_radio_input_internal {
  704   1046   
        1047  +
    /* ServerBuilderGenerator.kt:461 */
  705   1048   
    impl ::std::convert::From<Builder> for crate::input::StreamPokemonRadioInput {
  706   1049   
        fn from(builder: Builder) -> Self {
  707   1050   
            builder.build()
  708   1051   
        }
  709   1052   
    }
  710         -
    /// A builder for [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput).
        1053  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput).
        1054  +
    /* RustType.kt:516 */
  711   1055   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  712         -
    pub(crate) struct Builder {}
        1056  +
    /* ServerBuilderGenerator.kt:211 */
        1057  +
    pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
        1058  +
    /* ServerBuilderGenerator.kt:215 */
  713   1059   
    impl Builder {
  714         -
        /// Consumes the builder and constructs a [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput).
        1060  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput).
        1061  +
        /* ServerBuilderGenerator.kt:271 */
  715   1062   
        pub fn build(self) -> crate::input::StreamPokemonRadioInput {
  716   1063   
            self.build_enforcing_all_constraints()
  717   1064   
        }
        1065  +
        /* ServerBuilderGenerator.kt:283 */
  718   1066   
        fn build_enforcing_all_constraints(self) -> crate::input::StreamPokemonRadioInput {
  719         -
            crate::input::StreamPokemonRadioInput {}
        1067  +
            /* ServerBuilderGenerator.kt:542 */
        1068  +
            crate::input::StreamPokemonRadioInput {
        1069  +
            /* ServerBuilderGenerator.kt:542 */}
        1070  +
            /* ServerBuilderGenerator.kt:283 */
  720   1071   
        }
        1072  +
        /* ServerBuilderGenerator.kt:215 */
  721   1073   
    }
        1074  +
        1075  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  722   1076   
}
  723         -
/// See [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput).
        1077  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput).
  724   1078   
pub mod stream_pokemon_radio_input {
  725   1079   
        1080  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
  726   1081   
    impl ::std::convert::From<Builder> for crate::input::StreamPokemonRadioInput {
  727   1082   
        fn from(builder: Builder) -> Self {
  728   1083   
            builder.build()
  729   1084   
        }
  730   1085   
    }
  731         -
    /// A builder for [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput).
        1086  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput).
        1087  +
    /* RustType.kt:516 */
  732   1088   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  733         -
    pub struct Builder {}
        1089  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
        1090  +
    pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
        1091  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  734   1092   
    impl Builder {
  735         -
        /// Consumes the builder and constructs a [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput).
        1093  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput).
        1094  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  736   1095   
        pub fn build(self) -> crate::input::StreamPokemonRadioInput {
  737   1096   
            self.build_enforcing_required_and_enum_traits()
  738   1097   
        }
        1098  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  739   1099   
        fn build_enforcing_required_and_enum_traits(self) -> crate::input::StreamPokemonRadioInput {
  740         -
            crate::input::StreamPokemonRadioInput {}
        1100  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        1101  +
            crate::input::StreamPokemonRadioInput {
        1102  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
        1103  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  741   1104   
        }
        1105  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  742   1106   
    }
        1107  +
        1108  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  743   1109   
}
  744         -
/// See [`CheckHealthInput`](crate::input::CheckHealthInput).
        1110  +
/// /* ServerBuilderGenerator.kt:171 */See [`CheckHealthInput`](crate::input::CheckHealthInput).
  745   1111   
pub(crate) mod check_health_input_internal {
  746   1112   
        1113  +
    /* ServerBuilderGenerator.kt:461 */
  747   1114   
    impl ::std::convert::From<Builder> for crate::input::CheckHealthInput {
  748   1115   
        fn from(builder: Builder) -> Self {
  749   1116   
            builder.build()
  750   1117   
        }
  751   1118   
    }
  752         -
    /// A builder for [`CheckHealthInput`](crate::input::CheckHealthInput).
        1119  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`CheckHealthInput`](crate::input::CheckHealthInput).
        1120  +
    /* RustType.kt:516 */
  753   1121   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  754         -
    pub(crate) struct Builder {}
        1122  +
    /* ServerBuilderGenerator.kt:211 */
        1123  +
    pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
        1124  +
    /* ServerBuilderGenerator.kt:215 */
  755   1125   
    impl Builder {
  756         -
        /// Consumes the builder and constructs a [`CheckHealthInput`](crate::input::CheckHealthInput).
        1126  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`CheckHealthInput`](crate::input::CheckHealthInput).
        1127  +
        /* ServerBuilderGenerator.kt:271 */
  757   1128   
        pub fn build(self) -> crate::input::CheckHealthInput {
  758   1129   
            self.build_enforcing_all_constraints()
  759   1130   
        }
        1131  +
        /* ServerBuilderGenerator.kt:283 */
  760   1132   
        fn build_enforcing_all_constraints(self) -> crate::input::CheckHealthInput {
  761         -
            crate::input::CheckHealthInput {}
        1133  +
            /* ServerBuilderGenerator.kt:542 */
        1134  +
            crate::input::CheckHealthInput {
        1135  +
            /* ServerBuilderGenerator.kt:542 */}
        1136  +
            /* ServerBuilderGenerator.kt:283 */
  762   1137   
        }
        1138  +
        /* ServerBuilderGenerator.kt:215 */
  763   1139   
    }
        1140  +
        1141  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  764   1142   
}
  765         -
/// See [`CheckHealthInput`](crate::input::CheckHealthInput).
        1143  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`CheckHealthInput`](crate::input::CheckHealthInput).
  766   1144   
pub mod check_health_input {
  767   1145   
        1146  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
  768   1147   
    impl ::std::convert::From<Builder> for crate::input::CheckHealthInput {
  769   1148   
        fn from(builder: Builder) -> Self {
  770   1149   
            builder.build()
  771   1150   
        }
  772   1151   
    }
  773         -
    /// A builder for [`CheckHealthInput`](crate::input::CheckHealthInput).
        1152  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`CheckHealthInput`](crate::input::CheckHealthInput).
        1153  +
    /* RustType.kt:516 */
  774   1154   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  775         -
    pub struct Builder {}
        1155  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
        1156  +
    pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
        1157  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  776   1158   
    impl Builder {
  777         -
        /// Consumes the builder and constructs a [`CheckHealthInput`](crate::input::CheckHealthInput).
        1159  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`CheckHealthInput`](crate::input::CheckHealthInput).
        1160  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  778   1161   
        pub fn build(self) -> crate::input::CheckHealthInput {
  779   1162   
            self.build_enforcing_required_and_enum_traits()
  780   1163   
        }
        1164  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  781   1165   
        fn build_enforcing_required_and_enum_traits(self) -> crate::input::CheckHealthInput {
  782         -
            crate::input::CheckHealthInput {}
        1166  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        1167  +
            crate::input::CheckHealthInput {
        1168  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
        1169  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  783   1170   
        }
        1171  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  784   1172   
    }
        1173  +
        1174  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  785   1175   
}
  786         -
/// See [`CapturePokemonInput`](crate::input::CapturePokemonInput).
        1176  +
/// /* ServerBuilderGenerator.kt:171 */See [`CapturePokemonInput`](crate::input::CapturePokemonInput).
  787   1177   
pub(crate) mod capture_pokemon_input_internal {
  788   1178   
        1179  +
    /* RustType.kt:516 */
  789   1180   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  790         -
    /// Holds one variant for each of the ways the builder can fail.
        1181  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        1182  +
    /* RustType.kt:516 */
  791   1183   
    #[non_exhaustive]
        1184  +
    /* ServerBuilderConstraintViolations.kt:75 */
  792   1185   
    #[allow(clippy::enum_variant_names)]
  793   1186   
    pub(crate) enum ConstraintViolation {
  794         -
        /// `events` was not provided but it is required when building `CapturePokemonInput`.
        1187  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`events` was not provided but it is required when building `CapturePokemonInput`.
        1188  +
        /* ServerBuilderConstraintViolations.kt:143 */
  795   1189   
        MissingEvents,
  796         -
        /// `region` was not provided but it is required when building `CapturePokemonInput`.
        1190  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`region` was not provided but it is required when building `CapturePokemonInput`.
        1191  +
        /* ServerBuilderConstraintViolations.kt:143 */
  797   1192   
        MissingRegion,
        1193  +
        /* ServerBuilderConstraintViolations.kt:75 */
  798   1194   
    }
        1195  +
    /* ServerBuilderConstraintViolations.kt:117 */
  799   1196   
    impl ::std::fmt::Display for ConstraintViolation {
        1197  +
        /* ServerBuilderConstraintViolations.kt:118 */
  800   1198   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1199  +
            /* ServerBuilderConstraintViolations.kt:119 */
  801   1200   
            match self {
  802         -
                ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `CapturePokemonInput`"),
  803         -
                ConstraintViolation::MissingRegion => write!(f, "`region` was not provided but it is required when building `CapturePokemonInput`"),
  804         -
            }
        1201  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `CapturePokemonInput`"),
        1202  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingRegion => write!(f, "`region` was not provided but it is required when building `CapturePokemonInput`"),
        1203  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        1204  +
            /* ServerBuilderConstraintViolations.kt:118 */
  805   1205   
        }
        1206  +
        /* ServerBuilderConstraintViolations.kt:117 */
  806   1207   
    }
        1208  +
    /* ServerBuilderConstraintViolations.kt:84 */
  807   1209   
    impl ::std::error::Error for ConstraintViolation {}
        1210  +
    /* ServerBuilderConstraintViolations.kt:171 */
  808   1211   
    impl ConstraintViolation {
  809   1212   
        pub(crate) fn as_validation_exception_field(
  810   1213   
            self,
  811   1214   
            path: ::std::string::String,
  812   1215   
        ) -> crate::model::ValidationExceptionField {
  813   1216   
            match self {
  814   1217   
            ConstraintViolation::MissingEvents => crate::model::ValidationExceptionField {
  815   1218   
                                                message: format!("Value at '{}/events' failed to satisfy constraint: Member must not be null", path),
  816   1219   
                                                path: path + "/events",
  817   1220   
                                            },
  818   1221   
            ConstraintViolation::MissingRegion => crate::model::ValidationExceptionField {
  819   1222   
                                                message: format!("Value at '{}/region' failed to satisfy constraint: Member must not be null", path),
  820   1223   
                                                path: path + "/region",
  821   1224   
                                            },
  822   1225   
        }
  823   1226   
        }
  824   1227   
    }
        1228  +
    /* ServerBuilderGenerator.kt:234 */
  825   1229   
    impl ::std::convert::From<ConstraintViolation>
  826   1230   
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
  827   1231   
    {
  828   1232   
        fn from(constraint_violation: ConstraintViolation) -> Self {
  829   1233   
            let first_validation_exception_field =
  830   1234   
                constraint_violation.as_validation_exception_field("".to_owned());
  831   1235   
            let validation_exception = crate::error::ValidationException {
  832   1236   
                message: format!(
  833   1237   
                    "1 validation error detected. {}",
  834   1238   
                    &first_validation_exception_field.message
  835   1239   
                ),
  836   1240   
                field_list: Some(vec![first_validation_exception_field]),
  837   1241   
            };
  838   1242   
            Self::ConstraintViolation(
  839   1243   
                                crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
  840   1244   
                                    .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
  841   1245   
                            )
  842   1246   
        }
  843   1247   
    }
        1248  +
    /* ServerBuilderGenerator.kt:244 */
  844   1249   
    impl ::std::convert::From<Builder>
  845   1250   
        for crate::constrained::MaybeConstrained<crate::input::CapturePokemonInput>
  846   1251   
    {
  847   1252   
        fn from(builder: Builder) -> Self {
  848   1253   
            Self::Unconstrained(builder)
  849   1254   
        }
  850   1255   
    }
        1256  +
    /* ServerBuilderGenerator.kt:446 */
  851   1257   
    impl ::std::convert::TryFrom<Builder> for crate::input::CapturePokemonInput {
  852   1258   
        type Error = ConstraintViolation;
  853   1259   
  854   1260   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  855   1261   
            builder.build()
  856   1262   
        }
  857   1263   
    }
  858         -
    /// A builder for [`CapturePokemonInput`](crate::input::CapturePokemonInput).
        1264  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`CapturePokemonInput`](crate::input::CapturePokemonInput).
        1265  +
    /* RustType.kt:516 */
  859   1266   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1267  +
    /* ServerBuilderGenerator.kt:211 */
  860   1268   
    pub(crate) struct Builder {
        1269  +
        /* ServerBuilderGenerator.kt:308 */
  861   1270   
        pub(crate) events:
  862   1271   
            ::std::option::Option<crate::python_event_stream::CapturePokemonInputEventsReceiver>,
        1272  +
        /* ServerBuilderGenerator.kt:308 */
  863   1273   
        pub(crate) region: ::std::option::Option<::std::string::String>,
        1274  +
        /* ServerBuilderGenerator.kt:211 */
  864   1275   
    }
        1276  +
    /* ServerBuilderGenerator.kt:215 */
  865   1277   
    impl Builder {
        1278  +
        /* ServerBuilderGenerator.kt:426 */
  866   1279   
        #[allow(missing_docs)] // documentation missing in model
        1280  +
                               /* ServerBuilderGenerator.kt:428 */
  867   1281   
        pub(crate) fn set_events(
  868   1282   
            mut self,
  869   1283   
            input: impl ::std::convert::Into<
  870   1284   
                crate::python_event_stream::CapturePokemonInputEventsReceiver,
  871   1285   
            >,
  872   1286   
        ) -> Self {
        1287  +
            /* ServerBuilderGenerator.kt:429 */
  873   1288   
            self.events = Some(input.into());
  874   1289   
            self
        1290  +
            /* ServerBuilderGenerator.kt:428 */
  875   1291   
        }
        1292  +
        /* ServerBuilderGenerator.kt:426 */
  876   1293   
        #[allow(missing_docs)] // documentation missing in model
        1294  +
                               /* ServerBuilderGenerator.kt:428 */
  877   1295   
        pub(crate) fn set_region(
  878   1296   
            mut self,
  879   1297   
            input: impl ::std::convert::Into<::std::string::String>,
  880   1298   
        ) -> Self {
        1299  +
            /* ServerBuilderGenerator.kt:429 */
  881   1300   
            self.region = Some(input.into());
  882   1301   
            self
        1302  +
            /* ServerBuilderGenerator.kt:428 */
  883   1303   
        }
  884         -
        /// Consumes the builder and constructs a [`CapturePokemonInput`](crate::input::CapturePokemonInput).
  885         -
        ///
        1304  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`CapturePokemonInput`](crate::input::CapturePokemonInput).
        1305  +
        /// /* ServerBuilderGenerator.kt:260 */
  886   1306   
        /// The builder fails to construct a [`CapturePokemonInput`](crate::input::CapturePokemonInput) if a [`ConstraintViolation`] occurs.
  887   1307   
        ///
  888         -
        /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        1308  +
        /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
        1309  +
        /* ServerBuilderGenerator.kt:271 */
  889   1310   
        pub fn build(self) -> Result<crate::input::CapturePokemonInput, ConstraintViolation> {
  890   1311   
            self.build_enforcing_all_constraints()
  891   1312   
        }
        1313  +
        /* ServerBuilderGenerator.kt:283 */
  892   1314   
        fn build_enforcing_all_constraints(
  893   1315   
            self,
  894   1316   
        ) -> Result<crate::input::CapturePokemonInput, ConstraintViolation> {
  895         -
            Ok(crate::input::CapturePokemonInput {
  896         -
                events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
  897         -
                region: self.region.ok_or(ConstraintViolation::MissingRegion)?,
  898         -
            })
        1317  +
            /* ServerBuilderGenerator.kt:287 */
        1318  +
            Ok(
        1319  +
                /* ServerBuilderGenerator.kt:542 */
        1320  +
                crate::input::CapturePokemonInput {
        1321  +
                    /* ServerBuilderGenerator.kt:546 */
        1322  +
                    events: self
        1323  +
                        .events
        1324  +
                        /* ServerBuilderGenerator.kt:569 */
        1325  +
                        .ok_or(ConstraintViolation::MissingEvents)?,
        1326  +
                    /* ServerBuilderGenerator.kt:546 */
        1327  +
                    region: self
        1328  +
                        .region
        1329  +
                        /* ServerBuilderGenerator.kt:569 */
        1330  +
                        .ok_or(ConstraintViolation::MissingRegion)?,
        1331  +
                    /* ServerBuilderGenerator.kt:542 */
        1332  +
                }, /* ServerBuilderGenerator.kt:287 */
        1333  +
            )
        1334  +
            /* ServerBuilderGenerator.kt:283 */
  899   1335   
        }
        1336  +
        /* ServerBuilderGenerator.kt:215 */
  900   1337   
    }
        1338  +
        1339  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  901   1340   
}
  902         -
/// See [`CapturePokemonInput`](crate::input::CapturePokemonInput).
        1341  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`CapturePokemonInput`](crate::input::CapturePokemonInput).
  903   1342   
pub mod capture_pokemon_input {
  904   1343   
        1344  +
    /* RustType.kt:516 */
  905   1345   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  906         -
    /// Holds one variant for each of the ways the builder can fail.
  907         -
        1346  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        1347  +
    /* ServerBuilderConstraintViolations.kt:75 */
  908   1348   
    #[allow(clippy::enum_variant_names)]
  909   1349   
    pub enum ConstraintViolation {
  910         -
        /// `events` was not provided but it is required when building `CapturePokemonInput`.
        1350  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`events` was not provided but it is required when building `CapturePokemonInput`.
        1351  +
        /* ServerBuilderConstraintViolations.kt:143 */
  911   1352   
        MissingEvents,
  912         -
        /// `region` was not provided but it is required when building `CapturePokemonInput`.
        1353  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`region` was not provided but it is required when building `CapturePokemonInput`.
        1354  +
        /* ServerBuilderConstraintViolations.kt:143 */
  913   1355   
        MissingRegion,
        1356  +
        /* ServerBuilderConstraintViolations.kt:75 */
  914   1357   
    }
        1358  +
    /* ServerBuilderConstraintViolations.kt:117 */
  915   1359   
    impl ::std::fmt::Display for ConstraintViolation {
        1360  +
        /* ServerBuilderConstraintViolations.kt:118 */
  916   1361   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1362  +
            /* ServerBuilderConstraintViolations.kt:119 */
  917   1363   
            match self {
  918         -
                ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `CapturePokemonInput`"),
  919         -
                ConstraintViolation::MissingRegion => write!(f, "`region` was not provided but it is required when building `CapturePokemonInput`"),
  920         -
            }
        1364  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `CapturePokemonInput`"),
        1365  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingRegion => write!(f, "`region` was not provided but it is required when building `CapturePokemonInput`"),
        1366  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        1367  +
            /* ServerBuilderConstraintViolations.kt:118 */
  921   1368   
        }
        1369  +
        /* ServerBuilderConstraintViolations.kt:117 */
  922   1370   
    }
        1371  +
    /* ServerBuilderConstraintViolations.kt:84 */
  923   1372   
    impl ::std::error::Error for ConstraintViolation {}
        1373  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
  924   1374   
    impl ::std::convert::TryFrom<Builder> for crate::input::CapturePokemonInput {
  925   1375   
        type Error = ConstraintViolation;
  926   1376   
  927   1377   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  928   1378   
            builder.build()
  929   1379   
        }
  930   1380   
    }
  931         -
    /// A builder for [`CapturePokemonInput`](crate::input::CapturePokemonInput).
        1381  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`CapturePokemonInput`](crate::input::CapturePokemonInput).
        1382  +
    /* RustType.kt:516 */
  932   1383   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1384  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  933   1385   
    pub struct Builder {
        1386  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  934   1387   
        pub(crate) events:
  935   1388   
            ::std::option::Option<crate::python_event_stream::CapturePokemonInputEventsReceiver>,
        1389  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  936   1390   
        pub(crate) region: ::std::option::Option<::std::string::String>,
        1391  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  937   1392   
    }
        1393  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  938   1394   
    impl Builder {
        1395  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
  939   1396   
        #[allow(missing_docs)] // documentation missing in model
        1397  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  940   1398   
        pub fn events(
  941   1399   
            mut self,
  942   1400   
            input: crate::python_event_stream::CapturePokemonInputEventsReceiver,
  943   1401   
        ) -> Self {
  944         -
            self.events = Some(input);
        1402  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1403  +
            self.events =
        1404  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        1405  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1406  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        1407  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  945   1408   
            self
        1409  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  946   1410   
        }
        1411  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
  947   1412   
        #[allow(missing_docs)] // documentation missing in model
        1413  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  948   1414   
        pub fn region(mut self, input: ::std::string::String) -> Self {
  949         -
            self.region = Some(input);
        1415  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
        1416  +
            self.region =
        1417  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
        1418  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
        1419  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
        1420  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  950   1421   
            self
        1422  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  951   1423   
        }
  952         -
        /// Consumes the builder and constructs a [`CapturePokemonInput`](crate::input::CapturePokemonInput).
  953         -
        ///
        1424  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`CapturePokemonInput`](crate::input::CapturePokemonInput).
        1425  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
  954   1426   
        /// The builder fails to construct a [`CapturePokemonInput`](crate::input::CapturePokemonInput) if you do not provide a value for all non-`Option`al members.
  955   1427   
        ///
        1428  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  956   1429   
        pub fn build(self) -> Result<crate::input::CapturePokemonInput, ConstraintViolation> {
  957   1430   
            self.build_enforcing_required_and_enum_traits()
  958   1431   
        }
        1432  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  959   1433   
        fn build_enforcing_required_and_enum_traits(
  960   1434   
            self,
  961   1435   
        ) -> Result<crate::input::CapturePokemonInput, ConstraintViolation> {
  962         -
            Ok(crate::input::CapturePokemonInput {
  963         -
                events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
  964         -
                region: self.region.ok_or(ConstraintViolation::MissingRegion)?,
  965         -
            })
        1436  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        1437  +
            Ok(
        1438  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        1439  +
                crate::input::CapturePokemonInput {
        1440  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        1441  +
                    events: self
        1442  +
                        .events
        1443  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        1444  +
                        .ok_or(ConstraintViolation::MissingEvents)?,
        1445  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
        1446  +
                    region: self
        1447  +
                        .region
        1448  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
        1449  +
                        .ok_or(ConstraintViolation::MissingRegion)?,
        1450  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        1451  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
        1452  +
            )
        1453  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  966   1454   
        }
        1455  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  967   1456   
    }
        1457  +
        1458  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  968   1459   
}
  969         -
/// See [`DoNothingInput`](crate::input::DoNothingInput).
        1460  +
/// /* ServerBuilderGenerator.kt:171 */See [`DoNothingInput`](crate::input::DoNothingInput).
  970   1461   
pub(crate) mod do_nothing_input_internal {
  971   1462   
        1463  +
    /* ServerBuilderGenerator.kt:461 */
  972   1464   
    impl ::std::convert::From<Builder> for crate::input::DoNothingInput {
  973   1465   
        fn from(builder: Builder) -> Self {
  974   1466   
            builder.build()
  975   1467   
        }
  976   1468   
    }
  977         -
    /// A builder for [`DoNothingInput`](crate::input::DoNothingInput).
        1469  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`DoNothingInput`](crate::input::DoNothingInput).
        1470  +
    /* RustType.kt:516 */
  978   1471   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  979         -
    pub(crate) struct Builder {}
        1472  +
    /* ServerBuilderGenerator.kt:211 */
        1473  +
    pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
        1474  +
    /* ServerBuilderGenerator.kt:215 */
  980   1475   
    impl Builder {
  981         -
        /// Consumes the builder and constructs a [`DoNothingInput`](crate::input::DoNothingInput).
        1476  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`DoNothingInput`](crate::input::DoNothingInput).
        1477  +
        /* ServerBuilderGenerator.kt:271 */
  982   1478   
        pub fn build(self) -> crate::input::DoNothingInput {
  983   1479   
            self.build_enforcing_all_constraints()
  984   1480   
        }
        1481  +
        /* ServerBuilderGenerator.kt:283 */
  985   1482   
        fn build_enforcing_all_constraints(self) -> crate::input::DoNothingInput {
  986         -
            crate::input::DoNothingInput {}
        1483  +
            /* ServerBuilderGenerator.kt:542 */
        1484  +
            crate::input::DoNothingInput {
        1485  +
            /* ServerBuilderGenerator.kt:542 */}
        1486  +
            /* ServerBuilderGenerator.kt:283 */
  987   1487   
        }
        1488  +
        /* ServerBuilderGenerator.kt:215 */
  988   1489   
    }
        1490  +
        1491  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  989   1492   
}
  990         -
/// See [`DoNothingInput`](crate::input::DoNothingInput).
        1493  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`DoNothingInput`](crate::input::DoNothingInput).
  991   1494   
pub mod do_nothing_input {
  992   1495   
        1496  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
  993   1497   
    impl ::std::convert::From<Builder> for crate::input::DoNothingInput {
  994   1498   
        fn from(builder: Builder) -> Self {
  995   1499   
            builder.build()
  996   1500   
        }
  997   1501   
    }
  998         -
    /// A builder for [`DoNothingInput`](crate::input::DoNothingInput).
        1502  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`DoNothingInput`](crate::input::DoNothingInput).
        1503  +
    /* RustType.kt:516 */
  999   1504   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1000         -
    pub struct Builder {}
        1505  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
        1506  +
    pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
        1507  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1001   1508   
    impl Builder {
 1002         -
        /// Consumes the builder and constructs a [`DoNothingInput`](crate::input::DoNothingInput).
        1509  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`DoNothingInput`](crate::input::DoNothingInput).
        1510  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
 1003   1511   
        pub fn build(self) -> crate::input::DoNothingInput {
 1004   1512   
            self.build_enforcing_required_and_enum_traits()
 1005   1513   
        }
        1514  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1006   1515   
        fn build_enforcing_required_and_enum_traits(self) -> crate::input::DoNothingInput {
 1007         -
            crate::input::DoNothingInput {}
        1516  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        1517  +
            crate::input::DoNothingInput {
        1518  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
        1519  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1008   1520   
        }
        1521  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1009   1522   
    }
        1523  +
        1524  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1010   1525   
}
 1011         -
/// See [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
        1526  +
/// /* ServerBuilderGenerator.kt:171 */See [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
 1012   1527   
pub(crate) mod get_server_statistics_input_internal {
 1013   1528   
        1529  +
    /* ServerBuilderGenerator.kt:461 */
 1014   1530   
    impl ::std::convert::From<Builder> for crate::input::GetServerStatisticsInput {
 1015   1531   
        fn from(builder: Builder) -> Self {
 1016   1532   
            builder.build()
 1017   1533   
        }
 1018   1534   
    }
 1019         -
    /// A builder for [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
        1535  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
        1536  +
    /* RustType.kt:516 */
 1020   1537   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1021         -
    pub(crate) struct Builder {}
        1538  +
    /* ServerBuilderGenerator.kt:211 */
        1539  +
    pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
        1540  +
    /* ServerBuilderGenerator.kt:215 */
 1022   1541   
    impl Builder {
 1023         -
        /// Consumes the builder and constructs a [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
        1542  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
        1543  +
        /* ServerBuilderGenerator.kt:271 */
 1024   1544   
        pub fn build(self) -> crate::input::GetServerStatisticsInput {
 1025   1545   
            self.build_enforcing_all_constraints()
 1026   1546   
        }
        1547  +
        /* ServerBuilderGenerator.kt:283 */
 1027   1548   
        fn build_enforcing_all_constraints(self) -> crate::input::GetServerStatisticsInput {
 1028         -
            crate::input::GetServerStatisticsInput {}
        1549  +
            /* ServerBuilderGenerator.kt:542 */
        1550  +
            crate::input::GetServerStatisticsInput {
        1551  +
            /* ServerBuilderGenerator.kt:542 */}
        1552  +
            /* ServerBuilderGenerator.kt:283 */
 1029   1553   
        }
        1554  +
        /* ServerBuilderGenerator.kt:215 */
 1030   1555   
    }
        1556  +
        1557  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1031   1558   
}
 1032         -
/// See [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
        1559  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
 1033   1560   
pub mod get_server_statistics_input {
 1034   1561   
        1562  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
 1035   1563   
    impl ::std::convert::From<Builder> for crate::input::GetServerStatisticsInput {
 1036   1564   
        fn from(builder: Builder) -> Self {
 1037   1565   
            builder.build()
 1038   1566   
        }
 1039   1567   
    }
 1040         -
    /// A builder for [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
        1568  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
        1569  +
    /* RustType.kt:516 */
 1041   1570   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1042         -
    pub struct Builder {}
        1571  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
        1572  +
    pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
        1573  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1043   1574   
    impl Builder {
 1044         -
        /// Consumes the builder and constructs a [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
        1575  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
        1576  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
 1045   1577   
        pub fn build(self) -> crate::input::GetServerStatisticsInput {
 1046   1578   
            self.build_enforcing_required_and_enum_traits()
 1047   1579   
        }
        1580  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1048   1581   
        fn build_enforcing_required_and_enum_traits(
 1049   1582   
            self,
 1050   1583   
        ) -> crate::input::GetServerStatisticsInput {
 1051         -
            crate::input::GetServerStatisticsInput {}
        1584  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
        1585  +
            crate::input::GetServerStatisticsInput {
        1586  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
        1587  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
 1052   1588   
        }
        1589  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
 1053   1590   
    }
        1591  +
        1592  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1054   1593   
}