Server Test Typescript

Server Test Typescript

rev. 7254d43655ed63111c94f599437f2b0d3f55446e (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-server-test-typescript/pokemon-service-server-sdk/rust-server-codegen-typescript/src/error.rs

@@ -1,1 +31,214 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/// Error type for the `GetServerStatistics` operation.
           3  +
/// Each variant represents an error that can occur for the `GetServerStatistics` operation.
           4  +
#[derive(::std::fmt::Debug)]
           5  +
pub enum GetServerStatisticsError {
           6  +
    #[allow(missing_docs)] // documentation missing in model
           7  +
    InternalServerError(crate::error::InternalServerError),
           8  +
}
           9  +
impl ::std::fmt::Display for GetServerStatisticsError {
          10  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          11  +
        match &self {
          12  +
            GetServerStatisticsError::InternalServerError(_inner) => _inner.fmt(f),
          13  +
        }
          14  +
    }
          15  +
}
          16  +
impl GetServerStatisticsError {
          17  +
    /// Returns `true` if the error kind is `GetServerStatisticsError::InternalServerError`.
          18  +
    pub fn is_internal_server_error(&self) -> bool {
          19  +
        matches!(&self, GetServerStatisticsError::InternalServerError(_))
          20  +
    }
          21  +
    /// Returns the error name string by matching the correct variant.
          22  +
    pub fn name(&self) -> &'static str {
          23  +
        match &self {
          24  +
            GetServerStatisticsError::InternalServerError(_inner) => _inner.name(),
          25  +
        }
          26  +
    }
          27  +
}
          28  +
impl ::std::error::Error for GetServerStatisticsError {
          29  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
          30  +
        match &self {
          31  +
            GetServerStatisticsError::InternalServerError(_inner) => Some(_inner),
          32  +
        }
          33  +
    }
          34  +
}
          35  +
impl ::std::convert::From<crate::error::InternalServerError>
          36  +
    for crate::error::GetServerStatisticsError
          37  +
{
          38  +
    fn from(variant: crate::error::InternalServerError) -> crate::error::GetServerStatisticsError {
          39  +
        Self::InternalServerError(variant)
          40  +
    }
          41  +
}
          42  +
          43  +
impl ::std::convert::From<::napi::Error> for crate::error::GetServerStatisticsError {
          44  +
    fn from(variant: ::napi::Error) -> crate::error::GetServerStatisticsError {
          45  +
        crate::error::InternalServerError {
          46  +
            message: variant.to_string(),
          47  +
        }
          48  +
        .into()
          49  +
    }
          50  +
}
          51  +
          52  +
/// Error type for the `DoNothing` operation.
          53  +
/// Each variant represents an error that can occur for the `DoNothing` operation.
          54  +
#[derive(::std::fmt::Debug)]
          55  +
pub enum DoNothingError {
          56  +
    #[allow(missing_docs)] // documentation missing in model
          57  +
    InternalServerError(crate::error::InternalServerError),
          58  +
}
          59  +
impl ::std::fmt::Display for DoNothingError {
          60  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          61  +
        match &self {
          62  +
            DoNothingError::InternalServerError(_inner) => _inner.fmt(f),
          63  +
        }
          64  +
    }
          65  +
}
          66  +
impl DoNothingError {
          67  +
    /// Returns `true` if the error kind is `DoNothingError::InternalServerError`.
          68  +
    pub fn is_internal_server_error(&self) -> bool {
          69  +
        matches!(&self, DoNothingError::InternalServerError(_))
          70  +
    }
          71  +
    /// Returns the error name string by matching the correct variant.
          72  +
    pub fn name(&self) -> &'static str {
          73  +
        match &self {
          74  +
            DoNothingError::InternalServerError(_inner) => _inner.name(),
          75  +
        }
          76  +
    }
          77  +
}
          78  +
impl ::std::error::Error for DoNothingError {
          79  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
          80  +
        match &self {
          81  +
            DoNothingError::InternalServerError(_inner) => Some(_inner),
          82  +
        }
          83  +
    }
          84  +
}
          85  +
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::DoNothingError {
          86  +
    fn from(variant: crate::error::InternalServerError) -> crate::error::DoNothingError {
          87  +
        Self::InternalServerError(variant)
          88  +
    }
          89  +
}
          90  +
          91  +
impl ::std::convert::From<::napi::Error> for crate::error::DoNothingError {
          92  +
    fn from(variant: ::napi::Error) -> crate::error::DoNothingError {
          93  +
        crate::error::InternalServerError {
          94  +
            message: variant.to_string(),
          95  +
        }
          96  +
        .into()
          97  +
    }
          98  +
}
          99  +
         100  +
/// Error type for the `CheckHealth` operation.
         101  +
/// Each variant represents an error that can occur for the `CheckHealth` operation.
         102  +
#[derive(::std::fmt::Debug)]
         103  +
pub enum CheckHealthError {
         104  +
    #[allow(missing_docs)] // documentation missing in model
         105  +
    InternalServerError(crate::error::InternalServerError),
         106  +
}
         107  +
impl ::std::fmt::Display for CheckHealthError {
         108  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         109  +
        match &self {
         110  +
            CheckHealthError::InternalServerError(_inner) => _inner.fmt(f),
         111  +
        }
         112  +
    }
         113  +
}
         114  +
impl CheckHealthError {
         115  +
    /// Returns `true` if the error kind is `CheckHealthError::InternalServerError`.
         116  +
    pub fn is_internal_server_error(&self) -> bool {
         117  +
        matches!(&self, CheckHealthError::InternalServerError(_))
         118  +
    }
         119  +
    /// Returns the error name string by matching the correct variant.
         120  +
    pub fn name(&self) -> &'static str {
         121  +
        match &self {
         122  +
            CheckHealthError::InternalServerError(_inner) => _inner.name(),
         123  +
        }
         124  +
    }
         125  +
}
         126  +
impl ::std::error::Error for CheckHealthError {
         127  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         128  +
        match &self {
         129  +
            CheckHealthError::InternalServerError(_inner) => Some(_inner),
         130  +
        }
         131  +
    }
         132  +
}
         133  +
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::CheckHealthError {
         134  +
    fn from(variant: crate::error::InternalServerError) -> crate::error::CheckHealthError {
         135  +
        Self::InternalServerError(variant)
         136  +
    }
         137  +
}
         138  +
         139  +
impl ::std::convert::From<::napi::Error> for crate::error::CheckHealthError {
         140  +
    fn from(variant: ::napi::Error) -> crate::error::CheckHealthError {
         141  +
        crate::error::InternalServerError {
         142  +
            message: variant.to_string(),
         143  +
        }
         144  +
        .into()
         145  +
    }
         146  +
}
         147  +
         148  +
#[::napi_derive::napi(constructor)]
         149  +
#[allow(missing_docs)] // documentation missing in model
         150  +
#[derive(
         151  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
         152  +
)]
         153  +
pub struct InternalServerError {
         154  +
    #[allow(missing_docs)] // documentation missing in model
         155  +
    pub message: ::std::string::String,
         156  +
}
         157  +
impl InternalServerError {
         158  +
    /// Returns the error message.
         159  +
    pub fn message(&self) -> &str {
         160  +
        &self.message
         161  +
    }
         162  +
    #[doc(hidden)]
         163  +
    /// Returns the error name.
         164  +
    pub fn name(&self) -> &'static str {
         165  +
        "InternalServerError"
         166  +
    }
         167  +
}
         168  +
impl ::std::fmt::Display for InternalServerError {
         169  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         170  +
        ::std::write!(f, "InternalServerError")?;
         171  +
        {
         172  +
            ::std::write!(f, ": {}", &self.message)?;
         173  +
        }
         174  +
        Ok(())
         175  +
    }
         176  +
}
         177  +
impl ::std::error::Error for InternalServerError {}
         178  +
impl InternalServerError {
         179  +
    /// Creates a new builder-style object to manufacture [`InternalServerError`](crate::error::InternalServerError).
         180  +
    pub fn builder() -> crate::error::internal_server_error::Builder {
         181  +
        crate::error::internal_server_error::Builder::default()
         182  +
    }
         183  +
}
         184  +
    2    185   
/// Error type for the `GetPokemonSpecies` operation.
    3    186   
/// Each variant represents an error that can occur for the `GetPokemonSpecies` operation.
    4    187   
#[derive(::std::fmt::Debug)]
    5    188   
pub enum GetPokemonSpeciesError {
    6    189   
    #[allow(missing_docs)] // documentation missing in model
    7    190   
    ResourceNotFoundException(crate::error::ResourceNotFoundException),
    8    191   
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
    9    192   
    ValidationException(crate::error::ValidationException),
   10    193   
    #[allow(missing_docs)] // documentation missing in model
   11    194   
    InternalServerError(crate::error::InternalServerError),
@@ -61,244 +516,516 @@
   81    264   
        }
   82    265   
        .into()
   83    266   
    }
   84    267   
}
   85    268   
   86    269   
#[::napi_derive::napi(constructor)]
   87    270   
#[allow(missing_docs)] // documentation missing in model
   88    271   
#[derive(
   89    272   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   90    273   
)]
   91         -
pub struct InternalServerError {
         274  +
pub struct ResourceNotFoundException {
   92    275   
    #[allow(missing_docs)] // documentation missing in model
   93    276   
    pub message: ::std::string::String,
   94    277   
}
   95         -
impl InternalServerError {
         278  +
impl ResourceNotFoundException {
   96    279   
    /// Returns the error message.
   97    280   
    pub fn message(&self) -> &str {
   98    281   
        &self.message
   99    282   
    }
  100    283   
    #[doc(hidden)]
  101    284   
    /// Returns the error name.
  102    285   
    pub fn name(&self) -> &'static str {
  103         -
        "InternalServerError"
         286  +
        "ResourceNotFoundException"
  104    287   
    }
  105    288   
}
  106         -
impl ::std::fmt::Display for InternalServerError {
         289  +
impl ::std::fmt::Display for ResourceNotFoundException {
  107    290   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  108         -
        ::std::write!(f, "InternalServerError")?;
         291  +
        ::std::write!(f, "ResourceNotFoundException")?;
  109    292   
        {
  110    293   
            ::std::write!(f, ": {}", &self.message)?;
  111    294   
        }
  112    295   
        Ok(())
  113    296   
    }
  114    297   
}
  115         -
impl ::std::error::Error for InternalServerError {}
  116         -
impl InternalServerError {
  117         -
    /// Creates a new builder-style object to manufacture [`InternalServerError`](crate::error::InternalServerError).
  118         -
    pub fn builder() -> crate::error::internal_server_error::Builder {
  119         -
        crate::error::internal_server_error::Builder::default()
         298  +
impl ::std::error::Error for ResourceNotFoundException {}
         299  +
impl ResourceNotFoundException {
         300  +
    /// Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
         301  +
    pub fn builder() -> crate::error::resource_not_found_exception::Builder {
         302  +
        crate::error::resource_not_found_exception::Builder::default()
  120    303   
    }
  121    304   
}
  122    305   
  123    306   
#[::napi_derive::napi(constructor)]
  124    307   
/// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
  125    308   
#[derive(
  126    309   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  127    310   
)]
  128    311   
pub struct ValidationException {
  129    312   
    /// A summary of the validation failure.
  130    313   
    pub message: ::std::string::String,
  131    314   
    /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
  132    315   
    pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
  133    316   
}
  134    317   
impl ValidationException {
  135    318   
    /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
  136    319   
    pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
  137    320   
        self.field_list.as_deref()
  138    321   
    }
  139    322   
}
  140    323   
impl ValidationException {
  141    324   
    /// Returns the error message.
  142    325   
    pub fn message(&self) -> &str {
  143    326   
        &self.message
  144    327   
    }
  145    328   
    #[doc(hidden)]
  146    329   
    /// Returns the error name.
  147    330   
    pub fn name(&self) -> &'static str {
  148    331   
        "ValidationException"
  149    332   
    }
  150    333   
}
  151    334   
impl ::std::fmt::Display for ValidationException {
  152    335   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  153    336   
        ::std::write!(f, "ValidationException")?;
  154    337   
        {
  155    338   
            ::std::write!(f, ": {}", &self.message)?;
  156    339   
        }
  157    340   
        Ok(())
  158    341   
    }
  159    342   
}
  160    343   
impl ::std::error::Error for ValidationException {}
  161    344   
impl ValidationException {
  162    345   
    /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
  163    346   
    pub fn builder() -> crate::error::validation_exception::Builder {
  164    347   
        crate::error::validation_exception::Builder::default()
  165    348   
    }
  166    349   
}
  167         -
  168         -
#[::napi_derive::napi(constructor)]
  169         -
#[allow(missing_docs)] // documentation missing in model
  170         -
#[derive(
  171         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  172         -
)]
  173         -
pub struct ResourceNotFoundException {
  174         -
    #[allow(missing_docs)] // documentation missing in model
  175         -
    pub message: ::std::string::String,
  176         -
}
  177         -
impl ResourceNotFoundException {
  178         -
    /// Returns the error message.
  179         -
    pub fn message(&self) -> &str {
  180         -
        &self.message
  181         -
    }
  182         -
    #[doc(hidden)]
  183         -
    /// Returns the error name.
  184         -
    pub fn name(&self) -> &'static str {
  185         -
        "ResourceNotFoundException"
  186         -
    }
  187         -
}
  188         -
impl ::std::fmt::Display for ResourceNotFoundException {
  189         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  190         -
        ::std::write!(f, "ResourceNotFoundException")?;
  191         -
        {
  192         -
            ::std::write!(f, ": {}", &self.message)?;
  193         -
        }
  194         -
        Ok(())
  195         -
    }
  196         -
}
  197         -
impl ::std::error::Error for ResourceNotFoundException {}
  198         -
impl ResourceNotFoundException {
  199         -
    /// Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
  200         -
    pub fn builder() -> crate::error::resource_not_found_exception::Builder {
  201         -
        crate::error::resource_not_found_exception::Builder::default()
  202         -
    }
  203         -
}
  204         -
  205         -
/// Error type for the `CheckHealth` operation.
  206         -
/// Each variant represents an error that can occur for the `CheckHealth` operation.
  207         -
#[derive(::std::fmt::Debug)]
  208         -
pub enum CheckHealthError {
  209         -
    #[allow(missing_docs)] // documentation missing in model
  210         -
    InternalServerError(crate::error::InternalServerError),
  211         -
}
  212         -
impl ::std::fmt::Display for CheckHealthError {
  213         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  214         -
        match &self {
  215         -
            CheckHealthError::InternalServerError(_inner) => _inner.fmt(f),
  216         -
        }
  217         -
    }
  218         -
}
  219         -
impl CheckHealthError {
  220         -
    /// Returns `true` if the error kind is `CheckHealthError::InternalServerError`.
  221         -
    pub fn is_internal_server_error(&self) -> bool {
  222         -
        matches!(&self, CheckHealthError::InternalServerError(_))
  223         -
    }
  224         -
    /// Returns the error name string by matching the correct variant.
  225         -
    pub fn name(&self) -> &'static str {
  226         -
        match &self {
  227         -
            CheckHealthError::InternalServerError(_inner) => _inner.name(),
  228         -
        }
  229         -
    }
  230         -
}
  231         -
impl ::std::error::Error for CheckHealthError {
  232         -
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  233         -
        match &self {
  234         -
            CheckHealthError::InternalServerError(_inner) => Some(_inner),
  235         -
        }
  236         -
    }
  237         -
}
  238         -
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::CheckHealthError {
  239         -
    fn from(variant: crate::error::InternalServerError) -> crate::error::CheckHealthError {
  240         -
        Self::InternalServerError(variant)
  241         -
    }
  242         -
}
  243         -
  244         -
impl ::std::convert::From<::napi::Error> for crate::error::CheckHealthError {
  245         -
    fn from(variant: ::napi::Error) -> crate::error::CheckHealthError {
  246         -
        crate::error::InternalServerError {
  247         -
            message: variant.to_string(),
  248         -
        }
  249         -
        .into()
  250         -
    }
  251         -
}
  252         -
  253         -
/// Error type for the `DoNothing` operation.
  254         -
/// Each variant represents an error that can occur for the `DoNothing` operation.
  255         -
#[derive(::std::fmt::Debug)]
  256         -
pub enum DoNothingError {
  257         -
    #[allow(missing_docs)] // documentation missing in model
  258         -
    InternalServerError(crate::error::InternalServerError),
  259         -
}
  260         -
impl ::std::fmt::Display for DoNothingError {
  261         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  262         -
        match &self {
  263         -
            DoNothingError::InternalServerError(_inner) => _inner.fmt(f),
  264         -
        }
  265         -
    }
  266         -
}
  267         -
impl DoNothingError {
  268         -
    /// Returns `true` if the error kind is `DoNothingError::InternalServerError`.
  269         -
    pub fn is_internal_server_error(&self) -> bool {
  270         -
        matches!(&self, DoNothingError::InternalServerError(_))
  271         -
    }
  272         -
    /// Returns the error name string by matching the correct variant.
  273         -
    pub fn name(&self) -> &'static str {
  274         -
        match &self {
  275         -
            DoNothingError::InternalServerError(_inner) => _inner.name(),
  276         -
        }
  277         -
    }
  278         -
}
  279         -
impl ::std::error::Error for DoNothingError {
  280         -
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  281         -
        match &self {
  282         -
            DoNothingError::InternalServerError(_inner) => Some(_inner),
  283         -
        }
  284         -
    }
  285         -
}
  286         -
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::DoNothingError {
  287         -
    fn from(variant: crate::error::InternalServerError) -> crate::error::DoNothingError {
  288         -
        Self::InternalServerError(variant)
  289         -
    }
  290         -
}
  291         -
  292         -
impl ::std::convert::From<::napi::Error> for crate::error::DoNothingError {
  293         -
    fn from(variant: ::napi::Error) -> crate::error::DoNothingError {
  294         -
        crate::error::InternalServerError {
  295         -
            message: variant.to_string(),
  296         -
        }
  297         -
        .into()
  298         -
    }
  299         -
}
  300         -
  301         -
/// Error type for the `GetServerStatistics` operation.
  302         -
/// Each variant represents an error that can occur for the `GetServerStatistics` operation.
  303         -
#[derive(::std::fmt::Debug)]
  304         -
pub enum GetServerStatisticsError {
  305         -
    #[allow(missing_docs)] // documentation missing in model
  306         -
    InternalServerError(crate::error::InternalServerError),
  307         -
}
  308         -
impl ::std::fmt::Display for GetServerStatisticsError {
  309         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  310         -
        match &self {
  311         -
            GetServerStatisticsError::InternalServerError(_inner) => _inner.fmt(f),
  312         -
        }
  313         -
    }
  314         -
}
  315         -
impl GetServerStatisticsError {
  316         -
    /// Returns `true` if the error kind is `GetServerStatisticsError::InternalServerError`.
  317         -
    pub fn is_internal_server_error(&self) -> bool {
  318         -
        matches!(&self, GetServerStatisticsError::InternalServerError(_))
  319         -
    }
  320         -
    /// Returns the error name string by matching the correct variant.
  321         -
    pub fn name(&self) -> &'static str {
  322         -
        match &self {
  323         -
            GetServerStatisticsError::InternalServerError(_inner) => _inner.name(),
  324         -
        }
  325         -
    }
  326         -
}
  327         -
impl ::std::error::Error for GetServerStatisticsError {
  328         -
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  329         -
        match &self {
  330         -
            GetServerStatisticsError::InternalServerError(_inner) => Some(_inner),
  331         -
        }
  332         -
    }
  333         -
}
  334         -
impl ::std::convert::From<crate::error::InternalServerError>
  335         -
    for crate::error::GetServerStatisticsError
  336         -
{
  337         -
    fn from(variant: crate::error::InternalServerError) -> crate::error::GetServerStatisticsError {
  338         -
        Self::InternalServerError(variant)
  339         -
    }
  340         -
}
  341         -
  342         -
impl ::std::convert::From<::napi::Error> for crate::error::GetServerStatisticsError {
  343         -
    fn from(variant: ::napi::Error) -> crate::error::GetServerStatisticsError {
  344         -
        crate::error::InternalServerError {
  345         -
            message: variant.to_string(),
  346         -
        }
  347         -
        .into()
  348         -
    }
  349         -
}
  350    350   
/// See [`InternalServerError`](crate::error::InternalServerError).
  351    351   
pub mod internal_server_error {
  352    352   
  353    353   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  354    354   
    /// Holds one variant for each of the ways the builder can fail.
  355    355   
    #[allow(clippy::enum_variant_names)]
  356    356   
    pub enum ConstraintViolation {
  357    357   
        /// `message` was not provided but it is required when building `InternalServerError`.
  358    358   
        MissingMessage,
  359    359   
    }
  360    360   
    impl ::std::fmt::Display for ConstraintViolation {
  361    361   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  362    362   
            match self {
  363    363   
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `InternalServerError`"),
  364    364   
            }
  365    365   
        }
  366    366   
    }
  367    367   
    impl ::std::error::Error for ConstraintViolation {}
  368    368   
    impl ::std::convert::TryFrom<Builder> for crate::error::InternalServerError {
  369    369   
        type Error = ConstraintViolation;
  370    370   
  371    371   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  372    372   
            builder.build()
  373    373   
        }
  374    374   
    }
  375    375   
    /// A builder for [`InternalServerError`](crate::error::InternalServerError).
  376    376   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  377    377   
    pub struct Builder {
  378    378   
        pub(crate) message: ::std::option::Option<::std::string::String>,
  379    379   
    }
  380    380   
    impl Builder {
  381    381   
        #[allow(missing_docs)] // documentation missing in model
  382    382   
        pub fn message(mut self, input: ::std::string::String) -> Self {
  383    383   
            self.message = Some(input);
  384    384   
            self
  385    385   
        }
  386    386   
        /// Consumes the builder and constructs a [`InternalServerError`](crate::error::InternalServerError).
  387    387   
        ///
  388    388   
        /// The builder fails to construct a [`InternalServerError`](crate::error::InternalServerError) if you do not provide a value for all non-`Option`al members.
  389    389   
        ///
  390    390   
        pub fn build(self) -> Result<crate::error::InternalServerError, ConstraintViolation> {
  391    391   
            self.build_enforcing_required_and_enum_traits()
  392    392   
        }
  393    393   
        fn build_enforcing_required_and_enum_traits(
  394    394   
            self,
  395    395   
        ) -> Result<crate::error::InternalServerError, ConstraintViolation> {
  396    396   
            Ok(crate::error::InternalServerError {
  397    397   
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
  398    398   
            })
  399    399   
        }
  400    400   
    }
  401    401   
}
  402         -
/// See [`ValidationException`](crate::error::ValidationException).
  403         -
pub mod validation_exception {
         402  +
/// See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
         403  +
pub mod resource_not_found_exception {
  404    404   
  405    405   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  406    406   
    /// Holds one variant for each of the ways the builder can fail.
  407    407   
    #[allow(clippy::enum_variant_names)]
  408    408   
    pub enum ConstraintViolation {
  409         -
        /// `message` was not provided but it is required when building `ValidationException`.
         409  +
        /// `message` was not provided but it is required when building `ResourceNotFoundException`.
  410    410   
        MissingMessage,
  411    411   
    }
  412    412   
    impl ::std::fmt::Display for ConstraintViolation {
  413    413   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  414    414   
            match self {
  415         -
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
         415  +
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ResourceNotFoundException`"),
  416    416   
            }
  417    417   
        }
  418    418   
    }
  419    419   
    impl ::std::error::Error for ConstraintViolation {}
  420         -
    impl ::std::convert::TryFrom<Builder> for crate::error::ValidationException {
         420  +
    impl ::std::convert::TryFrom<Builder> for crate::error::ResourceNotFoundException {
  421    421   
        type Error = ConstraintViolation;
  422    422   
  423    423   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  424    424   
            builder.build()
  425    425   
        }
  426    426   
    }
  427         -
    /// A builder for [`ValidationException`](crate::error::ValidationException).
         427  +
    /// A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
  428    428   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  429    429   
    pub struct Builder {
  430    430   
        pub(crate) message: ::std::option::Option<::std::string::String>,
  431         -
        pub(crate) field_list:
  432         -
            ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
  433    431   
    }
  434    432   
    impl Builder {
  435         -
        /// A summary of the validation failure.
         433  +
        #[allow(missing_docs)] // documentation missing in model
  436    434   
        pub fn message(mut self, input: ::std::string::String) -> Self {
  437    435   
            self.message = Some(input);
  438    436   
            self
  439    437   
        }
  440         -
        /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
  441         -
        pub fn field_list(
  442         -
            mut self,
  443         -
            input: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
  444         -
        ) -> Self {
  445         -
            self.field_list = input;
  446         -
            self
  447         -
        }
  448         -
        /// Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
         438  +
        /// Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
  449    439   
        ///
  450         -
        /// The builder fails to construct a [`ValidationException`](crate::error::ValidationException) if you do not provide a value for all non-`Option`al members.
         440  +
        /// The builder fails to construct a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) if you do not provide a value for all non-`Option`al members.
  451    441   
        ///
  452         -
        pub fn build(self) -> Result<crate::error::ValidationException, ConstraintViolation> {
         442  +
        pub fn build(self) -> Result<crate::error::ResourceNotFoundException, ConstraintViolation> {
  453    443   
            self.build_enforcing_required_and_enum_traits()
  454    444   
        }
  455    445   
        fn build_enforcing_required_and_enum_traits(
  456    446   
            self,
  457         -
        ) -> Result<crate::error::ValidationException, ConstraintViolation> {
  458         -
            Ok(crate::error::ValidationException {
         447  +
        ) -> Result<crate::error::ResourceNotFoundException, ConstraintViolation> {
         448  +
            Ok(crate::error::ResourceNotFoundException {
  459    449   
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
  460         -
                field_list: self.field_list,
  461    450   
            })
  462    451   
        }
  463    452   
    }
  464    453   
}
  465         -
/// See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
  466         -
pub mod resource_not_found_exception {
         454  +
/// See [`ValidationException`](crate::error::ValidationException).
         455  +
pub mod validation_exception {
  467    456   
  468    457   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  469    458   
    /// Holds one variant for each of the ways the builder can fail.
  470    459   
    #[allow(clippy::enum_variant_names)]
  471    460   
    pub enum ConstraintViolation {
  472         -
        /// `message` was not provided but it is required when building `ResourceNotFoundException`.
         461  +
        /// `message` was not provided but it is required when building `ValidationException`.
  473    462   
        MissingMessage,
  474    463   
    }
  475    464   
    impl ::std::fmt::Display for ConstraintViolation {
  476    465   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  477    466   
            match self {
  478         -
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ResourceNotFoundException`"),
         467  +
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
  479    468   
            }
  480    469   
        }
  481    470   
    }
  482    471   
    impl ::std::error::Error for ConstraintViolation {}
  483         -
    impl ::std::convert::TryFrom<Builder> for crate::error::ResourceNotFoundException {
         472  +
    impl ::std::convert::TryFrom<Builder> for crate::error::ValidationException {
  484    473   
        type Error = ConstraintViolation;
  485    474   
  486    475   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  487    476   
            builder.build()
  488    477   
        }
  489    478   
    }
  490         -
    /// A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
         479  +
    /// A builder for [`ValidationException`](crate::error::ValidationException).
  491    480   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  492    481   
    pub struct Builder {
  493    482   
        pub(crate) message: ::std::option::Option<::std::string::String>,
         483  +
        pub(crate) field_list:
         484  +
            ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
  494    485   
    }
  495    486   
    impl Builder {
  496         -
        #[allow(missing_docs)] // documentation missing in model
         487  +
        /// A summary of the validation failure.
  497    488   
        pub fn message(mut self, input: ::std::string::String) -> Self {
  498    489   
            self.message = Some(input);
  499    490   
            self
  500    491   
        }
  501         -
        /// Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
         492  +
        /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
         493  +
        pub fn field_list(
         494  +
            mut self,
         495  +
            input: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
         496  +
        ) -> Self {
         497  +
            self.field_list = input;
         498  +
            self
         499  +
        }
         500  +
        /// Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
  502    501   
        ///
  503         -
        /// The builder fails to construct a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) if you do not provide a value for all non-`Option`al members.
         502  +
        /// The builder fails to construct a [`ValidationException`](crate::error::ValidationException) if you do not provide a value for all non-`Option`al members.
  504    503   
        ///
  505         -
        pub fn build(self) -> Result<crate::error::ResourceNotFoundException, ConstraintViolation> {
         504  +
        pub fn build(self) -> Result<crate::error::ValidationException, ConstraintViolation> {
  506    505   
            self.build_enforcing_required_and_enum_traits()
  507    506   
        }
  508    507   
        fn build_enforcing_required_and_enum_traits(
  509    508   
            self,
  510         -
        ) -> Result<crate::error::ResourceNotFoundException, ConstraintViolation> {
  511         -
            Ok(crate::error::ResourceNotFoundException {
         509  +
        ) -> Result<crate::error::ValidationException, ConstraintViolation> {
         510  +
            Ok(crate::error::ValidationException {
  512    511   
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
         512  +
                field_list: self.field_list,
  513    513   
            })
  514    514   
        }
  515    515   
    }
  516    516   
}

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

@@ -1,1 +102,230 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[::napi_derive::napi(object)]
    3      3   
#[allow(missing_docs)] // documentation missing in model
    4      4   
#[derive(
    5      5   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
    6      6   
)]
    7         -
pub struct GetPokemonSpeciesInput {
    8         -
    #[allow(missing_docs)] // documentation missing in model
    9         -
    pub name: ::std::string::String,
           7  +
pub struct GetServerStatisticsInput {}
           8  +
impl crate::constrained::Constrained for crate::input::GetServerStatisticsInput {
           9  +
    type Unconstrained = crate::input::get_server_statistics_input_internal::Builder;
   10     10   
}
   11         -
impl GetPokemonSpeciesInput {
   12         -
    #[allow(missing_docs)] // documentation missing in model
   13         -
    pub fn name(&self) -> &str {
   14         -
        use std::ops::Deref;
   15         -
        self.name.deref()
          11  +
impl GetServerStatisticsInput {
          12  +
    /// Creates a new builder-style object to manufacture [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
          13  +
    pub fn builder() -> crate::input::get_server_statistics_input::Builder {
          14  +
        crate::input::get_server_statistics_input::Builder::default()
   16     15   
    }
   17     16   
}
   18         -
impl crate::constrained::Constrained for crate::input::GetPokemonSpeciesInput {
   19         -
    type Unconstrained = crate::input::get_pokemon_species_input_internal::Builder;
          17  +
          18  +
#[::napi_derive::napi(object)]
          19  +
#[allow(missing_docs)] // documentation missing in model
          20  +
#[derive(
          21  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
          22  +
)]
          23  +
pub struct DoNothingInput {}
          24  +
impl crate::constrained::Constrained for crate::input::DoNothingInput {
          25  +
    type Unconstrained = crate::input::do_nothing_input_internal::Builder;
   20     26   
}
   21         -
impl GetPokemonSpeciesInput {
   22         -
    /// Creates a new builder-style object to manufacture [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
   23         -
    pub fn builder() -> crate::input::get_pokemon_species_input::Builder {
   24         -
        crate::input::get_pokemon_species_input::Builder::default()
          27  +
impl DoNothingInput {
          28  +
    /// Creates a new builder-style object to manufacture [`DoNothingInput`](crate::input::DoNothingInput).
          29  +
    pub fn builder() -> crate::input::do_nothing_input::Builder {
          30  +
        crate::input::do_nothing_input::Builder::default()
   25     31   
    }
   26     32   
}
   27     33   
   28     34   
#[::napi_derive::napi(object)]
   29     35   
#[allow(missing_docs)] // documentation missing in model
   30     36   
#[derive(
   31     37   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   32     38   
)]
   33     39   
pub struct CheckHealthInput {}
   34     40   
impl crate::constrained::Constrained for crate::input::CheckHealthInput {
   35     41   
    type Unconstrained = crate::input::check_health_input_internal::Builder;
   36     42   
}
   37     43   
impl CheckHealthInput {
   38     44   
    /// Creates a new builder-style object to manufacture [`CheckHealthInput`](crate::input::CheckHealthInput).
   39     45   
    pub fn builder() -> crate::input::check_health_input::Builder {
   40     46   
        crate::input::check_health_input::Builder::default()
   41     47   
    }
   42     48   
}
   43     49   
   44     50   
#[::napi_derive::napi(object)]
   45     51   
#[allow(missing_docs)] // documentation missing in model
   46     52   
#[derive(
   47     53   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   48     54   
)]
   49         -
pub struct DoNothingInput {}
   50         -
impl crate::constrained::Constrained for crate::input::DoNothingInput {
   51         -
    type Unconstrained = crate::input::do_nothing_input_internal::Builder;
          55  +
pub struct GetPokemonSpeciesInput {
          56  +
    #[allow(missing_docs)] // documentation missing in model
          57  +
    pub name: ::std::string::String,
   52     58   
}
   53         -
impl DoNothingInput {
   54         -
    /// Creates a new builder-style object to manufacture [`DoNothingInput`](crate::input::DoNothingInput).
   55         -
    pub fn builder() -> crate::input::do_nothing_input::Builder {
   56         -
        crate::input::do_nothing_input::Builder::default()
          59  +
impl GetPokemonSpeciesInput {
          60  +
    #[allow(missing_docs)] // documentation missing in model
          61  +
    pub fn name(&self) -> &str {
          62  +
        use std::ops::Deref;
          63  +
        self.name.deref()
          64  +
    }
          65  +
}
          66  +
impl crate::constrained::Constrained for crate::input::GetPokemonSpeciesInput {
          67  +
    type Unconstrained = crate::input::get_pokemon_species_input_internal::Builder;
          68  +
}
          69  +
impl GetPokemonSpeciesInput {
          70  +
    /// Creates a new builder-style object to manufacture [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
          71  +
    pub fn builder() -> crate::input::get_pokemon_species_input::Builder {
          72  +
        crate::input::get_pokemon_species_input::Builder::default()
   57     73   
    }
   58     74   
}
          75  +
/// See [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
          76  +
pub(crate) mod get_server_statistics_input_internal {
   59     77   
   60         -
#[::napi_derive::napi(object)]
   61         -
#[allow(missing_docs)] // documentation missing in model
   62         -
#[derive(
   63         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   64         -
)]
   65         -
pub struct GetServerStatisticsInput {}
   66         -
impl crate::constrained::Constrained for crate::input::GetServerStatisticsInput {
   67         -
    type Unconstrained = crate::input::get_server_statistics_input_internal::Builder;
          78  +
    impl ::std::convert::From<Builder> for crate::input::GetServerStatisticsInput {
          79  +
        fn from(builder: Builder) -> Self {
          80  +
            builder.build()
          81  +
        }
          82  +
    }
          83  +
    /// A builder for [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
          84  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
          85  +
    pub(crate) struct Builder {}
          86  +
    impl Builder {
          87  +
        /// Consumes the builder and constructs a [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
          88  +
        pub fn build(self) -> crate::input::GetServerStatisticsInput {
          89  +
            self.build_enforcing_all_constraints()
          90  +
        }
          91  +
        fn build_enforcing_all_constraints(self) -> crate::input::GetServerStatisticsInput {
          92  +
            crate::input::GetServerStatisticsInput {}
          93  +
        }
          94  +
    }
   68     95   
}
   69         -
impl GetServerStatisticsInput {
   70         -
    /// Creates a new builder-style object to manufacture [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
   71         -
    pub fn builder() -> crate::input::get_server_statistics_input::Builder {
   72         -
        crate::input::get_server_statistics_input::Builder::default()
          96  +
/// See [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
          97  +
pub mod get_server_statistics_input {
          98  +
          99  +
    impl ::std::convert::From<Builder> for crate::input::GetServerStatisticsInput {
         100  +
        fn from(builder: Builder) -> Self {
         101  +
            builder.build()
         102  +
        }
         103  +
    }
         104  +
    /// A builder for [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
         105  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         106  +
    pub struct Builder {}
         107  +
    impl Builder {
         108  +
        /// Consumes the builder and constructs a [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
         109  +
        pub fn build(self) -> crate::input::GetServerStatisticsInput {
         110  +
            self.build_enforcing_required_and_enum_traits()
         111  +
        }
         112  +
        fn build_enforcing_required_and_enum_traits(
         113  +
            self,
         114  +
        ) -> crate::input::GetServerStatisticsInput {
         115  +
            crate::input::GetServerStatisticsInput {}
         116  +
        }
         117  +
    }
         118  +
}
         119  +
/// See [`DoNothingInput`](crate::input::DoNothingInput).
         120  +
pub(crate) mod do_nothing_input_internal {
         121  +
         122  +
    impl ::std::convert::From<Builder> for crate::input::DoNothingInput {
         123  +
        fn from(builder: Builder) -> Self {
         124  +
            builder.build()
         125  +
        }
         126  +
    }
         127  +
    /// A builder for [`DoNothingInput`](crate::input::DoNothingInput).
         128  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         129  +
    pub(crate) struct Builder {}
         130  +
    impl Builder {
         131  +
        /// Consumes the builder and constructs a [`DoNothingInput`](crate::input::DoNothingInput).
         132  +
        pub fn build(self) -> crate::input::DoNothingInput {
         133  +
            self.build_enforcing_all_constraints()
         134  +
        }
         135  +
        fn build_enforcing_all_constraints(self) -> crate::input::DoNothingInput {
         136  +
            crate::input::DoNothingInput {}
         137  +
        }
         138  +
    }
         139  +
}
         140  +
/// See [`DoNothingInput`](crate::input::DoNothingInput).
         141  +
pub mod do_nothing_input {
         142  +
         143  +
    impl ::std::convert::From<Builder> for crate::input::DoNothingInput {
         144  +
        fn from(builder: Builder) -> Self {
         145  +
            builder.build()
         146  +
        }
         147  +
    }
         148  +
    /// A builder for [`DoNothingInput`](crate::input::DoNothingInput).
         149  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         150  +
    pub struct Builder {}
         151  +
    impl Builder {
         152  +
        /// Consumes the builder and constructs a [`DoNothingInput`](crate::input::DoNothingInput).
         153  +
        pub fn build(self) -> crate::input::DoNothingInput {
         154  +
            self.build_enforcing_required_and_enum_traits()
         155  +
        }
         156  +
        fn build_enforcing_required_and_enum_traits(self) -> crate::input::DoNothingInput {
         157  +
            crate::input::DoNothingInput {}
         158  +
        }
         159  +
    }
         160  +
}
         161  +
/// See [`CheckHealthInput`](crate::input::CheckHealthInput).
         162  +
pub(crate) mod check_health_input_internal {
         163  +
         164  +
    impl ::std::convert::From<Builder> for crate::input::CheckHealthInput {
         165  +
        fn from(builder: Builder) -> Self {
         166  +
            builder.build()
         167  +
        }
         168  +
    }
         169  +
    /// A builder for [`CheckHealthInput`](crate::input::CheckHealthInput).
         170  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         171  +
    pub(crate) struct Builder {}
         172  +
    impl Builder {
         173  +
        /// Consumes the builder and constructs a [`CheckHealthInput`](crate::input::CheckHealthInput).
         174  +
        pub fn build(self) -> crate::input::CheckHealthInput {
         175  +
            self.build_enforcing_all_constraints()
         176  +
        }
         177  +
        fn build_enforcing_all_constraints(self) -> crate::input::CheckHealthInput {
         178  +
            crate::input::CheckHealthInput {}
         179  +
        }
         180  +
    }
         181  +
}
         182  +
/// See [`CheckHealthInput`](crate::input::CheckHealthInput).
         183  +
pub mod check_health_input {
         184  +
         185  +
    impl ::std::convert::From<Builder> for crate::input::CheckHealthInput {
         186  +
        fn from(builder: Builder) -> Self {
         187  +
            builder.build()
         188  +
        }
         189  +
    }
         190  +
    /// A builder for [`CheckHealthInput`](crate::input::CheckHealthInput).
         191  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         192  +
    pub struct Builder {}
         193  +
    impl Builder {
         194  +
        /// Consumes the builder and constructs a [`CheckHealthInput`](crate::input::CheckHealthInput).
         195  +
        pub fn build(self) -> crate::input::CheckHealthInput {
         196  +
            self.build_enforcing_required_and_enum_traits()
         197  +
        }
         198  +
        fn build_enforcing_required_and_enum_traits(self) -> crate::input::CheckHealthInput {
         199  +
            crate::input::CheckHealthInput {}
         200  +
        }
   73    201   
    }
   74    202   
}
   75    203   
/// See [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput).
   76    204   
pub(crate) mod get_pokemon_species_input_internal {
   77    205   
   78    206   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
   79    207   
    /// Holds one variant for each of the ways the builder can fail.
   80    208   
    #[non_exhaustive]
   81    209   
    #[allow(clippy::enum_variant_names)]
   82    210   
    pub(crate) enum ConstraintViolation {
@@ -195,323 +352,0 @@
  215    343   
        }
  216    344   
        fn build_enforcing_required_and_enum_traits(
  217    345   
            self,
  218    346   
        ) -> Result<crate::input::GetPokemonSpeciesInput, ConstraintViolation> {
  219    347   
            Ok(crate::input::GetPokemonSpeciesInput {
  220    348   
                name: self.name.ok_or(ConstraintViolation::MissingName)?,
  221    349   
            })
  222    350   
        }
  223    351   
    }
  224    352   
}
  225         -
/// See [`CheckHealthInput`](crate::input::CheckHealthInput).
  226         -
pub(crate) mod check_health_input_internal {
  227         -
  228         -
    impl ::std::convert::From<Builder> for crate::input::CheckHealthInput {
  229         -
        fn from(builder: Builder) -> Self {
  230         -
            builder.build()
  231         -
        }
  232         -
    }
  233         -
    /// A builder for [`CheckHealthInput`](crate::input::CheckHealthInput).
  234         -
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  235         -
    pub(crate) struct Builder {}
  236         -
    impl Builder {
  237         -
        /// Consumes the builder and constructs a [`CheckHealthInput`](crate::input::CheckHealthInput).
  238         -
        pub fn build(self) -> crate::input::CheckHealthInput {
  239         -
            self.build_enforcing_all_constraints()
  240         -
        }
  241         -
        fn build_enforcing_all_constraints(self) -> crate::input::CheckHealthInput {
  242         -
            crate::input::CheckHealthInput {}
  243         -
        }
  244         -
    }
  245         -
}
  246         -
/// See [`CheckHealthInput`](crate::input::CheckHealthInput).
  247         -
pub mod check_health_input {
  248         -
  249         -
    impl ::std::convert::From<Builder> for crate::input::CheckHealthInput {
  250         -
        fn from(builder: Builder) -> Self {
  251         -
            builder.build()
  252         -
        }
  253         -
    }
  254         -
    /// A builder for [`CheckHealthInput`](crate::input::CheckHealthInput).
  255         -
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  256         -
    pub struct Builder {}
  257         -
    impl Builder {
  258         -
        /// Consumes the builder and constructs a [`CheckHealthInput`](crate::input::CheckHealthInput).
  259         -
        pub fn build(self) -> crate::input::CheckHealthInput {
  260         -
            self.build_enforcing_required_and_enum_traits()
  261         -
        }
  262         -
        fn build_enforcing_required_and_enum_traits(self) -> crate::input::CheckHealthInput {
  263         -
            crate::input::CheckHealthInput {}
  264         -
        }
  265         -
    }
  266         -
}
  267         -
/// See [`DoNothingInput`](crate::input::DoNothingInput).
  268         -
pub(crate) mod do_nothing_input_internal {
  269         -
  270         -
    impl ::std::convert::From<Builder> for crate::input::DoNothingInput {
  271         -
        fn from(builder: Builder) -> Self {
  272         -
            builder.build()
  273         -
        }
  274         -
    }
  275         -
    /// A builder for [`DoNothingInput`](crate::input::DoNothingInput).
  276         -
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  277         -
    pub(crate) struct Builder {}
  278         -
    impl Builder {
  279         -
        /// Consumes the builder and constructs a [`DoNothingInput`](crate::input::DoNothingInput).
  280         -
        pub fn build(self) -> crate::input::DoNothingInput {
  281         -
            self.build_enforcing_all_constraints()
  282         -
        }
  283         -
        fn build_enforcing_all_constraints(self) -> crate::input::DoNothingInput {
  284         -
            crate::input::DoNothingInput {}
  285         -
        }
  286         -
    }
  287         -
}
  288         -
/// See [`DoNothingInput`](crate::input::DoNothingInput).
  289         -
pub mod do_nothing_input {
  290         -
  291         -
    impl ::std::convert::From<Builder> for crate::input::DoNothingInput {
  292         -
        fn from(builder: Builder) -> Self {
  293         -
            builder.build()
  294         -
        }
  295         -
    }
  296         -
    /// A builder for [`DoNothingInput`](crate::input::DoNothingInput).
  297         -
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  298         -
    pub struct Builder {}
  299         -
    impl Builder {
  300         -
        /// Consumes the builder and constructs a [`DoNothingInput`](crate::input::DoNothingInput).
  301         -
        pub fn build(self) -> crate::input::DoNothingInput {
  302         -
            self.build_enforcing_required_and_enum_traits()
  303         -
        }
  304         -
        fn build_enforcing_required_and_enum_traits(self) -> crate::input::DoNothingInput {
  305         -
            crate::input::DoNothingInput {}
  306         -
        }
  307         -
    }
  308         -
}
  309         -
/// See [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
  310         -
pub(crate) mod get_server_statistics_input_internal {
  311         -
  312         -
    impl ::std::convert::From<Builder> for crate::input::GetServerStatisticsInput {
  313         -
        fn from(builder: Builder) -> Self {
  314         -
            builder.build()
  315         -
        }
  316         -
    }
  317         -
    /// A builder for [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
  318         -
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  319         -
    pub(crate) struct Builder {}
  320         -
    impl Builder {
  321         -
        /// Consumes the builder and constructs a [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
  322         -
        pub fn build(self) -> crate::input::GetServerStatisticsInput {
  323         -
            self.build_enforcing_all_constraints()
  324         -
        }
  325         -
        fn build_enforcing_all_constraints(self) -> crate::input::GetServerStatisticsInput {
  326         -
            crate::input::GetServerStatisticsInput {}
  327         -
        }
  328         -
    }
  329         -
}
  330         -
/// See [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
  331         -
pub mod get_server_statistics_input {
  332         -
  333         -
    impl ::std::convert::From<Builder> for crate::input::GetServerStatisticsInput {
  334         -
        fn from(builder: Builder) -> Self {
  335         -
            builder.build()
  336         -
        }
  337         -
    }
  338         -
    /// A builder for [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
  339         -
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  340         -
    pub struct Builder {}
  341         -
    impl Builder {
  342         -
        /// Consumes the builder and constructs a [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput).
  343         -
        pub fn build(self) -> crate::input::GetServerStatisticsInput {
  344         -
            self.build_enforcing_required_and_enum_traits()
  345         -
        }
  346         -
        fn build_enforcing_required_and_enum_traits(
  347         -
            self,
  348         -
        ) -> crate::input::GetServerStatisticsInput {
  349         -
            crate::input::GetServerStatisticsInput {}
  350         -
        }
  351         -
    }
  352         -
}

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

@@ -1,1 +90,90 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
#[::napi_derive::napi(object)]
           3  +
#[allow(missing_docs)] // documentation missing in model
           4  +
#[derive(
           5  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
           6  +
)]
           7  +
pub struct FlavorText {
           8  +
    /// The localized flavor text for an API resource in a specific language.
           9  +
    pub flavor_text: ::std::string::String,
          10  +
    /// The language this name is in.
          11  +
    pub language: crate::model::Language,
          12  +
}
          13  +
impl FlavorText {
          14  +
    /// The localized flavor text for an API resource in a specific language.
          15  +
    pub fn flavor_text(&self) -> &str {
          16  +
        use std::ops::Deref;
          17  +
        self.flavor_text.deref()
          18  +
    }
          19  +
    /// The language this name is in.
          20  +
    pub fn language(&self) -> &crate::model::Language {
          21  +
        &self.language
          22  +
    }
          23  +
}
          24  +
impl FlavorText {
          25  +
    /// Creates a new builder-style object to manufacture [`FlavorText`](crate::model::FlavorText).
          26  +
    pub fn builder() -> crate::model::flavor_text::Builder {
          27  +
        crate::model::flavor_text::Builder::default()
          28  +
    }
          29  +
}
          30  +
    2     31   
#[::napi_derive::napi(object)]
    3     32   
/// Describes one specific validation failure for an input member.
    4     33   
#[derive(
    5     34   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
    6     35   
)]
    7     36   
pub struct ValidationExceptionField {
    8     37   
    /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
    9     38   
    pub path: ::std::string::String,
   10     39   
    /// A detailed description of the validation failure.
   11     40   
    pub message: ::std::string::String,
   12     41   
}
   13     42   
impl ValidationExceptionField {
   14     43   
    /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
   15     44   
    pub fn path(&self) -> &str {
   16     45   
        use std::ops::Deref;
   17     46   
        self.path.deref()
   18     47   
    }
   19     48   
    /// A detailed description of the validation failure.
   20     49   
    pub fn message(&self) -> &str {
   21     50   
        use std::ops::Deref;
   22     51   
        self.message.deref()
   23     52   
    }
   24     53   
}
   25     54   
impl ValidationExceptionField {
   26     55   
    /// Creates a new builder-style object to manufacture [`ValidationExceptionField`](crate::model::ValidationExceptionField).
   27     56   
    pub fn builder() -> crate::model::validation_exception_field::Builder {
   28     57   
        crate::model::validation_exception_field::Builder::default()
   29     58   
    }
   30     59   
}
   31     60   
   32         -
#[::napi_derive::napi(object)]
   33         -
#[allow(missing_docs)] // documentation missing in model
   34         -
#[derive(
   35         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   36         -
)]
   37         -
pub struct FlavorText {
   38         -
    /// The localized flavor text for an API resource in a specific language.
   39         -
    pub flavor_text: ::std::string::String,
   40         -
    /// The language this name is in.
   41         -
    pub language: crate::model::Language,
   42         -
}
   43         -
impl FlavorText {
   44         -
    /// The localized flavor text for an API resource in a specific language.
   45         -
    pub fn flavor_text(&self) -> &str {
   46         -
        use std::ops::Deref;
   47         -
        self.flavor_text.deref()
   48         -
    }
   49         -
    /// The language this name is in.
   50         -
    pub fn language(&self) -> &crate::model::Language {
   51         -
        &self.language
   52         -
    }
   53         -
}
   54         -
impl FlavorText {
   55         -
    /// Creates a new builder-style object to manufacture [`FlavorText`](crate::model::FlavorText).
   56         -
    pub fn builder() -> crate::model::flavor_text::Builder {
   57         -
        crate::model::flavor_text::Builder::default()
   58         -
    }
   59         -
}
   60         -
   61     61   
#[::napi_derive::napi]
   62     62   
/// Supported languages for FlavorText entries.
   63     63   
#[derive(
   64     64   
    ::std::cmp::Eq,
   65     65   
    ::std::cmp::Ord,
   66     66   
    ::std::cmp::PartialEq,
   67     67   
    ::std::cmp::PartialOrd,
   68     68   
    ::std::fmt::Debug,
   69     69   
    ::std::hash::Hash,
   70     70   
)]
@@ -129,129 +290,290 @@
  149    149   
    type Unconstrained = ::std::string::String;
  150    150   
}
  151    151   
  152    152   
impl ::std::convert::From<::std::string::String>
  153    153   
    for crate::constrained::MaybeConstrained<crate::model::Language>
  154    154   
{
  155    155   
    fn from(value: ::std::string::String) -> Self {
  156    156   
        Self::Unconstrained(value)
  157    157   
    }
  158    158   
}
  159         -
/// See [`ValidationExceptionField`](crate::model::ValidationExceptionField).
  160         -
pub mod validation_exception_field {
         159  +
/// See [`FlavorText`](crate::model::FlavorText).
         160  +
pub mod flavor_text {
  161    161   
  162    162   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  163    163   
    /// Holds one variant for each of the ways the builder can fail.
  164    164   
    #[allow(clippy::enum_variant_names)]
  165    165   
    pub enum ConstraintViolation {
  166         -
        /// `path` was not provided but it is required when building `ValidationExceptionField`.
  167         -
        MissingPath,
  168         -
        /// `message` was not provided but it is required when building `ValidationExceptionField`.
  169         -
        MissingMessage,
         166  +
        /// `flavor_text` was not provided but it is required when building `FlavorText`.
         167  +
        MissingFlavorText,
         168  +
        /// `language` was not provided but it is required when building `FlavorText`.
         169  +
        MissingLanguage,
  170    170   
    }
  171    171   
    impl ::std::fmt::Display for ConstraintViolation {
  172    172   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  173    173   
            match self {
  174         -
                ConstraintViolation::MissingPath => write!(f, "`path` was not provided but it is required when building `ValidationExceptionField`"),
  175         -
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationExceptionField`"),
         174  +
                ConstraintViolation::MissingFlavorText => write!(
         175  +
                    f,
         176  +
                    "`flavor_text` was not provided but it is required when building `FlavorText`"
         177  +
                ),
         178  +
                ConstraintViolation::MissingLanguage => write!(
         179  +
                    f,
         180  +
                    "`language` was not provided but it is required when building `FlavorText`"
         181  +
                ),
  176    182   
            }
  177    183   
        }
  178    184   
    }
  179    185   
    impl ::std::error::Error for ConstraintViolation {}
  180         -
    impl ::std::convert::TryFrom<Builder> for crate::model::ValidationExceptionField {
         186  +
    impl ::std::convert::TryFrom<Builder> for crate::model::FlavorText {
  181    187   
        type Error = ConstraintViolation;
  182    188   
  183    189   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  184    190   
            builder.build()
  185    191   
        }
  186    192   
    }
  187         -
    /// A builder for [`ValidationExceptionField`](crate::model::ValidationExceptionField).
         193  +
    /// A builder for [`FlavorText`](crate::model::FlavorText).
  188    194   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  189    195   
    pub struct Builder {
  190         -
        pub(crate) path: ::std::option::Option<::std::string::String>,
  191         -
        pub(crate) message: ::std::option::Option<::std::string::String>,
         196  +
        pub(crate) flavor_text: ::std::option::Option<::std::string::String>,
         197  +
        pub(crate) language: ::std::option::Option<crate::model::Language>,
  192    198   
    }
  193    199   
    impl Builder {
  194         -
        /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
  195         -
        pub fn path(mut self, input: ::std::string::String) -> Self {
  196         -
            self.path = Some(input);
         200  +
        /// The localized flavor text for an API resource in a specific language.
         201  +
        pub fn flavor_text(mut self, input: ::std::string::String) -> Self {
         202  +
            self.flavor_text = Some(input);
  197    203   
            self
  198    204   
        }
  199         -
        /// A detailed description of the validation failure.
  200         -
        pub fn message(mut self, input: ::std::string::String) -> Self {
  201         -
            self.message = Some(input);
         205  +
        /// The language this name is in.
         206  +
        pub fn language(mut self, input: crate::model::Language) -> Self {
         207  +
            self.language = Some(input);
  202    208   
            self
  203    209   
        }
  204         -
        /// Consumes the builder and constructs a [`ValidationExceptionField`](crate::model::ValidationExceptionField).
         210  +
        /// Consumes the builder and constructs a [`FlavorText`](crate::model::FlavorText).
  205    211   
        ///
  206         -
        /// The builder fails to construct a [`ValidationExceptionField`](crate::model::ValidationExceptionField) if you do not provide a value for all non-`Option`al members.
         212  +
        /// The builder fails to construct a [`FlavorText`](crate::model::FlavorText) if you do not provide a value for all non-`Option`al members.
  207    213   
        ///
  208         -
        pub fn build(self) -> Result<crate::model::ValidationExceptionField, ConstraintViolation> {
         214  +
        pub fn build(self) -> Result<crate::model::FlavorText, ConstraintViolation> {
  209    215   
            self.build_enforcing_required_and_enum_traits()
  210    216   
        }
  211    217   
        fn build_enforcing_required_and_enum_traits(
  212    218   
            self,
  213         -
        ) -> Result<crate::model::ValidationExceptionField, ConstraintViolation> {
  214         -
            Ok(crate::model::ValidationExceptionField {
  215         -
                path: self.path.ok_or(ConstraintViolation::MissingPath)?,
  216         -
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
         219  +
        ) -> Result<crate::model::FlavorText, ConstraintViolation> {
         220  +
            Ok(crate::model::FlavorText {
         221  +
                flavor_text: self
         222  +
                    .flavor_text
         223  +
                    .ok_or(ConstraintViolation::MissingFlavorText)?,
         224  +
                language: self.language.ok_or(ConstraintViolation::MissingLanguage)?,
  217    225   
            })
  218    226   
        }
  219    227   
    }
  220    228   
}
  221         -
/// See [`FlavorText`](crate::model::FlavorText).
  222         -
pub mod flavor_text {
         229  +
/// See [`ValidationExceptionField`](crate::model::ValidationExceptionField).
         230  +
pub mod validation_exception_field {
  223    231   
  224    232   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  225    233   
    /// Holds one variant for each of the ways the builder can fail.
  226    234   
    #[allow(clippy::enum_variant_names)]
  227    235   
    pub enum ConstraintViolation {
  228         -
        /// `flavor_text` was not provided but it is required when building `FlavorText`.
  229         -
        MissingFlavorText,
  230         -
        /// `language` was not provided but it is required when building `FlavorText`.
  231         -
        MissingLanguage,
         236  +
        /// `path` was not provided but it is required when building `ValidationExceptionField`.
         237  +
        MissingPath,
         238  +
        /// `message` was not provided but it is required when building `ValidationExceptionField`.
         239  +
        MissingMessage,
  232    240   
    }
  233    241   
    impl ::std::fmt::Display for ConstraintViolation {
  234    242   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  235    243   
            match self {
  236         -
                ConstraintViolation::MissingFlavorText => write!(
  237         -
                    f,
  238         -
                    "`flavor_text` was not provided but it is required when building `FlavorText`"
  239         -
                ),
  240         -
                ConstraintViolation::MissingLanguage => write!(
  241         -
                    f,
  242         -
                    "`language` was not provided but it is required when building `FlavorText`"
  243         -
                ),
         244  +
                ConstraintViolation::MissingPath => write!(f, "`path` was not provided but it is required when building `ValidationExceptionField`"),
         245  +
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationExceptionField`"),
  244    246   
            }
  245    247   
        }
  246    248   
    }
  247    249   
    impl ::std::error::Error for ConstraintViolation {}
  248         -
    impl ::std::convert::TryFrom<Builder> for crate::model::FlavorText {
         250  +
    impl ::std::convert::TryFrom<Builder> for crate::model::ValidationExceptionField {
  249    251   
        type Error = ConstraintViolation;
  250    252   
  251    253   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  252    254   
            builder.build()
  253    255   
        }
  254    256   
    }
  255         -
    /// A builder for [`FlavorText`](crate::model::FlavorText).
         257  +
    /// A builder for [`ValidationExceptionField`](crate::model::ValidationExceptionField).
  256    258   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
  257    259   
    pub struct Builder {
  258         -
        pub(crate) flavor_text: ::std::option::Option<::std::string::String>,
  259         -
        pub(crate) language: ::std::option::Option<crate::model::Language>,
         260  +
        pub(crate) path: ::std::option::Option<::std::string::String>,
         261  +
        pub(crate) message: ::std::option::Option<::std::string::String>,
  260    262   
    }
  261    263   
    impl Builder {
  262         -
        /// The localized flavor text for an API resource in a specific language.
  263         -
        pub fn flavor_text(mut self, input: ::std::string::String) -> Self {
  264         -
            self.flavor_text = Some(input);
         264  +
        /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
         265  +
        pub fn path(mut self, input: ::std::string::String) -> Self {
         266  +
            self.path = Some(input);
  265    267   
            self
  266    268   
        }
  267         -
        /// The language this name is in.
  268         -
        pub fn language(mut self, input: crate::model::Language) -> Self {
  269         -
            self.language = Some(input);
         269  +
        /// A detailed description of the validation failure.
         270  +
        pub fn message(mut self, input: ::std::string::String) -> Self {
         271  +
            self.message = Some(input);
  270    272   
            self
  271    273   
        }
  272         -
        /// Consumes the builder and constructs a [`FlavorText`](crate::model::FlavorText).
         274  +
        /// Consumes the builder and constructs a [`ValidationExceptionField`](crate::model::ValidationExceptionField).
  273    275   
        ///
  274         -
        /// The builder fails to construct a [`FlavorText`](crate::model::FlavorText) if you do not provide a value for all non-`Option`al members.
         276  +
        /// The builder fails to construct a [`ValidationExceptionField`](crate::model::ValidationExceptionField) if you do not provide a value for all non-`Option`al members.
  275    277   
        ///
  276         -
        pub fn build(self) -> Result<crate::model::FlavorText, ConstraintViolation> {
         278  +
        pub fn build(self) -> Result<crate::model::ValidationExceptionField, ConstraintViolation> {
  277    279   
            self.build_enforcing_required_and_enum_traits()
  278    280   
        }
  279    281   
        fn build_enforcing_required_and_enum_traits(
  280    282   
            self,
  281         -
        ) -> Result<crate::model::FlavorText, ConstraintViolation> {
  282         -
            Ok(crate::model::FlavorText {
  283         -
                flavor_text: self
  284         -
                    .flavor_text
  285         -
                    .ok_or(ConstraintViolation::MissingFlavorText)?,
  286         -
                language: self.language.ok_or(ConstraintViolation::MissingLanguage)?,
         283  +
        ) -> Result<crate::model::ValidationExceptionField, ConstraintViolation> {
         284  +
            Ok(crate::model::ValidationExceptionField {
         285  +
                path: self.path.ok_or(ConstraintViolation::MissingPath)?,
         286  +
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
  287    287   
            })
  288    288   
        }
  289    289   
    }
  290    290   
}

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

@@ -1,1 +394,394 @@
    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         -
    /// [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput) using modelled bindings.
    5         -
    pub struct GetPokemonSpeciesInputFuture {
    6         -
        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>>
           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 GetPokemonSpeciesInputFuture {
          10  +
impl std::future::Future for GetServerStatisticsInputFuture {
   11     11   
    type Output = Result<
   12         -
        crate::input::GetPokemonSpeciesInput,
          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::GetPokemonSpeciesInput
          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 = GetPokemonSpeciesInputFuture;
          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_pokemon_species::de_get_pokemon_species_http_request(
   51         -
                request,
   52         -
            )
          50  +
            crate::protocol_serde::shape_get_server_statistics::de_get_server_statistics_http_request(request)
   53     51   
                            .await
   54     52   
        };
   55     53   
        use ::futures_util::future::TryFutureExt;
   56     54   
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
   57     55   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
   58     56   
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
   59     57   
                    });
   60         -
        GetPokemonSpeciesInputFuture {
          58  +
        GetServerStatisticsInputFuture {
   61     59   
            inner: Box::pin(fut),
   62     60   
        }
   63     61   
    }
   64     62   
}
   65     63   
impl
   66     64   
    ::aws_smithy_legacy_http_server::response::IntoResponse<
   67     65   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
   68         -
    > for crate::output::GetPokemonSpeciesOutput
          66  +
    > for crate::output::GetServerStatisticsOutput
   69     67   
{
   70     68   
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
   71         -
        match crate::protocol_serde::shape_get_pokemon_species::ser_get_pokemon_species_http_response(self) {
          69  +
        match crate::protocol_serde::shape_get_server_statistics::ser_get_server_statistics_http_response(self) {
   72     70   
                        Ok(response) => response,
   73     71   
                        Err(e) => {
   74     72   
                            ::tracing::error!(error = %e, "failed to serialize response");
   75     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))
   76     74   
                        }
   77     75   
                    }
   78     76   
    }
   79     77   
}
   80     78   
impl
   81     79   
    ::aws_smithy_legacy_http_server::response::IntoResponse<
   82     80   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
   83         -
    > for crate::error::GetPokemonSpeciesError
          81  +
    > for crate::error::GetServerStatisticsError
   84     82   
{
   85     83   
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
   86         -
        match crate::protocol_serde::shape_get_pokemon_species::ser_get_pokemon_species_http_error(
   87         -
            &self,
   88         -
        ) {
          84  +
        match crate::protocol_serde::shape_get_server_statistics::ser_get_server_statistics_http_error(&self) {
   89     85   
            Ok(mut response) => {
   90         -
                response.extensions_mut().insert(
   91         -
                    ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
   92         -
                        self.name(),
   93         -
                    ),
   94         -
                );
          86  +
                response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
   95     87   
                response
   96         -
            }
          88  +
            },
   97     89   
            Err(e) => {
   98     90   
                ::tracing::error!(error = %e, "failed to serialize response");
   99     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))
  100     92   
            }
  101     93   
        }
  102     94   
    }
  103     95   
}
  104     96   
  105     97   
::pin_project_lite::pin_project! {
  106     98   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  107         -
    /// [`CheckHealthInput`](crate::input::CheckHealthInput) using modelled bindings.
  108         -
    pub struct CheckHealthInputFuture {
  109         -
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::CheckHealthInput, ::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>>
  110    102   
    }
  111    103   
}
  112    104   
  113         -
impl std::future::Future for CheckHealthInputFuture {
         105  +
impl std::future::Future for DoNothingInputFuture {
  114    106   
    type Output = Result<
  115         -
        crate::input::CheckHealthInput,
         107  +
        crate::input::DoNothingInput,
  116    108   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
  117    109   
    >;
  118    110   
  119    111   
    fn poll(
  120    112   
        self: std::pin::Pin<&mut Self>,
  121    113   
        cx: &mut std::task::Context<'_>,
  122    114   
    ) -> std::task::Poll<Self::Output> {
  123    115   
        let this = self.project();
  124    116   
        this.inner.as_mut().poll(cx)
  125    117   
    }
  126    118   
}
  127    119   
  128    120   
impl<B>
  129    121   
    ::aws_smithy_legacy_http_server::request::FromRequest<
  130    122   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  131    123   
        B,
  132         -
    > for crate::input::CheckHealthInput
         124  +
    > for crate::input::DoNothingInput
  133    125   
where
  134    126   
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
  135    127   
    B: 'static,
  136    128   
  137    129   
    B::Data: Send,
  138    130   
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
  139    131   
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
  140    132   
{
  141    133   
    type Rejection =
  142    134   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
  143         -
    type Future = CheckHealthInputFuture;
         135  +
    type Future = DoNothingInputFuture;
  144    136   
  145    137   
    fn from_request(request: ::http::Request<B>) -> Self::Future {
  146    138   
        let fut = async move {
  147    139   
            if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
  148    140   
                request.headers(),
  149    141   
                &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
  150    142   
            ) {
  151    143   
                return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
  152    144   
            }
  153         -
            crate::protocol_serde::shape_check_health::de_check_health_http_request(request).await
         145  +
            crate::protocol_serde::shape_do_nothing::de_do_nothing_http_request(request).await
  154    146   
        };
  155    147   
        use ::futures_util::future::TryFutureExt;
  156    148   
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
  157    149   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
  158    150   
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
  159    151   
                    });
  160         -
        CheckHealthInputFuture {
         152  +
        DoNothingInputFuture {
  161    153   
            inner: Box::pin(fut),
  162    154   
        }
  163    155   
    }
  164    156   
}
  165    157   
impl
  166    158   
    ::aws_smithy_legacy_http_server::response::IntoResponse<
  167    159   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  168         -
    > for crate::output::CheckHealthOutput
         160  +
    > for crate::output::DoNothingOutput
  169    161   
{
  170    162   
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  171         -
        match crate::protocol_serde::shape_check_health::ser_check_health_http_response(self) {
         163  +
        match crate::protocol_serde::shape_do_nothing::ser_do_nothing_http_response(self) {
  172    164   
            Ok(response) => response,
  173    165   
            Err(e) => {
  174    166   
                ::tracing::error!(error = %e, "failed to serialize response");
  175    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))
  176    168   
            }
  177    169   
        }
  178    170   
    }
  179    171   
}
  180    172   
impl
  181    173   
    ::aws_smithy_legacy_http_server::response::IntoResponse<
  182    174   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  183         -
    > for crate::error::CheckHealthError
         175  +
    > for crate::error::DoNothingError
  184    176   
{
  185    177   
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  186         -
        match crate::protocol_serde::shape_check_health::ser_check_health_http_error(&self) {
         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         -
    /// [`DoNothingInput`](crate::input::DoNothingInput) using modelled bindings.
  206         -
    pub struct DoNothingInputFuture {
  207         -
        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>>
         197  +
    /// [`CheckHealthInput`](crate::input::CheckHealthInput) using modelled bindings.
         198  +
    pub struct CheckHealthInputFuture {
         199  +
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::CheckHealthInput, ::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 DoNothingInputFuture {
         203  +
impl std::future::Future for CheckHealthInputFuture {
  212    204   
    type Output = Result<
  213         -
        crate::input::DoNothingInput,
         205  +
        crate::input::CheckHealthInput,
  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::DoNothingInput
         222  +
    > for crate::input::CheckHealthInput
  231    223   
where
  232    224   
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
  233    225   
    B: 'static,
  234    226   
  235    227   
    B::Data: Send,
  236    228   
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
  237    229   
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
  238    230   
{
  239    231   
    type Rejection =
  240    232   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
  241         -
    type Future = DoNothingInputFuture;
         233  +
    type Future = CheckHealthInputFuture;
  242    234   
  243    235   
    fn from_request(request: ::http::Request<B>) -> Self::Future {
  244    236   
        let fut = async move {
  245    237   
            if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
  246    238   
                request.headers(),
  247    239   
                &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
  248    240   
            ) {
  249    241   
                return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
  250    242   
            }
  251         -
            crate::protocol_serde::shape_do_nothing::de_do_nothing_http_request(request).await
         243  +
            crate::protocol_serde::shape_check_health::de_check_health_http_request(request).await
  252    244   
        };
  253    245   
        use ::futures_util::future::TryFutureExt;
  254    246   
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
  255    247   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
  256    248   
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
  257    249   
                    });
  258         -
        DoNothingInputFuture {
         250  +
        CheckHealthInputFuture {
  259    251   
            inner: Box::pin(fut),
  260    252   
        }
  261    253   
    }
  262    254   
}
  263    255   
impl
  264    256   
    ::aws_smithy_legacy_http_server::response::IntoResponse<
  265    257   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  266         -
    > for crate::output::DoNothingOutput
         258  +
    > for crate::output::CheckHealthOutput
  267    259   
{
  268    260   
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  269         -
        match crate::protocol_serde::shape_do_nothing::ser_do_nothing_http_response(self) {
         261  +
        match crate::protocol_serde::shape_check_health::ser_check_health_http_response(self) {
  270    262   
            Ok(response) => response,
  271    263   
            Err(e) => {
  272    264   
                ::tracing::error!(error = %e, "failed to serialize response");
  273    265   
                ::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))
  274    266   
            }
  275    267   
        }
  276    268   
    }
  277    269   
}
  278    270   
impl
  279    271   
    ::aws_smithy_legacy_http_server::response::IntoResponse<
  280    272   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  281         -
    > for crate::error::DoNothingError
         273  +
    > for crate::error::CheckHealthError
  282    274   
{
  283    275   
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  284         -
        match crate::protocol_serde::shape_do_nothing::ser_do_nothing_http_error(&self) {
         276  +
        match crate::protocol_serde::shape_check_health::ser_check_health_http_error(&self) {
  285    277   
            Ok(mut response) => {
  286    278   
                response.extensions_mut().insert(
  287    279   
                    ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
  288    280   
                        self.name(),
  289    281   
                    ),
  290    282   
                );
  291    283   
                response
  292    284   
            }
  293    285   
            Err(e) => {
  294    286   
                ::tracing::error!(error = %e, "failed to serialize response");
  295    287   
                ::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))
  296    288   
            }
  297    289   
        }
  298    290   
    }
  299    291   
}
  300    292   
  301    293   
::pin_project_lite::pin_project! {
  302    294   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  303         -
    /// [`GetServerStatisticsInput`](crate::input::GetServerStatisticsInput) using modelled bindings.
  304         -
    pub struct GetServerStatisticsInputFuture {
  305         -
        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>>
         295  +
    /// [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput) using modelled bindings.
         296  +
    pub struct GetPokemonSpeciesInputFuture {
         297  +
        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>>
  306    298   
    }
  307    299   
}
  308    300   
  309         -
impl std::future::Future for GetServerStatisticsInputFuture {
         301  +
impl std::future::Future for GetPokemonSpeciesInputFuture {
  310    302   
    type Output = Result<
  311         -
        crate::input::GetServerStatisticsInput,
         303  +
        crate::input::GetPokemonSpeciesInput,
  312    304   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
  313    305   
    >;
  314    306   
  315    307   
    fn poll(
  316    308   
        self: std::pin::Pin<&mut Self>,
  317    309   
        cx: &mut std::task::Context<'_>,
  318    310   
    ) -> std::task::Poll<Self::Output> {
  319    311   
        let this = self.project();
  320    312   
        this.inner.as_mut().poll(cx)
  321    313   
    }
  322    314   
}
  323    315   
  324    316   
impl<B>
  325    317   
    ::aws_smithy_legacy_http_server::request::FromRequest<
  326    318   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  327    319   
        B,
  328         -
    > for crate::input::GetServerStatisticsInput
         320  +
    > for crate::input::GetPokemonSpeciesInput
  329    321   
where
  330    322   
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
  331    323   
    B: 'static,
  332    324   
  333    325   
    B::Data: Send,
  334    326   
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
  335    327   
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
  336    328   
{
  337    329   
    type Rejection =
  338    330   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
  339         -
    type Future = GetServerStatisticsInputFuture;
         331  +
    type Future = GetPokemonSpeciesInputFuture;
  340    332   
  341    333   
    fn from_request(request: ::http::Request<B>) -> Self::Future {
  342    334   
        let fut = async move {
  343    335   
            if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
  344    336   
                request.headers(),
  345    337   
                &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
  346    338   
            ) {
  347    339   
                return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
  348    340   
            }
  349         -
            crate::protocol_serde::shape_get_server_statistics::de_get_server_statistics_http_request(request)
         341  +
            crate::protocol_serde::shape_get_pokemon_species::de_get_pokemon_species_http_request(
         342  +
                request,
         343  +
            )
  350    344   
            .await
  351    345   
        };
  352    346   
        use ::futures_util::future::TryFutureExt;
  353    347   
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
  354    348   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
  355    349   
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
  356    350   
                    });
  357         -
        GetServerStatisticsInputFuture {
         351  +
        GetPokemonSpeciesInputFuture {
  358    352   
            inner: Box::pin(fut),
  359    353   
        }
  360    354   
    }
  361    355   
}
  362    356   
impl
  363    357   
    ::aws_smithy_legacy_http_server::response::IntoResponse<
  364    358   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  365         -
    > for crate::output::GetServerStatisticsOutput
         359  +
    > for crate::output::GetPokemonSpeciesOutput
  366    360   
{
  367    361   
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  368         -
        match crate::protocol_serde::shape_get_server_statistics::ser_get_server_statistics_http_response(self) {
         362  +
        match crate::protocol_serde::shape_get_pokemon_species::ser_get_pokemon_species_http_response(self) {
  369    363   
                        Ok(response) => response,
  370    364   
                        Err(e) => {
  371    365   
                            ::tracing::error!(error = %e, "failed to serialize response");
  372    366   
                            ::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))
  373    367   
                        }
  374    368   
                    }
  375    369   
    }
  376    370   
}
  377    371   
impl
  378    372   
    ::aws_smithy_legacy_http_server::response::IntoResponse<
  379    373   
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  380         -
    > for crate::error::GetServerStatisticsError
         374  +
    > for crate::error::GetPokemonSpeciesError
  381    375   
{
  382    376   
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  383         -
        match crate::protocol_serde::shape_get_server_statistics::ser_get_server_statistics_http_error(&self) {
         377  +
        match crate::protocol_serde::shape_get_pokemon_species::ser_get_pokemon_species_http_error(
         378  +
            &self,
         379  +
        ) {
  384    380   
            Ok(mut response) => {
  385         -
                response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
         381  +
                response.extensions_mut().insert(
         382  +
                    ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
         383  +
                        self.name(),
         384  +
                    ),
         385  +
                );
  386    386   
                response
  387         -
            },
         387  +
            }
  388    388   
            Err(e) => {
  389    389   
                ::tracing::error!(error = %e, "failed to serialize response");
  390    390   
                ::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))
  391    391   
            }
  392    392   
        }
  393    393   
    }
  394    394   
}