Server Test

Server Test

rev. 7254d43655ed63111c94f599437f2b0d3f55446e

Files changed:

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

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

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

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

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

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