Server Test Python

Server Test Python

rev. d838bf488731ae5e751cce0fe13f339a5b9be858 (ignoring whitespace)

Files changed:

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

@@ -1,1 +44,45 @@
    5      5   
#![allow(clippy::large_enum_variant)]
    6      6   
#![allow(clippy::wrong_self_convention)]
    7      7   
#![allow(clippy::should_implement_trait)]
    8      8   
#![allow(clippy::disallowed_names)]
    9      9   
#![allow(clippy::vec_init_then_push)]
   10     10   
#![allow(clippy::type_complexity)]
   11     11   
#![allow(clippy::needless_return)]
   12     12   
#![allow(clippy::derive_partial_eq_without_eq)]
   13     13   
#![allow(clippy::result_large_err)]
   14     14   
#![allow(clippy::unnecessary_map_on_constructor)]
          15  +
#![allow(clippy::useless_conversion)]
   15     16   
#![allow(clippy::deprecated_semver)]
   16     17   
#![allow(clippy::uninlined_format_args)]
   17     18   
#![allow(rustdoc::bare_urls)]
   18     19   
#![allow(rustdoc::redundant_explicit_links)]
   19     20   
#![allow(rustdoc::broken_intra_doc_links)]
   20     21   
#![allow(rustdoc::invalid_html_tags)]
   21     22   
#![forbid(unsafe_code)]
   22     23   
#![cfg_attr(docsrs, feature(doc_cfg))]
   23     24   
//! The Pokémon Service allows you to retrieve information about Pokémon species.
   24     25   

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

@@ -1,1 +0,22 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub(crate) static CONTENT_TYPE_APPLICATION_JSON: std::sync::LazyLock<::mime::Mime> =
    3      3   
    std::sync::LazyLock::new(|| {
    4      4   
        "application/json"
    5      5   
            .parse::<::mime::Mime>()
    6      6   
            .expect("BUG: MIME parsing failed, content_type is not valid")
    7      7   
    });
    8      8   
    9         -
pub(crate) static CONTENT_TYPE_APPLICATION_OCTET_STREAM: std::sync::LazyLock<::mime::Mime> =
   10         -
    std::sync::LazyLock::new(|| {
   11         -
        "application/octet-stream"
   12         -
            .parse::<::mime::Mime>()
   13         -
            .expect("BUG: MIME parsing failed, content_type is not valid")
   14         -
    });
   15         -
   16      9   
pub(crate) static CONTENT_TYPE_APPLICATION_VND_AMAZON_EVENTSTREAM: std::sync::LazyLock<
   17     10   
    ::mime::Mime,
   18     11   
> = std::sync::LazyLock::new(|| {
   19     12   
    "application/vnd.amazon.eventstream"
   20     13   
        .parse::<::mime::Mime>()
   21     14   
        .expect("BUG: MIME parsing failed, content_type is not valid")
   22     15   
});
          16  +
          17  +
pub(crate) static CONTENT_TYPE_APPLICATION_OCTET_STREAM: std::sync::LazyLock<::mime::Mime> =
          18  +
    std::sync::LazyLock::new(|| {
          19  +
        "application/octet-stream"
          20  +
            .parse::<::mime::Mime>()
          21  +
            .expect("BUG: MIME parsing failed, content_type is not valid")
          22  +
    });

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

@@ -1,1 +31,303 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
#[allow(missing_docs)] // documentation missing in model
           3  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           4  +
pub enum AttemptCapturingPokemonEvent {
           5  +
    #[allow(missing_docs)] // documentation missing in model
           6  +
    Event(crate::model::CapturingEvent),
           7  +
}
           8  +
impl AttemptCapturingPokemonEvent {
           9  +
    #[allow(irrefutable_let_patterns)]
          10  +
    /// Tries to convert the enum instance into [`Event`](crate::model::AttemptCapturingPokemonEvent::Event), extracting the inner [`CapturingEvent`](crate::model::CapturingEvent).
          11  +
    /// Returns `Err(&Self)` if it can't be converted.
          12  +
    pub fn as_event(&self) -> ::std::result::Result<&crate::model::CapturingEvent, &Self> {
          13  +
        if let AttemptCapturingPokemonEvent::Event(val) = &self {
          14  +
            ::std::result::Result::Ok(val)
          15  +
        } else {
          16  +
            ::std::result::Result::Err(self)
          17  +
        }
          18  +
    }
          19  +
    /// Returns true if this is a [`Event`](crate::model::AttemptCapturingPokemonEvent::Event).
          20  +
    pub fn is_event(&self) -> bool {
          21  +
        self.as_event().is_ok()
          22  +
    }
          23  +
}
          24  +
#[pyo3::pyclass(name = "AttemptCapturingPokemonEvent")]
          25  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
          26  +
pub struct PyUnionMarkerAttemptCapturingPokemonEvent(pub AttemptCapturingPokemonEvent);
          27  +
#[::pyo3::pymethods]
          28  +
impl PyUnionMarkerAttemptCapturingPokemonEvent {
          29  +
    #[allow(irrefutable_let_patterns)]
          30  +
    #[staticmethod]
          31  +
    /// Creates a new union instance of [`Event`](crate::model::AttemptCapturingPokemonEvent::Event)
          32  +
    /// :param data pokemon_service_server_sdk.model.CapturingEvent:
          33  +
    /// :rtype AttemptCapturingPokemonEvent:
          34  +
    pub fn event(data: crate::model::CapturingEvent) -> Self {
          35  +
        Self(AttemptCapturingPokemonEvent::Event(data))
          36  +
    }
          37  +
    /// Tries to convert the enum instance into [`Event`](crate::model::AttemptCapturingPokemonEvent::Event), extracting the inner [`CapturingEvent`](crate::model::CapturingEvent).
          38  +
    /// :rtype pokemon_service_server_sdk.model.CapturingEvent:
          39  +
    pub fn as_event(&self) -> ::pyo3::PyResult<crate::model::CapturingEvent> {
          40  +
        match self.0.as_event() {
          41  +
            Ok(variant) => Ok(variant.clone()),
          42  +
            Err(_) => Err(::pyo3::exceptions::PyValueError::new_err(
          43  +
                r"AttemptCapturingPokemonEvent variant is not of type pokemon_service_server_sdk.model.CapturingEvent",
          44  +
            )),
          45  +
        }
          46  +
    }
          47  +
    /// Returns true if this is a [`Event`](crate::model::AttemptCapturingPokemonEvent::Event).
          48  +
    /// :rtype bool:
          49  +
    pub fn is_event(&self) -> bool {
          50  +
        self.0.is_event()
          51  +
    }
          52  +
}
          53  +
impl ::pyo3::IntoPy<::pyo3::PyObject> for AttemptCapturingPokemonEvent {
          54  +
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
          55  +
        PyUnionMarkerAttemptCapturingPokemonEvent(self).into_py(py)
          56  +
    }
          57  +
}
          58  +
impl<'source> ::pyo3::FromPyObject<'source> for AttemptCapturingPokemonEvent {
          59  +
    fn extract(obj: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
          60  +
        let data: PyUnionMarkerAttemptCapturingPokemonEvent = obj.extract()?;
          61  +
        Ok(data.0)
          62  +
    }
          63  +
}
          64  +
          65  +
#[allow(missing_docs)] // documentation missing in model
          66  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
          67  +
pub enum CapturePokemonEvents {
          68  +
    #[allow(missing_docs)] // documentation missing in model
          69  +
    Event(crate::model::CaptureEvent),
          70  +
}
          71  +
impl CapturePokemonEvents {
          72  +
    #[allow(irrefutable_let_patterns)]
          73  +
    /// Tries to convert the enum instance into [`Event`](crate::model::CapturePokemonEvents::Event), extracting the inner [`CaptureEvent`](crate::model::CaptureEvent).
          74  +
    /// Returns `Err(&Self)` if it can't be converted.
          75  +
    pub fn as_event(&self) -> ::std::result::Result<&crate::model::CaptureEvent, &Self> {
          76  +
        if let CapturePokemonEvents::Event(val) = &self {
          77  +
            ::std::result::Result::Ok(val)
          78  +
        } else {
          79  +
            ::std::result::Result::Err(self)
          80  +
        }
          81  +
    }
          82  +
    /// Returns true if this is a [`Event`](crate::model::CapturePokemonEvents::Event).
          83  +
    pub fn is_event(&self) -> bool {
          84  +
        self.as_event().is_ok()
          85  +
    }
          86  +
}
          87  +
#[pyo3::pyclass(name = "CapturePokemonEvents")]
          88  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
          89  +
pub struct PyUnionMarkerCapturePokemonEvents(pub CapturePokemonEvents);
          90  +
#[::pyo3::pymethods]
          91  +
impl PyUnionMarkerCapturePokemonEvents {
          92  +
    #[allow(irrefutable_let_patterns)]
          93  +
    #[staticmethod]
          94  +
    /// Creates a new union instance of [`Event`](crate::model::CapturePokemonEvents::Event)
          95  +
    /// :param data pokemon_service_server_sdk.model.CaptureEvent:
          96  +
    /// :rtype CapturePokemonEvents:
          97  +
    pub fn event(data: crate::model::CaptureEvent) -> Self {
          98  +
        Self(CapturePokemonEvents::Event(data))
          99  +
    }
         100  +
    /// Tries to convert the enum instance into [`Event`](crate::model::CapturePokemonEvents::Event), extracting the inner [`CaptureEvent`](crate::model::CaptureEvent).
         101  +
    /// :rtype pokemon_service_server_sdk.model.CaptureEvent:
         102  +
    pub fn as_event(&self) -> ::pyo3::PyResult<crate::model::CaptureEvent> {
         103  +
        match self.0.as_event() {
         104  +
            Ok(variant) => Ok(variant.clone()),
         105  +
            Err(_) => Err(::pyo3::exceptions::PyValueError::new_err(
         106  +
                r"CapturePokemonEvents variant is not of type pokemon_service_server_sdk.model.CaptureEvent",
         107  +
            )),
         108  +
        }
         109  +
    }
         110  +
    /// Returns true if this is a [`Event`](crate::model::CapturePokemonEvents::Event).
         111  +
    /// :rtype bool:
         112  +
    pub fn is_event(&self) -> bool {
         113  +
        self.0.is_event()
         114  +
    }
         115  +
}
         116  +
impl ::pyo3::IntoPy<::pyo3::PyObject> for CapturePokemonEvents {
         117  +
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
         118  +
        PyUnionMarkerCapturePokemonEvents(self).into_py(py)
         119  +
    }
         120  +
}
         121  +
impl<'source> ::pyo3::FromPyObject<'source> for CapturePokemonEvents {
         122  +
    fn extract(obj: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
         123  +
        let data: PyUnionMarkerCapturePokemonEvents = obj.extract()?;
         124  +
        Ok(data.0)
         125  +
    }
         126  +
}
         127  +
         128  +
#[::pyo3::pyclass]
         129  +
/// :param payload typing.Optional\[pokemon_service_server_sdk.model.CapturingPayload\]:
         130  +
/// :rtype None:
         131  +
#[allow(missing_docs)] // documentation missing in model
         132  +
#[derive(
         133  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         134  +
)]
         135  +
pub struct CapturingEvent {
         136  +
    #[pyo3(get, set)]
         137  +
    /// :type typing.Optional\[pokemon_service_server_sdk.model.CapturingPayload\]:
         138  +
    #[allow(missing_docs)] // documentation missing in model
         139  +
    pub payload: ::std::option::Option<crate::model::CapturingPayload>,
         140  +
}
         141  +
impl CapturingEvent {
         142  +
    #[allow(missing_docs)] // documentation missing in model
         143  +
    pub fn payload(&self) -> ::std::option::Option<&crate::model::CapturingPayload> {
         144  +
        self.payload.as_ref()
         145  +
    }
         146  +
}
         147  +
#[allow(clippy::new_without_default)]
         148  +
#[allow(clippy::too_many_arguments)]
         149  +
#[::pyo3::pymethods]
         150  +
impl CapturingEvent {
         151  +
    #[new]
         152  +
    pub fn new(payload: ::std::option::Option<crate::model::CapturingPayload>) -> Self {
         153  +
        Self { payload }
         154  +
    }
         155  +
    fn __repr__(&self) -> String {
         156  +
        format!("{self:?}")
         157  +
    }
         158  +
    fn __str__(&self) -> String {
         159  +
        format!("{self:?}")
         160  +
    }
         161  +
}
         162  +
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<CapturingEvent> {
         163  +
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
         164  +
        ob.extract::<CapturingEvent>().map(Box::new)
         165  +
    }
         166  +
}
         167  +
         168  +
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<CapturingEvent> {
         169  +
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
         170  +
        (*self).into_py(py)
         171  +
    }
         172  +
}
         173  +
impl crate::constrained::Constrained for crate::model::CapturingEvent {
         174  +
    type Unconstrained = crate::model::capturing_event_internal::Builder;
         175  +
}
         176  +
impl CapturingEvent {
         177  +
    /// Creates a new builder-style object to manufacture [`CapturingEvent`](crate::model::CapturingEvent).
         178  +
    pub fn builder() -> crate::model::capturing_event::Builder {
         179  +
        crate::model::capturing_event::Builder::default()
         180  +
    }
         181  +
}
         182  +
         183  +
#[::pyo3::pyclass]
         184  +
/// :param name typing.Optional\[str\]:
         185  +
/// :param captured typing.Optional\[bool\]:
         186  +
/// :param shiny typing.Optional\[bool\]:
         187  +
/// :param pokedex_update typing.Optional\[pokemon_service_server_sdk.types.Blob\]:
         188  +
/// :rtype None:
         189  +
#[allow(missing_docs)] // documentation missing in model
         190  +
#[derive(
         191  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         192  +
)]
         193  +
pub struct CaptureEvent {
         194  +
    #[pyo3(get, set)]
         195  +
    /// :type typing.Optional\[str\]:
         196  +
    #[allow(missing_docs)] // documentation missing in model
         197  +
    pub name: ::std::option::Option<::std::string::String>,
         198  +
    #[pyo3(get, set)]
         199  +
    /// :type typing.Optional\[bool\]:
         200  +
    #[allow(missing_docs)] // documentation missing in model
         201  +
    pub captured: ::std::option::Option<bool>,
         202  +
    #[pyo3(get, set)]
         203  +
    /// :type typing.Optional\[bool\]:
         204  +
    #[allow(missing_docs)] // documentation missing in model
         205  +
    pub shiny: ::std::option::Option<bool>,
         206  +
    #[pyo3(get, set)]
         207  +
    /// :type typing.Optional\[pokemon_service_server_sdk.types.Blob\]:
         208  +
    #[allow(missing_docs)] // documentation missing in model
         209  +
    pub pokedex_update: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
         210  +
}
         211  +
impl CaptureEvent {
         212  +
    #[allow(missing_docs)] // documentation missing in model
         213  +
    pub fn name(&self) -> ::std::option::Option<&str> {
         214  +
        self.name.as_deref()
         215  +
    }
         216  +
    #[allow(missing_docs)] // documentation missing in model
         217  +
    pub fn captured(&self) -> ::std::option::Option<bool> {
         218  +
        self.captured
         219  +
    }
         220  +
    #[allow(missing_docs)] // documentation missing in model
         221  +
    pub fn shiny(&self) -> ::std::option::Option<bool> {
         222  +
        self.shiny
         223  +
    }
         224  +
    #[allow(missing_docs)] // documentation missing in model
         225  +
    pub fn pokedex_update(
         226  +
        &self,
         227  +
    ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::Blob> {
         228  +
        self.pokedex_update.as_ref()
         229  +
    }
         230  +
}
         231  +
#[allow(clippy::new_without_default)]
         232  +
#[allow(clippy::too_many_arguments)]
         233  +
#[::pyo3::pymethods]
         234  +
impl CaptureEvent {
         235  +
    #[new]
         236  +
    pub fn new(
         237  +
        name: ::std::option::Option<::std::string::String>,
         238  +
        captured: ::std::option::Option<bool>,
         239  +
        shiny: ::std::option::Option<bool>,
         240  +
        pokedex_update: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
         241  +
    ) -> Self {
         242  +
        Self {
         243  +
            name,
         244  +
            captured,
         245  +
            shiny,
         246  +
            pokedex_update,
         247  +
        }
         248  +
    }
         249  +
    fn __repr__(&self) -> String {
         250  +
        format!("{self:?}")
         251  +
    }
         252  +
    fn __str__(&self) -> String {
         253  +
        format!("{self:?}")
         254  +
    }
         255  +
}
         256  +
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<CaptureEvent> {
         257  +
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
         258  +
        ob.extract::<CaptureEvent>().map(Box::new)
         259  +
    }
         260  +
}
         261  +
         262  +
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<CaptureEvent> {
         263  +
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
         264  +
        (*self).into_py(py)
         265  +
    }
         266  +
}
         267  +
impl CaptureEvent {
         268  +
    /// Creates a new builder-style object to manufacture [`CaptureEvent`](crate::model::CaptureEvent).
         269  +
    pub fn builder() -> crate::model::capture_event::Builder {
         270  +
        crate::model::capture_event::Builder::default()
         271  +
    }
         272  +
}
         273  +
    2    274   
#[::pyo3::pyclass]
    3    275   
/// :param path str:
    4    276   
/// :param message str:
    5    277   
/// :rtype None:
    6    278   
/// Describes one specific validation failure for an input member.
    7    279   
#[derive(
    8    280   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
    9    281   
)]
   10    282   
pub struct ValidationExceptionField {
   11    283   
    #[pyo3(get, set)]
@@ -100,372 +159,498 @@
  120    392   
        (*self).into_py(py)
  121    393   
    }
  122    394   
}
  123    395   
impl FlavorText {
  124    396   
    /// Creates a new builder-style object to manufacture [`FlavorText`](crate::model::FlavorText).
  125    397   
    pub fn builder() -> crate::model::flavor_text::Builder {
  126    398   
        crate::model::flavor_text::Builder::default()
  127    399   
    }
  128    400   
}
  129    401   
         402  +
#[::pyo3::pyclass]
         403  +
/// :param name typing.Optional\[str\]:
         404  +
/// :param pokeball typing.Optional\[str\]:
         405  +
/// :rtype None:
         406  +
#[allow(missing_docs)] // documentation missing in model
         407  +
#[derive(
         408  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         409  +
)]
         410  +
pub struct CapturingPayload {
         411  +
    #[pyo3(get, set)]
         412  +
    /// :type typing.Optional\[str\]:
         413  +
    #[allow(missing_docs)] // documentation missing in model
         414  +
    pub name: ::std::option::Option<::std::string::String>,
         415  +
    #[pyo3(get, set)]
         416  +
    /// :type typing.Optional\[str\]:
         417  +
    #[allow(missing_docs)] // documentation missing in model
         418  +
    pub pokeball: ::std::option::Option<::std::string::String>,
         419  +
}
         420  +
impl CapturingPayload {
         421  +
    #[allow(missing_docs)] // documentation missing in model
         422  +
    pub fn name(&self) -> ::std::option::Option<&str> {
         423  +
        self.name.as_deref()
         424  +
    }
         425  +
    #[allow(missing_docs)] // documentation missing in model
         426  +
    pub fn pokeball(&self) -> ::std::option::Option<&str> {
         427  +
        self.pokeball.as_deref()
         428  +
    }
         429  +
}
         430  +
#[allow(clippy::new_without_default)]
         431  +
#[allow(clippy::too_many_arguments)]
         432  +
#[::pyo3::pymethods]
         433  +
impl CapturingPayload {
         434  +
    #[new]
         435  +
    pub fn new(
         436  +
        name: ::std::option::Option<::std::string::String>,
         437  +
        pokeball: ::std::option::Option<::std::string::String>,
         438  +
    ) -> Self {
         439  +
        Self { name, pokeball }
         440  +
    }
         441  +
    fn __repr__(&self) -> String {
         442  +
        format!("{self:?}")
         443  +
    }
         444  +
    fn __str__(&self) -> String {
         445  +
        format!("{self:?}")
         446  +
    }
         447  +
}
         448  +
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<CapturingPayload> {
         449  +
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
         450  +
        ob.extract::<CapturingPayload>().map(Box::new)
         451  +
    }
         452  +
}
         453  +
         454  +
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<CapturingPayload> {
         455  +
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
         456  +
        (*self).into_py(py)
         457  +
    }
         458  +
}
         459  +
impl crate::constrained::Constrained for crate::model::CapturingPayload {
         460  +
    type Unconstrained = crate::model::capturing_payload_internal::Builder;
         461  +
}
         462  +
impl CapturingPayload {
         463  +
    /// Creates a new builder-style object to manufacture [`CapturingPayload`](crate::model::CapturingPayload).
         464  +
    pub fn builder() -> crate::model::capturing_payload::Builder {
         465  +
        crate::model::capturing_payload::Builder::default()
         466  +
    }
         467  +
}
         468  +
  130    469   
#[::pyo3::pyclass]
  131    470   
/// Supported languages for FlavorText entries.
  132    471   
#[derive(
  133    472   
    ::std::clone::Clone,
  134    473   
    ::std::cmp::Eq,
  135    474   
    ::std::cmp::Ord,
  136    475   
    ::std::cmp::PartialEq,
  137    476   
    ::std::cmp::PartialOrd,
  138    477   
    ::std::fmt::Debug,
  139    478   
    ::std::hash::Hash,
@@ -220,559 +616,737 @@
  240    579   
    type Unconstrained = ::std::string::String;
  241    580   
}
  242    581   
  243    582   
impl ::std::convert::From<::std::string::String>
  244    583   
    for crate::constrained::MaybeConstrained<crate::model::Language>
  245    584   
{
  246    585   
    fn from(value: ::std::string::String) -> Self {
  247    586   
        Self::Unconstrained(value)
  248    587   
    }
  249    588   
}
         589  +
/// See [`CapturingEvent`](crate::model::CapturingEvent).
         590  +
pub(crate) mod capturing_event_internal {
  250    591   
  251         -
#[allow(missing_docs)] // documentation missing in model
  252         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
  253         -
pub enum CapturePokemonEvents {
  254         -
    #[allow(missing_docs)] // documentation missing in model
  255         -
    Event(crate::model::CaptureEvent),
  256         -
}
  257         -
impl CapturePokemonEvents {
  258         -
    #[allow(irrefutable_let_patterns)]
  259         -
    /// Tries to convert the enum instance into [`Event`](crate::model::CapturePokemonEvents::Event), extracting the inner [`CaptureEvent`](crate::model::CaptureEvent).
  260         -
    /// Returns `Err(&Self)` if it can't be converted.
  261         -
    pub fn as_event(&self) -> ::std::result::Result<&crate::model::CaptureEvent, &Self> {
  262         -
        if let CapturePokemonEvents::Event(val) = &self {
  263         -
            ::std::result::Result::Ok(val)
  264         -
        } else {
  265         -
            ::std::result::Result::Err(self)
  266         -
        }
  267         -
    }
  268         -
    /// Returns true if this is a [`Event`](crate::model::CapturePokemonEvents::Event).
  269         -
    pub fn is_event(&self) -> bool {
  270         -
        self.as_event().is_ok()
  271         -
    }
  272         -
}
  273         -
#[pyo3::pyclass(name = "CapturePokemonEvents")]
  274         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
  275         -
pub struct PyUnionMarkerCapturePokemonEvents(pub CapturePokemonEvents);
  276         -
#[::pyo3::pymethods]
  277         -
impl PyUnionMarkerCapturePokemonEvents {
  278         -
    #[allow(irrefutable_let_patterns)]
  279         -
    #[staticmethod]
  280         -
    /// Creates a new union instance of [`Event`](crate::model::CapturePokemonEvents::Event)
  281         -
    /// :param data pokemon_service_server_sdk.model.CaptureEvent:
  282         -
    /// :rtype CapturePokemonEvents:
  283         -
    pub fn event(data: crate::model::CaptureEvent) -> Self {
  284         -
        Self(CapturePokemonEvents::Event(data))
  285         -
    }
  286         -
    /// Tries to convert the enum instance into [`Event`](crate::model::CapturePokemonEvents::Event), extracting the inner [`CaptureEvent`](crate::model::CaptureEvent).
  287         -
    /// :rtype pokemon_service_server_sdk.model.CaptureEvent:
  288         -
    pub fn as_event(&self) -> ::pyo3::PyResult<crate::model::CaptureEvent> {
  289         -
        match self.0.as_event() {
  290         -
            Ok(variant) => Ok(variant.clone()),
  291         -
            Err(_) => Err(::pyo3::exceptions::PyValueError::new_err(
  292         -
                r"CapturePokemonEvents variant is not of type pokemon_service_server_sdk.model.CaptureEvent",
  293         -
            )),
  294         -
        }
  295         -
    }
  296         -
    /// Returns true if this is a [`Event`](crate::model::CapturePokemonEvents::Event).
  297         -
    /// :rtype bool:
  298         -
    pub fn is_event(&self) -> bool {
  299         -
        self.0.is_event()
  300         -
    }
  301         -
}
  302         -
impl ::pyo3::IntoPy<::pyo3::PyObject> for CapturePokemonEvents {
  303         -
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  304         -
        PyUnionMarkerCapturePokemonEvents(self).into_py(py)
  305         -
    }
  306         -
}
  307         -
impl<'source> ::pyo3::FromPyObject<'source> for CapturePokemonEvents {
  308         -
    fn extract(obj: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  309         -
        let data: PyUnionMarkerCapturePokemonEvents = obj.extract()?;
  310         -
        Ok(data.0)
  311         -
    }
  312         -
}
  313         -
  314         -
#[::pyo3::pyclass]
  315         -
/// :param name typing.Optional\[str\]:
  316         -
/// :param captured typing.Optional\[bool\]:
  317         -
/// :param shiny typing.Optional\[bool\]:
  318         -
/// :param pokedex_update typing.Optional\[pokemon_service_server_sdk.types.Blob\]:
  319         -
/// :rtype None:
  320         -
#[allow(missing_docs)] // documentation missing in model
  321         -
#[derive(
  322         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  323         -
)]
  324         -
pub struct CaptureEvent {
  325         -
    #[pyo3(get, set)]
  326         -
    /// :type typing.Optional\[str\]:
  327         -
    #[allow(missing_docs)] // documentation missing in model
  328         -
    pub name: ::std::option::Option<::std::string::String>,
  329         -
    #[pyo3(get, set)]
  330         -
    /// :type typing.Optional\[bool\]:
  331         -
    #[allow(missing_docs)] // documentation missing in model
  332         -
    pub captured: ::std::option::Option<bool>,
  333         -
    #[pyo3(get, set)]
  334         -
    /// :type typing.Optional\[bool\]:
  335         -
    #[allow(missing_docs)] // documentation missing in model
  336         -
    pub shiny: ::std::option::Option<bool>,
  337         -
    #[pyo3(get, set)]
  338         -
    /// :type typing.Optional\[pokemon_service_server_sdk.types.Blob\]:
  339         -
    #[allow(missing_docs)] // documentation missing in model
  340         -
    pub pokedex_update: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
  341         -
}
  342         -
impl CaptureEvent {
  343         -
    #[allow(missing_docs)] // documentation missing in model
  344         -
    pub fn name(&self) -> ::std::option::Option<&str> {
  345         -
        self.name.as_deref()
         592  +
    impl ::std::convert::From<Builder> for crate::model::CapturingEvent {
         593  +
        fn from(builder: Builder) -> Self {
         594  +
            builder.build()
  346    595   
        }
  347         -
    #[allow(missing_docs)] // documentation missing in model
  348         -
    pub fn captured(&self) -> ::std::option::Option<bool> {
  349         -
        self.captured
  350    596   
    }
  351         -
    #[allow(missing_docs)] // documentation missing in model
  352         -
    pub fn shiny(&self) -> ::std::option::Option<bool> {
  353         -
        self.shiny
         597  +
    /// A builder for [`CapturingEvent`](crate::model::CapturingEvent).
         598  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         599  +
    pub(crate) struct Builder {
         600  +
        pub(crate) payload: ::std::option::Option<crate::model::CapturingPayload>,
  354    601   
    }
         602  +
    impl Builder {
  355    603   
        #[allow(missing_docs)] // documentation missing in model
  356         -
    pub fn pokedex_update(
  357         -
        &self,
  358         -
    ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::Blob> {
  359         -
        self.pokedex_update.as_ref()
  360         -
    }
  361         -
}
  362         -
#[allow(clippy::new_without_default)]
  363         -
#[allow(clippy::too_many_arguments)]
  364         -
#[::pyo3::pymethods]
  365         -
impl CaptureEvent {
  366         -
    #[new]
  367         -
    pub fn new(
  368         -
        name: ::std::option::Option<::std::string::String>,
  369         -
        captured: ::std::option::Option<bool>,
  370         -
        shiny: ::std::option::Option<bool>,
  371         -
        pokedex_update: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
         604  +
        pub(crate) fn set_payload(
         605  +
            mut self,
         606  +
            input: Option<impl ::std::convert::Into<crate::model::CapturingPayload>>,
  372    607   
        ) -> Self {
  373         -
        Self {
  374         -
            name,
  375         -
            captured,
  376         -
            shiny,
  377         -
            pokedex_update,
  378         -
        }
  379         -
    }
  380         -
    fn __repr__(&self) -> String {
  381         -
        format!("{self:?}")
         608  +
            self.payload = input.map(|v| v.into());
         609  +
            self
  382    610   
        }
  383         -
    fn __str__(&self) -> String {
  384         -
        format!("{self:?}")
         611  +
        /// Consumes the builder and constructs a [`CapturingEvent`](crate::model::CapturingEvent).
         612  +
        pub fn build(self) -> crate::model::CapturingEvent {
         613  +
            self.build_enforcing_all_constraints()
  385    614   
        }
  386         -
}
  387         -
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<CaptureEvent> {
  388         -
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  389         -
        ob.extract::<CaptureEvent>().map(Box::new)
         615  +
        fn build_enforcing_all_constraints(self) -> crate::model::CapturingEvent {
         616  +
            crate::model::CapturingEvent {
         617  +
                payload: self.payload,
  390    618   
            }
  391         -
}
  392         -
  393         -
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<CaptureEvent> {
  394         -
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  395         -
        (*self).into_py(py)
  396    619   
        }
  397         -
}
  398         -
impl CaptureEvent {
  399         -
    /// Creates a new builder-style object to manufacture [`CaptureEvent`](crate::model::CaptureEvent).
  400         -
    pub fn builder() -> crate::model::capture_event::Builder {
  401         -
        crate::model::capture_event::Builder::default()
  402    620   
    }
  403    621   
}
         622  +
/// See [`CapturingEvent`](crate::model::CapturingEvent).
         623  +
pub mod capturing_event {
  404    624   
  405         -
#[allow(missing_docs)] // documentation missing in model
  406         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
  407         -
pub enum AttemptCapturingPokemonEvent {
  408         -
    #[allow(missing_docs)] // documentation missing in model
  409         -
    Event(crate::model::CapturingEvent),
  410         -
}
  411         -
impl AttemptCapturingPokemonEvent {
  412         -
    #[allow(irrefutable_let_patterns)]
  413         -
    /// Tries to convert the enum instance into [`Event`](crate::model::AttemptCapturingPokemonEvent::Event), extracting the inner [`CapturingEvent`](crate::model::CapturingEvent).
  414         -
    /// Returns `Err(&Self)` if it can't be converted.
  415         -
    pub fn as_event(&self) -> ::std::result::Result<&crate::model::CapturingEvent, &Self> {
  416         -
        if let AttemptCapturingPokemonEvent::Event(val) = &self {
  417         -
            ::std::result::Result::Ok(val)
  418         -
        } else {
  419         -
            ::std::result::Result::Err(self)
  420         -
        }
  421         -
    }
  422         -
    /// Returns true if this is a [`Event`](crate::model::AttemptCapturingPokemonEvent::Event).
  423         -
    pub fn is_event(&self) -> bool {
  424         -
        self.as_event().is_ok()
  425         -
    }
  426         -
}
  427         -
#[pyo3::pyclass(name = "AttemptCapturingPokemonEvent")]
  428         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
  429         -
pub struct PyUnionMarkerAttemptCapturingPokemonEvent(pub AttemptCapturingPokemonEvent);
  430         -
#[::pyo3::pymethods]
  431         -
impl PyUnionMarkerAttemptCapturingPokemonEvent {
  432         -
    #[allow(irrefutable_let_patterns)]
  433         -
    #[staticmethod]
  434         -
    /// Creates a new union instance of [`Event`](crate::model::AttemptCapturingPokemonEvent::Event)
  435         -
    /// :param data pokemon_service_server_sdk.model.CapturingEvent:
  436         -
    /// :rtype AttemptCapturingPokemonEvent:
  437         -
    pub fn event(data: crate::model::CapturingEvent) -> Self {
  438         -
        Self(AttemptCapturingPokemonEvent::Event(data))
  439         -
    }
  440         -
    /// Tries to convert the enum instance into [`Event`](crate::model::AttemptCapturingPokemonEvent::Event), extracting the inner [`CapturingEvent`](crate::model::CapturingEvent).
  441         -
    /// :rtype pokemon_service_server_sdk.model.CapturingEvent:
  442         -
    pub fn as_event(&self) -> ::pyo3::PyResult<crate::model::CapturingEvent> {
  443         -
        match self.0.as_event() {
  444         -
            Ok(variant) => Ok(variant.clone()),
  445         -
            Err(_) => Err(::pyo3::exceptions::PyValueError::new_err(
  446         -
                r"AttemptCapturingPokemonEvent variant is not of type pokemon_service_server_sdk.model.CapturingEvent",
  447         -
            )),
  448         -
        }
  449         -
    }
  450         -
    /// Returns true if this is a [`Event`](crate::model::AttemptCapturingPokemonEvent::Event).
  451         -
    /// :rtype bool:
  452         -
    pub fn is_event(&self) -> bool {
  453         -
        self.0.is_event()
         625  +
    impl ::std::convert::From<Builder> for crate::model::CapturingEvent {
         626  +
        fn from(builder: Builder) -> Self {
         627  +
            builder.build()
  454    628   
        }
  455         -
}
  456         -
impl ::pyo3::IntoPy<::pyo3::PyObject> for AttemptCapturingPokemonEvent {
  457         -
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  458         -
        PyUnionMarkerAttemptCapturingPokemonEvent(self).into_py(py)
  459    629   
    }
  460         -
}
  461         -
impl<'source> ::pyo3::FromPyObject<'source> for AttemptCapturingPokemonEvent {
  462         -
    fn extract(obj: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  463         -
        let data: PyUnionMarkerAttemptCapturingPokemonEvent = obj.extract()?;
  464         -
        Ok(data.0)
         630  +
    /// A builder for [`CapturingEvent`](crate::model::CapturingEvent).
         631  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         632  +
    pub struct Builder {
         633  +
        pub(crate) payload: ::std::option::Option<crate::model::CapturingPayload>,
  465    634   
    }
  466         -
}
  467         -
  468         -
#[::pyo3::pyclass]
  469         -
/// :param payload typing.Optional\[pokemon_service_server_sdk.model.CapturingPayload\]:
  470         -
/// :rtype None:
  471         -
#[allow(missing_docs)] // documentation missing in model
  472         -
#[derive(
  473         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  474         -
)]
  475         -
pub struct CapturingEvent {
  476         -
    #[pyo3(get, set)]
  477         -
    /// :type typing.Optional\[pokemon_service_server_sdk.model.CapturingPayload\]:
  478         -
    #[allow(missing_docs)] // documentation missing in model
  479         -
    pub payload: ::std::option::Option<crate::model::CapturingPayload>,
  480         -
}
  481         -
impl CapturingEvent {
         635  +
    impl Builder {
  482    636   
        #[allow(missing_docs)] // documentation missing in model
  483         -
    pub fn payload(&self) -> ::std::option::Option<&crate::model::CapturingPayload> {
  484         -
        self.payload.as_ref()
         637  +
        pub fn payload(
         638  +
            mut self,
         639  +
            input: ::std::option::Option<crate::model::CapturingPayload>,
         640  +
        ) -> Self {
         641  +
            self.payload = input;
         642  +
            self
  485    643   
        }
  486         -
}
  487         -
#[allow(clippy::new_without_default)]
  488         -
#[allow(clippy::too_many_arguments)]
  489         -
#[::pyo3::pymethods]
  490         -
impl CapturingEvent {
  491         -
    #[new]
  492         -
    pub fn new(payload: ::std::option::Option<crate::model::CapturingPayload>) -> Self {
  493         -
        Self { payload }
         644  +
        /// Consumes the builder and constructs a [`CapturingEvent`](crate::model::CapturingEvent).
         645  +
        pub fn build(self) -> crate::model::CapturingEvent {
         646  +
            self.build_enforcing_required_and_enum_traits()
  494    647   
        }
  495         -
    fn __repr__(&self) -> String {
  496         -
        format!("{self:?}")
         648  +
        fn build_enforcing_required_and_enum_traits(self) -> crate::model::CapturingEvent {
         649  +
            crate::model::CapturingEvent {
         650  +
                payload: self.payload,
  497    651   
            }
  498         -
    fn __str__(&self) -> String {
  499         -
        format!("{self:?}")
  500    652   
        }
  501         -
}
  502         -
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<CapturingEvent> {
  503         -
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  504         -
        ob.extract::<CapturingEvent>().map(Box::new)
  505    653   
    }
  506    654   
}
         655  +
/// See [`CaptureEvent`](crate::model::CaptureEvent).
         656  +
pub mod capture_event {
  507    657   
  508         -
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<CapturingEvent> {
  509         -
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  510         -
        (*self).into_py(py)
         658  +
    impl ::std::convert::From<Builder> for crate::model::CaptureEvent {
         659  +
        fn from(builder: Builder) -> Self {
         660  +
            builder.build()
  511    661   
        }
  512         -
}
  513         -
impl crate::constrained::Constrained for crate::model::CapturingEvent {
  514         -
    type Unconstrained = crate::model::capturing_event_internal::Builder;
  515         -
}
  516         -
impl CapturingEvent {
  517         -
    /// Creates a new builder-style object to manufacture [`CapturingEvent`](crate::model::CapturingEvent).
  518         -
    pub fn builder() -> crate::model::capturing_event::Builder {
  519         -
        crate::model::capturing_event::Builder::default()
  520    662   
    }
  521         -
}
  522         -
  523         -
#[::pyo3::pyclass]
  524         -
/// :param name typing.Optional\[str\]:
  525         -
/// :param pokeball typing.Optional\[str\]:
  526         -
/// :rtype None:
  527         -
#[allow(missing_docs)] // documentation missing in model
  528         -
#[derive(
  529         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  530         -
)]
  531         -
pub struct CapturingPayload {
  532         -
    #[pyo3(get, set)]
  533         -
    /// :type typing.Optional\[str\]:
  534         -
    #[allow(missing_docs)] // documentation missing in model
  535         -
    pub name: ::std::option::Option<::std::string::String>,
  536         -
    #[pyo3(get, set)]
  537         -
    /// :type typing.Optional\[str\]:
         663  +
    /// A builder for [`CaptureEvent`](crate::model::CaptureEvent).
         664  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         665  +
    pub struct Builder {
         666  +
        pub(crate) name: ::std::option::Option<::std::string::String>,
         667  +
        pub(crate) captured: ::std::option::Option<bool>,
         668  +
        pub(crate) shiny: ::std::option::Option<bool>,
         669  +
        pub(crate) pokedex_update:
         670  +
            ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
         671  +
    }
         672  +
    impl Builder {
  538    673   
        #[allow(missing_docs)] // documentation missing in model
  539         -
    pub pokeball: ::std::option::Option<::std::string::String>,
  540         -
}
  541         -
impl CapturingPayload {
         674  +
        pub fn name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         675  +
            self.name = input;
         676  +
            self
         677  +
        }
  542    678   
        #[allow(missing_docs)] // documentation missing in model
  543         -
    pub fn name(&self) -> ::std::option::Option<&str> {
  544         -
        self.name.as_deref()
         679  +
        pub fn captured(mut self, input: ::std::option::Option<bool>) -> Self {
         680  +
            self.captured = input;
         681  +
            self
  545    682   
        }
  546    683   
        #[allow(missing_docs)] // documentation missing in model
  547         -
    pub fn pokeball(&self) -> ::std::option::Option<&str> {
  548         -
        self.pokeball.as_deref()
         684  +
        pub fn shiny(mut self, input: ::std::option::Option<bool>) -> Self {
         685  +
            self.shiny = input;
         686  +
            self
  549    687   
        }
  550         -
}
  551         -
#[allow(clippy::new_without_default)]
  552         -
#[allow(clippy::too_many_arguments)]
  553         -
#[::pyo3::pymethods]
  554         -
impl CapturingPayload {
  555         -
    #[new]
  556         -
    pub fn new(
  557         -
        name: ::std::option::Option<::std::string::String>,
  558         -
        pokeball: ::std::option::Option<::std::string::String>,
         688  +
        #[allow(missing_docs)] // documentation missing in model
         689  +
        pub fn pokedex_update(
         690  +
            mut self,
         691  +
            input: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
  559    692   
        ) -> Self {
  560         -
        Self { name, pokeball }
  561         -
    }
  562         -
    fn __repr__(&self) -> String {
  563         -
        format!("{self:?}")
         693  +
            self.pokedex_update = input;
         694  +
            self
  564    695   
        }
  565         -
    fn __str__(&self) -> String {
  566         -
        format!("{self:?}")
         696  +
        /// Consumes the builder and constructs a [`CaptureEvent`](crate::model::CaptureEvent).
         697  +
        pub fn build(self) -> crate::model::CaptureEvent {
         698  +
            self.build_enforcing_required_and_enum_traits()
  567    699   
        }
  568         -
}
  569         -
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<CapturingPayload> {
  570         -
    fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
  571         -
        ob.extract::<CapturingPayload>().map(Box::new)
         700  +
        fn build_enforcing_required_and_enum_traits(self) -> crate::model::CaptureEvent {
         701  +
            crate::model::CaptureEvent {
         702  +
                name: self.name,
         703  +
                captured: self.captured,
         704  +
                shiny: self.shiny,
         705  +
                pokedex_update: self.pokedex_update,
  572    706   
            }
  573         -
}
  574         -
  575         -
impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<CapturingPayload> {
  576         -
    fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
  577         -
        (*self).into_py(py)
  578    707   
        }
  579         -
}
  580         -
impl crate::constrained::Constrained for crate::model::CapturingPayload {
  581         -
    type Unconstrained = crate::model::capturing_payload_internal::Builder;
  582         -
}
  583         -
impl CapturingPayload {
  584         -
    /// Creates a new builder-style object to manufacture [`CapturingPayload`](crate::model::CapturingPayload).
  585         -
    pub fn builder() -> crate::model::capturing_payload::Builder {
  586         -
        crate::model::capturing_payload::Builder::default()
  587    708   
    }
  588    709   
}
  589    710   
/// See [`ValidationExceptionField`](crate::model::ValidationExceptionField).
  590    711   
pub mod validation_exception_field {
  591    712   
  592    713   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  593    714   
    /// Holds one variant for each of the ways the builder can fail.
  594    715   
    #[allow(clippy::enum_variant_names)]
  595    716   
    pub enum ConstraintViolation {
  596    717   
        /// `path` was not provided but it is required when building `ValidationExceptionField`.
@@ -691,812 +871,871 @@
  711    832   
        ) -> Result<crate::model::FlavorText, ConstraintViolation> {
  712    833   
            Ok(crate::model::FlavorText {
  713    834   
                flavor_text: self
  714    835   
                    .flavor_text
  715    836   
                    .ok_or(ConstraintViolation::MissingFlavorText)?,
  716    837   
                language: self.language.ok_or(ConstraintViolation::MissingLanguage)?,
  717    838   
            })
  718    839   
        }
  719    840   
    }
  720    841   
}
  721         -
/// See [`CaptureEvent`](crate::model::CaptureEvent).
  722         -
pub mod capture_event {
  723         -
  724         -
    impl ::std::convert::From<Builder> for crate::model::CaptureEvent {
  725         -
        fn from(builder: Builder) -> Self {
  726         -
            builder.build()
  727         -
        }
  728         -
    }
  729         -
    /// A builder for [`CaptureEvent`](crate::model::CaptureEvent).
  730         -
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  731         -
    pub struct Builder {
  732         -
        pub(crate) name: ::std::option::Option<::std::string::String>,
  733         -
        pub(crate) captured: ::std::option::Option<bool>,
  734         -
        pub(crate) shiny: ::std::option::Option<bool>,
  735         -
        pub(crate) pokedex_update:
  736         -
            ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
  737         -
    }
  738         -
    impl Builder {
  739         -
        #[allow(missing_docs)] // documentation missing in model
  740         -
        pub fn name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  741         -
            self.name = input;
  742         -
            self
  743         -
        }
  744         -
        #[allow(missing_docs)] // documentation missing in model
  745         -
        pub fn captured(mut self, input: ::std::option::Option<bool>) -> Self {
  746         -
            self.captured = input;
  747         -
            self
  748         -
        }
  749         -
        #[allow(missing_docs)] // documentation missing in model
  750         -
        pub fn shiny(mut self, input: ::std::option::Option<bool>) -> Self {
  751         -
            self.shiny = input;
  752         -
            self
  753         -
        }
  754         -
        #[allow(missing_docs)] // documentation missing in model
  755         -
        pub fn pokedex_update(
  756         -
            mut self,
  757         -
            input: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
  758         -
        ) -> Self {
  759         -
            self.pokedex_update = input;
  760         -
            self
  761         -
        }
  762         -
        /// Consumes the builder and constructs a [`CaptureEvent`](crate::model::CaptureEvent).
  763         -
        pub fn build(self) -> crate::model::CaptureEvent {
  764         -
            self.build_enforcing_required_and_enum_traits()
  765         -
        }
  766         -
        fn build_enforcing_required_and_enum_traits(self) -> crate::model::CaptureEvent {
  767         -
            crate::model::CaptureEvent {
  768         -
                name: self.name,
  769         -
                captured: self.captured,
  770         -
                shiny: self.shiny,
  771         -
                pokedex_update: self.pokedex_update,
  772         -
            }
  773         -
        }
  774         -
    }
  775         -
}
  776         -
/// See [`CapturingEvent`](crate::model::CapturingEvent).
  777         -
pub(crate) mod capturing_event_internal {
  778         -
  779         -
    impl ::std::convert::From<Builder> for crate::model::CapturingEvent {
  780         -
        fn from(builder: Builder) -> Self {
  781         -
            builder.build()
  782         -
        }
  783         -
    }
  784         -
    /// A builder for [`CapturingEvent`](crate::model::CapturingEvent).
  785         -
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  786         -
    pub(crate) struct Builder {
  787         -
        pub(crate) payload: ::std::option::Option<crate::model::CapturingPayload>,
  788         -
    }
  789         -
    impl Builder {
  790         -
        #[allow(missing_docs)] // documentation missing in model
  791         -
        pub(crate) fn set_payload(
  792         -
            mut self,
  793         -
            input: Option<impl ::std::convert::Into<crate::model::CapturingPayload>>,
  794         -
        ) -> Self {
  795         -
            self.payload = input.map(|v| v.into());
  796         -
            self
  797         -
        }
  798         -
        /// Consumes the builder and constructs a [`CapturingEvent`](crate::model::CapturingEvent).
  799         -
        pub fn build(self) -> crate::model::CapturingEvent {
  800         -
            self.build_enforcing_all_constraints()
  801         -
        }
  802         -
        fn build_enforcing_all_constraints(self) -> crate::model::CapturingEvent {
  803         -
            crate::model::CapturingEvent {
  804         -
                payload: self.payload,
  805         -
            }
  806         -
        }
  807         -
    }
  808         -
}
  809         -
/// See [`CapturingEvent`](crate::model::CapturingEvent).
  810         -
pub mod capturing_event {
  811         -
  812         -
    impl ::std::convert::From<Builder> for crate::model::CapturingEvent {
  813         -
        fn from(builder: Builder) -> Self {
  814         -
            builder.build()
  815         -
        }
  816         -
    }
  817         -
    /// A builder for [`CapturingEvent`](crate::model::CapturingEvent).
  818         -
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  819         -
    pub struct Builder {
  820         -
        pub(crate) payload: ::std::option::Option<crate::model::CapturingPayload>,
  821         -
    }
  822         -
    impl Builder {
  823         -
        #[allow(missing_docs)] // documentation missing in model
  824         -
        pub fn payload(
  825         -
            mut self,
  826         -
            input: ::std::option::Option<crate::model::CapturingPayload>,
  827         -
        ) -> Self {
  828         -
            self.payload = input;
  829         -
            self
  830         -
        }
  831         -
        /// Consumes the builder and constructs a [`CapturingEvent`](crate::model::CapturingEvent).
  832         -
        pub fn build(self) -> crate::model::CapturingEvent {
  833         -
            self.build_enforcing_required_and_enum_traits()
  834         -
        }
  835         -
        fn build_enforcing_required_and_enum_traits(self) -> crate::model::CapturingEvent {
  836         -
            crate::model::CapturingEvent {
  837         -
                payload: self.payload,
  838         -
            }
  839         -
        }
  840         -
    }
  841         -
}
  842    842   
/// See [`CapturingPayload`](crate::model::CapturingPayload).
  843    843   
pub(crate) mod capturing_payload_internal {
  844    844   
  845    845   
    impl ::std::convert::From<Builder> for crate::model::CapturingPayload {
  846    846   
        fn from(builder: Builder) -> Self {
  847    847   
            builder.build()
  848    848   
        }
  849    849   
    }
  850    850   
    /// A builder for [`CapturingPayload`](crate::model::CapturingPayload).
  851    851   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]

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

@@ -1,1 +319,309 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
::pin_project_lite::pin_project! {
    3      3   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
    4         -
    /// [`GetStorageInput`](crate::input::GetStorageInput) using modelled bindings.
    5         -
    pub struct GetStorageInputFuture {
    6         -
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::GetStorageInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
           4  +
    /// [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput) using modelled bindings.
           5  +
    pub struct GetServerStatisticsInputFuture {
           6  +
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::GetServerStatisticsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
    7      7   
    }
    8      8   
}
    9      9   
   10         -
impl std::future::Future for GetStorageInputFuture {
          10  +
impl std::future::Future for GetServerStatisticsInputFuture {
   11     11   
    type Output = Result<
   12         -
        crate::input::GetStorageInput,
          12  +
        crate::input::GetServerStatisticsInput,
   13     13   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
   14     14   
    >;
   15     15   
   16     16   
    fn poll(
   17     17   
        self: std::pin::Pin<&mut Self>,
   18     18   
        cx: &mut std::task::Context<'_>,
   19     19   
    ) -> std::task::Poll<Self::Output> {
   20     20   
        let this = self.project();
   21     21   
        this.inner.as_mut().poll(cx)
   22     22   
    }
   23     23   
}
   24     24   
   25     25   
impl<B>
   26     26   
    ::aws_smithy_legacy_http_server::request::FromRequest<
   27     27   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
   28     28   
        B,
   29         -
    > for crate::input::GetStorageInput
          29  +
    > for crate::input::GetServerStatisticsInput
   30     30   
where
   31     31   
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
   32     32   
    B: 'static,
   33     33   
   34     34   
    B::Data: Send,
   35     35   
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
   36     36   
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
   37     37   
{
   38     38   
    type Rejection =
   39     39   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
   40         -
    type Future = GetStorageInputFuture;
          40  +
    type Future = GetServerStatisticsInputFuture;
   41     41   
   42     42   
    fn from_request(request: ::http::Request<B>) -> Self::Future {
   43     43   
        let fut = async move {
   44     44   
            if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
   45     45   
                request.headers(),
   46     46   
                &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
   47     47   
            ) {
   48     48   
                return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
   49     49   
            }
   50         -
            crate::protocol_serde::shape_get_storage::de_get_storage_http_request(request).await
          50  +
            crate::protocol_serde::shape_get_server_statistics::de_get_server_statistics_http_request(request)
          51  +
                            .await
   51     52   
        };
   52     53   
        use ::futures_util::future::TryFutureExt;
   53     54   
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
   54     55   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
   55     56   
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
   56     57   
                    });
   57         -
        GetStorageInputFuture {
          58  +
        GetServerStatisticsInputFuture {
   58     59   
            inner: Box::pin(fut),
   59     60   
        }
   60     61   
    }
   61     62   
}
   62     63   
impl
   63     64   
    ::aws_smithy_legacy_http_server::response::IntoResponse<
   64     65   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
   65         -
    > for crate::output::GetStorageOutput
          66  +
    > for crate::output::GetServerStatisticsOutput
   66     67   
{
   67     68   
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
   68         -
        match crate::protocol_serde::shape_get_storage::ser_get_storage_http_response(self) {
          69  +
        match crate::protocol_serde::shape_get_server_statistics::ser_get_server_statistics_http_response(self) {
   69     70   
                        Ok(response) => response,
   70     71   
                        Err(e) => {
   71     72   
                            ::tracing::error!(error = %e, "failed to serialize response");
   72     73   
                            ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
   73     74   
                        }
   74     75   
                    }
   75     76   
    }
   76     77   
}
   77     78   
impl
   78     79   
    ::aws_smithy_legacy_http_server::response::IntoResponse<
   79     80   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
   80         -
    > for crate::error::GetStorageError
          81  +
    > for crate::error::GetServerStatisticsError
   81     82   
{
   82     83   
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
   83         -
        match crate::protocol_serde::shape_get_storage::ser_get_storage_http_error(&self) {
          84  +
        match crate::protocol_serde::shape_get_server_statistics::ser_get_server_statistics_http_error(&self) {
   84     85   
            Ok(mut response) => {
   85         -
                response.extensions_mut().insert(
   86         -
                    ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
   87         -
                        self.name(),
   88         -
                    ),
   89         -
                );
          86  +
                response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
   90     87   
                response
   91         -
            }
          88  +
            },
   92     89   
            Err(e) => {
   93     90   
                ::tracing::error!(error = %e, "failed to serialize response");
   94     91   
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
   95     92   
            }
   96     93   
        }
   97     94   
    }
   98     95   
}
   99     96   
  100     97   
::pin_project_lite::pin_project! {
  101     98   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  102         -
    /// [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput) using modelled bindings.
  103         -
    pub struct GetPokemonSpeciesInputFuture {
  104         -
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::GetPokemonSpeciesInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
          99  +
    /// [`DoNothingInput`](crate::input::DoNothingInput) using modelled bindings.
         100  +
    pub struct DoNothingInputFuture {
         101  +
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::DoNothingInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  105    102   
    }
  106    103   
}
  107    104   
  108         -
impl std::future::Future for GetPokemonSpeciesInputFuture {
         105  +
impl std::future::Future for DoNothingInputFuture {
  109    106   
    type Output = Result<
  110         -
        crate::input::GetPokemonSpeciesInput,
         107  +
        crate::input::DoNothingInput,
  111    108   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
  112    109   
    >;
  113    110   
  114    111   
    fn poll(
  115    112   
        self: std::pin::Pin<&mut Self>,
  116    113   
        cx: &mut std::task::Context<'_>,
  117    114   
    ) -> std::task::Poll<Self::Output> {
  118    115   
        let this = self.project();
  119    116   
        this.inner.as_mut().poll(cx)
  120    117   
    }
  121    118   
}
  122    119   
  123    120   
impl<B>
  124    121   
    ::aws_smithy_legacy_http_server::request::FromRequest<
  125    122   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  126    123   
        B,
  127         -
    > for crate::input::GetPokemonSpeciesInput
         124  +
    > for crate::input::DoNothingInput
  128    125   
where
  129    126   
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
  130    127   
    B: 'static,
  131    128   
  132    129   
    B::Data: Send,
  133    130   
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
  134    131   
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
  135    132   
{
  136    133   
    type Rejection =
  137    134   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
  138         -
    type Future = GetPokemonSpeciesInputFuture;
         135  +
    type Future = DoNothingInputFuture;
  139    136   
  140    137   
    fn from_request(request: ::http::Request<B>) -> Self::Future {
  141    138   
        let fut = async move {
  142    139   
            if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
  143    140   
                request.headers(),
  144    141   
                &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
  145    142   
            ) {
  146    143   
                return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
  147    144   
            }
  148         -
            crate::protocol_serde::shape_get_pokemon_species::de_get_pokemon_species_http_request(
  149         -
                request,
  150         -
            )
  151         -
            .await
         145  +
            crate::protocol_serde::shape_do_nothing::de_do_nothing_http_request(request).await
  152    146   
        };
  153    147   
        use ::futures_util::future::TryFutureExt;
  154    148   
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
  155    149   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
  156    150   
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
  157    151   
                    });
  158         -
        GetPokemonSpeciesInputFuture {
         152  +
        DoNothingInputFuture {
  159    153   
            inner: Box::pin(fut),
  160    154   
        }
  161    155   
    }
  162    156   
}
  163    157   
impl
  164    158   
    ::aws_smithy_legacy_http_server::response::IntoResponse<
  165    159   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  166         -
    > for crate::output::GetPokemonSpeciesOutput
         160  +
    > for crate::output::DoNothingOutput
  167    161   
{
  168    162   
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  169         -
        match crate::protocol_serde::shape_get_pokemon_species::ser_get_pokemon_species_http_response(self) {
         163  +
        match crate::protocol_serde::shape_do_nothing::ser_do_nothing_http_response(self) {
  170    164   
            Ok(response) => response,
  171    165   
            Err(e) => {
  172    166   
                ::tracing::error!(error = %e, "failed to serialize response");
  173    167   
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  174    168   
            }
  175    169   
        }
  176    170   
    }
  177    171   
}
  178    172   
impl
  179    173   
    ::aws_smithy_legacy_http_server::response::IntoResponse<
  180    174   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  181         -
    > for crate::error::GetPokemonSpeciesError
         175  +
    > for crate::error::DoNothingError
  182    176   
{
  183    177   
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  184         -
        match crate::protocol_serde::shape_get_pokemon_species::ser_get_pokemon_species_http_error(
  185         -
            &self,
  186         -
        ) {
         178  +
        match crate::protocol_serde::shape_do_nothing::ser_do_nothing_http_error(&self) {
  187    179   
            Ok(mut response) => {
  188    180   
                response.extensions_mut().insert(
  189    181   
                    ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
  190    182   
                        self.name(),
  191    183   
                    ),
  192    184   
                );
  193    185   
                response
  194    186   
            }
  195    187   
            Err(e) => {
  196    188   
                ::tracing::error!(error = %e, "failed to serialize response");
  197    189   
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  198    190   
            }
  199    191   
        }
  200    192   
    }
  201    193   
}
  202    194   
  203    195   
::pin_project_lite::pin_project! {
  204    196   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  205         -
    /// [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput) using modelled bindings.
  206         -
    pub struct StreamPokemonRadioInputFuture {
  207         -
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::StreamPokemonRadioInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
         197  +
    /// [`CapturePokemonInput`](crate::input::CapturePokemonInput) using modelled bindings.
         198  +
    pub struct CapturePokemonInputFuture {
         199  +
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::CapturePokemonInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  208    200   
    }
  209    201   
}
  210    202   
  211         -
impl std::future::Future for StreamPokemonRadioInputFuture {
         203  +
impl std::future::Future for CapturePokemonInputFuture {
  212    204   
    type Output = Result<
  213         -
        crate::input::StreamPokemonRadioInput,
         205  +
        crate::input::CapturePokemonInput,
  214    206   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
  215    207   
    >;
  216    208   
  217    209   
    fn poll(
  218    210   
        self: std::pin::Pin<&mut Self>,
  219    211   
        cx: &mut std::task::Context<'_>,
  220    212   
    ) -> std::task::Poll<Self::Output> {
  221    213   
        let this = self.project();
  222    214   
        this.inner.as_mut().poll(cx)
  223    215   
    }
  224    216   
}
  225    217   
  226    218   
impl<B>
  227    219   
    ::aws_smithy_legacy_http_server::request::FromRequest<
  228    220   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  229    221   
        B,
  230         -
    > for crate::input::StreamPokemonRadioInput
         222  +
    > for crate::input::CapturePokemonInput
  231    223   
where
  232    224   
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
  233    225   
    B: 'static,
  234    226   
         227  +
    B: Into<::aws_smithy_types::byte_stream::ByteStream>,
  235    228   
    B::Data: Send,
  236    229   
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
  237    230   
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
  238    231   
{
  239    232   
    type Rejection =
  240    233   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
  241         -
    type Future = StreamPokemonRadioInputFuture;
         234  +
    type Future = CapturePokemonInputFuture;
  242    235   
  243    236   
    fn from_request(request: ::http::Request<B>) -> Self::Future {
  244    237   
        let fut = async move {
  245    238   
            if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
  246    239   
                request.headers(),
  247         -
                &crate::mimes::CONTENT_TYPE_APPLICATION_OCTET_STREAM,
         240  +
                &crate::mimes::CONTENT_TYPE_APPLICATION_VND_AMAZON_EVENTSTREAM,
  248    241   
            ) {
  249    242   
                return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
  250    243   
            }
  251         -
            crate::protocol_serde::shape_stream_pokemon_radio::de_stream_pokemon_radio_http_request(
  252         -
                request,
  253         -
            )
         244  +
            crate::protocol_serde::shape_capture_pokemon::de_capture_pokemon_http_request(request)
  254    245   
                .await
  255    246   
        };
  256    247   
        use ::futures_util::future::TryFutureExt;
  257    248   
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
  258    249   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
  259    250   
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
  260    251   
                    });
  261         -
        StreamPokemonRadioInputFuture {
         252  +
        CapturePokemonInputFuture {
  262    253   
            inner: Box::pin(fut),
  263    254   
        }
  264    255   
    }
  265    256   
}
  266    257   
impl
  267    258   
    ::aws_smithy_legacy_http_server::response::IntoResponse<
  268    259   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  269         -
    > for crate::output::StreamPokemonRadioOutput
         260  +
    > for crate::output::CapturePokemonOutput
  270    261   
{
  271    262   
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  272         -
        match crate::protocol_serde::shape_stream_pokemon_radio::ser_stream_pokemon_radio_http_response(self) {
         263  +
        match crate::protocol_serde::shape_capture_pokemon::ser_capture_pokemon_http_response(self)
         264  +
        {
  273    265   
            Ok(response) => response,
  274    266   
            Err(e) => {
  275    267   
                ::tracing::error!(error = %e, "failed to serialize response");
  276    268   
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  277    269   
            }
  278    270   
        }
  279    271   
    }
  280    272   
}
  281    273   
impl
  282    274   
    ::aws_smithy_legacy_http_server::response::IntoResponse<
  283    275   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  284         -
    > for crate::error::StreamPokemonRadioError
         276  +
    > for crate::error::CapturePokemonError
  285    277   
{
  286    278   
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  287         -
        match crate::protocol_serde::shape_stream_pokemon_radio::ser_stream_pokemon_radio_http_error(
  288         -
            &self,
  289         -
        ) {
         279  +
        match crate::protocol_serde::shape_capture_pokemon::ser_capture_pokemon_http_error(&self) {
  290    280   
            Ok(mut response) => {
  291    281   
                response.extensions_mut().insert(
  292    282   
                    ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
  293    283   
                        self.name(),
  294    284   
                    ),
  295    285   
                );
  296    286   
                response
  297    287   
            }
  298    288   
            Err(e) => {
  299    289   
                ::tracing::error!(error = %e, "failed to serialize response");
@@ -376,366 +696,696 @@
  396    386   
            Err(e) => {
  397    387   
                ::tracing::error!(error = %e, "failed to serialize response");
  398    388   
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  399    389   
            }
  400    390   
        }
  401    391   
    }
  402    392   
}
  403    393   
  404    394   
::pin_project_lite::pin_project! {
  405    395   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  406         -
    /// [`CapturePokemonInput`](crate::input::CapturePokemonInput) using modelled bindings.
  407         -
    pub struct CapturePokemonInputFuture {
  408         -
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::CapturePokemonInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
         396  +
    /// [`StreamPokemonRadioInput`](crate::input::StreamPokemonRadioInput) using modelled bindings.
         397  +
    pub struct StreamPokemonRadioInputFuture {
         398  +
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::StreamPokemonRadioInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  409    399   
    }
  410    400   
}
  411    401   
  412         -
impl std::future::Future for CapturePokemonInputFuture {
         402  +
impl std::future::Future for StreamPokemonRadioInputFuture {
  413    403   
    type Output = Result<
  414         -
        crate::input::CapturePokemonInput,
         404  +
        crate::input::StreamPokemonRadioInput,
  415    405   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
  416    406   
    >;
  417    407   
  418    408   
    fn poll(
  419    409   
        self: std::pin::Pin<&mut Self>,
  420    410   
        cx: &mut std::task::Context<'_>,
  421    411   
    ) -> std::task::Poll<Self::Output> {
  422    412   
        let this = self.project();
  423    413   
        this.inner.as_mut().poll(cx)
  424    414   
    }
  425    415   
}
  426    416   
  427    417   
impl<B>
  428    418   
    ::aws_smithy_legacy_http_server::request::FromRequest<
  429    419   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  430    420   
        B,
  431         -
    > for crate::input::CapturePokemonInput
         421  +
    > for crate::input::StreamPokemonRadioInput
  432    422   
where
  433    423   
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
  434    424   
    B: 'static,
  435    425   
  436         -
    B: Into<::aws_smithy_types::byte_stream::ByteStream>,
  437    426   
    B::Data: Send,
  438    427   
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
  439    428   
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
  440    429   
{
  441    430   
    type Rejection =
  442    431   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
  443         -
    type Future = CapturePokemonInputFuture;
         432  +
    type Future = StreamPokemonRadioInputFuture;
  444    433   
  445    434   
    fn from_request(request: ::http::Request<B>) -> Self::Future {
  446    435   
        let fut = async move {
  447    436   
            if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
  448    437   
                request.headers(),
  449         -
                &crate::mimes::CONTENT_TYPE_APPLICATION_VND_AMAZON_EVENTSTREAM,
         438  +
                &crate::mimes::CONTENT_TYPE_APPLICATION_OCTET_STREAM,
  450    439   
            ) {
  451    440   
                return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
  452    441   
            }
  453         -
            crate::protocol_serde::shape_capture_pokemon::de_capture_pokemon_http_request(request)
         442  +
            crate::protocol_serde::shape_stream_pokemon_radio::de_stream_pokemon_radio_http_request(
         443  +
                request,
         444  +
            )
  454    445   
            .await
  455    446   
        };
  456    447   
        use ::futures_util::future::TryFutureExt;
  457    448   
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
  458    449   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
  459    450   
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
  460    451   
                    });
  461         -
        CapturePokemonInputFuture {
         452  +
        StreamPokemonRadioInputFuture {
  462    453   
            inner: Box::pin(fut),
  463    454   
        }
  464    455   
    }
  465    456   
}
  466    457   
impl
  467    458   
    ::aws_smithy_legacy_http_server::response::IntoResponse<
  468    459   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  469         -
    > for crate::output::CapturePokemonOutput
         460  +
    > for crate::output::StreamPokemonRadioOutput
  470    461   
{
  471    462   
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  472         -
        match crate::protocol_serde::shape_capture_pokemon::ser_capture_pokemon_http_response(self)
  473         -
        {
         463  +
        match crate::protocol_serde::shape_stream_pokemon_radio::ser_stream_pokemon_radio_http_response(self) {
  474    464   
                        Ok(response) => response,
  475    465   
                        Err(e) => {
  476    466   
                            ::tracing::error!(error = %e, "failed to serialize response");
  477    467   
                            ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  478    468   
                        }
  479    469   
                    }
  480    470   
    }
  481    471   
}
  482    472   
impl
  483    473   
    ::aws_smithy_legacy_http_server::response::IntoResponse<
  484    474   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  485         -
    > for crate::error::CapturePokemonError
         475  +
    > for crate::error::StreamPokemonRadioError
  486    476   
{
  487    477   
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  488         -
        match crate::protocol_serde::shape_capture_pokemon::ser_capture_pokemon_http_error(&self) {
         478  +
        match crate::protocol_serde::shape_stream_pokemon_radio::ser_stream_pokemon_radio_http_error(
         479  +
            &self,
         480  +
        ) {
  489    481   
            Ok(mut response) => {
  490    482   
                response.extensions_mut().insert(
  491    483   
                    ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
  492    484   
                        self.name(),
  493    485   
                    ),
  494    486   
                );
  495    487   
                response
  496    488   
            }
  497    489   
            Err(e) => {
  498    490   
                ::tracing::error!(error = %e, "failed to serialize response");
  499    491   
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  500    492   
            }
  501    493   
        }
  502    494   
    }
  503    495   
}
  504    496   
  505    497   
::pin_project_lite::pin_project! {
  506    498   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  507         -
    /// [`DoNothingInput`](crate::input::DoNothingInput) using modelled bindings.
  508         -
    pub struct DoNothingInputFuture {
  509         -
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::DoNothingInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
         499  +
    /// [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput) using modelled bindings.
         500  +
    pub struct GetPokemonSpeciesInputFuture {
         501  +
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::GetPokemonSpeciesInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  510    502   
    }
  511    503   
}
  512    504   
  513         -
impl std::future::Future for DoNothingInputFuture {
         505  +
impl std::future::Future for GetPokemonSpeciesInputFuture {
  514    506   
    type Output = Result<
  515         -
        crate::input::DoNothingInput,
         507  +
        crate::input::GetPokemonSpeciesInput,
  516    508   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
  517    509   
    >;
  518    510   
  519    511   
    fn poll(
  520    512   
        self: std::pin::Pin<&mut Self>,
  521    513   
        cx: &mut std::task::Context<'_>,
  522    514   
    ) -> std::task::Poll<Self::Output> {
  523    515   
        let this = self.project();
  524    516   
        this.inner.as_mut().poll(cx)
  525    517   
    }
  526    518   
}
  527    519   
  528    520   
impl<B>
  529    521   
    ::aws_smithy_legacy_http_server::request::FromRequest<
  530    522   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  531    523   
        B,
  532         -
    > for crate::input::DoNothingInput
         524  +
    > for crate::input::GetPokemonSpeciesInput
  533    525   
where
  534    526   
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
  535    527   
    B: 'static,
  536    528   
  537    529   
    B::Data: Send,
  538    530   
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
  539    531   
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
  540    532   
{
  541    533   
    type Rejection =
  542    534   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
  543         -
    type Future = DoNothingInputFuture;
         535  +
    type Future = GetPokemonSpeciesInputFuture;
  544    536   
  545    537   
    fn from_request(request: ::http::Request<B>) -> Self::Future {
  546    538   
        let fut = async move {
  547    539   
            if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
  548    540   
                request.headers(),
  549    541   
                &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
  550    542   
            ) {
  551    543   
                return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
  552    544   
            }
  553         -
            crate::protocol_serde::shape_do_nothing::de_do_nothing_http_request(request).await
         545  +
            crate::protocol_serde::shape_get_pokemon_species::de_get_pokemon_species_http_request(
         546  +
                request,
         547  +
            )
         548  +
            .await
  554    549   
        };
  555    550   
        use ::futures_util::future::TryFutureExt;
  556    551   
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
  557    552   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
  558    553   
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
  559    554   
                    });
  560         -
        DoNothingInputFuture {
         555  +
        GetPokemonSpeciesInputFuture {
  561    556   
            inner: Box::pin(fut),
  562    557   
        }
  563    558   
    }
  564    559   
}
  565    560   
impl
  566    561   
    ::aws_smithy_legacy_http_server::response::IntoResponse<
  567    562   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  568         -
    > for crate::output::DoNothingOutput
         563  +
    > for crate::output::GetPokemonSpeciesOutput
  569    564   
{
  570    565   
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  571         -
        match crate::protocol_serde::shape_do_nothing::ser_do_nothing_http_response(self) {
         566  +
        match crate::protocol_serde::shape_get_pokemon_species::ser_get_pokemon_species_http_response(self) {
  572    567   
                        Ok(response) => response,
  573    568   
                        Err(e) => {
  574    569   
                            ::tracing::error!(error = %e, "failed to serialize response");
  575    570   
                            ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  576    571   
                        }
  577    572   
                    }
  578    573   
    }
  579    574   
}
  580    575   
impl
  581    576   
    ::aws_smithy_legacy_http_server::response::IntoResponse<
  582    577   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  583         -
    > for crate::error::DoNothingError
         578  +
    > for crate::error::GetPokemonSpeciesError
  584    579   
{
  585    580   
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  586         -
        match crate::protocol_serde::shape_do_nothing::ser_do_nothing_http_error(&self) {
         581  +
        match crate::protocol_serde::shape_get_pokemon_species::ser_get_pokemon_species_http_error(
         582  +
            &self,
         583  +
        ) {
  587    584   
            Ok(mut response) => {
  588    585   
                response.extensions_mut().insert(
  589    586   
                    ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
  590    587   
                        self.name(),
  591    588   
                    ),
  592    589   
                );
  593    590   
                response
  594    591   
            }
  595    592   
            Err(e) => {
  596    593   
                ::tracing::error!(error = %e, "failed to serialize response");
  597    594   
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  598    595   
            }
  599    596   
        }
  600    597   
    }
  601    598   
}
  602    599   
  603    600   
::pin_project_lite::pin_project! {
  604    601   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  605         -
    /// [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput) using modelled bindings.
  606         -
    pub struct GetServerStatisticsInputFuture {
  607         -
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::GetServerStatisticsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
         602  +
    /// [`GetStorageInput`](crate::input::GetStorageInput) using modelled bindings.
         603  +
    pub struct GetStorageInputFuture {
         604  +
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::GetStorageInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  608    605   
    }
  609    606   
}
  610    607   
  611         -
impl std::future::Future for GetServerStatisticsInputFuture {
         608  +
impl std::future::Future for GetStorageInputFuture {
  612    609   
    type Output = Result<
  613         -
        crate::input::GetServerStatisticsInput,
         610  +
        crate::input::GetStorageInput,
  614    611   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
  615    612   
    >;
  616    613   
  617    614   
    fn poll(
  618    615   
        self: std::pin::Pin<&mut Self>,
  619    616   
        cx: &mut std::task::Context<'_>,
  620    617   
    ) -> std::task::Poll<Self::Output> {
  621    618   
        let this = self.project();
  622    619   
        this.inner.as_mut().poll(cx)
  623    620   
    }
  624    621   
}
  625    622   
  626    623   
impl<B>
  627    624   
    ::aws_smithy_legacy_http_server::request::FromRequest<
  628    625   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  629    626   
        B,
  630         -
    > for crate::input::GetServerStatisticsInput
         627  +
    > for crate::input::GetStorageInput
  631    628   
where
  632    629   
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
  633    630   
    B: 'static,
  634    631   
  635    632   
    B::Data: Send,
  636    633   
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
  637    634   
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
  638    635   
{
  639    636   
    type Rejection =
  640    637   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
  641         -
    type Future = GetServerStatisticsInputFuture;
         638  +
    type Future = GetStorageInputFuture;
  642    639   
  643    640   
    fn from_request(request: ::http::Request<B>) -> Self::Future {
  644    641   
        let fut = async move {
  645    642   
            if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
  646    643   
                request.headers(),
  647    644   
                &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
  648    645   
            ) {
  649    646   
                return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
  650    647   
            }
  651         -
            crate::protocol_serde::shape_get_server_statistics::de_get_server_statistics_http_request(request)
  652         -
                            .await
         648  +
            crate::protocol_serde::shape_get_storage::de_get_storage_http_request(request).await
  653    649   
        };
  654    650   
        use ::futures_util::future::TryFutureExt;
  655    651   
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
  656    652   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
  657    653   
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
  658    654   
                    });
  659         -
        GetServerStatisticsInputFuture {
         655  +
        GetStorageInputFuture {
  660    656   
            inner: Box::pin(fut),
  661    657   
        }
  662    658   
    }
  663    659   
}
  664    660   
impl
  665    661   
    ::aws_smithy_legacy_http_server::response::IntoResponse<
  666    662   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  667         -
    > for crate::output::GetServerStatisticsOutput
         663  +
    > for crate::output::GetStorageOutput
  668    664   
{
  669    665   
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  670         -
        match crate::protocol_serde::shape_get_server_statistics::ser_get_server_statistics_http_response(self) {
         666  +
        match crate::protocol_serde::shape_get_storage::ser_get_storage_http_response(self) {
  671    667   
            Ok(response) => response,
  672    668   
            Err(e) => {
  673    669   
                ::tracing::error!(error = %e, "failed to serialize response");
  674    670   
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  675    671   
            }
  676    672   
        }
  677    673   
    }
  678    674   
}
  679    675   
impl
  680    676   
    ::aws_smithy_legacy_http_server::response::IntoResponse<
  681    677   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  682         -
    > for crate::error::GetServerStatisticsError
         678  +
    > for crate::error::GetStorageError
  683    679   
{
  684    680   
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  685         -
        match crate::protocol_serde::shape_get_server_statistics::ser_get_server_statistics_http_error(&self) {
         681  +
        match crate::protocol_serde::shape_get_storage::ser_get_storage_http_error(&self) {
  686    682   
            Ok(mut response) => {
  687         -
                response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
         683  +
                response.extensions_mut().insert(
         684  +
                    ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
         685  +
                        self.name(),
         686  +
                    ),
         687  +
                );
  688    688   
                response
  689         -
            },
         689  +
            }
  690    690   
            Err(e) => {
  691    691   
                ::tracing::error!(error = %e, "failed to serialize response");
  692    692   
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  693    693   
            }
  694    694   
        }
  695    695   
    }
  696    696   
}