Server Test

Server Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-server-test/pokemon-service-awsjson-server-sdk/rust-server-codegen/src/types.rs

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

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

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