Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/types/_structure_list_member.rs

@@ -1,1 +68,129 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* StructureGenerator.kt:197 */
    2      3   
#[allow(missing_docs)] // documentation missing in model
           4  +
/* RustType.kt:516 */
    3      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    4      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5         -
pub struct StructureListMember {
           8  +
pub /* StructureGenerator.kt:201 */ struct StructureListMember {
           9  +
    /* StructureGenerator.kt:231 */
    6     10   
    #[allow(missing_docs)] // documentation missing in model
    7     11   
    pub a: ::std::option::Option<::std::string::String>,
          12  +
    /* StructureGenerator.kt:231 */
    8     13   
    #[allow(missing_docs)] // documentation missing in model
    9     14   
    pub b: ::std::option::Option<::std::string::String>,
          15  +
    /* StructureGenerator.kt:201 */
   10     16   
}
          17  +
/* StructureGenerator.kt:135 */
   11     18   
impl StructureListMember {
          19  +
    /* StructureGenerator.kt:231 */
   12     20   
    #[allow(missing_docs)] // documentation missing in model
          21  +
                           /* StructureGenerator.kt:166 */
   13     22   
    pub fn a(&self) -> ::std::option::Option<&str> {
          23  +
        /* StructureGenerator.kt:169 */
   14     24   
        self.a.as_deref()
          25  +
        /* StructureGenerator.kt:166 */
   15     26   
    }
          27  +
    /* StructureGenerator.kt:231 */
   16     28   
    #[allow(missing_docs)] // documentation missing in model
          29  +
                           /* StructureGenerator.kt:166 */
   17     30   
    pub fn b(&self) -> ::std::option::Option<&str> {
          31  +
        /* StructureGenerator.kt:169 */
   18     32   
        self.b.as_deref()
          33  +
        /* StructureGenerator.kt:166 */
   19     34   
    }
          35  +
    /* StructureGenerator.kt:135 */
   20     36   
}
          37  +
/* ClientCodegenVisitor.kt:237 */
   21     38   
impl StructureListMember {
   22         -
    /// Creates a new builder-style object to manufacture [`StructureListMember`](crate::types::StructureListMember).
          39  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`StructureListMember`](crate::types::StructureListMember).
          40  +
    /* BuilderGenerator.kt:175 */
   23     41   
    pub fn builder() -> crate::types::builders::StructureListMemberBuilder {
          42  +
        /* BuilderGenerator.kt:176 */
   24     43   
        crate::types::builders::StructureListMemberBuilder::default()
          44  +
        /* BuilderGenerator.kt:175 */
   25     45   
    }
          46  +
    /* ClientCodegenVisitor.kt:237 */
   26     47   
}
   27     48   
   28         -
/// A builder for [`StructureListMember`](crate::types::StructureListMember).
          49  +
/// /* BuilderGenerator.kt:342 */A builder for [`StructureListMember`](crate::types::StructureListMember).
          50  +
/* RustType.kt:516 */
   29     51   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          52  +
/* RustType.kt:516 */
   30     53   
#[non_exhaustive]
          54  +
/* BuilderGenerator.kt:345 */
   31     55   
pub struct StructureListMemberBuilder {
   32         -
    pub(crate) a: ::std::option::Option<::std::string::String>,
   33         -
    pub(crate) b: ::std::option::Option<::std::string::String>,
          56  +
    /* BuilderGenerator.kt:275 */ pub(crate) a: ::std::option::Option<::std::string::String>,
          57  +
    /* BuilderGenerator.kt:275 */ pub(crate) b: ::std::option::Option<::std::string::String>,
          58  +
    /* BuilderGenerator.kt:345 */
   34     59   
}
          60  +
/* BuilderGenerator.kt:355 */
   35     61   
impl StructureListMemberBuilder {
          62  +
    /* BuilderGenerator.kt:286 */
   36     63   
    #[allow(missing_docs)] // documentation missing in model
          64  +
                           /* BuilderGenerator.kt:291 */
   37     65   
    pub fn a(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          66  +
        /* BuilderGenerator.kt:292 */
   38     67   
        self.a = ::std::option::Option::Some(input.into());
          68  +
        /* BuilderGenerator.kt:293 */
   39     69   
        self
          70  +
        /* BuilderGenerator.kt:291 */
   40     71   
    }
          72  +
    /* BuilderGenerator.kt:312 */
   41     73   
    #[allow(missing_docs)] // documentation missing in model
          74  +
                           /* BuilderGenerator.kt:314 */
   42     75   
    pub fn set_a(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          76  +
        /* BuilderGenerator.kt:315 */
   43     77   
        self.a = input;
   44     78   
        self
          79  +
        /* BuilderGenerator.kt:314 */
   45     80   
    }
          81  +
    /* BuilderGenerator.kt:334 */
   46     82   
    #[allow(missing_docs)] // documentation missing in model
          83  +
                           /* BuilderGenerator.kt:336 */
   47     84   
    pub fn get_a(&self) -> &::std::option::Option<::std::string::String> {
          85  +
        /* BuilderGenerator.kt:337 */
   48     86   
        &self.a
          87  +
        /* BuilderGenerator.kt:336 */
   49     88   
    }
          89  +
    /* BuilderGenerator.kt:286 */
   50     90   
    #[allow(missing_docs)] // documentation missing in model
          91  +
                           /* BuilderGenerator.kt:291 */
   51     92   
    pub fn b(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          93  +
        /* BuilderGenerator.kt:292 */
   52     94   
        self.b = ::std::option::Option::Some(input.into());
          95  +
        /* BuilderGenerator.kt:293 */
   53     96   
        self
          97  +
        /* BuilderGenerator.kt:291 */
   54     98   
    }
          99  +
    /* BuilderGenerator.kt:312 */
   55    100   
    #[allow(missing_docs)] // documentation missing in model
         101  +
                           /* BuilderGenerator.kt:314 */
   56    102   
    pub fn set_b(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         103  +
        /* BuilderGenerator.kt:315 */
   57    104   
        self.b = input;
   58    105   
        self
         106  +
        /* BuilderGenerator.kt:314 */
   59    107   
    }
         108  +
    /* BuilderGenerator.kt:334 */
   60    109   
    #[allow(missing_docs)] // documentation missing in model
         110  +
                           /* BuilderGenerator.kt:336 */
   61    111   
    pub fn get_b(&self) -> &::std::option::Option<::std::string::String> {
         112  +
        /* BuilderGenerator.kt:337 */
   62    113   
        &self.b
         114  +
        /* BuilderGenerator.kt:336 */
   63    115   
    }
   64         -
    /// Consumes the builder and constructs a [`StructureListMember`](crate::types::StructureListMember).
         116  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`StructureListMember`](crate::types::StructureListMember).
         117  +
    /* BuilderGenerator.kt:253 */
   65    118   
    pub fn build(self) -> crate::types::StructureListMember {
   66         -
        crate::types::StructureListMember { a: self.a, b: self.b }
         119  +
        /* BuilderGenerator.kt:477 */
         120  +
        crate::types::StructureListMember {
         121  +
            /* BuilderGenerator.kt:481 */ a: self.a,
         122  +
            /* BuilderGenerator.kt:481 */
         123  +
            b: self.b,
         124  +
            /* BuilderGenerator.kt:477 */
   67    125   
        }
         126  +
        /* BuilderGenerator.kt:253 */
         127  +
    }
         128  +
    /* BuilderGenerator.kt:355 */
   68    129   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/types/_test_enum.rs

@@ -1,1 +114,136 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// When writing a match expression against `TestEnum`, it is important to ensure
           2  +
/* ClientEnumGenerator.kt:234 */
           3  +
/// /* ClientEnumGenerator.kt:234 */When writing a match expression against `TestEnum`, it is important to ensure
    4      4   
/// your code is forward-compatible. That is, if a match arm handles a case for a
    5      5   
/// feature that is supported by the service but has not been represented as an enum
    6      6   
/// variant in a current version of SDK, your code should continue to work when you
    7      7   
/// upgrade SDK to a future version in which the enum does include a variant for that
    8      8   
/// feature.
    9         -
///
   10         -
/// Here is an example of how you can make a match expression forward-compatible:
   11         -
///
   12         -
/// ```text
           9  +
/// /* ClientEnumGenerator.kt:244 */
          10  +
/// /* ClientEnumGenerator.kt:245 */Here is an example of how you can make a match expression forward-compatible:
          11  +
/// /* ClientEnumGenerator.kt:246 */
          12  +
/// /* ClientEnumGenerator.kt:247 */```text
          13  +
/* ClientEnumGenerator.kt:248 */
   13     14   
/// # let testenum = unimplemented!();
          15  +
/* ClientEnumGenerator.kt:249 */
   14     16   
/// match testenum {
          17  +
/* ClientEnumGenerator.kt:251 */
   15     18   
///     TestEnum::Bar => { /* ... */ },
          19  +
/* ClientEnumGenerator.kt:251 */
   16     20   
///     TestEnum::Baz => { /* ... */ },
          21  +
/* ClientEnumGenerator.kt:251 */
   17     22   
///     TestEnum::Foo => { /* ... */ },
          23  +
/* ClientEnumGenerator.kt:253 */
   18     24   
///     other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ },
          25  +
/* ClientEnumGenerator.kt:254 */
   19     26   
///     _ => { /* ... */ },
          27  +
/* ClientEnumGenerator.kt:255 */
   20     28   
/// }
   21         -
/// ```
   22         -
/// The above code demonstrates that when `testenum` represents
          29  +
/// /* ClientEnumGenerator.kt:256 */```
          30  +
/// /* ClientEnumGenerator.kt:257 */The above code demonstrates that when `testenum` represents
   23     31   
/// `NewFeature`, the execution path will lead to the second last match arm,
   24     32   
/// even though the enum does not contain a variant `TestEnum::NewFeature`
   25     33   
/// in the current version of SDK. The reason is that the variable `other`,
   26     34   
/// created by the `@` operator, is bound to
   27     35   
/// `TestEnum::Unknown(UnknownVariantValue("NewFeature".to_owned()))`
   28     36   
/// and calling `as_str` on it yields `"NewFeature"`.
   29     37   
/// This match expression is forward-compatible when executed with a newer
   30     38   
/// version of SDK where the variant `TestEnum::NewFeature` is defined.
   31     39   
/// Specifically, when `testenum` represents `NewFeature`,
   32     40   
/// the execution path will hit the second last match arm as before by virtue of
   33     41   
/// calling `as_str` on `TestEnum::NewFeature` also yielding `"NewFeature"`.
   34         -
///
   35         -
/// Explicitly matching on the `Unknown` variant should
          42  +
/// /* ClientEnumGenerator.kt:273 */
          43  +
/// /* ClientEnumGenerator.kt:274 */Explicitly matching on the `Unknown` variant should
   36     44   
/// be avoided for two reasons:
   37     45   
/// - The inner data `UnknownVariantValue` is opaque, and no further information can be extracted.
   38     46   
/// - It might inadvertently shadow other intended match arms.
   39         -
///
          47  +
/// /* ClientEnumGenerator.kt:282 */
          48  +
/* EnumGenerator.kt:154 */
   40     49   
#[allow(missing_docs)] // documentation missing in model
          50  +
/* RustType.kt:516 */
   41     51   
#[non_exhaustive]
          52  +
/* RustType.kt:516 */
   42     53   
#[derive(
   43     54   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash,
   44     55   
)]
   45         -
pub enum TestEnum {
   46         -
    #[allow(missing_docs)] // documentation missing in model
          56  +
pub /* EnumGenerator.kt:267 */ enum TestEnum {
          57  +
    /* EnumGenerator.kt:154 */ #[allow(missing_docs)] // documentation missing in model
          58  +
    /* EnumGenerator.kt:143 */
   47     59   
    Bar,
   48         -
    #[allow(missing_docs)] // documentation missing in model
          60  +
    /* EnumGenerator.kt:154 */ #[allow(missing_docs)] // documentation missing in model
          61  +
    /* EnumGenerator.kt:143 */
   49     62   
    Baz,
   50         -
    #[allow(missing_docs)] // documentation missing in model
          63  +
    /* EnumGenerator.kt:154 */ #[allow(missing_docs)] // documentation missing in model
          64  +
    /* EnumGenerator.kt:143 */
   51     65   
    Foo,
   52         -
    /// `Unknown` contains new variants that have been added since this code was generated.
          66  +
    /// /* ClientEnumGenerator.kt:175 */`Unknown` contains new variants that have been added since this code was generated.
          67  +
    /* ClientEnumGenerator.kt:176 */
   53     68   
    #[deprecated(note = "Don't directly match on `Unknown`. See the docs on this enum for the correct way to handle unknown variants.")]
   54         -
    Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue),
          69  +
    /* ClientEnumGenerator.kt:179 */
          70  +
    Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue), /* EnumGenerator.kt:267 */
   55     71   
}
          72  +
/* ClientEnumGenerator.kt:42 */
   56     73   
impl ::std::convert::From<&str> for TestEnum {
   57     74   
    fn from(s: &str) -> Self {
   58     75   
        match s {
   59     76   
            "BAR" => TestEnum::Bar,
   60     77   
            "BAZ" => TestEnum::Baz,
   61     78   
            "FOO" => TestEnum::Foo,
   62     79   
            other => TestEnum::Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue(other.to_owned())),
   63     80   
        }
   64     81   
    }
   65     82   
}
          83  +
/* ClientEnumGenerator.kt:68 */
   66     84   
impl ::std::str::FromStr for TestEnum {
   67     85   
    type Err = ::std::convert::Infallible;
   68     86   
   69     87   
    fn from_str(s: &str) -> ::std::result::Result<Self, <Self as ::std::str::FromStr>::Err> {
   70     88   
        ::std::result::Result::Ok(TestEnum::from(s))
   71     89   
    }
   72     90   
}
          91  +
/* EnumGenerator.kt:274 */
   73     92   
impl TestEnum {
   74     93   
    /// Returns the `&str` value of the enum member.
   75     94   
    pub fn as_str(&self) -> &str {
   76     95   
        match self {
   77     96   
            TestEnum::Bar => "BAR",
   78     97   
            TestEnum::Baz => "BAZ",
   79     98   
            TestEnum::Foo => "FOO",
   80     99   
            TestEnum::Unknown(value) => value.as_str(),
   81    100   
        }
   82    101   
    }
   83    102   
    /// Returns all the `&str` representations of the enum members.
   84    103   
    pub const fn values() -> &'static [&'static str] {
   85    104   
        &["BAR", "BAZ", "FOO"]
   86    105   
    }
   87    106   
}
         107  +
/* EnumGenerator.kt:223 */
   88    108   
impl ::std::convert::AsRef<str> for TestEnum {
   89    109   
    fn as_ref(&self) -> &str {
   90    110   
        self.as_str()
   91    111   
    }
   92    112   
}
         113  +
/* ClientEnumGenerator.kt:117 */
   93    114   
impl TestEnum {
   94    115   
    /// Parses the enum value while disallowing unknown variants.
   95    116   
    ///
   96    117   
    /// Unknown variants will result in an error.
   97    118   
    pub fn try_parse(value: &str) -> ::std::result::Result<Self, crate::error::UnknownVariantError> {
   98    119   
        match Self::from(value) {
   99    120   
            #[allow(deprecated)]
  100    121   
            Self::Unknown(_) => ::std::result::Result::Err(crate::error::UnknownVariantError::new(value)),
  101    122   
            known => Ok(known),
  102    123   
        }
  103    124   
    }
  104    125   
}
         126  +
/* ClientEnumGenerator.kt:136 */
  105    127   
impl ::std::fmt::Display for TestEnum {
  106    128   
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  107    129   
        match self {
  108    130   
            TestEnum::Bar => write!(f, "BAR"),
  109    131   
            TestEnum::Baz => write!(f, "BAZ"),
  110    132   
            TestEnum::Foo => write!(f, "FOO"),
  111    133   
            TestEnum::Unknown(value) => write!(f, "{}", value),
  112    134   
        }
  113    135   
    }
  114    136   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/types/_validation_exception_field.rs

@@ -1,1 +89,134 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// Describes one specific validation failure for an input member.
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */Describes one specific validation failure for an input member.
           4  +
/* RustType.kt:516 */
    4      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    5      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct ValidationExceptionField {
    7         -
    /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
           8  +
pub /* StructureGenerator.kt:201 */ struct ValidationExceptionField {
           9  +
    /// /* StructureGenerator.kt:231 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
    8     10   
    pub path: ::std::string::String,
    9         -
    /// A detailed description of the validation failure.
          11  +
    /// /* StructureGenerator.kt:231 */A detailed description of the validation failure.
   10     12   
    pub message: ::std::string::String,
          13  +
    /* StructureGenerator.kt:201 */
   11     14   
}
          15  +
/* StructureGenerator.kt:135 */
   12     16   
impl ValidationExceptionField {
   13         -
    /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
          17  +
    /// /* StructureGenerator.kt:231 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
          18  +
    /* StructureGenerator.kt:166 */
   14     19   
    pub fn path(&self) -> &str {
          20  +
        /* StructureGenerator.kt:171 */
   15     21   
        use std::ops::Deref;
   16     22   
        self.path.deref()
          23  +
        /* StructureGenerator.kt:166 */
   17     24   
    }
   18         -
    /// A detailed description of the validation failure.
          25  +
    /// /* StructureGenerator.kt:231 */A detailed description of the validation failure.
          26  +
    /* StructureGenerator.kt:166 */
   19     27   
    pub fn message(&self) -> &str {
          28  +
        /* StructureGenerator.kt:171 */
   20     29   
        use std::ops::Deref;
   21     30   
        self.message.deref()
          31  +
        /* StructureGenerator.kt:166 */
   22     32   
    }
          33  +
    /* StructureGenerator.kt:135 */
   23     34   
}
          35  +
/* ClientCodegenVisitor.kt:237 */
   24     36   
impl ValidationExceptionField {
   25         -
    /// Creates a new builder-style object to manufacture [`ValidationExceptionField`](crate::types::ValidationExceptionField).
          37  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ValidationExceptionField`](crate::types::ValidationExceptionField).
          38  +
    /* BuilderGenerator.kt:175 */
   26     39   
    pub fn builder() -> crate::types::builders::ValidationExceptionFieldBuilder {
          40  +
        /* BuilderGenerator.kt:176 */
   27     41   
        crate::types::builders::ValidationExceptionFieldBuilder::default()
          42  +
        /* BuilderGenerator.kt:175 */
   28     43   
    }
          44  +
    /* ClientCodegenVisitor.kt:237 */
   29     45   
}
   30     46   
   31         -
/// A builder for [`ValidationExceptionField`](crate::types::ValidationExceptionField).
          47  +
/// /* BuilderGenerator.kt:342 */A builder for [`ValidationExceptionField`](crate::types::ValidationExceptionField).
          48  +
/* RustType.kt:516 */
   32     49   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          50  +
/* RustType.kt:516 */
   33     51   
#[non_exhaustive]
          52  +
/* BuilderGenerator.kt:345 */
   34     53   
pub struct ValidationExceptionFieldBuilder {
   35         -
    pub(crate) path: ::std::option::Option<::std::string::String>,
   36         -
    pub(crate) message: ::std::option::Option<::std::string::String>,
          54  +
    /* BuilderGenerator.kt:275 */ pub(crate) path: ::std::option::Option<::std::string::String>,
          55  +
    /* BuilderGenerator.kt:275 */ pub(crate) message: ::std::option::Option<::std::string::String>,
          56  +
    /* BuilderGenerator.kt:345 */
   37     57   
}
          58  +
/* BuilderGenerator.kt:355 */
   38     59   
impl ValidationExceptionFieldBuilder {
   39         -
    /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
   40         -
    /// This field is required.
          60  +
    /// /* BuilderGenerator.kt:286 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
          61  +
    /// /* BuilderGenerator.kt:288 */This field is required.
          62  +
    /* BuilderGenerator.kt:291 */
   41     63   
    pub fn path(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          64  +
        /* BuilderGenerator.kt:292 */
   42     65   
        self.path = ::std::option::Option::Some(input.into());
          66  +
        /* BuilderGenerator.kt:293 */
   43     67   
        self
          68  +
        /* BuilderGenerator.kt:291 */
   44     69   
    }
   45         -
    /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
          70  +
    /// /* BuilderGenerator.kt:312 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
          71  +
    /* BuilderGenerator.kt:314 */
   46     72   
    pub fn set_path(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          73  +
        /* BuilderGenerator.kt:315 */
   47     74   
        self.path = input;
   48     75   
        self
          76  +
        /* BuilderGenerator.kt:314 */
   49     77   
    }
   50         -
    /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
          78  +
    /// /* BuilderGenerator.kt:334 */A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
          79  +
    /* BuilderGenerator.kt:336 */
   51     80   
    pub fn get_path(&self) -> &::std::option::Option<::std::string::String> {
          81  +
        /* BuilderGenerator.kt:337 */
   52     82   
        &self.path
          83  +
        /* BuilderGenerator.kt:336 */
   53     84   
    }
   54         -
    /// A detailed description of the validation failure.
   55         -
    /// This field is required.
          85  +
    /// /* BuilderGenerator.kt:286 */A detailed description of the validation failure.
          86  +
    /// /* BuilderGenerator.kt:288 */This field is required.
          87  +
    /* BuilderGenerator.kt:291 */
   56     88   
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          89  +
        /* BuilderGenerator.kt:292 */
   57     90   
        self.message = ::std::option::Option::Some(input.into());
          91  +
        /* BuilderGenerator.kt:293 */
   58     92   
        self
          93  +
        /* BuilderGenerator.kt:291 */
   59     94   
    }
   60         -
    /// A detailed description of the validation failure.
          95  +
    /// /* BuilderGenerator.kt:312 */A detailed description of the validation failure.
          96  +
    /* BuilderGenerator.kt:314 */
   61     97   
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          98  +
        /* BuilderGenerator.kt:315 */
   62     99   
        self.message = input;
   63    100   
        self
         101  +
        /* BuilderGenerator.kt:314 */
   64    102   
    }
   65         -
    /// A detailed description of the validation failure.
         103  +
    /// /* BuilderGenerator.kt:334 */A detailed description of the validation failure.
         104  +
    /* BuilderGenerator.kt:336 */
   66    105   
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         106  +
        /* BuilderGenerator.kt:337 */
   67    107   
        &self.message
         108  +
        /* BuilderGenerator.kt:336 */
   68    109   
    }
   69         -
    /// Consumes the builder and constructs a [`ValidationExceptionField`](crate::types::ValidationExceptionField).
   70         -
    /// This method will fail if any of the following fields are not set:
   71         -
    /// - [`path`](crate::types::builders::ValidationExceptionFieldBuilder::path)
   72         -
    /// - [`message`](crate::types::builders::ValidationExceptionFieldBuilder::message)
         110  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ValidationExceptionField`](crate::types::ValidationExceptionField).
         111  +
    /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
         112  +
    /// /* BuilderGenerator.kt:246 */- [`path`](crate::types::builders::ValidationExceptionFieldBuilder::path)
         113  +
    /// /* BuilderGenerator.kt:246 */- [`message`](crate::types::builders::ValidationExceptionFieldBuilder::message)
         114  +
    /* BuilderGenerator.kt:253 */
   73    115   
    pub fn build(self) -> ::std::result::Result<crate::types::ValidationExceptionField, ::aws_smithy_types::error::operation::BuildError> {
   74         -
        ::std::result::Result::Ok(crate::types::ValidationExceptionField {
   75         -
            path: self.path.ok_or_else(|| {
   76         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
   77         -
                    "path",
   78         -
                    "path was not specified but it is required when building ValidationExceptionField",
   79         -
                )
   80         -
            })?,
   81         -
            message: self.message.ok_or_else(|| {
   82         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
   83         -
                    "message",
   84         -
                    "message was not specified but it is required when building ValidationExceptionField",
   85         -
                )
   86         -
            })?,
   87         -
        })
         116  +
        /* BuilderGenerator.kt:254 */
         117  +
        ::std::result::Result::Ok(
         118  +
            /* BuilderGenerator.kt:477 */crate::types::ValidationExceptionField {
         119  +
                /* BuilderGenerator.kt:481 */path: self.path
         120  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         121  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("path", "path was not specified but it is required when building ValidationExceptionField")
         122  +
                    /* BuilderGenerator.kt:494 */)?
         123  +
                ,
         124  +
                /* BuilderGenerator.kt:481 */message: self.message
         125  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         126  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("message", "message was not specified but it is required when building ValidationExceptionField")
         127  +
                    /* BuilderGenerator.kt:494 */)?
         128  +
                ,
         129  +
            /* BuilderGenerator.kt:477 */}
         130  +
        /* BuilderGenerator.kt:254 */)
         131  +
        /* BuilderGenerator.kt:253 */
   88    132   
    }
         133  +
    /* BuilderGenerator.kt:355 */
   89    134   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/types/builders.rs

@@ -1,1 +16,24 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CodegenDelegator.kt:255 */
    2      3   
pub use crate::types::_validation_exception_field::ValidationExceptionFieldBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::types::_client_optional_defaults::ClientOptionalDefaultsBuilder;
    5      7   
           8  +
/* CodegenDelegator.kt:255 */
    6      9   
pub use crate::types::_defaults::DefaultsBuilder;
    7     10   
          11  +
/* CodegenDelegator.kt:255 */
    8     12   
pub use crate::types::_complex_nested_error_data::ComplexNestedErrorDataBuilder;
    9     13   
          14  +
/* CodegenDelegator.kt:255 */
   10     15   
pub use crate::types::_recursive_shapes_input_output_nested1::RecursiveShapesInputOutputNested1Builder;
   11     16   
          17  +
/* CodegenDelegator.kt:255 */
   12     18   
pub use crate::types::_recursive_shapes_input_output_nested2::RecursiveShapesInputOutputNested2Builder;
   13     19   
          20  +
/* CodegenDelegator.kt:255 */
   14     21   
pub use crate::types::_greeting_struct::GreetingStructBuilder;
   15     22   
          23  +
/* CodegenDelegator.kt:255 */
   16     24   
pub use crate::types::_structure_list_member::StructureListMemberBuilder;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/types/error.rs

@@ -1,1 +15,21 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CodegenDelegator.kt:255 */
    2      3   
pub use crate::types::error::_validation_exception::ValidationError;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::types::error::_complex_error::ComplexError;
    5      7   
           8  +
/* CodegenDelegator.kt:255 */
    6      9   
pub use crate::types::error::_invalid_greeting::InvalidGreeting;
    7     10   
          11  +
/* RustModule.kt:172 */
    8     12   
mod _complex_error;
    9     13   
          14  +
/* RustModule.kt:172 */
   10     15   
mod _invalid_greeting;
   11     16   
          17  +
/* RustModule.kt:172 */
   12     18   
mod _validation_exception;
   13     19   
   14         -
/// Builders
          20  +
/// /* CodegenDelegator.kt:51 */Builders
   15     21   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/types/error/_complex_error.rs

@@ -1,1 +127,219 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// This error is thrown when a request is invalid.
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */This error is thrown when a request is invalid.
           4  +
/* RustType.kt:516 */
    4      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    5      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct ComplexError {
           8  +
pub /* StructureGenerator.kt:201 */ struct ComplexError {
           9  +
    /* StructureGenerator.kt:231 */
    7     10   
    #[allow(missing_docs)] // documentation missing in model
    8     11   
    pub top_level: ::std::option::Option<::std::string::String>,
          12  +
    /* StructureGenerator.kt:231 */
    9     13   
    #[allow(missing_docs)] // documentation missing in model
   10     14   
    pub nested: ::std::option::Option<crate::types::ComplexNestedErrorData>,
          15  +
    /* StructureGenerator.kt:231 */
   11     16   
    #[allow(missing_docs)] // documentation missing in model
   12     17   
    pub message: ::std::option::Option<::std::string::String>,
   13         -
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          18  +
    /* ErrorGenerator.kt:53 */ pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          19  +
    /* StructureGenerator.kt:201 */
   14     20   
}
          21  +
/* StructureGenerator.kt:135 */
   15     22   
impl ComplexError {
          23  +
    /* StructureGenerator.kt:231 */
   16     24   
    #[allow(missing_docs)] // documentation missing in model
          25  +
                           /* StructureGenerator.kt:166 */
   17     26   
    pub fn top_level(&self) -> ::std::option::Option<&str> {
          27  +
        /* StructureGenerator.kt:169 */
   18     28   
        self.top_level.as_deref()
          29  +
        /* StructureGenerator.kt:166 */
   19     30   
    }
          31  +
    /* StructureGenerator.kt:231 */
   20     32   
    #[allow(missing_docs)] // documentation missing in model
          33  +
                           /* StructureGenerator.kt:166 */
   21     34   
    pub fn nested(&self) -> ::std::option::Option<&crate::types::ComplexNestedErrorData> {
          35  +
        /* StructureGenerator.kt:170 */
   22     36   
        self.nested.as_ref()
          37  +
        /* StructureGenerator.kt:166 */
   23     38   
    }
          39  +
    /* StructureGenerator.kt:135 */
   24     40   
}
          41  +
/* ErrorImplGenerator.kt:99 */
   25     42   
impl ComplexError {
          43  +
    /* ErrorImplGenerator.kt:128 */
   26     44   
    /// Returns the error message.
   27     45   
    pub fn message(&self) -> ::std::option::Option<&str> {
   28     46   
        self.message.as_deref()
   29     47   
    }
          48  +
    /* ErrorImplGenerator.kt:99 */
   30     49   
}
          50  +
/* ErrorImplGenerator.kt:153 */
   31     51   
impl ::std::fmt::Display for ComplexError {
          52  +
    /* ErrorImplGenerator.kt:154 */
   32     53   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          54  +
        /* ErrorImplGenerator.kt:161 */
   33     55   
        ::std::write!(f, "ComplexError")?;
          56  +
        /* ErrorImplGenerator.kt:166 */
   34     57   
        if let ::std::option::Option::Some(inner_1) = &self.message {
          58  +
            /* ErrorImplGenerator.kt:166 */
   35     59   
            {
          60  +
                /* ErrorImplGenerator.kt:167 */
   36     61   
                ::std::write!(f, ": {}", inner_1)?;
          62  +
                /* ErrorImplGenerator.kt:166 */
   37     63   
            }
          64  +
            /* ErrorImplGenerator.kt:166 */
   38     65   
        }
          66  +
        /* ErrorImplGenerator.kt:171 */
   39     67   
        Ok(())
          68  +
        /* ErrorImplGenerator.kt:154 */
   40     69   
    }
          70  +
    /* ErrorImplGenerator.kt:153 */
   41     71   
}
          72  +
/* ErrorImplGenerator.kt:175 */
   42     73   
impl ::std::error::Error for ComplexError {}
          74  +
/* ErrorGenerator.kt:77 */
   43     75   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ComplexError {
          76  +
    /* ErrorGenerator.kt:78 */
   44     77   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
   45     78   
        &self.meta
   46     79   
    }
          80  +
    /* ErrorGenerator.kt:77 */
   47     81   
}
          82  +
/* ErrorGenerator.kt:81 */
   48     83   
impl ComplexError {
   49         -
    /// Creates a new builder-style object to manufacture [`ComplexError`](crate::types::error::ComplexError).
          84  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ComplexError`](crate::types::error::ComplexError).
          85  +
    /* BuilderGenerator.kt:175 */
   50     86   
    pub fn builder() -> crate::types::error::builders::ComplexErrorBuilder {
          87  +
        /* BuilderGenerator.kt:176 */
   51     88   
        crate::types::error::builders::ComplexErrorBuilder::default()
          89  +
        /* BuilderGenerator.kt:175 */
   52     90   
    }
          91  +
    /* ErrorGenerator.kt:81 */
   53     92   
}
   54     93   
   55         -
/// A builder for [`ComplexError`](crate::types::error::ComplexError).
          94  +
/// /* BuilderGenerator.kt:342 */A builder for [`ComplexError`](crate::types::error::ComplexError).
          95  +
/* RustType.kt:516 */
   56     96   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          97  +
/* RustType.kt:516 */
   57     98   
#[non_exhaustive]
          99  +
/* BuilderGenerator.kt:345 */
   58    100   
pub struct ComplexErrorBuilder {
   59         -
    pub(crate) top_level: ::std::option::Option<::std::string::String>,
   60         -
    pub(crate) nested: ::std::option::Option<crate::types::ComplexNestedErrorData>,
   61         -
    pub(crate) message: ::std::option::Option<::std::string::String>,
   62         -
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         101  +
    /* BuilderGenerator.kt:275 */ pub(crate) top_level: ::std::option::Option<::std::string::String>,
         102  +
    /* BuilderGenerator.kt:275 */ pub(crate) nested: ::std::option::Option<crate::types::ComplexNestedErrorData>,
         103  +
    /* BuilderGenerator.kt:275 */ pub(crate) message: ::std::option::Option<::std::string::String>,
         104  +
    /* ErrorGenerator.kt:97 */ meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         105  +
    /* BuilderGenerator.kt:345 */
   63    106   
}
         107  +
/* BuilderGenerator.kt:355 */
   64    108   
impl ComplexErrorBuilder {
         109  +
    /* BuilderGenerator.kt:286 */
   65    110   
    #[allow(missing_docs)] // documentation missing in model
         111  +
                           /* BuilderGenerator.kt:291 */
   66    112   
    pub fn top_level(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         113  +
        /* BuilderGenerator.kt:292 */
   67    114   
        self.top_level = ::std::option::Option::Some(input.into());
         115  +
        /* BuilderGenerator.kt:293 */
   68    116   
        self
         117  +
        /* BuilderGenerator.kt:291 */
   69    118   
    }
         119  +
    /* BuilderGenerator.kt:312 */
   70    120   
    #[allow(missing_docs)] // documentation missing in model
         121  +
                           /* BuilderGenerator.kt:314 */
   71    122   
    pub fn set_top_level(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         123  +
        /* BuilderGenerator.kt:315 */
   72    124   
        self.top_level = input;
   73    125   
        self
         126  +
        /* BuilderGenerator.kt:314 */
   74    127   
    }
         128  +
    /* BuilderGenerator.kt:334 */
   75    129   
    #[allow(missing_docs)] // documentation missing in model
         130  +
                           /* BuilderGenerator.kt:336 */
   76    131   
    pub fn get_top_level(&self) -> &::std::option::Option<::std::string::String> {
         132  +
        /* BuilderGenerator.kt:337 */
   77    133   
        &self.top_level
         134  +
        /* BuilderGenerator.kt:336 */
   78    135   
    }
         136  +
    /* BuilderGenerator.kt:286 */
   79    137   
    #[allow(missing_docs)] // documentation missing in model
         138  +
                           /* BuilderGenerator.kt:291 */
   80    139   
    pub fn nested(mut self, input: crate::types::ComplexNestedErrorData) -> Self {
         140  +
        /* BuilderGenerator.kt:292 */
   81    141   
        self.nested = ::std::option::Option::Some(input);
         142  +
        /* BuilderGenerator.kt:293 */
   82    143   
        self
         144  +
        /* BuilderGenerator.kt:291 */
   83    145   
    }
         146  +
    /* BuilderGenerator.kt:312 */
   84    147   
    #[allow(missing_docs)] // documentation missing in model
         148  +
                           /* BuilderGenerator.kt:314 */
   85    149   
    pub fn set_nested(mut self, input: ::std::option::Option<crate::types::ComplexNestedErrorData>) -> Self {
         150  +
        /* BuilderGenerator.kt:315 */
   86    151   
        self.nested = input;
   87    152   
        self
         153  +
        /* BuilderGenerator.kt:314 */
   88    154   
    }
         155  +
    /* BuilderGenerator.kt:334 */
   89    156   
    #[allow(missing_docs)] // documentation missing in model
         157  +
                           /* BuilderGenerator.kt:336 */
   90    158   
    pub fn get_nested(&self) -> &::std::option::Option<crate::types::ComplexNestedErrorData> {
         159  +
        /* BuilderGenerator.kt:337 */
   91    160   
        &self.nested
         161  +
        /* BuilderGenerator.kt:336 */
   92    162   
    }
         163  +
    /* BuilderGenerator.kt:286 */
   93    164   
    #[allow(missing_docs)] // documentation missing in model
         165  +
                           /* BuilderGenerator.kt:291 */
   94    166   
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         167  +
        /* BuilderGenerator.kt:292 */
   95    168   
        self.message = ::std::option::Option::Some(input.into());
         169  +
        /* BuilderGenerator.kt:293 */
   96    170   
        self
         171  +
        /* BuilderGenerator.kt:291 */
   97    172   
    }
         173  +
    /* BuilderGenerator.kt:312 */
   98    174   
    #[allow(missing_docs)] // documentation missing in model
         175  +
                           /* BuilderGenerator.kt:314 */
   99    176   
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         177  +
        /* BuilderGenerator.kt:315 */
  100    178   
        self.message = input;
  101    179   
        self
         180  +
        /* BuilderGenerator.kt:314 */
  102    181   
    }
         182  +
    /* BuilderGenerator.kt:334 */
  103    183   
    #[allow(missing_docs)] // documentation missing in model
         184  +
                           /* BuilderGenerator.kt:336 */
  104    185   
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         186  +
        /* BuilderGenerator.kt:337 */
  105    187   
        &self.message
         188  +
        /* BuilderGenerator.kt:336 */
  106    189   
    }
         190  +
    /* ErrorGenerator.kt:101 */
  107    191   
    /// Sets error metadata
  108    192   
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
  109    193   
        self.meta = Some(meta);
  110    194   
        self
  111    195   
    }
  112    196   
  113    197   
    /// Sets error metadata
  114    198   
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
  115    199   
        self.meta = meta;
  116    200   
        self
  117    201   
    }
  118         -
    /// Consumes the builder and constructs a [`ComplexError`](crate::types::error::ComplexError).
         202  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ComplexError`](crate::types::error::ComplexError).
         203  +
    /* BuilderGenerator.kt:253 */
  119    204   
    pub fn build(self) -> crate::types::error::ComplexError {
         205  +
        /* BuilderGenerator.kt:477 */
  120    206   
        crate::types::error::ComplexError {
  121         -
            top_level: self.top_level,
         207  +
            /* BuilderGenerator.kt:481 */ top_level: self.top_level,
         208  +
            /* BuilderGenerator.kt:481 */
  122    209   
            nested: self.nested,
         210  +
            /* BuilderGenerator.kt:481 */
  123    211   
            message: self.message,
         212  +
            /* ErrorGenerator.kt:120 */
  124    213   
            meta: self.meta.unwrap_or_default(),
         214  +
            /* BuilderGenerator.kt:477 */
  125    215   
        }
         216  +
        /* BuilderGenerator.kt:253 */
  126    217   
    }
         218  +
    /* BuilderGenerator.kt:355 */
  127    219   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/types/error/_invalid_greeting.rs

@@ -1,1 +81,133 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// This error is thrown when an invalid greeting value is provided.
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */This error is thrown when an invalid greeting value is provided.
           4  +
/* RustType.kt:516 */
    4      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    5      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct InvalidGreeting {
           8  +
pub /* StructureGenerator.kt:201 */ struct InvalidGreeting {
           9  +
    /* StructureGenerator.kt:231 */
    7     10   
    #[allow(missing_docs)] // documentation missing in model
    8     11   
    pub message: ::std::option::Option<::std::string::String>,
    9         -
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          12  +
    /* ErrorGenerator.kt:53 */ pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          13  +
    /* StructureGenerator.kt:201 */
   10     14   
}
          15  +
/* ErrorImplGenerator.kt:99 */
   11     16   
impl InvalidGreeting {
          17  +
    /* ErrorImplGenerator.kt:128 */
   12     18   
    /// Returns the error message.
   13     19   
    pub fn message(&self) -> ::std::option::Option<&str> {
   14     20   
        self.message.as_deref()
   15     21   
    }
          22  +
    /* ErrorImplGenerator.kt:99 */
   16     23   
}
          24  +
/* ErrorImplGenerator.kt:153 */
   17     25   
impl ::std::fmt::Display for InvalidGreeting {
          26  +
    /* ErrorImplGenerator.kt:154 */
   18     27   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          28  +
        /* ErrorImplGenerator.kt:161 */
   19     29   
        ::std::write!(f, "InvalidGreeting")?;
          30  +
        /* ErrorImplGenerator.kt:166 */
   20     31   
        if let ::std::option::Option::Some(inner_1) = &self.message {
          32  +
            /* ErrorImplGenerator.kt:166 */
   21     33   
            {
          34  +
                /* ErrorImplGenerator.kt:167 */
   22     35   
                ::std::write!(f, ": {}", inner_1)?;
          36  +
                /* ErrorImplGenerator.kt:166 */
   23     37   
            }
          38  +
            /* ErrorImplGenerator.kt:166 */
   24     39   
        }
          40  +
        /* ErrorImplGenerator.kt:171 */
   25     41   
        Ok(())
          42  +
        /* ErrorImplGenerator.kt:154 */
   26     43   
    }
          44  +
    /* ErrorImplGenerator.kt:153 */
   27     45   
}
          46  +
/* ErrorImplGenerator.kt:175 */
   28     47   
impl ::std::error::Error for InvalidGreeting {}
          48  +
/* ErrorGenerator.kt:77 */
   29     49   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for InvalidGreeting {
          50  +
    /* ErrorGenerator.kt:78 */
   30     51   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
   31     52   
        &self.meta
   32     53   
    }
          54  +
    /* ErrorGenerator.kt:77 */
   33     55   
}
          56  +
/* ErrorGenerator.kt:81 */
   34     57   
impl InvalidGreeting {
   35         -
    /// Creates a new builder-style object to manufacture [`InvalidGreeting`](crate::types::error::InvalidGreeting).
          58  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`InvalidGreeting`](crate::types::error::InvalidGreeting).
          59  +
    /* BuilderGenerator.kt:175 */
   36     60   
    pub fn builder() -> crate::types::error::builders::InvalidGreetingBuilder {
          61  +
        /* BuilderGenerator.kt:176 */
   37     62   
        crate::types::error::builders::InvalidGreetingBuilder::default()
          63  +
        /* BuilderGenerator.kt:175 */
   38     64   
    }
          65  +
    /* ErrorGenerator.kt:81 */
   39     66   
}
   40     67   
   41         -
/// A builder for [`InvalidGreeting`](crate::types::error::InvalidGreeting).
          68  +
/// /* BuilderGenerator.kt:342 */A builder for [`InvalidGreeting`](crate::types::error::InvalidGreeting).
          69  +
/* RustType.kt:516 */
   42     70   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          71  +
/* RustType.kt:516 */
   43     72   
#[non_exhaustive]
          73  +
/* BuilderGenerator.kt:345 */
   44     74   
pub struct InvalidGreetingBuilder {
   45         -
    pub(crate) message: ::std::option::Option<::std::string::String>,
   46         -
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          75  +
    /* BuilderGenerator.kt:275 */ pub(crate) message: ::std::option::Option<::std::string::String>,
          76  +
    /* ErrorGenerator.kt:97 */ meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          77  +
    /* BuilderGenerator.kt:345 */
   47     78   
}
          79  +
/* BuilderGenerator.kt:355 */
   48     80   
impl InvalidGreetingBuilder {
          81  +
    /* BuilderGenerator.kt:286 */
   49     82   
    #[allow(missing_docs)] // documentation missing in model
          83  +
                           /* BuilderGenerator.kt:291 */
   50     84   
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          85  +
        /* BuilderGenerator.kt:292 */
   51     86   
        self.message = ::std::option::Option::Some(input.into());
          87  +
        /* BuilderGenerator.kt:293 */
   52     88   
        self
          89  +
        /* BuilderGenerator.kt:291 */
   53     90   
    }
          91  +
    /* BuilderGenerator.kt:312 */
   54     92   
    #[allow(missing_docs)] // documentation missing in model
          93  +
                           /* BuilderGenerator.kt:314 */
   55     94   
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          95  +
        /* BuilderGenerator.kt:315 */
   56     96   
        self.message = input;
   57     97   
        self
          98  +
        /* BuilderGenerator.kt:314 */
   58     99   
    }
         100  +
    /* BuilderGenerator.kt:334 */
   59    101   
    #[allow(missing_docs)] // documentation missing in model
         102  +
                           /* BuilderGenerator.kt:336 */
   60    103   
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         104  +
        /* BuilderGenerator.kt:337 */
   61    105   
        &self.message
         106  +
        /* BuilderGenerator.kt:336 */
   62    107   
    }
         108  +
    /* ErrorGenerator.kt:101 */
   63    109   
    /// Sets error metadata
   64    110   
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
   65    111   
        self.meta = Some(meta);
   66    112   
        self
   67    113   
    }
   68    114   
   69    115   
    /// Sets error metadata
   70    116   
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
   71    117   
        self.meta = meta;
   72    118   
        self
   73    119   
    }
   74         -
    /// Consumes the builder and constructs a [`InvalidGreeting`](crate::types::error::InvalidGreeting).
         120  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`InvalidGreeting`](crate::types::error::InvalidGreeting).
         121  +
    /* BuilderGenerator.kt:253 */
   75    122   
    pub fn build(self) -> crate::types::error::InvalidGreeting {
         123  +
        /* BuilderGenerator.kt:477 */
   76    124   
        crate::types::error::InvalidGreeting {
   77         -
            message: self.message,
         125  +
            /* BuilderGenerator.kt:481 */ message: self.message,
         126  +
            /* ErrorGenerator.kt:120 */
   78    127   
            meta: self.meta.unwrap_or_default(),
         128  +
            /* BuilderGenerator.kt:477 */
   79    129   
        }
         130  +
        /* BuilderGenerator.kt:253 */
   80    131   
    }
         132  +
    /* BuilderGenerator.kt:355 */
   81    133   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/types/error/_validation_exception.rs

@@ -1,1 +119,184 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
           2  +
/* StructureGenerator.kt:197 */
           3  +
/// /* StructureGenerator.kt:197 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
           4  +
/* RustType.kt:516 */
    4      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    5      7   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct ValidationError {
    7         -
    /// A summary of the validation failure.
           8  +
pub /* StructureGenerator.kt:201 */ struct ValidationError {
           9  +
    /// /* StructureGenerator.kt:231 */A summary of the validation failure.
    8     10   
    pub message: ::std::string::String,
    9         -
    /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
          11  +
    /// /* StructureGenerator.kt:231 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
   10     12   
    pub field_list: ::std::option::Option<::std::vec::Vec<crate::types::ValidationExceptionField>>,
   11         -
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          13  +
    /* ErrorGenerator.kt:53 */ pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          14  +
    /* StructureGenerator.kt:201 */
   12     15   
}
          16  +
/* StructureGenerator.kt:135 */
   13     17   
impl ValidationError {
   14         -
    /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
   15         -
    ///
   16         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.field_list.is_none()`.
          18  +
    /// /* StructureGenerator.kt:231 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
          19  +
    /// /* StructureGenerator.kt:162 */
          20  +
    /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.field_list.is_none()`.
          21  +
    /* StructureGenerator.kt:166 */
   17     22   
    pub fn field_list(&self) -> &[crate::types::ValidationExceptionField] {
   18         -
        self.field_list.as_deref().unwrap_or_default()
          23  +
        /* StructureGenerator.kt:169 */
          24  +
        self.field_list
          25  +
            .as_deref()
          26  +
            /* StructureGenerator.kt:175 */
          27  +
            .unwrap_or_default()
          28  +
        /* StructureGenerator.kt:166 */
   19     29   
    }
          30  +
    /* StructureGenerator.kt:135 */
   20     31   
}
          32  +
/* ErrorImplGenerator.kt:99 */
   21     33   
impl ValidationError {
          34  +
    /* ErrorImplGenerator.kt:128 */
   22     35   
    /// Returns the error message.
   23     36   
    pub fn message(&self) -> &str {
   24     37   
        &self.message
   25     38   
    }
          39  +
    /* ErrorImplGenerator.kt:99 */
   26     40   
}
          41  +
/* ErrorImplGenerator.kt:153 */
   27     42   
impl ::std::fmt::Display for ValidationError {
          43  +
    /* ErrorImplGenerator.kt:154 */
   28     44   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          45  +
        /* ErrorImplGenerator.kt:161 */
   29     46   
        ::std::write!(f, "ValidationError [ValidationException]")?;
          47  +
        /* ErrorImplGenerator.kt:166 */
   30     48   
        {
          49  +
            /* ErrorImplGenerator.kt:167 */
   31     50   
            ::std::write!(f, ": {}", &self.message)?;
          51  +
            /* ErrorImplGenerator.kt:166 */
   32     52   
        }
          53  +
        /* ErrorImplGenerator.kt:171 */
   33     54   
        Ok(())
          55  +
        /* ErrorImplGenerator.kt:154 */
   34     56   
    }
          57  +
    /* ErrorImplGenerator.kt:153 */
   35     58   
}
          59  +
/* ErrorImplGenerator.kt:175 */
   36     60   
impl ::std::error::Error for ValidationError {}
          61  +
/* ErrorGenerator.kt:77 */
   37     62   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ValidationError {
          63  +
    /* ErrorGenerator.kt:78 */
   38     64   
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
   39     65   
        &self.meta
   40     66   
    }
          67  +
    /* ErrorGenerator.kt:77 */
   41     68   
}
          69  +
/* ErrorGenerator.kt:81 */
   42     70   
impl ValidationError {
   43         -
    /// Creates a new builder-style object to manufacture [`ValidationError`](crate::types::error::ValidationError).
          71  +
    /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ValidationError`](crate::types::error::ValidationError).
          72  +
    /* BuilderGenerator.kt:175 */
   44     73   
    pub fn builder() -> crate::types::error::builders::ValidationErrorBuilder {
          74  +
        /* BuilderGenerator.kt:176 */
   45     75   
        crate::types::error::builders::ValidationErrorBuilder::default()
          76  +
        /* BuilderGenerator.kt:175 */
   46     77   
    }
          78  +
    /* ErrorGenerator.kt:81 */
   47     79   
}
   48     80   
   49         -
/// A builder for [`ValidationError`](crate::types::error::ValidationError).
          81  +
/// /* BuilderGenerator.kt:342 */A builder for [`ValidationError`](crate::types::error::ValidationError).
          82  +
/* RustType.kt:516 */
   50     83   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          84  +
/* RustType.kt:516 */
   51     85   
#[non_exhaustive]
          86  +
/* BuilderGenerator.kt:345 */
   52     87   
pub struct ValidationErrorBuilder {
   53         -
    pub(crate) message: ::std::option::Option<::std::string::String>,
   54         -
    pub(crate) field_list: ::std::option::Option<::std::vec::Vec<crate::types::ValidationExceptionField>>,
   55         -
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          88  +
    /* BuilderGenerator.kt:275 */ pub(crate) message: ::std::option::Option<::std::string::String>,
          89  +
    /* BuilderGenerator.kt:275 */ pub(crate) field_list: ::std::option::Option<::std::vec::Vec<crate::types::ValidationExceptionField>>,
          90  +
    /* ErrorGenerator.kt:97 */ meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          91  +
    /* BuilderGenerator.kt:345 */
   56     92   
}
          93  +
/* BuilderGenerator.kt:355 */
   57     94   
impl ValidationErrorBuilder {
   58         -
    /// A summary of the validation failure.
   59         -
    /// This field is required.
          95  +
    /// /* BuilderGenerator.kt:286 */A summary of the validation failure.
          96  +
    /// /* BuilderGenerator.kt:288 */This field is required.
          97  +
    /* BuilderGenerator.kt:291 */
   60     98   
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          99  +
        /* BuilderGenerator.kt:292 */
   61    100   
        self.message = ::std::option::Option::Some(input.into());
         101  +
        /* BuilderGenerator.kt:293 */
   62    102   
        self
         103  +
        /* BuilderGenerator.kt:291 */
   63    104   
    }
   64         -
    /// A summary of the validation failure.
         105  +
    /// /* BuilderGenerator.kt:312 */A summary of the validation failure.
         106  +
    /* BuilderGenerator.kt:314 */
   65    107   
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         108  +
        /* BuilderGenerator.kt:315 */
   66    109   
        self.message = input;
   67    110   
        self
         111  +
        /* BuilderGenerator.kt:314 */
   68    112   
    }
   69         -
    /// A summary of the validation failure.
         113  +
    /// /* BuilderGenerator.kt:334 */A summary of the validation failure.
         114  +
    /* BuilderGenerator.kt:336 */
   70    115   
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
         116  +
        /* BuilderGenerator.kt:337 */
   71    117   
        &self.message
         118  +
        /* BuilderGenerator.kt:336 */
   72    119   
    }
   73         -
    /// Appends an item to `field_list`.
         120  +
    /// /* BuilderGenerator.kt:410 */Appends an item to `field_list`.
         121  +
    /* BuilderGenerator.kt:411 */
   74    122   
    ///
   75         -
    /// To override the contents of this collection use [`set_field_list`](Self::set_field_list).
         123  +
    /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_field_list`](Self::set_field_list).
         124  +
    /* BuilderGenerator.kt:413 */
   76    125   
    ///
   77         -
    /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
         126  +
    /// /* BuilderGenerator.kt:414 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
         127  +
    /* BuilderGenerator.kt:418 */
   78    128   
    pub fn field_list(mut self, input: crate::types::ValidationExceptionField) -> Self {
         129  +
        /* BuilderGenerator.kt:419 */
   79    130   
        let mut v = self.field_list.unwrap_or_default();
   80    131   
        v.push(input);
   81    132   
        self.field_list = ::std::option::Option::Some(v);
   82    133   
        self
         134  +
        /* BuilderGenerator.kt:418 */
   83    135   
    }
   84         -
    /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
         136  +
    /// /* BuilderGenerator.kt:312 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
         137  +
    /* BuilderGenerator.kt:314 */
   85    138   
    pub fn set_field_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ValidationExceptionField>>) -> Self {
         139  +
        /* BuilderGenerator.kt:315 */
   86    140   
        self.field_list = input;
   87    141   
        self
         142  +
        /* BuilderGenerator.kt:314 */
   88    143   
    }
   89         -
    /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
         144  +
    /// /* BuilderGenerator.kt:334 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
         145  +
    /* BuilderGenerator.kt:336 */
   90    146   
    pub fn get_field_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ValidationExceptionField>> {
         147  +
        /* BuilderGenerator.kt:337 */
   91    148   
        &self.field_list
         149  +
        /* BuilderGenerator.kt:336 */
   92    150   
    }
         151  +
    /* ErrorGenerator.kt:101 */
   93    152   
    /// Sets error metadata
   94    153   
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
   95    154   
        self.meta = Some(meta);
   96    155   
        self
   97    156   
    }
   98    157   
   99    158   
    /// Sets error metadata
  100    159   
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
  101    160   
        self.meta = meta;
  102    161   
        self
  103    162   
    }
  104         -
    /// Consumes the builder and constructs a [`ValidationError`](crate::types::error::ValidationError).
  105         -
    /// This method will fail if any of the following fields are not set:
  106         -
    /// - [`message`](crate::types::error::builders::ValidationErrorBuilder::message)
         163  +
    /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ValidationError`](crate::types::error::ValidationError).
         164  +
    /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
         165  +
    /// /* BuilderGenerator.kt:246 */- [`message`](crate::types::error::builders::ValidationErrorBuilder::message)
         166  +
    /* BuilderGenerator.kt:253 */
  107    167   
    pub fn build(self) -> ::std::result::Result<crate::types::error::ValidationError, ::aws_smithy_types::error::operation::BuildError> {
  108         -
        ::std::result::Result::Ok(crate::types::error::ValidationError {
  109         -
            message: self.message.ok_or_else(|| {
  110         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  111         -
                    "message",
  112         -
                    "message was not specified but it is required when building ValidationError",
  113         -
                )
  114         -
            })?,
  115         -
            field_list: self.field_list,
  116         -
            meta: self.meta.unwrap_or_default(),
  117         -
        })
         168  +
        /* BuilderGenerator.kt:254 */
         169  +
        ::std::result::Result::Ok(
         170  +
            /* BuilderGenerator.kt:477 */crate::types::error::ValidationError {
         171  +
                /* BuilderGenerator.kt:481 */message: self.message
         172  +
                    /* BuilderGenerator.kt:494 */.ok_or_else(||
         173  +
                        /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("message", "message was not specified but it is required when building ValidationError")
         174  +
                    /* BuilderGenerator.kt:494 */)?
         175  +
                ,
         176  +
                /* BuilderGenerator.kt:481 */field_list: self.field_list
         177  +
                ,
         178  +
                /* ErrorGenerator.kt:120 */meta: self.meta.unwrap_or_default(),
         179  +
            /* BuilderGenerator.kt:477 */}
         180  +
        /* BuilderGenerator.kt:254 */)
         181  +
        /* BuilderGenerator.kt:253 */
  118    182   
    }
         183  +
    /* BuilderGenerator.kt:355 */
  119    184   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/types/error/builders.rs

@@ -1,1 +6,9 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CodegenDelegator.kt:255 */
    2      3   
pub use crate::types::error::_validation_exception::ValidationErrorBuilder;
    3      4   
           5  +
/* CodegenDelegator.kt:255 */
    4      6   
pub use crate::types::error::_complex_error::ComplexErrorBuilder;
    5      7   
           8  +
/* CodegenDelegator.kt:255 */
    6      9   
pub use crate::types::error::_invalid_greeting::InvalidGreetingBuilder;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/client.rs

@@ -1,1 +31,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:105 */
    2      3   
#[derive(Debug)]
    3      4   
pub(crate) struct Handle {
    4      5   
    pub(crate) conf: crate::Config,
    5      6   
    #[allow(dead_code)] // unused when a service does not provide any operations
    6      7   
    pub(crate) runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
    7      8   
}
    8      9   
    9     10   
///
   10     11   
/// An ergonomic client for the service.
   11     12   
///
@@ -77,78 +142,148 @@
   97     98   
    fn validate_config(handle: &Handle) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
   98     99   
        let mut cfg = ::aws_smithy_types::config_bag::ConfigBag::base();
   99    100   
        handle
  100    101   
            .runtime_plugins
  101    102   
            .apply_client_configuration(&mut cfg)?
  102    103   
            .validate_base_client_config(&cfg)?;
  103    104   
        Ok(())
  104    105   
    }
  105    106   
}
  106    107   
         108  +
/* RustModule.kt:172 */
  107    109   
mod complex_struct_operation;
  108    110   
  109         -
/// Operation customization and supporting types.
         111  +
/// /* ClientRustModule.kt:161 */Operation customization and supporting types.
  110    112   
///
  111         -
/// The underlying HTTP requests made during an operation can be customized
         113  +
/// /* ClientRustModule.kt:170 */The underlying HTTP requests made during an operation can be customized
  112    114   
/// by calling the `customize()` method on the builder returned from a client
  113    115   
/// operation call. For example, this can be used to add an additional HTTP header:
  114    116   
///
  115    117   
/// ```ignore
  116    118   
/// # async fn wrapper() -> ::std::result::Result<(), rpcv2cbor_extras::Error> {
  117    119   
/// # let client: rpcv2cbor_extras::Client = unimplemented!();
  118    120   
/// use ::http::header::{HeaderName, HeaderValue};
  119    121   
///
  120    122   
/// let result = client.complex_struct_operation()
  121    123   
///     .customize()
  122    124   
///     .mutate_request(|req| {
  123    125   
///         // Add `x-example-header` with value
  124    126   
///         req.headers_mut()
  125    127   
///             .insert(
  126    128   
///                 HeaderName::from_static("x-example-header"),
  127    129   
///                 HeaderValue::from_static("1"),
  128    130   
///             );
  129    131   
///     })
  130    132   
///     .send()
  131    133   
///     .await;
  132    134   
/// # }
  133    135   
/// ```
  134    136   
pub mod customize;
  135    137   
         138  +
/* RustModule.kt:172 */
  136    139   
mod empty_struct_operation;
  137    140   
         141  +
/* RustModule.kt:172 */
  138    142   
mod error_serialization_operation;
  139    143   
         144  +
/* RustModule.kt:172 */
  140    145   
mod simple_struct_operation;
  141    146   
         147  +
/* RustModule.kt:172 */
  142    148   
mod single_member_struct_operation;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/client/complex_struct_operation.rs

@@ -1,1 +31,35 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`ComplexStructOperation`](crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder) operation.
    4      6   
    ///
    5      7   
    /// - The fluent builder is configurable:
    6      8   
    ///   - [`structure(SimpleStruct)`](crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder::structure) / [`set_structure(Option<SimpleStruct>)`](crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder::set_structure):<br>required: **false**<br>(undocumented)<br>
    7      9   
    ///   - [`empty_structure(EmptyStruct)`](crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder::empty_structure) / [`set_empty_structure(Option<EmptyStruct>)`](crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder::set_empty_structure):<br>required: **false**<br>(undocumented)<br>
    8     10   
    ///   - [`list(impl Into<String>)`](crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder::list) / [`set_list(Option<Vec::<String>>)`](crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder::set_list):<br>required: **false**<br>(undocumented)<br>
    9     11   
    ///   - [`map(impl Into<String>, i32)`](crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder::map) / [`set_map(Option<HashMap::<String, i32>>)`](crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder::set_map):<br>required: **false**<br>(undocumented)<br>
   10     12   
    ///   - [`union(SimpleUnion)`](crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder::union) / [`set_union(Option<SimpleUnion>)`](crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder::set_union):<br>required: **false**<br>(undocumented)<br>
   11     13   
    ///   - [`unit_union(UnitUnion)`](crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder::unit_union) / [`set_unit_union(Option<UnitUnion>)`](crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder::set_unit_union):<br>required: **false**<br>(undocumented)<br>
   12     14   
    ///   - [`structure_list(SimpleStruct)`](crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder::structure_list) / [`set_structure_list(Option<Vec::<SimpleStruct>>)`](crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder::set_structure_list):<br>required: **false**<br>(undocumented)<br>
   13     15   
    ///   - [`complex_list(HashMap::<String, ComplexUnion>)`](crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder::complex_list) / [`set_complex_list(Option<Vec::<HashMap::<String, ComplexUnion>>>)`](crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder::set_complex_list):<br>required: **true**<br>(undocumented)<br>
   14     16   
    ///   - [`complex_map(impl Into<String>, ComplexUnion)`](crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder::complex_map) / [`set_complex_map(Option<HashMap::<String, ComplexUnion>>)`](crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder::set_complex_map):<br>required: **true**<br>(undocumented)<br>
   15     17   
    ///   - [`complex_union(impl Into<Box<ComplexUnion>>)`](crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder::complex_union) / [`set_complex_union(Option<Box<ComplexUnion>>)`](crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder::set_complex_union):<br>required: **true**<br>(undocumented)<br>
   16     18   
    /// - On success, responds with [`ComplexStructOperationOutput`](crate::operation::complex_struct_operation::ComplexStructOperationOutput) with field(s):
   17     19   
    ///   - [`structure(Option<SimpleStruct>)`](crate::operation::complex_struct_operation::ComplexStructOperationOutput::structure): (undocumented)
   18     20   
    ///   - [`empty_structure(Option<EmptyStruct>)`](crate::operation::complex_struct_operation::ComplexStructOperationOutput::empty_structure): (undocumented)
   19     21   
    ///   - [`list(Option<Vec::<String>>)`](crate::operation::complex_struct_operation::ComplexStructOperationOutput::list): (undocumented)
   20     22   
    ///   - [`map(Option<HashMap::<String, i32>>)`](crate::operation::complex_struct_operation::ComplexStructOperationOutput::map): (undocumented)
   21     23   
    ///   - [`union(Option<SimpleUnion>)`](crate::operation::complex_struct_operation::ComplexStructOperationOutput::union): (undocumented)
   22     24   
    ///   - [`unit_union(Option<UnitUnion>)`](crate::operation::complex_struct_operation::ComplexStructOperationOutput::unit_union): (undocumented)
   23     25   
    ///   - [`structure_list(Option<Vec::<SimpleStruct>>)`](crate::operation::complex_struct_operation::ComplexStructOperationOutput::structure_list): (undocumented)
   24     26   
    ///   - [`complex_list(Vec::<HashMap::<String, ComplexUnion>>)`](crate::operation::complex_struct_operation::ComplexStructOperationOutput::complex_list): (undocumented)
   25     27   
    ///   - [`complex_map(HashMap::<String, ComplexUnion>)`](crate::operation::complex_struct_operation::ComplexStructOperationOutput::complex_map): (undocumented)
   26     28   
    ///   - [`complex_union(Box<ComplexUnion>)`](crate::operation::complex_struct_operation::ComplexStructOperationOutput::complex_union): (undocumented)
   27     29   
    /// - On failure, responds with [`SdkError<ComplexStructOperationError>`](crate::operation::complex_struct_operation::ComplexStructOperationError)
          30  +
    /* FluentClientGenerator.kt:234 */
   28     31   
    pub fn complex_struct_operation(&self) -> crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder {
   29     32   
        crate::operation::complex_struct_operation::builders::ComplexStructOperationFluentBuilder::new(self.handle.clone())
   30     33   
    }
          34  +
    /* FluentClientGenerator.kt:187 */
   31     35   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/client/customize.rs

@@ -1,1 +32,33 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
           3  +
/* CustomizableOperationGenerator.kt:72 */
    3      4   
/// `CustomizableOperation` allows for configuring a single operation invocation before it is sent.
    4      5   
pub struct CustomizableOperation<T, E, B> {
    5      6   
    customizable_send: B,
    6      7   
    config_override: ::std::option::Option<crate::config::Builder>,
    7      8   
    interceptors: Vec<::aws_smithy_runtime_api::client::interceptors::SharedInterceptor>,
    8      9   
    runtime_plugins: Vec<::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin>,
    9     10   
    _output: ::std::marker::PhantomData<T>,
   10     11   
    _error: ::std::marker::PhantomData<E>,
   11     12   
}
   12     13   

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/client/customize/internal.rs

@@ -1,1 +12,13 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CustomizableOperationGenerator.kt:204 */
    2      3   
pub type BoxFuture<T> = ::std::pin::Pin<::std::boxed::Box<dyn ::std::future::Future<Output = T> + ::std::marker::Send>>;
    3      4   
    4      5   
pub type SendResult<T, E> =
    5      6   
    ::std::result::Result<T, ::aws_smithy_runtime_api::client::result::SdkError<E, ::aws_smithy_runtime_api::client::orchestrator::HttpResponse>>;
    6      7   
    7      8   
pub trait CustomizableSend<T, E>: ::std::marker::Send + ::std::marker::Sync {
    8      9   
    // Takes an owned `self` as the implementation will internally call methods that take `self`.
    9     10   
    // If it took `&self`, that would make this trait object safe, but some implementing types do not
   10     11   
    // derive `Clone`, unable to yield `self` from `&self`.
   11     12   
    fn send(self, config_override: crate::config::Builder) -> BoxFuture<SendResult<T, E>>;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/client/empty_struct_operation.rs

@@ -1,1 +11,15 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`EmptyStructOperation`](crate::operation::empty_struct_operation::builders::EmptyStructOperationFluentBuilder) operation.
    4      6   
    ///
    5      7   
    /// - The fluent builder takes no input, just [`send`](crate::operation::empty_struct_operation::builders::EmptyStructOperationFluentBuilder::send) it.
    6      8   
    /// - On success, responds with [`EmptyStructOperationOutput`](crate::operation::empty_struct_operation::EmptyStructOperationOutput)
    7      9   
    /// - On failure, responds with [`SdkError<EmptyStructOperationError>`](crate::operation::empty_struct_operation::EmptyStructOperationError)
          10  +
    /* FluentClientGenerator.kt:234 */
    8     11   
    pub fn empty_struct_operation(&self) -> crate::operation::empty_struct_operation::builders::EmptyStructOperationFluentBuilder {
    9     12   
        crate::operation::empty_struct_operation::builders::EmptyStructOperationFluentBuilder::new(self.handle.clone())
   10     13   
    }
          14  +
    /* FluentClientGenerator.kt:187 */
   11     15   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/client/error_serialization_operation.rs

@@ -1,1 +36,40 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`ErrorSerializationOperation`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder) operation.
    4      6   
    ///
    5      7   
    /// - The fluent builder is configurable:
    6      8   
    ///   - [`blob(Blob)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::blob) / [`set_blob(Option<Blob>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_blob):<br>required: **false**<br>(undocumented)<br>
    7      9   
    ///   - [`boolean(bool)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::boolean) / [`set_boolean(Option<bool>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_boolean):<br>required: **false**<br>(undocumented)<br>
    8     10   
    ///   - [`string(impl Into<String>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::string) / [`set_string(Option<String>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_string):<br>required: **false**<br>(undocumented)<br>
    9     11   
    ///   - [`byte(i8)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::byte) / [`set_byte(Option<i8>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_byte):<br>required: **false**<br>(undocumented)<br>
   10     12   
    ///   - [`short(i16)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::short) / [`set_short(Option<i16>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_short):<br>required: **false**<br>(undocumented)<br>
   11     13   
    ///   - [`integer(i32)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::integer) / [`set_integer(Option<i32>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_integer):<br>required: **false**<br>(undocumented)<br>
   12     14   
    ///   - [`long(i64)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::long) / [`set_long(Option<i64>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_long):<br>required: **false**<br>(undocumented)<br>
   13     15   
    ///   - [`float(f32)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::float) / [`set_float(Option<f32>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_float):<br>required: **false**<br>(undocumented)<br>
   14     16   
    ///   - [`double(f64)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::double) / [`set_double(Option<f64>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_double):<br>required: **false**<br>(undocumented)<br>
   15     17   
    ///   - [`timestamp(DateTime)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::timestamp) / [`set_timestamp(Option<DateTime>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_timestamp):<br>required: **false**<br>(undocumented)<br>
   16     18   
    ///   - [`r#enum(Suit)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::enum) / [`set_enum(Option<Suit>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_enum):<br>required: **false**<br>(undocumented)<br>
   17     19   
    ///   - [`required_blob(Blob)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::required_blob) / [`set_required_blob(Option<Blob>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_required_blob):<br>required: **true**<br>(undocumented)<br>
   18     20   
    ///   - [`required_boolean(bool)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::required_boolean) / [`set_required_boolean(Option<bool>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_required_boolean):<br>required: **true**<br>(undocumented)<br>
   19     21   
    ///   - [`required_string(impl Into<String>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::required_string) / [`set_required_string(Option<String>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_required_string):<br>required: **true**<br>(undocumented)<br>
   20     22   
    ///   - [`required_byte(i8)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::required_byte) / [`set_required_byte(Option<i8>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_required_byte):<br>required: **true**<br>(undocumented)<br>
   21     23   
    ///   - [`required_short(i16)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::required_short) / [`set_required_short(Option<i16>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_required_short):<br>required: **true**<br>(undocumented)<br>
   22     24   
    ///   - [`required_integer(i32)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::required_integer) / [`set_required_integer(Option<i32>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_required_integer):<br>required: **true**<br>(undocumented)<br>
   23     25   
    ///   - [`required_long(i64)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::required_long) / [`set_required_long(Option<i64>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_required_long):<br>required: **true**<br>(undocumented)<br>
   24     26   
    ///   - [`required_float(f32)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::required_float) / [`set_required_float(Option<f32>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_required_float):<br>required: **true**<br>(undocumented)<br>
   25     27   
    ///   - [`required_double(f64)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::required_double) / [`set_required_double(Option<f64>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_required_double):<br>required: **true**<br>(undocumented)<br>
   26     28   
    ///   - [`required_timestamp(DateTime)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::required_timestamp) / [`set_required_timestamp(Option<DateTime>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_required_timestamp):<br>required: **true**<br>(undocumented)<br>
   27     29   
    ///   - [`required_enum(Suit)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::required_enum) / [`set_required_enum(Option<Suit>)`](crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::set_required_enum):<br>required: **true**<br>(undocumented)<br>
   28     30   
    /// - On success, responds with [`ErrorSerializationOperationOutput`](crate::operation::error_serialization_operation::ErrorSerializationOperationOutput) with field(s):
   29     31   
    ///   - [`error_shape(Option<ValidationError>)`](crate::operation::error_serialization_operation::ErrorSerializationOperationOutput::error_shape): A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
   30     32   
    /// - On failure, responds with [`SdkError<ErrorSerializationOperationError>`](crate::operation::error_serialization_operation::ErrorSerializationOperationError)
          33  +
    /* FluentClientGenerator.kt:234 */
   31     34   
    pub fn error_serialization_operation(
   32     35   
        &self,
   33     36   
    ) -> crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder {
   34     37   
        crate::operation::error_serialization_operation::builders::ErrorSerializationOperationFluentBuilder::new(self.handle.clone())
   35     38   
    }
          39  +
    /* FluentClientGenerator.kt:187 */
   36     40   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/client/simple_struct_operation.rs

@@ -1,1 +55,59 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`SimpleStructOperation`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder) operation.
    4      6   
    ///
    5      7   
    /// - The fluent builder is configurable:
    6      8   
    ///   - [`blob(Blob)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::blob) / [`set_blob(Option<Blob>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_blob):<br>required: **false**<br>(undocumented)<br>
    7      9   
    ///   - [`boolean(bool)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::boolean) / [`set_boolean(Option<bool>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_boolean):<br>required: **false**<br>(undocumented)<br>
    8     10   
    ///   - [`string(impl Into<String>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::string) / [`set_string(Option<String>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_string):<br>required: **false**<br>(undocumented)<br>
    9     11   
    ///   - [`byte(i8)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::byte) / [`set_byte(Option<i8>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_byte):<br>required: **false**<br>(undocumented)<br>
   10     12   
    ///   - [`short(i16)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::short) / [`set_short(Option<i16>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_short):<br>required: **false**<br>(undocumented)<br>
   11     13   
    ///   - [`integer(i32)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::integer) / [`set_integer(Option<i32>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_integer):<br>required: **false**<br>(undocumented)<br>
   12     14   
    ///   - [`long(i64)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::long) / [`set_long(Option<i64>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_long):<br>required: **false**<br>(undocumented)<br>
   13     15   
    ///   - [`float(f32)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::float) / [`set_float(Option<f32>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_float):<br>required: **false**<br>(undocumented)<br>
   14     16   
    ///   - [`double(f64)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::double) / [`set_double(Option<f64>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_double):<br>required: **false**<br>(undocumented)<br>
   15     17   
    ///   - [`timestamp(DateTime)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::timestamp) / [`set_timestamp(Option<DateTime>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_timestamp):<br>required: **false**<br>(undocumented)<br>
   16     18   
    ///   - [`r#enum(Suit)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::enum) / [`set_enum(Option<Suit>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_enum):<br>required: **false**<br>(undocumented)<br>
   17     19   
    ///   - [`required_blob(Blob)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::required_blob) / [`set_required_blob(Option<Blob>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_required_blob):<br>required: **true**<br>(undocumented)<br>
   18     20   
    ///   - [`required_boolean(bool)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::required_boolean) / [`set_required_boolean(Option<bool>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_required_boolean):<br>required: **true**<br>(undocumented)<br>
   19     21   
    ///   - [`required_string(impl Into<String>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::required_string) / [`set_required_string(Option<String>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_required_string):<br>required: **true**<br>(undocumented)<br>
   20     22   
    ///   - [`required_byte(i8)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::required_byte) / [`set_required_byte(Option<i8>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_required_byte):<br>required: **true**<br>(undocumented)<br>
   21     23   
    ///   - [`required_short(i16)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::required_short) / [`set_required_short(Option<i16>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_required_short):<br>required: **true**<br>(undocumented)<br>
   22     24   
    ///   - [`required_integer(i32)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::required_integer) / [`set_required_integer(Option<i32>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_required_integer):<br>required: **true**<br>(undocumented)<br>
   23     25   
    ///   - [`required_long(i64)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::required_long) / [`set_required_long(Option<i64>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_required_long):<br>required: **true**<br>(undocumented)<br>
   24     26   
    ///   - [`required_float(f32)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::required_float) / [`set_required_float(Option<f32>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_required_float):<br>required: **true**<br>(undocumented)<br>
   25     27   
    ///   - [`required_double(f64)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::required_double) / [`set_required_double(Option<f64>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_required_double):<br>required: **true**<br>(undocumented)<br>
   26     28   
    ///   - [`required_timestamp(DateTime)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::required_timestamp) / [`set_required_timestamp(Option<DateTime>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_required_timestamp):<br>required: **true**<br>(undocumented)<br>
   27     29   
    ///   - [`required_enum(Suit)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::required_enum) / [`set_required_enum(Option<Suit>)`](crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::set_required_enum):<br>required: **true**<br>(undocumented)<br>
   28     30   
    /// - On success, responds with [`SimpleStructOperationOutput`](crate::operation::simple_struct_operation::SimpleStructOperationOutput) with field(s):
   29     31   
    ///   - [`blob(Option<Blob>)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::blob): (undocumented)
   30     32   
    ///   - [`boolean(Option<bool>)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::boolean): (undocumented)
   31     33   
    ///   - [`string(Option<String>)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::string): (undocumented)
   32     34   
    ///   - [`byte(Option<i8>)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::byte): (undocumented)
   33     35   
    ///   - [`short(Option<i16>)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::short): (undocumented)
   34     36   
    ///   - [`integer(Option<i32>)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::integer): (undocumented)
   35     37   
    ///   - [`long(Option<i64>)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::long): (undocumented)
   36     38   
    ///   - [`float(Option<f32>)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::float): (undocumented)
   37     39   
    ///   - [`double(Option<f64>)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::double): (undocumented)
   38     40   
    ///   - [`timestamp(Option<DateTime>)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::timestamp): (undocumented)
   39     41   
    ///   - [`r#enum(Option<Suit>)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::enum): (undocumented)
   40     42   
    ///   - [`required_blob(Blob)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::required_blob): (undocumented)
   41     43   
    ///   - [`required_boolean(bool)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::required_boolean): (undocumented)
   42     44   
    ///   - [`required_string(String)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::required_string): (undocumented)
   43     45   
    ///   - [`required_byte(i8)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::required_byte): (undocumented)
   44     46   
    ///   - [`required_short(i16)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::required_short): (undocumented)
   45     47   
    ///   - [`required_integer(i32)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::required_integer): (undocumented)
   46     48   
    ///   - [`required_long(i64)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::required_long): (undocumented)
   47     49   
    ///   - [`required_float(f32)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::required_float): (undocumented)
   48     50   
    ///   - [`required_double(f64)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::required_double): (undocumented)
   49     51   
    ///   - [`required_timestamp(DateTime)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::required_timestamp): (undocumented)
   50     52   
    ///   - [`required_enum(Suit)`](crate::operation::simple_struct_operation::SimpleStructOperationOutput::required_enum): (undocumented)
   51     53   
    /// - On failure, responds with [`SdkError<SimpleStructOperationError>`](crate::operation::simple_struct_operation::SimpleStructOperationError)
          54  +
    /* FluentClientGenerator.kt:234 */
   52     55   
    pub fn simple_struct_operation(&self) -> crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder {
   53     56   
        crate::operation::simple_struct_operation::builders::SimpleStructOperationFluentBuilder::new(self.handle.clone())
   54     57   
    }
          58  +
    /* FluentClientGenerator.kt:187 */
   55     59   
}