Server Test Typescript

Server Test Typescript

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943

Files changed:

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

@@ -1,1 +4,5 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* TsServerCodegenDecorator.kt:47 */
    2      3   
fn main() {
    3      4   
    ::napi_build::setup();
    4      5   
}

tmp-codegen-diff/codegen-server-test-typescript/pokemon-service-server-sdk/rust-server-codegen-typescript/package.json

@@ -1,0 +30,30 @@
    1         -
{
           1  +
/* TsServerCodegenDecorator.kt:102 */{
    2      2   
                "name": "@amzn/pokemon_service_server_sdk",
    3      3   
                "version": "0.0.1",
    4      4   
                "main": "index.js",
    5      5   
                "types": "index.d.ts",
    6      6   
                "napi": {
    7      7   
                    "name": "pokemon_service_server_sdk",
    8      8   
                    "triple": {}
    9      9   
                },
   10     10   
                "devDependencies": {
   11     11   
                    "@napi-rs/cli": ">=2",

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

@@ -1,1 +519,971 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ServerOperationErrorGenerator.kt:63 */
    2      3   
/// Error type for the `GetPokemonSpecies` operation.
           4  +
/* ServerOperationErrorGenerator.kt:64 */
    3      5   
/// Each variant represents an error that can occur for the `GetPokemonSpecies` operation.
           6  +
/* RustType.kt:516 */
    4      7   
#[derive(::std::fmt::Debug)]
    5         -
pub enum GetPokemonSpeciesError {
           8  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum GetPokemonSpeciesError {
           9  +
    /* ServerOperationErrorGenerator.kt:68 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
          11  +
    /* ServerOperationErrorGenerator.kt:71 */
    7     12   
    ResourceNotFoundException(crate::error::ResourceNotFoundException),
    8         -
    /// 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.
          13  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
          14  +
    /* ServerOperationErrorGenerator.kt:71 */
    9     15   
    ValidationException(crate::error::ValidationException),
          16  +
    /* ServerOperationErrorGenerator.kt:68 */
   10     17   
    #[allow(missing_docs)] // documentation missing in model
          18  +
    /* ServerOperationErrorGenerator.kt:71 */
   11     19   
    InternalServerError(crate::error::InternalServerError),
          20  +
    /* ServerOperationErrorGenerator.kt:66 */
   12     21   
}
          22  +
/* ServerOperationErrorGenerator.kt:75 */
   13     23   
impl ::std::fmt::Display for GetPokemonSpeciesError {
          24  +
    /* ServerOperationErrorGenerator.kt:76 */
   14     25   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          26  +
        /* ServerOperationErrorGenerator.kt:139 */
   15     27   
        match &self {
   16         -
            GetPokemonSpeciesError::ResourceNotFoundException(_inner) => _inner.fmt(f),
   17         -
            GetPokemonSpeciesError::ValidationException(_inner) => _inner.fmt(f),
   18         -
            GetPokemonSpeciesError::InternalServerError(_inner) => _inner.fmt(f),
          28  +
            /* ServerOperationErrorGenerator.kt:142 */
          29  +
            GetPokemonSpeciesError::ResourceNotFoundException(_inner) =>
          30  +
            /* ServerOperationErrorGenerator.kt:78 */
          31  +
            {
          32  +
                _inner.fmt(f)
          33  +
            }
          34  +
            ,
          35  +
            /* ServerOperationErrorGenerator.kt:142 */
          36  +
            GetPokemonSpeciesError::ValidationException(_inner) =>
          37  +
            /* ServerOperationErrorGenerator.kt:78 */
          38  +
            {
          39  +
                _inner.fmt(f)
          40  +
            }
          41  +
            ,
          42  +
            /* ServerOperationErrorGenerator.kt:142 */
          43  +
            GetPokemonSpeciesError::InternalServerError(_inner) =>
          44  +
            /* ServerOperationErrorGenerator.kt:78 */
          45  +
            {
          46  +
                _inner.fmt(f)
          47  +
            }
          48  +
            /* ServerOperationErrorGenerator.kt:139 */
   19     49   
        }
          50  +
        /* ServerOperationErrorGenerator.kt:76 */
   20     51   
    }
          52  +
    /* ServerOperationErrorGenerator.kt:75 */
   21     53   
}
          54  +
/* ServerOperationErrorGenerator.kt:83 */
   22     55   
impl GetPokemonSpeciesError {
          56  +
    /* ServerOperationErrorGenerator.kt:87 */
   23     57   
    /// Returns `true` if the error kind is `GetPokemonSpeciesError::ResourceNotFoundException`.
          58  +
    /* ServerOperationErrorGenerator.kt:88 */
   24     59   
    pub fn is_resource_not_found_exception(&self) -> bool {
          60  +
        /* ServerOperationErrorGenerator.kt:89 */
   25     61   
        matches!(&self, GetPokemonSpeciesError::ResourceNotFoundException(_))
          62  +
        /* ServerOperationErrorGenerator.kt:88 */
   26     63   
    }
          64  +
    /* ServerOperationErrorGenerator.kt:87 */
   27     65   
    /// Returns `true` if the error kind is `GetPokemonSpeciesError::ValidationException`.
          66  +
    /* ServerOperationErrorGenerator.kt:88 */
   28     67   
    pub fn is_validation_exception(&self) -> bool {
          68  +
        /* ServerOperationErrorGenerator.kt:89 */
   29     69   
        matches!(&self, GetPokemonSpeciesError::ValidationException(_))
          70  +
        /* ServerOperationErrorGenerator.kt:88 */
   30     71   
    }
          72  +
    /* ServerOperationErrorGenerator.kt:87 */
   31     73   
    /// Returns `true` if the error kind is `GetPokemonSpeciesError::InternalServerError`.
          74  +
    /* ServerOperationErrorGenerator.kt:88 */
   32     75   
    pub fn is_internal_server_error(&self) -> bool {
          76  +
        /* ServerOperationErrorGenerator.kt:89 */
   33     77   
        matches!(&self, GetPokemonSpeciesError::InternalServerError(_))
          78  +
        /* ServerOperationErrorGenerator.kt:88 */
   34     79   
    }
          80  +
    /* ServerOperationErrorGenerator.kt:92 */
   35     81   
    /// Returns the error name string by matching the correct variant.
          82  +
    /* ServerOperationErrorGenerator.kt:93 */
   36     83   
    pub fn name(&self) -> &'static str {
          84  +
        /* ServerOperationErrorGenerator.kt:139 */
   37     85   
        match &self {
   38         -
            GetPokemonSpeciesError::ResourceNotFoundException(_inner) => _inner.name(),
   39         -
            GetPokemonSpeciesError::ValidationException(_inner) => _inner.name(),
   40         -
            GetPokemonSpeciesError::InternalServerError(_inner) => _inner.name(),
          86  +
            /* ServerOperationErrorGenerator.kt:142 */
          87  +
            GetPokemonSpeciesError::ResourceNotFoundException(_inner) =>
          88  +
            /* ServerOperationErrorGenerator.kt:95 */
          89  +
            {
          90  +
                _inner.name()
          91  +
            }
          92  +
            ,
          93  +
            /* ServerOperationErrorGenerator.kt:142 */
          94  +
            GetPokemonSpeciesError::ValidationException(_inner) =>
          95  +
            /* ServerOperationErrorGenerator.kt:95 */
          96  +
            {
          97  +
                _inner.name()
          98  +
            }
          99  +
            ,
         100  +
            /* ServerOperationErrorGenerator.kt:142 */
         101  +
            GetPokemonSpeciesError::InternalServerError(_inner) =>
         102  +
            /* ServerOperationErrorGenerator.kt:95 */
         103  +
            {
         104  +
                _inner.name()
         105  +
            }
         106  +
            /* ServerOperationErrorGenerator.kt:139 */
   41    107   
        }
         108  +
        /* ServerOperationErrorGenerator.kt:93 */
   42    109   
    }
         110  +
    /* ServerOperationErrorGenerator.kt:83 */
   43    111   
}
         112  +
/* ServerOperationErrorGenerator.kt:100 */
   44    113   
impl ::std::error::Error for GetPokemonSpeciesError {
         114  +
    /* ServerOperationErrorGenerator.kt:101 */
   45    115   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         116  +
        /* ServerOperationErrorGenerator.kt:139 */
   46    117   
        match &self {
   47         -
            GetPokemonSpeciesError::ResourceNotFoundException(_inner) => Some(_inner),
   48         -
            GetPokemonSpeciesError::ValidationException(_inner) => Some(_inner),
   49         -
            GetPokemonSpeciesError::InternalServerError(_inner) => Some(_inner),
         118  +
            /* ServerOperationErrorGenerator.kt:142 */
         119  +
            GetPokemonSpeciesError::ResourceNotFoundException(_inner) =>
         120  +
            /* ServerOperationErrorGenerator.kt:103 */
         121  +
            {
         122  +
                Some(_inner)
         123  +
            }
         124  +
            ,
         125  +
            /* ServerOperationErrorGenerator.kt:142 */
         126  +
            GetPokemonSpeciesError::ValidationException(_inner) =>
         127  +
            /* ServerOperationErrorGenerator.kt:103 */
         128  +
            {
         129  +
                Some(_inner)
         130  +
            }
         131  +
            ,
         132  +
            /* ServerOperationErrorGenerator.kt:142 */
         133  +
            GetPokemonSpeciesError::InternalServerError(_inner) =>
         134  +
            /* ServerOperationErrorGenerator.kt:103 */
         135  +
            {
         136  +
                Some(_inner)
         137  +
            }
         138  +
            /* ServerOperationErrorGenerator.kt:139 */
   50    139   
        }
         140  +
        /* ServerOperationErrorGenerator.kt:101 */
   51    141   
    }
         142  +
    /* ServerOperationErrorGenerator.kt:100 */
   52    143   
}
         144  +
/* ServerOperationErrorGenerator.kt:110 */
   53    145   
impl ::std::convert::From<crate::error::ResourceNotFoundException>
   54    146   
    for crate::error::GetPokemonSpeciesError
   55    147   
{
         148  +
    /* ServerOperationErrorGenerator.kt:111 */
   56    149   
    fn from(
   57    150   
        variant: crate::error::ResourceNotFoundException,
   58    151   
    ) -> crate::error::GetPokemonSpeciesError {
         152  +
        /* ServerOperationErrorGenerator.kt:112 */
   59    153   
        Self::ResourceNotFoundException(variant)
         154  +
        /* ServerOperationErrorGenerator.kt:111 */
   60    155   
    }
         156  +
    /* ServerOperationErrorGenerator.kt:110 */
   61    157   
}
         158  +
/* ServerOperationErrorGenerator.kt:110 */
   62    159   
impl ::std::convert::From<crate::error::ValidationException>
   63    160   
    for crate::error::GetPokemonSpeciesError
   64    161   
{
         162  +
    /* ServerOperationErrorGenerator.kt:111 */
   65    163   
    fn from(variant: crate::error::ValidationException) -> crate::error::GetPokemonSpeciesError {
         164  +
        /* ServerOperationErrorGenerator.kt:112 */
   66    165   
        Self::ValidationException(variant)
         166  +
        /* ServerOperationErrorGenerator.kt:111 */
   67    167   
    }
         168  +
    /* ServerOperationErrorGenerator.kt:110 */
   68    169   
}
         170  +
/* ServerOperationErrorGenerator.kt:110 */
   69    171   
impl ::std::convert::From<crate::error::InternalServerError>
   70    172   
    for crate::error::GetPokemonSpeciesError
   71    173   
{
         174  +
    /* ServerOperationErrorGenerator.kt:111 */
   72    175   
    fn from(variant: crate::error::InternalServerError) -> crate::error::GetPokemonSpeciesError {
         176  +
        /* ServerOperationErrorGenerator.kt:112 */
   73    177   
        Self::InternalServerError(variant)
         178  +
        /* ServerOperationErrorGenerator.kt:111 */
   74    179   
    }
         180  +
    /* ServerOperationErrorGenerator.kt:110 */
   75    181   
}
   76    182   
         183  +
/* TsServerOperationErrorGenerator.kt:34 */
   77    184   
impl ::std::convert::From<::napi::Error> for crate::error::GetPokemonSpeciesError {
   78    185   
    fn from(variant: ::napi::Error) -> crate::error::GetPokemonSpeciesError {
   79    186   
        crate::error::InternalServerError {
   80    187   
            message: variant.to_string(),
   81    188   
        }
   82    189   
        .into()
   83    190   
    }
   84    191   
}
   85    192   
         193  +
/* RustType.kt:516 */
   86    194   
#[::napi_derive::napi(constructor)]
         195  +
/* StructureGenerator.kt:197 */
   87    196   
#[allow(missing_docs)] // documentation missing in model
         197  +
/* RustType.kt:516 */
   88    198   
#[derive(
   89    199   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   90    200   
)]
   91         -
pub struct InternalServerError {
         201  +
pub /* StructureGenerator.kt:201 */ struct InternalServerError {
         202  +
    /* StructureGenerator.kt:231 */
   92    203   
    #[allow(missing_docs)] // documentation missing in model
   93    204   
    pub message: ::std::string::String,
         205  +
    /* StructureGenerator.kt:201 */
   94    206   
}
         207  +
/* ErrorImplGenerator.kt:99 */
   95    208   
impl InternalServerError {
         209  +
    /* ErrorImplGenerator.kt:128 */
   96    210   
    /// Returns the error message.
   97    211   
    pub fn message(&self) -> &str {
   98    212   
        &self.message
   99    213   
    }
         214  +
    /* ErrorImplGenerator.kt:141 */
  100    215   
    #[doc(hidden)]
  101    216   
    /// Returns the error name.
  102    217   
    pub fn name(&self) -> &'static str {
  103    218   
        "InternalServerError"
  104    219   
    }
         220  +
    /* ErrorImplGenerator.kt:99 */
  105    221   
}
         222  +
/* ErrorImplGenerator.kt:153 */
  106    223   
impl ::std::fmt::Display for InternalServerError {
         224  +
    /* ErrorImplGenerator.kt:154 */
  107    225   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         226  +
        /* ErrorImplGenerator.kt:161 */
  108    227   
        ::std::write!(f, "InternalServerError")?;
         228  +
        /* ErrorImplGenerator.kt:166 */
  109    229   
        {
         230  +
            /* ErrorImplGenerator.kt:167 */
  110    231   
            ::std::write!(f, ": {}", &self.message)?;
         232  +
            /* ErrorImplGenerator.kt:166 */
  111    233   
        }
         234  +
        /* ErrorImplGenerator.kt:171 */
  112    235   
        Ok(())
         236  +
        /* ErrorImplGenerator.kt:154 */
  113    237   
    }
         238  +
    /* ErrorImplGenerator.kt:153 */
  114    239   
}
         240  +
/* ErrorImplGenerator.kt:175 */
  115    241   
impl ::std::error::Error for InternalServerError {}
         242  +
/* ServerCodegenVisitor.kt:370 */
  116    243   
impl InternalServerError {
  117         -
    /// Creates a new builder-style object to manufacture [`InternalServerError`](crate::error::InternalServerError).
         244  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`InternalServerError`](crate::error::InternalServerError).
         245  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  118    246   
    pub fn builder() -> crate::error::internal_server_error::Builder {
         247  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  119    248   
        crate::error::internal_server_error::Builder::default()
         249  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  120    250   
    }
         251  +
    /* ServerCodegenVisitor.kt:370 */
  121    252   
}
  122    253   
         254  +
/* RustType.kt:516 */
  123    255   
#[::napi_derive::napi(constructor)]
  124         -
/// 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.
         256  +
/// /* StructureGenerator.kt:197 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         257  +
/* RustType.kt:516 */
  125    258   
#[derive(
  126    259   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  127    260   
)]
  128         -
pub struct ValidationException {
  129         -
    /// A summary of the validation failure.
         261  +
pub /* StructureGenerator.kt:201 */ struct ValidationException {
         262  +
    /// /* StructureGenerator.kt:231 */A summary of the validation failure.
  130    263   
    pub message: ::std::string::String,
  131         -
    /// 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.
         264  +
    /// /* StructureGenerator.kt:231 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
  132    265   
    pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
         266  +
    /* StructureGenerator.kt:201 */
  133    267   
}
         268  +
/* StructureGenerator.kt:135 */
  134    269   
impl ValidationException {
  135         -
    /// 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.
         270  +
    /// /* StructureGenerator.kt:231 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
         271  +
    /* StructureGenerator.kt:166 */
  136    272   
    pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
         273  +
        /* StructureGenerator.kt:169 */
  137    274   
        self.field_list.as_deref()
         275  +
        /* StructureGenerator.kt:166 */
  138    276   
    }
         277  +
    /* StructureGenerator.kt:135 */
  139    278   
}
         279  +
/* ErrorImplGenerator.kt:99 */
  140    280   
impl ValidationException {
         281  +
    /* ErrorImplGenerator.kt:128 */
  141    282   
    /// Returns the error message.
  142    283   
    pub fn message(&self) -> &str {
  143    284   
        &self.message
  144    285   
    }
         286  +
    /* ErrorImplGenerator.kt:141 */
  145    287   
    #[doc(hidden)]
  146    288   
    /// Returns the error name.
  147    289   
    pub fn name(&self) -> &'static str {
  148    290   
        "ValidationException"
  149    291   
    }
         292  +
    /* ErrorImplGenerator.kt:99 */
  150    293   
}
         294  +
/* ErrorImplGenerator.kt:153 */
  151    295   
impl ::std::fmt::Display for ValidationException {
         296  +
    /* ErrorImplGenerator.kt:154 */
  152    297   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         298  +
        /* ErrorImplGenerator.kt:161 */
  153    299   
        ::std::write!(f, "ValidationException")?;
         300  +
        /* ErrorImplGenerator.kt:166 */
  154    301   
        {
         302  +
            /* ErrorImplGenerator.kt:167 */
  155    303   
            ::std::write!(f, ": {}", &self.message)?;
         304  +
            /* ErrorImplGenerator.kt:166 */
  156    305   
        }
         306  +
        /* ErrorImplGenerator.kt:171 */
  157    307   
        Ok(())
         308  +
        /* ErrorImplGenerator.kt:154 */
  158    309   
    }
         310  +
    /* ErrorImplGenerator.kt:153 */
  159    311   
}
         312  +
/* ErrorImplGenerator.kt:175 */
  160    313   
impl ::std::error::Error for ValidationException {}
         314  +
/* ServerCodegenVisitor.kt:370 */
  161    315   
impl ValidationException {
  162         -
    /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
         316  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
         317  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  163    318   
    pub fn builder() -> crate::error::validation_exception::Builder {
         319  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  164    320   
        crate::error::validation_exception::Builder::default()
         321  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  165    322   
    }
         323  +
    /* ServerCodegenVisitor.kt:370 */
  166    324   
}
  167    325   
         326  +
/* RustType.kt:516 */
  168    327   
#[::napi_derive::napi(constructor)]
         328  +
/* StructureGenerator.kt:197 */
  169    329   
#[allow(missing_docs)] // documentation missing in model
         330  +
/* RustType.kt:516 */
  170    331   
#[derive(
  171    332   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  172    333   
)]
  173         -
pub struct ResourceNotFoundException {
         334  +
pub /* StructureGenerator.kt:201 */ struct ResourceNotFoundException {
         335  +
    /* StructureGenerator.kt:231 */
  174    336   
    #[allow(missing_docs)] // documentation missing in model
  175    337   
    pub message: ::std::string::String,
         338  +
    /* StructureGenerator.kt:201 */
  176    339   
}
         340  +
/* ErrorImplGenerator.kt:99 */
  177    341   
impl ResourceNotFoundException {
         342  +
    /* ErrorImplGenerator.kt:128 */
  178    343   
    /// Returns the error message.
  179    344   
    pub fn message(&self) -> &str {
  180    345   
        &self.message
  181    346   
    }
         347  +
    /* ErrorImplGenerator.kt:141 */
  182    348   
    #[doc(hidden)]
  183    349   
    /// Returns the error name.
  184    350   
    pub fn name(&self) -> &'static str {
  185    351   
        "ResourceNotFoundException"
  186    352   
    }
         353  +
    /* ErrorImplGenerator.kt:99 */
  187    354   
}
         355  +
/* ErrorImplGenerator.kt:153 */
  188    356   
impl ::std::fmt::Display for ResourceNotFoundException {
         357  +
    /* ErrorImplGenerator.kt:154 */
  189    358   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         359  +
        /* ErrorImplGenerator.kt:161 */
  190    360   
        ::std::write!(f, "ResourceNotFoundException")?;
         361  +
        /* ErrorImplGenerator.kt:166 */
  191    362   
        {
         363  +
            /* ErrorImplGenerator.kt:167 */
  192    364   
            ::std::write!(f, ": {}", &self.message)?;
         365  +
            /* ErrorImplGenerator.kt:166 */
  193    366   
        }
         367  +
        /* ErrorImplGenerator.kt:171 */
  194    368   
        Ok(())
         369  +
        /* ErrorImplGenerator.kt:154 */
  195    370   
    }
         371  +
    /* ErrorImplGenerator.kt:153 */
  196    372   
}
         373  +
/* ErrorImplGenerator.kt:175 */
  197    374   
impl ::std::error::Error for ResourceNotFoundException {}
         375  +
/* ServerCodegenVisitor.kt:370 */
  198    376   
impl ResourceNotFoundException {
  199         -
    /// Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
         377  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
         378  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  200    379   
    pub fn builder() -> crate::error::resource_not_found_exception::Builder {
         380  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
  201    381   
        crate::error::resource_not_found_exception::Builder::default()
         382  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
  202    383   
    }
         384  +
    /* ServerCodegenVisitor.kt:370 */
  203    385   
}
  204    386   
         387  +
/* ServerOperationErrorGenerator.kt:63 */
  205    388   
/// Error type for the `CheckHealth` operation.
         389  +
/* ServerOperationErrorGenerator.kt:64 */
  206    390   
/// Each variant represents an error that can occur for the `CheckHealth` operation.
         391  +
/* RustType.kt:516 */
  207    392   
#[derive(::std::fmt::Debug)]
  208         -
pub enum CheckHealthError {
         393  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum CheckHealthError {
         394  +
    /* ServerOperationErrorGenerator.kt:68 */
  209    395   
    #[allow(missing_docs)] // documentation missing in model
         396  +
    /* ServerOperationErrorGenerator.kt:71 */
  210    397   
    InternalServerError(crate::error::InternalServerError),
         398  +
    /* ServerOperationErrorGenerator.kt:66 */
  211    399   
}
         400  +
/* ServerOperationErrorGenerator.kt:75 */
  212    401   
impl ::std::fmt::Display for CheckHealthError {
         402  +
    /* ServerOperationErrorGenerator.kt:76 */
  213    403   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         404  +
        /* ServerOperationErrorGenerator.kt:139 */
  214    405   
        match &self {
  215         -
            CheckHealthError::InternalServerError(_inner) => _inner.fmt(f),
         406  +
            /* ServerOperationErrorGenerator.kt:142 */
         407  +
            CheckHealthError::InternalServerError(_inner) =>
         408  +
            /* ServerOperationErrorGenerator.kt:78 */
         409  +
            {
         410  +
                _inner.fmt(f)
         411  +
            }
         412  +
            /* ServerOperationErrorGenerator.kt:139 */
  216    413   
        }
         414  +
        /* ServerOperationErrorGenerator.kt:76 */
  217    415   
    }
         416  +
    /* ServerOperationErrorGenerator.kt:75 */
  218    417   
}
         418  +
/* ServerOperationErrorGenerator.kt:83 */
  219    419   
impl CheckHealthError {
         420  +
    /* ServerOperationErrorGenerator.kt:87 */
  220    421   
    /// Returns `true` if the error kind is `CheckHealthError::InternalServerError`.
         422  +
    /* ServerOperationErrorGenerator.kt:88 */
  221    423   
    pub fn is_internal_server_error(&self) -> bool {
         424  +
        /* ServerOperationErrorGenerator.kt:89 */
  222    425   
        matches!(&self, CheckHealthError::InternalServerError(_))
         426  +
        /* ServerOperationErrorGenerator.kt:88 */
  223    427   
    }
         428  +
    /* ServerOperationErrorGenerator.kt:92 */
  224    429   
    /// Returns the error name string by matching the correct variant.
         430  +
    /* ServerOperationErrorGenerator.kt:93 */
  225    431   
    pub fn name(&self) -> &'static str {
         432  +
        /* ServerOperationErrorGenerator.kt:139 */
  226    433   
        match &self {
  227         -
            CheckHealthError::InternalServerError(_inner) => _inner.name(),
         434  +
            /* ServerOperationErrorGenerator.kt:142 */
         435  +
            CheckHealthError::InternalServerError(_inner) =>
         436  +
            /* ServerOperationErrorGenerator.kt:95 */
         437  +
            {
         438  +
                _inner.name()
         439  +
            }
         440  +
            /* ServerOperationErrorGenerator.kt:139 */
  228    441   
        }
         442  +
        /* ServerOperationErrorGenerator.kt:93 */
  229    443   
    }
         444  +
    /* ServerOperationErrorGenerator.kt:83 */
  230    445   
}
         446  +
/* ServerOperationErrorGenerator.kt:100 */
  231    447   
impl ::std::error::Error for CheckHealthError {
         448  +
    /* ServerOperationErrorGenerator.kt:101 */
  232    449   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         450  +
        /* ServerOperationErrorGenerator.kt:139 */
  233    451   
        match &self {
  234         -
            CheckHealthError::InternalServerError(_inner) => Some(_inner),
         452  +
            /* ServerOperationErrorGenerator.kt:142 */
         453  +
            CheckHealthError::InternalServerError(_inner) =>
         454  +
            /* ServerOperationErrorGenerator.kt:103 */
         455  +
            {
         456  +
                Some(_inner)
         457  +
            }
         458  +
            /* ServerOperationErrorGenerator.kt:139 */
  235    459   
        }
         460  +
        /* ServerOperationErrorGenerator.kt:101 */
  236    461   
    }
         462  +
    /* ServerOperationErrorGenerator.kt:100 */
  237    463   
}
         464  +
/* ServerOperationErrorGenerator.kt:110 */
  238    465   
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::CheckHealthError {
         466  +
    /* ServerOperationErrorGenerator.kt:111 */
  239    467   
    fn from(variant: crate::error::InternalServerError) -> crate::error::CheckHealthError {
         468  +
        /* ServerOperationErrorGenerator.kt:112 */
  240    469   
        Self::InternalServerError(variant)
         470  +
        /* ServerOperationErrorGenerator.kt:111 */
  241    471   
    }
         472  +
    /* ServerOperationErrorGenerator.kt:110 */
  242    473   
}
  243    474   
         475  +
/* TsServerOperationErrorGenerator.kt:34 */
  244    476   
impl ::std::convert::From<::napi::Error> for crate::error::CheckHealthError {
  245    477   
    fn from(variant: ::napi::Error) -> crate::error::CheckHealthError {
  246    478   
        crate::error::InternalServerError {
  247    479   
            message: variant.to_string(),
  248    480   
        }
  249    481   
        .into()
  250    482   
    }
  251    483   
}
  252    484   
         485  +
/* ServerOperationErrorGenerator.kt:63 */
  253    486   
/// Error type for the `DoNothing` operation.
         487  +
/* ServerOperationErrorGenerator.kt:64 */
  254    488   
/// Each variant represents an error that can occur for the `DoNothing` operation.
         489  +
/* RustType.kt:516 */
  255    490   
#[derive(::std::fmt::Debug)]
  256         -
pub enum DoNothingError {
         491  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum DoNothingError {
         492  +
    /* ServerOperationErrorGenerator.kt:68 */
  257    493   
    #[allow(missing_docs)] // documentation missing in model
         494  +
    /* ServerOperationErrorGenerator.kt:71 */
  258    495   
    InternalServerError(crate::error::InternalServerError),
         496  +
    /* ServerOperationErrorGenerator.kt:66 */
  259    497   
}
         498  +
/* ServerOperationErrorGenerator.kt:75 */
  260    499   
impl ::std::fmt::Display for DoNothingError {
         500  +
    /* ServerOperationErrorGenerator.kt:76 */
  261    501   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         502  +
        /* ServerOperationErrorGenerator.kt:139 */
  262    503   
        match &self {
  263         -
            DoNothingError::InternalServerError(_inner) => _inner.fmt(f),
         504  +
            /* ServerOperationErrorGenerator.kt:142 */
         505  +
            DoNothingError::InternalServerError(_inner) =>
         506  +
            /* ServerOperationErrorGenerator.kt:78 */
         507  +
            {
         508  +
                _inner.fmt(f)
         509  +
            }
         510  +
            /* ServerOperationErrorGenerator.kt:139 */
  264    511   
        }
         512  +
        /* ServerOperationErrorGenerator.kt:76 */
  265    513   
    }
         514  +
    /* ServerOperationErrorGenerator.kt:75 */
  266    515   
}
         516  +
/* ServerOperationErrorGenerator.kt:83 */
  267    517   
impl DoNothingError {
         518  +
    /* ServerOperationErrorGenerator.kt:87 */
  268    519   
    /// Returns `true` if the error kind is `DoNothingError::InternalServerError`.
         520  +
    /* ServerOperationErrorGenerator.kt:88 */
  269    521   
    pub fn is_internal_server_error(&self) -> bool {
         522  +
        /* ServerOperationErrorGenerator.kt:89 */
  270    523   
        matches!(&self, DoNothingError::InternalServerError(_))
         524  +
        /* ServerOperationErrorGenerator.kt:88 */
  271    525   
    }
         526  +
    /* ServerOperationErrorGenerator.kt:92 */
  272    527   
    /// Returns the error name string by matching the correct variant.
         528  +
    /* ServerOperationErrorGenerator.kt:93 */
  273    529   
    pub fn name(&self) -> &'static str {
         530  +
        /* ServerOperationErrorGenerator.kt:139 */
  274    531   
        match &self {
  275         -
            DoNothingError::InternalServerError(_inner) => _inner.name(),
         532  +
            /* ServerOperationErrorGenerator.kt:142 */
         533  +
            DoNothingError::InternalServerError(_inner) =>
         534  +
            /* ServerOperationErrorGenerator.kt:95 */
         535  +
            {
         536  +
                _inner.name()
         537  +
            }
         538  +
            /* ServerOperationErrorGenerator.kt:139 */
  276    539   
        }
         540  +
        /* ServerOperationErrorGenerator.kt:93 */
  277    541   
    }
         542  +
    /* ServerOperationErrorGenerator.kt:83 */
  278    543   
}
         544  +
/* ServerOperationErrorGenerator.kt:100 */
  279    545   
impl ::std::error::Error for DoNothingError {
         546  +
    /* ServerOperationErrorGenerator.kt:101 */
  280    547   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         548  +
        /* ServerOperationErrorGenerator.kt:139 */
  281    549   
        match &self {
  282         -
            DoNothingError::InternalServerError(_inner) => Some(_inner),
         550  +
            /* ServerOperationErrorGenerator.kt:142 */
         551  +
            DoNothingError::InternalServerError(_inner) =>
         552  +
            /* ServerOperationErrorGenerator.kt:103 */
         553  +
            {
         554  +
                Some(_inner)
         555  +
            }
         556  +
            /* ServerOperationErrorGenerator.kt:139 */
  283    557   
        }
         558  +
        /* ServerOperationErrorGenerator.kt:101 */
  284    559   
    }
         560  +
    /* ServerOperationErrorGenerator.kt:100 */
  285    561   
}
         562  +
/* ServerOperationErrorGenerator.kt:110 */
  286    563   
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::DoNothingError {
         564  +
    /* ServerOperationErrorGenerator.kt:111 */
  287    565   
    fn from(variant: crate::error::InternalServerError) -> crate::error::DoNothingError {
         566  +
        /* ServerOperationErrorGenerator.kt:112 */
  288    567   
        Self::InternalServerError(variant)
         568  +
        /* ServerOperationErrorGenerator.kt:111 */
  289    569   
    }
         570  +
    /* ServerOperationErrorGenerator.kt:110 */
  290    571   
}
  291    572   
         573  +
/* TsServerOperationErrorGenerator.kt:34 */
  292    574   
impl ::std::convert::From<::napi::Error> for crate::error::DoNothingError {
  293    575   
    fn from(variant: ::napi::Error) -> crate::error::DoNothingError {
  294    576   
        crate::error::InternalServerError {
  295    577   
            message: variant.to_string(),
  296    578   
        }
  297    579   
        .into()
  298    580   
    }
  299    581   
}
  300    582   
         583  +
/* ServerOperationErrorGenerator.kt:63 */
  301    584   
/// Error type for the `GetServerStatistics` operation.
         585  +
/* ServerOperationErrorGenerator.kt:64 */
  302    586   
/// Each variant represents an error that can occur for the `GetServerStatistics` operation.
         587  +
/* RustType.kt:516 */
  303    588   
#[derive(::std::fmt::Debug)]
  304         -
pub enum GetServerStatisticsError {
         589  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum GetServerStatisticsError {
         590  +
    /* ServerOperationErrorGenerator.kt:68 */
  305    591   
    #[allow(missing_docs)] // documentation missing in model
         592  +
    /* ServerOperationErrorGenerator.kt:71 */
  306    593   
    InternalServerError(crate::error::InternalServerError),
         594  +
    /* ServerOperationErrorGenerator.kt:66 */
  307    595   
}
         596  +
/* ServerOperationErrorGenerator.kt:75 */
  308    597   
impl ::std::fmt::Display for GetServerStatisticsError {
         598  +
    /* ServerOperationErrorGenerator.kt:76 */
  309    599   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         600  +
        /* ServerOperationErrorGenerator.kt:139 */
  310    601   
        match &self {
  311         -
            GetServerStatisticsError::InternalServerError(_inner) => _inner.fmt(f),
         602  +
            /* ServerOperationErrorGenerator.kt:142 */
         603  +
            GetServerStatisticsError::InternalServerError(_inner) =>
         604  +
            /* ServerOperationErrorGenerator.kt:78 */
         605  +
            {
         606  +
                _inner.fmt(f)
         607  +
            }
         608  +
            /* ServerOperationErrorGenerator.kt:139 */
  312    609   
        }
         610  +
        /* ServerOperationErrorGenerator.kt:76 */
  313    611   
    }
         612  +
    /* ServerOperationErrorGenerator.kt:75 */
  314    613   
}
         614  +
/* ServerOperationErrorGenerator.kt:83 */
  315    615   
impl GetServerStatisticsError {
         616  +
    /* ServerOperationErrorGenerator.kt:87 */
  316    617   
    /// Returns `true` if the error kind is `GetServerStatisticsError::InternalServerError`.
         618  +
    /* ServerOperationErrorGenerator.kt:88 */
  317    619   
    pub fn is_internal_server_error(&self) -> bool {
         620  +
        /* ServerOperationErrorGenerator.kt:89 */
  318    621   
        matches!(&self, GetServerStatisticsError::InternalServerError(_))
         622  +
        /* ServerOperationErrorGenerator.kt:88 */
  319    623   
    }
         624  +
    /* ServerOperationErrorGenerator.kt:92 */
  320    625   
    /// Returns the error name string by matching the correct variant.
         626  +
    /* ServerOperationErrorGenerator.kt:93 */
  321    627   
    pub fn name(&self) -> &'static str {
         628  +
        /* ServerOperationErrorGenerator.kt:139 */
  322    629   
        match &self {
  323         -
            GetServerStatisticsError::InternalServerError(_inner) => _inner.name(),
         630  +
            /* ServerOperationErrorGenerator.kt:142 */
         631  +
            GetServerStatisticsError::InternalServerError(_inner) =>
         632  +
            /* ServerOperationErrorGenerator.kt:95 */
         633  +
            {
         634  +
                _inner.name()
         635  +
            }
         636  +
            /* ServerOperationErrorGenerator.kt:139 */
  324    637   
        }
         638  +
        /* ServerOperationErrorGenerator.kt:93 */
  325    639   
    }
         640  +
    /* ServerOperationErrorGenerator.kt:83 */
  326    641   
}
         642  +
/* ServerOperationErrorGenerator.kt:100 */
  327    643   
impl ::std::error::Error for GetServerStatisticsError {
         644  +
    /* ServerOperationErrorGenerator.kt:101 */
  328    645   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         646  +
        /* ServerOperationErrorGenerator.kt:139 */
  329    647   
        match &self {
  330         -
            GetServerStatisticsError::InternalServerError(_inner) => Some(_inner),
         648  +
            /* ServerOperationErrorGenerator.kt:142 */
         649  +
            GetServerStatisticsError::InternalServerError(_inner) =>
         650  +
            /* ServerOperationErrorGenerator.kt:103 */
         651  +
            {
         652  +
                Some(_inner)
         653  +
            }
         654  +
            /* ServerOperationErrorGenerator.kt:139 */
  331    655   
        }
         656  +
        /* ServerOperationErrorGenerator.kt:101 */
  332    657   
    }
         658  +
    /* ServerOperationErrorGenerator.kt:100 */
  333    659   
}
         660  +
/* ServerOperationErrorGenerator.kt:110 */
  334    661   
impl ::std::convert::From<crate::error::InternalServerError>
  335    662   
    for crate::error::GetServerStatisticsError
  336    663   
{
         664  +
    /* ServerOperationErrorGenerator.kt:111 */
  337    665   
    fn from(variant: crate::error::InternalServerError) -> crate::error::GetServerStatisticsError {
         666  +
        /* ServerOperationErrorGenerator.kt:112 */
  338    667   
        Self::InternalServerError(variant)
         668  +
        /* ServerOperationErrorGenerator.kt:111 */
  339    669   
    }
         670  +
    /* ServerOperationErrorGenerator.kt:110 */
  340    671   
}
  341    672   
         673  +
/* TsServerOperationErrorGenerator.kt:34 */
  342    674   
impl ::std::convert::From<::napi::Error> for crate::error::GetServerStatisticsError {
  343    675   
    fn from(variant: ::napi::Error) -> crate::error::GetServerStatisticsError {
  344    676   
        crate::error::InternalServerError {
  345    677   
            message: variant.to_string(),
  346    678   
        }
  347    679   
        .into()
  348    680   
    }
  349    681   
}
  350         -
/// See [`InternalServerError`](crate::error::InternalServerError).
         682  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`InternalServerError`](crate::error::InternalServerError).
  351    683   
pub mod internal_server_error {
  352    684   
         685  +
    /* RustType.kt:516 */
  353    686   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  354         -
    /// Holds one variant for each of the ways the builder can fail.
  355         -
         687  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
         688  +
    /* ServerBuilderConstraintViolations.kt:75 */
  356    689   
    #[allow(clippy::enum_variant_names)]
  357    690   
    pub enum ConstraintViolation {
  358         -
        /// `message` was not provided but it is required when building `InternalServerError`.
         691  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`message` was not provided but it is required when building `InternalServerError`.
         692  +
        /* ServerBuilderConstraintViolations.kt:143 */
  359    693   
        MissingMessage,
         694  +
        /* ServerBuilderConstraintViolations.kt:75 */
  360    695   
    }
         696  +
    /* ServerBuilderConstraintViolations.kt:117 */
  361    697   
    impl ::std::fmt::Display for ConstraintViolation {
         698  +
        /* ServerBuilderConstraintViolations.kt:118 */
  362    699   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         700  +
            /* ServerBuilderConstraintViolations.kt:119 */
  363    701   
            match self {
  364         -
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `InternalServerError`"),
  365         -
            }
         702  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `InternalServerError`"),
         703  +
            /* ServerBuilderConstraintViolations.kt:119 */}
         704  +
            /* ServerBuilderConstraintViolations.kt:118 */
  366    705   
        }
         706  +
        /* ServerBuilderConstraintViolations.kt:117 */
  367    707   
    }
         708  +
    /* ServerBuilderConstraintViolations.kt:84 */
  368    709   
    impl ::std::error::Error for ConstraintViolation {}
         710  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
  369    711   
    impl ::std::convert::TryFrom<Builder> for crate::error::InternalServerError {
  370    712   
        type Error = ConstraintViolation;
  371    713   
  372    714   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  373    715   
            builder.build()
  374    716   
        }
  375    717   
    }
  376         -
    /// A builder for [`InternalServerError`](crate::error::InternalServerError).
         718  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`InternalServerError`](crate::error::InternalServerError).
         719  +
    /* RustType.kt:516 */
  377    720   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         721  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  378    722   
    pub struct Builder {
         723  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  379    724   
        pub(crate) message: ::std::option::Option<::std::string::String>,
         725  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  380    726   
    }
         727  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  381    728   
    impl Builder {
         729  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
  382    730   
        #[allow(missing_docs)] // documentation missing in model
         731  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  383    732   
        pub fn message(mut self, input: ::std::string::String) -> Self {
  384         -
            self.message = Some(input);
         733  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         734  +
            self.message =
         735  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
         736  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         737  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
         738  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  385    739   
            self
         740  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  386    741   
        }
  387         -
        /// Consumes the builder and constructs a [`InternalServerError`](crate::error::InternalServerError).
  388         -
        ///
         742  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`InternalServerError`](crate::error::InternalServerError).
         743  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
  389    744   
        /// The builder fails to construct a [`InternalServerError`](crate::error::InternalServerError) if you do not provide a value for all non-`Option`al members.
  390    745   
        ///
         746  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  391    747   
        pub fn build(self) -> Result<crate::error::InternalServerError, ConstraintViolation> {
  392    748   
            self.build_enforcing_required_and_enum_traits()
  393    749   
        }
         750  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  394    751   
        fn build_enforcing_required_and_enum_traits(
  395    752   
            self,
  396    753   
        ) -> Result<crate::error::InternalServerError, ConstraintViolation> {
  397         -
            Ok(crate::error::InternalServerError {
  398         -
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
  399         -
            })
  400         -
        }
         754  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         755  +
            Ok(
         756  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         757  +
                crate::error::InternalServerError {
         758  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
         759  +
                    message: self
         760  +
                        .message
         761  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
         762  +
                        .ok_or(ConstraintViolation::MissingMessage)?,
         763  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         764  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         765  +
            )
         766  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
         767  +
        }
         768  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  401    769   
    }
         770  +
         771  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  402    772   
}
  403         -
/// See [`ValidationException`](crate::error::ValidationException).
         773  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ValidationException`](crate::error::ValidationException).
  404    774   
pub mod validation_exception {
  405    775   
         776  +
    /* RustType.kt:516 */
  406    777   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  407         -
    /// Holds one variant for each of the ways the builder can fail.
  408         -
         778  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
         779  +
    /* ServerBuilderConstraintViolations.kt:75 */
  409    780   
    #[allow(clippy::enum_variant_names)]
  410    781   
    pub enum ConstraintViolation {
  411         -
        /// `message` was not provided but it is required when building `ValidationException`.
         782  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`message` was not provided but it is required when building `ValidationException`.
         783  +
        /* ServerBuilderConstraintViolations.kt:143 */
  412    784   
        MissingMessage,
         785  +
        /* ServerBuilderConstraintViolations.kt:75 */
  413    786   
    }
         787  +
    /* ServerBuilderConstraintViolations.kt:117 */
  414    788   
    impl ::std::fmt::Display for ConstraintViolation {
         789  +
        /* ServerBuilderConstraintViolations.kt:118 */
  415    790   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         791  +
            /* ServerBuilderConstraintViolations.kt:119 */
  416    792   
            match self {
  417         -
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
  418         -
            }
         793  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
         794  +
            /* ServerBuilderConstraintViolations.kt:119 */}
         795  +
            /* ServerBuilderConstraintViolations.kt:118 */
  419    796   
        }
         797  +
        /* ServerBuilderConstraintViolations.kt:117 */
  420    798   
    }
         799  +
    /* ServerBuilderConstraintViolations.kt:84 */
  421    800   
    impl ::std::error::Error for ConstraintViolation {}
         801  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
  422    802   
    impl ::std::convert::TryFrom<Builder> for crate::error::ValidationException {
  423    803   
        type Error = ConstraintViolation;
  424    804   
  425    805   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  426    806   
            builder.build()
  427    807   
        }
  428    808   
    }
  429         -
    /// A builder for [`ValidationException`](crate::error::ValidationException).
         809  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ValidationException`](crate::error::ValidationException).
         810  +
    /* RustType.kt:516 */
  430    811   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         812  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  431    813   
    pub struct Builder {
         814  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  432    815   
        pub(crate) message: ::std::option::Option<::std::string::String>,
         816  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  433    817   
        pub(crate) field_list:
  434    818   
            ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
         819  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  435    820   
    }
         821  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  436    822   
    impl Builder {
  437         -
        /// A summary of the validation failure.
         823  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A summary of the validation failure.
         824  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  438    825   
        pub fn message(mut self, input: ::std::string::String) -> Self {
  439         -
            self.message = Some(input);
         826  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         827  +
            self.message =
         828  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
         829  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         830  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
         831  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  440    832   
            self
         833  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  441    834   
        }
  442         -
        /// 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.
         835  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
         836  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  443    837   
        pub fn field_list(
  444    838   
            mut self,
  445    839   
            input: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
  446    840   
        ) -> Self {
  447         -
            self.field_list = input;
         841  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         842  +
            self.field_list =
         843  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         844  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  448    845   
            self
         846  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  449    847   
        }
  450         -
        /// Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
  451         -
        ///
         848  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
         849  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
  452    850   
        /// The builder fails to construct a [`ValidationException`](crate::error::ValidationException) if you do not provide a value for all non-`Option`al members.
  453    851   
        ///
         852  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  454    853   
        pub fn build(self) -> Result<crate::error::ValidationException, ConstraintViolation> {
  455    854   
            self.build_enforcing_required_and_enum_traits()
  456    855   
        }
         856  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  457    857   
        fn build_enforcing_required_and_enum_traits(
  458    858   
            self,
  459    859   
        ) -> Result<crate::error::ValidationException, ConstraintViolation> {
  460         -
            Ok(crate::error::ValidationException {
  461         -
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
  462         -
                field_list: self.field_list,
  463         -
            })
  464         -
        }
         860  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         861  +
            Ok(
         862  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         863  +
                crate::error::ValidationException {
         864  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
         865  +
                    message: self
         866  +
                        .message
         867  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
         868  +
                        .ok_or(ConstraintViolation::MissingMessage)?,
         869  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
         870  +
                    field_list: self.field_list,
         871  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         872  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         873  +
            )
         874  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
         875  +
        }
         876  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  465    877   
    }
         878  +
         879  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  466    880   
}
  467         -
/// See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
         881  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
  468    882   
pub mod resource_not_found_exception {
  469    883   
         884  +
    /* RustType.kt:516 */
  470    885   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  471         -
    /// Holds one variant for each of the ways the builder can fail.
  472         -
         886  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
         887  +
    /* ServerBuilderConstraintViolations.kt:75 */
  473    888   
    #[allow(clippy::enum_variant_names)]
  474    889   
    pub enum ConstraintViolation {
  475         -
        /// `message` was not provided but it is required when building `ResourceNotFoundException`.
         890  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`message` was not provided but it is required when building `ResourceNotFoundException`.
         891  +
        /* ServerBuilderConstraintViolations.kt:143 */
  476    892   
        MissingMessage,
         893  +
        /* ServerBuilderConstraintViolations.kt:75 */
  477    894   
    }
         895  +
    /* ServerBuilderConstraintViolations.kt:117 */
  478    896   
    impl ::std::fmt::Display for ConstraintViolation {
         897  +
        /* ServerBuilderConstraintViolations.kt:118 */
  479    898   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         899  +
            /* ServerBuilderConstraintViolations.kt:119 */
  480    900   
            match self {
  481         -
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ResourceNotFoundException`"),
  482         -
            }
         901  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ResourceNotFoundException`"),
         902  +
            /* ServerBuilderConstraintViolations.kt:119 */}
         903  +
            /* ServerBuilderConstraintViolations.kt:118 */
  483    904   
        }
         905  +
        /* ServerBuilderConstraintViolations.kt:117 */
  484    906   
    }
         907  +
    /* ServerBuilderConstraintViolations.kt:84 */
  485    908   
    impl ::std::error::Error for ConstraintViolation {}
         909  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
  486    910   
    impl ::std::convert::TryFrom<Builder> for crate::error::ResourceNotFoundException {
  487    911   
        type Error = ConstraintViolation;
  488    912   
  489    913   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  490    914   
            builder.build()
  491    915   
        }
  492    916   
    }
  493         -
    /// A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
         917  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
         918  +
    /* RustType.kt:516 */
  494    919   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         920  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  495    921   
    pub struct Builder {
         922  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  496    923   
        pub(crate) message: ::std::option::Option<::std::string::String>,
         924  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  497    925   
    }
         926  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  498    927   
    impl Builder {
         928  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
  499    929   
        #[allow(missing_docs)] // documentation missing in model
         930  +
                               /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  500    931   
        pub fn message(mut self, input: ::std::string::String) -> Self {
  501         -
            self.message = Some(input);
         932  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         933  +
            self.message =
         934  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
         935  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         936  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
         937  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  502    938   
            self
         939  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  503    940   
        }
  504         -
        /// Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
  505         -
        ///
         941  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
         942  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
  506    943   
        /// The builder fails to construct a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException) if you do not provide a value for all non-`Option`al members.
  507    944   
        ///
         945  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  508    946   
        pub fn build(self) -> Result<crate::error::ResourceNotFoundException, ConstraintViolation> {
  509    947   
            self.build_enforcing_required_and_enum_traits()
  510    948   
        }
         949  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  511    950   
        fn build_enforcing_required_and_enum_traits(
  512    951   
            self,
  513    952   
        ) -> Result<crate::error::ResourceNotFoundException, ConstraintViolation> {
  514         -
            Ok(crate::error::ResourceNotFoundException {
  515         -
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
  516         -
            })
  517         -
        }
         953  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         954  +
            Ok(
         955  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         956  +
                crate::error::ResourceNotFoundException {
         957  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
         958  +
                    message: self
         959  +
                        .message
         960  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
         961  +
                        .ok_or(ConstraintViolation::MissingMessage)?,
         962  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         963  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         964  +
            )
         965  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
         966  +
        }
         967  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  518    968   
    }
         969  +
         970  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  519    971   
}

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

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

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

@@ -1,1 +52,53 @@
   13     13   
#![allow(clippy::result_large_err)]
   14     14   
#![allow(clippy::unnecessary_map_on_constructor)]
   15     15   
#![allow(rustdoc::bare_urls)]
   16     16   
#![allow(rustdoc::redundant_explicit_links)]
   17     17   
#![allow(rustdoc::invalid_html_tags)]
   18     18   
#![forbid(unsafe_code)]
   19     19   
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
   20     20   
//! The Pokémon Service allows you to retrieve information about Pokémon species.
   21     21   
   22     22   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
          23  +
/* ServerRootGenerator.kt:65 */
   23     24   
//! A fast and customizable Rust implementation of the PokemonService Smithy service.
   24     25   
//!
   25     26   
//! # Using PokemonService
   26     27   
//!
   27     28   
//! The primary entrypoint is [`PokemonService`]: it satisfies the [`Service<http::Request, Response = http::Response>`](::tower::Service)
   28     29   
//! trait and therefore can be handed to a [`hyper` server](https://github.com/hyperium/hyper) via [`PokemonService::into_make_service`]
   29     30   
//! or used in AWS Lambda
   30     31   
#![cfg_attr(
   31     32   
    feature = "aws-lambda",
   32     33   
    doc = " via [`LambdaHandler`](crate::server::routing::LambdaHandler)."
@@ -182,183 +263,271 @@
  202    203   
//! }
  203    204   
//!
  204    205   
//! ```
  205    206   
//!
  206    207   
//! [`serve`]: https://docs.rs/hyper/0.14.16/hyper/server/struct.Builder.html#method.serve
  207    208   
//! [`tower::make::MakeService`]: https://docs.rs/tower/latest/tower/make/trait.MakeService.html
  208    209   
//! [HTTP binding traits]: https://smithy.io/2.0/spec/http-bindings.html
  209    210   
//! [operations]: https://smithy.io/2.0/spec/service-types.html#operation
  210    211   
//! [hyper server]: https://docs.rs/hyper/latest/hyper/server/index.html
  211    212   
//! [Service]: https://docs.rs/tower-service/latest/tower_service/trait.Service.html
         213  +
/* ServerRootGenerator.kt:261 */
  212    214   
pub use crate::service::{
  213    215   
    MissingOperationsError, PokemonService, PokemonServiceBuilder, PokemonServiceConfig,
  214    216   
    PokemonServiceConfigBuilder,
  215    217   
};
  216    218   
  217         -
/// Contains the types that are re-exported from the `aws-smithy-http-server` crate.
         219  +
/// /* ServerRustModule.kt:55 */Contains the types that are re-exported from the `aws-smithy-http-server` crate.
  218    220   
pub mod server {
  219    221   
    // Re-export all types from the `aws-smithy-http-server` crate.
  220    222   
    pub use ::aws_smithy_http_server::*;
         223  +
         224  +
    /* CodegenDelegator.kt:200 */
  221    225   
}
  222    226   
         227  +
/* CrateVersionCustomization.kt:23 */
  223    228   
/// Crate version number.
  224    229   
pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION");
  225    230   
  226         -
/// All error types that operations can return. Documentation on these types is copied from the model.
         231  +
/// /* ServerRustModule.kt:55 */All error types that operations can return. Documentation on these types is copied from the model.
  227    232   
pub mod error;
  228    233   
  229         -
/// Input structures for operations. Documentation on these types is copied from the model.
         234  +
/// /* ServerRustModule.kt:55 */Input structures for operations. Documentation on these types is copied from the model.
  230    235   
pub mod input;
  231    236   
  232         -
/// Data structures used by operation inputs/outputs. Documentation on these types is copied from the model.
         237  +
/// /* ServerRustModule.kt:55 */Data structures used by operation inputs/outputs. Documentation on these types is copied from the model.
  233    238   
pub mod model;
  234    239   
  235         -
/// All operations that this crate can perform.
         240  +
/// /* ServerRustModule.kt:55 */All operations that this crate can perform.
  236    241   
pub mod operation;
  237    242   
         243  +
/* ServerRustModule.kt:79 */
  238    244   
/// A collection of types representing each operation defined in the service closure.
  239    245   
///
  240    246   
/// The [plugin system](::aws_smithy_http_server::plugin) makes use of these
  241    247   
/// [zero-sized types](https://doc.rust-lang.org/nomicon/exotic-sizes.html#zero-sized-types-zsts) (ZSTs) to
  242    248   
/// parameterize [`Plugin`](::aws_smithy_http_server::plugin::Plugin) implementations. Their traits, such as
  243    249   
/// [`OperationShape`](::aws_smithy_http_server::operation::OperationShape), can be used to provide
  244    250   
/// operation specific information to the [`Layer`](::tower::Layer) being applied.
  245    251   
pub mod operation_shape;
  246    252   
  247         -
/// Output structures for operations. Documentation on these types is copied from the model.
         253  +
/// /* ServerRustModule.kt:55 */Output structures for operations. Documentation on these types is copied from the model.
  248    254   
pub mod output;
  249    255   
         256  +
/* RustModule.kt:172 */
  250    257   
mod service;
  251    258   
  252    259   
pub mod ts_operation_adaptor;
  253    260   
  254         -
/// Ts server and application implementation.
         261  +
/// /* TsServerModuleDocProvider.kt:21 */Ts server and application implementation.
  255    262   
pub mod ts_server_application;
  256    263   
  257         -
/// Data primitives referenced by other data types.
         264  +
/// /* ServerRustModule.kt:55 */Data primitives referenced by other data types.
  258    265   
pub mod types;
  259    266   
  260         -
/// Constrained types for constrained shapes.
         267  +
/// /* ServerRustModule.kt:55 */Constrained types for constrained shapes.
         268  +
/* RustModule.kt:172 */
  261    269   
mod constrained;
  262    270   
  263    271   
pub(crate) mod protocol_serde;

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

@@ -1,1 +292,441 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* RustType.kt:516 */
    2      3   
#[::napi_derive::napi(object)]
    3         -
/// Describes one specific validation failure for an input member.
           4  +
/// /* StructureGenerator.kt:197 */Describes one specific validation failure for an input member.
           5  +
/* RustType.kt:516 */
    4      6   
#[derive(
    5      7   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
    6      8   
)]
    7         -
pub struct ValidationExceptionField {
    8         -
    /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
           9  +
pub /* StructureGenerator.kt:201 */ struct ValidationExceptionField {
          10  +
    /// /* StructureGenerator.kt:231 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
    9     11   
    pub path: ::std::string::String,
   10         -
    /// A detailed description of the validation failure.
          12  +
    /// /* StructureGenerator.kt:231 */A detailed description of the validation failure.
   11     13   
    pub message: ::std::string::String,
          14  +
    /* StructureGenerator.kt:201 */
   12     15   
}
          16  +
/* StructureGenerator.kt:135 */
   13     17   
impl ValidationExceptionField {
   14         -
    /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
          18  +
    /// /* StructureGenerator.kt:231 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
          19  +
    /* StructureGenerator.kt:166 */
   15     20   
    pub fn path(&self) -> &str {
          21  +
        /* StructureGenerator.kt:171 */
   16     22   
        use std::ops::Deref;
   17     23   
        self.path.deref()
          24  +
        /* StructureGenerator.kt:166 */
   18     25   
    }
   19         -
    /// A detailed description of the validation failure.
          26  +
    /// /* StructureGenerator.kt:231 */A detailed description of the validation failure.
          27  +
    /* StructureGenerator.kt:166 */
   20     28   
    pub fn message(&self) -> &str {
          29  +
        /* StructureGenerator.kt:171 */
   21     30   
        use std::ops::Deref;
   22     31   
        self.message.deref()
          32  +
        /* StructureGenerator.kt:166 */
   23     33   
    }
          34  +
    /* StructureGenerator.kt:135 */
   24     35   
}
          36  +
/* ServerCodegenVisitor.kt:370 */
   25     37   
impl ValidationExceptionField {
   26         -
    /// Creates a new builder-style object to manufacture [`ValidationExceptionField`](crate::model::ValidationExceptionField).
          38  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ValidationExceptionField`](crate::model::ValidationExceptionField).
          39  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
   27     40   
    pub fn builder() -> crate::model::validation_exception_field::Builder {
          41  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
   28     42   
        crate::model::validation_exception_field::Builder::default()
          43  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
   29     44   
    }
          45  +
    /* ServerCodegenVisitor.kt:370 */
   30     46   
}
   31     47   
          48  +
/* RustType.kt:516 */
   32     49   
#[::napi_derive::napi(object)]
          50  +
/* StructureGenerator.kt:197 */
   33     51   
#[allow(missing_docs)] // documentation missing in model
          52  +
/* RustType.kt:516 */
   34     53   
#[derive(
   35     54   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   36     55   
)]
   37         -
pub struct FlavorText {
   38         -
    /// The localized flavor text for an API resource in a specific language.
          56  +
pub /* StructureGenerator.kt:201 */ struct FlavorText {
          57  +
    /// /* StructureGenerator.kt:231 */The localized flavor text for an API resource in a specific language.
   39     58   
    pub flavor_text: ::std::string::String,
   40         -
    /// The language this name is in.
          59  +
    /// /* StructureGenerator.kt:231 */The language this name is in.
   41     60   
    pub language: crate::model::Language,
          61  +
    /* StructureGenerator.kt:201 */
   42     62   
}
          63  +
/* StructureGenerator.kt:135 */
   43     64   
impl FlavorText {
   44         -
    /// The localized flavor text for an API resource in a specific language.
          65  +
    /// /* StructureGenerator.kt:231 */The localized flavor text for an API resource in a specific language.
          66  +
    /* StructureGenerator.kt:166 */
   45     67   
    pub fn flavor_text(&self) -> &str {
          68  +
        /* StructureGenerator.kt:171 */
   46     69   
        use std::ops::Deref;
   47     70   
        self.flavor_text.deref()
          71  +
        /* StructureGenerator.kt:166 */
   48     72   
    }
   49         -
    /// The language this name is in.
          73  +
    /// /* StructureGenerator.kt:231 */The language this name is in.
          74  +
    /* StructureGenerator.kt:166 */
   50     75   
    pub fn language(&self) -> &crate::model::Language {
          76  +
        /* StructureGenerator.kt:172 */
   51     77   
        &self.language
          78  +
        /* StructureGenerator.kt:166 */
   52     79   
    }
          80  +
    /* StructureGenerator.kt:135 */
   53     81   
}
          82  +
/* ServerCodegenVisitor.kt:370 */
   54     83   
impl FlavorText {
   55         -
    /// Creates a new builder-style object to manufacture [`FlavorText`](crate::model::FlavorText).
          84  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`FlavorText`](crate::model::FlavorText).
          85  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
   56     86   
    pub fn builder() -> crate::model::flavor_text::Builder {
          87  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
   57     88   
        crate::model::flavor_text::Builder::default()
          89  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
   58     90   
    }
          91  +
    /* ServerCodegenVisitor.kt:370 */
   59     92   
}
   60     93   
          94  +
/* RustType.kt:516 */
   61     95   
#[::napi_derive::napi]
   62         -
/// Supported languages for FlavorText entries.
          96  +
/// /* EnumGenerator.kt:156 */Supported languages for FlavorText entries.
          97  +
/* RustType.kt:516 */
   63     98   
#[derive(
   64     99   
    ::std::cmp::Eq,
   65    100   
    ::std::cmp::Ord,
   66    101   
    ::std::cmp::PartialEq,
   67    102   
    ::std::cmp::PartialOrd,
   68    103   
    ::std::fmt::Debug,
   69    104   
    ::std::hash::Hash,
   70    105   
)]
   71         -
pub enum Language {
   72         -
    /// American English.
         106  +
pub /* EnumGenerator.kt:267 */ enum Language {
         107  +
    /// /* EnumGenerator.kt:156 */American English.
         108  +
    /* EnumGenerator.kt:143 */
   73    109   
    English,
   74         -
    /// Español.
         110  +
    /// /* EnumGenerator.kt:156 */Español.
         111  +
    /* EnumGenerator.kt:143 */
   75    112   
    Spanish,
   76         -
    /// Italiano.
         113  +
    /// /* EnumGenerator.kt:156 */Italiano.
         114  +
    /* EnumGenerator.kt:143 */
   77    115   
    Italian,
   78         -
    /// 日本語。
         116  +
    /// /* EnumGenerator.kt:156 */日本語。
         117  +
    /* EnumGenerator.kt:143 */
   79    118   
    Japanese,
         119  +
    /* EnumGenerator.kt:267 */
   80    120   
}
   81    121   
pub(crate) mod language_internal {
   82    122   
    #[derive(Debug, PartialEq)]
   83    123   
    pub struct ConstraintViolation(pub(crate) ::std::string::String);
   84    124   
   85    125   
    impl ::std::fmt::Display for ConstraintViolation {
   86    126   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
   87    127   
            write!(
   88    128   
                f,
   89    129   
                r#"Value provided for 'com.aws.example#Language' failed to satisfy constraint: Member must satisfy enum value set: [en, es, it, jp]"#
   90    130   
            )
   91    131   
        }
   92    132   
    }
   93    133   
   94    134   
    impl ::std::error::Error for ConstraintViolation {}
         135  +
         136  +
    /* ServerEnumGenerator.kt:46 */
   95    137   
}
         138  +
/* ServerEnumGenerator.kt:85 */
   96    139   
impl ::std::convert::TryFrom<&str> for Language {
   97    140   
    type Error = crate::model::language_internal::ConstraintViolation;
   98    141   
    fn try_from(
   99    142   
        s: &str,
  100    143   
    ) -> ::std::result::Result<Self, <Self as ::std::convert::TryFrom<&str>>::Error> {
  101    144   
        match s {
  102    145   
            "en" => Ok(Language::English),
  103    146   
            "es" => Ok(Language::Spanish),
  104    147   
            "it" => Ok(Language::Italian),
  105    148   
            "jp" => Ok(Language::Japanese),
  106    149   
            _ => Err(crate::model::language_internal::ConstraintViolation(
  107    150   
                s.to_owned(),
  108    151   
            )),
  109    152   
        }
  110    153   
    }
  111    154   
}
  112    155   
impl ::std::convert::TryFrom<::std::string::String> for Language {
  113    156   
    type Error = crate::model::language_internal::ConstraintViolation;
  114    157   
    fn try_from(
  115    158   
        s: ::std::string::String,
  116    159   
    ) -> ::std::result::Result<Self, <Self as ::std::convert::TryFrom<::std::string::String>>::Error>
  117    160   
    {
  118    161   
        s.as_str().try_into()
  119    162   
    }
  120    163   
}
         164  +
/* ServerEnumGenerator.kt:145 */
  121    165   
impl std::str::FromStr for Language {
  122    166   
    type Err = crate::model::language_internal::ConstraintViolation;
  123    167   
    fn from_str(s: &str) -> std::result::Result<Self, <Self as std::str::FromStr>::Err> {
  124    168   
        Self::try_from(s)
  125    169   
    }
  126    170   
}
         171  +
/* EnumGenerator.kt:274 */
  127    172   
impl Language {
  128    173   
    /// Returns the `&str` value of the enum member.
  129    174   
    pub fn as_str(&self) -> &str {
  130    175   
        match self {
  131    176   
            Language::English => "en",
  132    177   
            Language::Spanish => "es",
  133    178   
            Language::Italian => "it",
  134    179   
            Language::Japanese => "jp",
  135    180   
        }
  136    181   
    }
  137    182   
    /// Returns all the `&str` representations of the enum members.
  138    183   
    pub const fn values() -> &'static [&'static str] {
  139    184   
        &["en", "es", "it", "jp"]
  140    185   
    }
  141    186   
}
         187  +
/* EnumGenerator.kt:223 */
  142    188   
impl ::std::convert::AsRef<str> for Language {
  143    189   
    fn as_ref(&self) -> &str {
  144    190   
        self.as_str()
  145    191   
    }
  146    192   
}
         193  +
/* TsServerEnumGenerator.kt:33 */
  147    194   
use napi::bindgen_prelude::ToNapiValue;
         195  +
/* ConstrainedTraitForEnumGenerator.kt:36 */
  148    196   
impl crate::constrained::Constrained for Language {
  149    197   
    type Unconstrained = ::std::string::String;
  150    198   
}
  151    199   
  152    200   
impl ::std::convert::From<::std::string::String>
  153    201   
    for crate::constrained::MaybeConstrained<crate::model::Language>
  154    202   
{
  155    203   
    fn from(value: ::std::string::String) -> Self {
  156    204   
        Self::Unconstrained(value)
  157    205   
    }
  158    206   
}
  159         -
/// See [`ValidationExceptionField`](crate::model::ValidationExceptionField).
         207  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ValidationExceptionField`](crate::model::ValidationExceptionField).
  160    208   
pub mod validation_exception_field {
  161    209   
         210  +
    /* RustType.kt:516 */
  162    211   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  163         -
    /// Holds one variant for each of the ways the builder can fail.
  164         -
         212  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
         213  +
    /* ServerBuilderConstraintViolations.kt:75 */
  165    214   
    #[allow(clippy::enum_variant_names)]
  166    215   
    pub enum ConstraintViolation {
  167         -
        /// `path` was not provided but it is required when building `ValidationExceptionField`.
         216  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`path` was not provided but it is required when building `ValidationExceptionField`.
         217  +
        /* ServerBuilderConstraintViolations.kt:143 */
  168    218   
        MissingPath,
  169         -
        /// `message` was not provided but it is required when building `ValidationExceptionField`.
         219  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`message` was not provided but it is required when building `ValidationExceptionField`.
         220  +
        /* ServerBuilderConstraintViolations.kt:143 */
  170    221   
        MissingMessage,
         222  +
        /* ServerBuilderConstraintViolations.kt:75 */
  171    223   
    }
         224  +
    /* ServerBuilderConstraintViolations.kt:117 */
  172    225   
    impl ::std::fmt::Display for ConstraintViolation {
         226  +
        /* ServerBuilderConstraintViolations.kt:118 */
  173    227   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         228  +
            /* ServerBuilderConstraintViolations.kt:119 */
  174    229   
            match self {
  175         -
                ConstraintViolation::MissingPath => write!(f, "`path` was not provided but it is required when building `ValidationExceptionField`"),
  176         -
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationExceptionField`"),
  177         -
            }
         230  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingPath => write!(f, "`path` was not provided but it is required when building `ValidationExceptionField`"),
         231  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationExceptionField`"),
         232  +
            /* ServerBuilderConstraintViolations.kt:119 */}
         233  +
            /* ServerBuilderConstraintViolations.kt:118 */
  178    234   
        }
         235  +
        /* ServerBuilderConstraintViolations.kt:117 */
  179    236   
    }
         237  +
    /* ServerBuilderConstraintViolations.kt:84 */
  180    238   
    impl ::std::error::Error for ConstraintViolation {}
         239  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
  181    240   
    impl ::std::convert::TryFrom<Builder> for crate::model::ValidationExceptionField {
  182    241   
        type Error = ConstraintViolation;
  183    242   
  184    243   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  185    244   
            builder.build()
  186    245   
        }
  187    246   
    }
  188         -
    /// A builder for [`ValidationExceptionField`](crate::model::ValidationExceptionField).
         247  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ValidationExceptionField`](crate::model::ValidationExceptionField).
         248  +
    /* RustType.kt:516 */
  189    249   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         250  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  190    251   
    pub struct Builder {
         252  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  191    253   
        pub(crate) path: ::std::option::Option<::std::string::String>,
         254  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  192    255   
        pub(crate) message: ::std::option::Option<::std::string::String>,
         256  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  193    257   
    }
         258  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  194    259   
    impl Builder {
  195         -
        /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
         260  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
         261  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  196    262   
        pub fn path(mut self, input: ::std::string::String) -> Self {
  197         -
            self.path = Some(input);
         263  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         264  +
            self.path =
         265  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
         266  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         267  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
         268  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  198    269   
            self
         270  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  199    271   
        }
  200         -
        /// A detailed description of the validation failure.
         272  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A detailed description of the validation failure.
         273  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  201    274   
        pub fn message(mut self, input: ::std::string::String) -> Self {
  202         -
            self.message = Some(input);
         275  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         276  +
            self.message =
         277  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
         278  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         279  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
         280  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  203    281   
            self
         282  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  204    283   
        }
  205         -
        /// Consumes the builder and constructs a [`ValidationExceptionField`](crate::model::ValidationExceptionField).
  206         -
        ///
         284  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ValidationExceptionField`](crate::model::ValidationExceptionField).
         285  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
  207    286   
        /// The builder fails to construct a [`ValidationExceptionField`](crate::model::ValidationExceptionField) if you do not provide a value for all non-`Option`al members.
  208    287   
        ///
         288  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  209    289   
        pub fn build(self) -> Result<crate::model::ValidationExceptionField, ConstraintViolation> {
  210    290   
            self.build_enforcing_required_and_enum_traits()
  211    291   
        }
         292  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  212    293   
        fn build_enforcing_required_and_enum_traits(
  213    294   
            self,
  214    295   
        ) -> Result<crate::model::ValidationExceptionField, ConstraintViolation> {
  215         -
            Ok(crate::model::ValidationExceptionField {
  216         -
                path: self.path.ok_or(ConstraintViolation::MissingPath)?,
  217         -
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
  218         -
            })
         296  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         297  +
            Ok(
         298  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         299  +
                crate::model::ValidationExceptionField {
         300  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
         301  +
                    path: self
         302  +
                        .path
         303  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
         304  +
                        .ok_or(ConstraintViolation::MissingPath)?,
         305  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
         306  +
                    message: self
         307  +
                        .message
         308  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
         309  +
                        .ok_or(ConstraintViolation::MissingMessage)?,
         310  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         311  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         312  +
            )
         313  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  219    314   
        }
         315  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  220    316   
    }
         317  +
         318  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  221    319   
}
  222         -
/// See [`FlavorText`](crate::model::FlavorText).
         320  +
/// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`FlavorText`](crate::model::FlavorText).
  223    321   
pub mod flavor_text {
  224    322   
         323  +
    /* RustType.kt:516 */
  225    324   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
  226         -
    /// Holds one variant for each of the ways the builder can fail.
  227         -
         325  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
         326  +
    /* ServerBuilderConstraintViolations.kt:75 */
  228    327   
    #[allow(clippy::enum_variant_names)]
  229    328   
    pub enum ConstraintViolation {
  230         -
        /// `flavor_text` was not provided but it is required when building `FlavorText`.
         329  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`flavor_text` was not provided but it is required when building `FlavorText`.
         330  +
        /* ServerBuilderConstraintViolations.kt:143 */
  231    331   
        MissingFlavorText,
  232         -
        /// `language` was not provided but it is required when building `FlavorText`.
         332  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`language` was not provided but it is required when building `FlavorText`.
         333  +
        /* ServerBuilderConstraintViolations.kt:143 */
  233    334   
        MissingLanguage,
         335  +
        /* ServerBuilderConstraintViolations.kt:75 */
  234    336   
    }
         337  +
    /* ServerBuilderConstraintViolations.kt:117 */
  235    338   
    impl ::std::fmt::Display for ConstraintViolation {
         339  +
        /* ServerBuilderConstraintViolations.kt:118 */
  236    340   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         341  +
            /* ServerBuilderConstraintViolations.kt:119 */
  237    342   
            match self {
         343  +
                /* ServerBuilderConstraintViolations.kt:127 */
  238    344   
                ConstraintViolation::MissingFlavorText => write!(
  239    345   
                    f,
  240    346   
                    "`flavor_text` was not provided but it is required when building `FlavorText`"
  241    347   
                ),
         348  +
                /* ServerBuilderConstraintViolations.kt:127 */
  242    349   
                ConstraintViolation::MissingLanguage => write!(
  243    350   
                    f,
  244    351   
                    "`language` was not provided but it is required when building `FlavorText`"
  245    352   
                ),
         353  +
                /* ServerBuilderConstraintViolations.kt:119 */
  246    354   
            }
         355  +
            /* ServerBuilderConstraintViolations.kt:118 */
  247    356   
        }
         357  +
        /* ServerBuilderConstraintViolations.kt:117 */
  248    358   
    }
         359  +
    /* ServerBuilderConstraintViolations.kt:84 */
  249    360   
    impl ::std::error::Error for ConstraintViolation {}
         361  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
  250    362   
    impl ::std::convert::TryFrom<Builder> for crate::model::FlavorText {
  251    363   
        type Error = ConstraintViolation;
  252    364   
  253    365   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
  254    366   
            builder.build()
  255    367   
        }
  256    368   
    }
  257         -
    /// A builder for [`FlavorText`](crate::model::FlavorText).
         369  +
    /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`FlavorText`](crate::model::FlavorText).
         370  +
    /* RustType.kt:516 */
  258    371   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
         372  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  259    373   
    pub struct Builder {
         374  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  260    375   
        pub(crate) flavor_text: ::std::option::Option<::std::string::String>,
         376  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
  261    377   
        pub(crate) language: ::std::option::Option<crate::model::Language>,
         378  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
  262    379   
    }
         380  +
    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  263    381   
    impl Builder {
  264         -
        /// The localized flavor text for an API resource in a specific language.
         382  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */The localized flavor text for an API resource in a specific language.
         383  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  265    384   
        pub fn flavor_text(mut self, input: ::std::string::String) -> Self {
  266         -
            self.flavor_text = Some(input);
         385  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         386  +
            self.flavor_text =
         387  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
         388  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         389  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
         390  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  267    391   
            self
         392  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  268    393   
        }
  269         -
        /// The language this name is in.
         394  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */The language this name is in.
         395  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  270    396   
        pub fn language(mut self, input: crate::model::Language) -> Self {
  271         -
            self.language = Some(input);
         397  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
         398  +
            self.language =
         399  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
         400  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
         401  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
         402  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
  272    403   
            self
         404  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
  273    405   
        }
  274         -
        /// Consumes the builder and constructs a [`FlavorText`](crate::model::FlavorText).
  275         -
        ///
         406  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`FlavorText`](crate::model::FlavorText).
         407  +
        /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
  276    408   
        /// The builder fails to construct a [`FlavorText`](crate::model::FlavorText) if you do not provide a value for all non-`Option`al members.
  277    409   
        ///
         410  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
  278    411   
        pub fn build(self) -> Result<crate::model::FlavorText, ConstraintViolation> {
  279    412   
            self.build_enforcing_required_and_enum_traits()
  280    413   
        }
         414  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  281    415   
        fn build_enforcing_required_and_enum_traits(
  282    416   
            self,
  283    417   
        ) -> Result<crate::model::FlavorText, ConstraintViolation> {
  284         -
            Ok(crate::model::FlavorText {
  285         -
                flavor_text: self
  286         -
                    .flavor_text
  287         -
                    .ok_or(ConstraintViolation::MissingFlavorText)?,
  288         -
                language: self.language.ok_or(ConstraintViolation::MissingLanguage)?,
  289         -
            })
         418  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         419  +
            Ok(
         420  +
                /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         421  +
                crate::model::FlavorText {
         422  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
         423  +
                    flavor_text: self
         424  +
                        .flavor_text
         425  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
         426  +
                        .ok_or(ConstraintViolation::MissingFlavorText)?,
         427  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
         428  +
                    language: self
         429  +
                        .language
         430  +
                        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
         431  +
                        .ok_or(ConstraintViolation::MissingLanguage)?,
         432  +
                    /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
         433  +
                }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
         434  +
            )
         435  +
            /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
  290    436   
        }
         437  +
        /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
  291    438   
    }
         439  +
         440  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  292    441   
}