Server Test

Server Test

rev. 4ddf580e2646f93a77212ec640592e9f380b1bc1 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-server-test/naming_test_ops/rust-server-codegen/src/input.rs

@@ -410,410 +516,516 @@
  430    430   
        ) -> Self {
  431    431   
            self.r#enum = input.map(|v| v.into());
  432    432   
            self
  433    433   
        }
  434    434   
        #[allow(missing_docs)] // documentation missing in model
  435    435   
        pub fn self_(mut self, input: ::std::option::Option<bool>) -> Self {
  436    436   
            self.self_ = input;
  437    437   
            self
  438    438   
        }
  439    439   
        #[allow(missing_docs)] // documentation missing in model
  440         -
        pub(crate) fn set_self(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
         440  +
        pub(crate) fn set_self_(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
  441    441   
            self.self_ = input.map(|v| v.into());
  442    442   
            self
  443    443   
        }
  444    444   
        #[allow(missing_docs)] // documentation missing in model
  445    445   
        pub fn crate_(mut self, input: ::std::option::Option<bool>) -> Self {
  446    446   
            self.crate_ = input;
  447    447   
            self
  448    448   
        }
  449    449   
        #[allow(missing_docs)] // documentation missing in model
  450         -
        pub(crate) fn set_crate(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
         450  +
        pub(crate) fn set_crate_(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
  451    451   
            self.crate_ = input.map(|v| v.into());
  452    452   
            self
  453    453   
        }
  454    454   
        #[allow(missing_docs)] // documentation missing in model
  455    455   
        pub fn super_(mut self, input: ::std::option::Option<bool>) -> Self {
  456    456   
            self.super_ = input;
  457    457   
            self
  458    458   
        }
  459    459   
        #[allow(missing_docs)] // documentation missing in model
  460         -
        pub(crate) fn set_super(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
         460  +
        pub(crate) fn set_super_(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
  461    461   
            self.super_ = input.map(|v| v.into());
  462    462   
            self
  463    463   
        }
  464    464   
        #[allow(missing_docs)] // documentation missing in model
  465    465   
        pub fn build_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  466    466   
            self.build_value = input;
  467    467   
            self
  468    468   
        }
  469    469   
        #[allow(missing_docs)] // documentation missing in model
  470         -
        pub(crate) fn set_build(
         470  +
        pub(crate) fn set_build_value(
  471    471   
            mut self,
  472    472   
            input: Option<impl ::std::convert::Into<::std::string::String>>,
  473    473   
        ) -> Self {
  474    474   
            self.build_value = input.map(|v| v.into());
  475    475   
            self
  476    476   
        }
  477    477   
        #[allow(missing_docs)] // documentation missing in model
  478    478   
        pub fn default_value(
  479    479   
            mut self,
  480    480   
            input: ::std::option::Option<::std::string::String>,
  481    481   
        ) -> Self {
  482    482   
            self.default_value = input;
  483    483   
            self
  484    484   
        }
  485    485   
        #[allow(missing_docs)] // documentation missing in model
  486         -
        pub(crate) fn set_default(
         486  +
        pub(crate) fn set_default_value(
  487    487   
            mut self,
  488    488   
            input: Option<impl ::std::convert::Into<::std::string::String>>,
  489    489   
        ) -> Self {
  490    490   
            self.default_value = input.map(|v| v.into());
  491    491   
            self
  492    492   
        }
  493    493   
        #[allow(missing_docs)] // documentation missing in model
  494    494   
        pub fn send(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  495    495   
            self.send = input;
  496    496   
            self
@@ -637,637 +743,743 @@
  657    657   
        ) -> Self {
  658    658   
            self.r#enum = input.map(|v| v.into());
  659    659   
            self
  660    660   
        }
  661    661   
        #[allow(missing_docs)] // documentation missing in model
  662    662   
        pub fn self_(mut self, input: ::std::option::Option<bool>) -> Self {
  663    663   
            self.self_ = input;
  664    664   
            self
  665    665   
        }
  666    666   
        #[allow(missing_docs)] // documentation missing in model
  667         -
        pub(crate) fn set_self(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
         667  +
        pub(crate) fn set_self_(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
  668    668   
            self.self_ = input.map(|v| v.into());
  669    669   
            self
  670    670   
        }
  671    671   
        #[allow(missing_docs)] // documentation missing in model
  672    672   
        pub fn crate_(mut self, input: ::std::option::Option<bool>) -> Self {
  673    673   
            self.crate_ = input;
  674    674   
            self
  675    675   
        }
  676    676   
        #[allow(missing_docs)] // documentation missing in model
  677         -
        pub(crate) fn set_crate(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
         677  +
        pub(crate) fn set_crate_(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
  678    678   
            self.crate_ = input.map(|v| v.into());
  679    679   
            self
  680    680   
        }
  681    681   
        #[allow(missing_docs)] // documentation missing in model
  682    682   
        pub fn super_(mut self, input: ::std::option::Option<bool>) -> Self {
  683    683   
            self.super_ = input;
  684    684   
            self
  685    685   
        }
  686    686   
        #[allow(missing_docs)] // documentation missing in model
  687         -
        pub(crate) fn set_super(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
         687  +
        pub(crate) fn set_super_(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
  688    688   
            self.super_ = input.map(|v| v.into());
  689    689   
            self
  690    690   
        }
  691    691   
        #[allow(missing_docs)] // documentation missing in model
  692    692   
        pub fn build_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  693    693   
            self.build_value = input;
  694    694   
            self
  695    695   
        }
  696    696   
        #[allow(missing_docs)] // documentation missing in model
  697         -
        pub(crate) fn set_build(
         697  +
        pub(crate) fn set_build_value(
  698    698   
            mut self,
  699    699   
            input: Option<impl ::std::convert::Into<::std::string::String>>,
  700    700   
        ) -> Self {
  701    701   
            self.build_value = input.map(|v| v.into());
  702    702   
            self
  703    703   
        }
  704    704   
        #[allow(missing_docs)] // documentation missing in model
  705    705   
        pub fn default_value(
  706    706   
            mut self,
  707    707   
            input: ::std::option::Option<::std::string::String>,
  708    708   
        ) -> Self {
  709    709   
            self.default_value = input;
  710    710   
            self
  711    711   
        }
  712    712   
        #[allow(missing_docs)] // documentation missing in model
  713         -
        pub(crate) fn set_default(
         713  +
        pub(crate) fn set_default_value(
  714    714   
            mut self,
  715    715   
            input: Option<impl ::std::convert::Into<::std::string::String>>,
  716    716   
        ) -> Self {
  717    717   
            self.default_value = input.map(|v| v.into());
  718    718   
            self
  719    719   
        }
  720    720   
        #[allow(missing_docs)] // documentation missing in model
  721    721   
        pub fn send(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  722    722   
            self.send = input;
  723    723   
            self
@@ -1017,1017 +1123,1123 @@
 1037   1037   
        ) -> Self {
 1038   1038   
            self.r#enum = input.map(|v| v.into());
 1039   1039   
            self
 1040   1040   
        }
 1041   1041   
        #[allow(missing_docs)] // documentation missing in model
 1042   1042   
        pub fn self_(mut self, input: ::std::option::Option<bool>) -> Self {
 1043   1043   
            self.self_ = input;
 1044   1044   
            self
 1045   1045   
        }
 1046   1046   
        #[allow(missing_docs)] // documentation missing in model
 1047         -
        pub(crate) fn set_self(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
        1047  +
        pub(crate) fn set_self_(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
 1048   1048   
            self.self_ = input.map(|v| v.into());
 1049   1049   
            self
 1050   1050   
        }
 1051   1051   
        #[allow(missing_docs)] // documentation missing in model
 1052   1052   
        pub fn crate_(mut self, input: ::std::option::Option<bool>) -> Self {
 1053   1053   
            self.crate_ = input;
 1054   1054   
            self
 1055   1055   
        }
 1056   1056   
        #[allow(missing_docs)] // documentation missing in model
 1057         -
        pub(crate) fn set_crate(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
        1057  +
        pub(crate) fn set_crate_(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
 1058   1058   
            self.crate_ = input.map(|v| v.into());
 1059   1059   
            self
 1060   1060   
        }
 1061   1061   
        #[allow(missing_docs)] // documentation missing in model
 1062   1062   
        pub fn super_(mut self, input: ::std::option::Option<bool>) -> Self {
 1063   1063   
            self.super_ = input;
 1064   1064   
            self
 1065   1065   
        }
 1066   1066   
        #[allow(missing_docs)] // documentation missing in model
 1067         -
        pub(crate) fn set_super(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
        1067  +
        pub(crate) fn set_super_(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
 1068   1068   
            self.super_ = input.map(|v| v.into());
 1069   1069   
            self
 1070   1070   
        }
 1071   1071   
        #[allow(missing_docs)] // documentation missing in model
 1072   1072   
        pub fn build_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 1073   1073   
            self.build_value = input;
 1074   1074   
            self
 1075   1075   
        }
 1076   1076   
        #[allow(missing_docs)] // documentation missing in model
 1077         -
        pub(crate) fn set_build(
        1077  +
        pub(crate) fn set_build_value(
 1078   1078   
            mut self,
 1079   1079   
            input: Option<impl ::std::convert::Into<::std::string::String>>,
 1080   1080   
        ) -> Self {
 1081   1081   
            self.build_value = input.map(|v| v.into());
 1082   1082   
            self
 1083   1083   
        }
 1084   1084   
        #[allow(missing_docs)] // documentation missing in model
 1085   1085   
        pub fn default_value(
 1086   1086   
            mut self,
 1087   1087   
            input: ::std::option::Option<::std::string::String>,
 1088   1088   
        ) -> Self {
 1089   1089   
            self.default_value = input;
 1090   1090   
            self
 1091   1091   
        }
 1092   1092   
        #[allow(missing_docs)] // documentation missing in model
 1093         -
        pub(crate) fn set_default(
        1093  +
        pub(crate) fn set_default_value(
 1094   1094   
            mut self,
 1095   1095   
            input: Option<impl ::std::convert::Into<::std::string::String>>,
 1096   1096   
        ) -> Self {
 1097   1097   
            self.default_value = input.map(|v| v.into());
 1098   1098   
            self
 1099   1099   
        }
 1100   1100   
        #[allow(missing_docs)] // documentation missing in model
 1101   1101   
        pub fn send(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 1102   1102   
            self.send = input;
 1103   1103   
            self

tmp-codegen-diff/codegen-server-test/naming_test_ops/rust-server-codegen/src/protocol_serde/shape_match.rs

@@ -108,108 +198,198 @@
  128    128   
                    "enum" => {
  129    129   
                        builder = builder.set_enum(
  130    130   
                            ::aws_smithy_json::deserialize::token::expect_string_or_null(
  131    131   
                                tokens.next(),
  132    132   
                            )?
  133    133   
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  134    134   
                            .transpose()?,
  135    135   
                        );
  136    136   
                    }
  137    137   
                    "self" => {
  138         -
                        builder = builder.set_self(
         138  +
                        builder = builder.set_self_(
  139    139   
                            ::aws_smithy_json::deserialize::token::expect_bool_or_null(
  140    140   
                                tokens.next(),
  141    141   
                            )?,
  142    142   
                        );
  143    143   
                    }
  144    144   
                    "crate" => {
  145         -
                        builder = builder.set_crate(
         145  +
                        builder = builder.set_crate_(
  146    146   
                            ::aws_smithy_json::deserialize::token::expect_bool_or_null(
  147    147   
                                tokens.next(),
  148    148   
                            )?,
  149    149   
                        );
  150    150   
                    }
  151    151   
                    "super" => {
  152         -
                        builder = builder.set_super(
         152  +
                        builder = builder.set_super_(
  153    153   
                            ::aws_smithy_json::deserialize::token::expect_bool_or_null(
  154    154   
                                tokens.next(),
  155    155   
                            )?,
  156    156   
                        );
  157    157   
                    }
  158    158   
                    "build" => {
  159         -
                        builder = builder.set_build(
         159  +
                        builder = builder.set_build_value(
  160    160   
                            ::aws_smithy_json::deserialize::token::expect_string_or_null(
  161    161   
                                tokens.next(),
  162    162   
                            )?
  163    163   
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  164    164   
                            .transpose()?,
  165    165   
                        );
  166    166   
                    }
  167    167   
                    "default" => {
  168         -
                        builder = builder.set_default(
         168  +
                        builder = builder.set_default_value(
  169    169   
                            ::aws_smithy_json::deserialize::token::expect_string_or_null(
  170    170   
                                tokens.next(),
  171    171   
                            )?
  172    172   
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  173    173   
                            .transpose()?,
  174    174   
                        );
  175    175   
                    }
  176    176   
                    "send" => {
  177    177   
                        builder = builder.set_send(
  178    178   
                            ::aws_smithy_json::deserialize::token::expect_string_or_null(

tmp-codegen-diff/codegen-server-test/naming_test_ops/rust-server-codegen/src/protocol_serde/shape_reserved_words_as_members.rs

@@ -108,108 +198,198 @@
  128    128   
                    "enum" => {
  129    129   
                        builder = builder.set_enum(
  130    130   
                            ::aws_smithy_json::deserialize::token::expect_string_or_null(
  131    131   
                                tokens.next(),
  132    132   
                            )?
  133    133   
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  134    134   
                            .transpose()?,
  135    135   
                        );
  136    136   
                    }
  137    137   
                    "self" => {
  138         -
                        builder = builder.set_self(
         138  +
                        builder = builder.set_self_(
  139    139   
                            ::aws_smithy_json::deserialize::token::expect_bool_or_null(
  140    140   
                                tokens.next(),
  141    141   
                            )?,
  142    142   
                        );
  143    143   
                    }
  144    144   
                    "crate" => {
  145         -
                        builder = builder.set_crate(
         145  +
                        builder = builder.set_crate_(
  146    146   
                            ::aws_smithy_json::deserialize::token::expect_bool_or_null(
  147    147   
                                tokens.next(),
  148    148   
                            )?,
  149    149   
                        );
  150    150   
                    }
  151    151   
                    "super" => {
  152         -
                        builder = builder.set_super(
         152  +
                        builder = builder.set_super_(
  153    153   
                            ::aws_smithy_json::deserialize::token::expect_bool_or_null(
  154    154   
                                tokens.next(),
  155    155   
                            )?,
  156    156   
                        );
  157    157   
                    }
  158    158   
                    "build" => {
  159         -
                        builder = builder.set_build(
         159  +
                        builder = builder.set_build_value(
  160    160   
                            ::aws_smithy_json::deserialize::token::expect_string_or_null(
  161    161   
                                tokens.next(),
  162    162   
                            )?
  163    163   
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  164    164   
                            .transpose()?,
  165    165   
                        );
  166    166   
                    }
  167    167   
                    "default" => {
  168         -
                        builder = builder.set_default(
         168  +
                        builder = builder.set_default_value(
  169    169   
                            ::aws_smithy_json::deserialize::token::expect_string_or_null(
  170    170   
                                tokens.next(),
  171    171   
                            )?
  172    172   
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  173    173   
                            .transpose()?,
  174    174   
                        );
  175    175   
                    }
  176    176   
                    "send" => {
  177    177   
                        builder = builder.set_send(
  178    178   
                            ::aws_smithy_json::deserialize::token::expect_string_or_null(

tmp-codegen-diff/codegen-server-test/naming_test_ops/rust-server-codegen/src/protocol_serde/shape_rpc_echo.rs

@@ -108,108 +198,198 @@
  128    128   
                    "enum" => {
  129    129   
                        builder = builder.set_enum(
  130    130   
                            ::aws_smithy_json::deserialize::token::expect_string_or_null(
  131    131   
                                tokens.next(),
  132    132   
                            )?
  133    133   
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  134    134   
                            .transpose()?,
  135    135   
                        );
  136    136   
                    }
  137    137   
                    "self" => {
  138         -
                        builder = builder.set_self(
         138  +
                        builder = builder.set_self_(
  139    139   
                            ::aws_smithy_json::deserialize::token::expect_bool_or_null(
  140    140   
                                tokens.next(),
  141    141   
                            )?,
  142    142   
                        );
  143    143   
                    }
  144    144   
                    "crate" => {
  145         -
                        builder = builder.set_crate(
         145  +
                        builder = builder.set_crate_(
  146    146   
                            ::aws_smithy_json::deserialize::token::expect_bool_or_null(
  147    147   
                                tokens.next(),
  148    148   
                            )?,
  149    149   
                        );
  150    150   
                    }
  151    151   
                    "super" => {
  152         -
                        builder = builder.set_super(
         152  +
                        builder = builder.set_super_(
  153    153   
                            ::aws_smithy_json::deserialize::token::expect_bool_or_null(
  154    154   
                                tokens.next(),
  155    155   
                            )?,
  156    156   
                        );
  157    157   
                    }
  158    158   
                    "build" => {
  159         -
                        builder = builder.set_build(
         159  +
                        builder = builder.set_build_value(
  160    160   
                            ::aws_smithy_json::deserialize::token::expect_string_or_null(
  161    161   
                                tokens.next(),
  162    162   
                            )?
  163    163   
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  164    164   
                            .transpose()?,
  165    165   
                        );
  166    166   
                    }
  167    167   
                    "default" => {
  168         -
                        builder = builder.set_default(
         168  +
                        builder = builder.set_default_value(
  169    169   
                            ::aws_smithy_json::deserialize::token::expect_string_or_null(
  170    170   
                                tokens.next(),
  171    171   
                            )?
  172    172   
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  173    173   
                            .transpose()?,
  174    174   
                        );
  175    175   
                    }
  176    176   
                    "send" => {
  177    177   
                        builder = builder.set_send(
  178    178   
                            ::aws_smithy_json::deserialize::token::expect_string_or_null(