Client Test

Client Test

rev. d838bf488731ae5e751cce0fe13f339a5b9be858

Files changed:

tmp-codegen-diff/codegen-client-test/naming_test_casing/rust-client-codegen/src/operation/do_nothing.rs

@@ -292,292 +331,331 @@
  312    312   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  313    313   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  314    314   
    ) -> Self {
  315    315   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  316    316   
            source,
  317    317   
            meta: meta.unwrap_or_default(),
  318    318   
        })
  319    319   
    }
  320    320   
}
  321    321   
  322         -
pub use crate::operation::do_nothing::_do_nothing_output::DoNothingOutput;
  323         -
  324    322   
pub use crate::operation::do_nothing::_do_nothing_input::DoNothingInput;
  325    323   
         324  +
pub use crate::operation::do_nothing::_do_nothing_output::DoNothingOutput;
         325  +
  326    326   
mod _do_nothing_input;
  327    327   
  328    328   
mod _do_nothing_output;
  329    329   
  330    330   
/// Builders
  331    331   
pub mod builders;

tmp-codegen-diff/codegen-client-test/naming_test_casing/rust-client-codegen/src/operation/do_nothing/builders.rs

@@ -1,1 +35,35 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::operation::do_nothing::_do_nothing_output::DoNothingOutputBuilder;
    3         -
    4      2   
pub use crate::operation::do_nothing::_do_nothing_input::DoNothingInputBuilder;
    5      3   
           4  +
pub use crate::operation::do_nothing::_do_nothing_output::DoNothingOutputBuilder;
           5  +
    6      6   
impl crate::operation::do_nothing::builders::DoNothingInputBuilder {
    7      7   
    /// Sends a request with this input using the given client.
    8      8   
    pub async fn send_with(
    9      9   
        self,
   10     10   
        client: &crate::Client,
   11     11   
    ) -> ::std::result::Result<
   12     12   
        crate::operation::do_nothing::DoNothingOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::do_nothing::DoNothingError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/lib.rs

@@ -1,1 +44,45 @@
    5      5   
#![allow(clippy::large_enum_variant)]
    6      6   
#![allow(clippy::wrong_self_convention)]
    7      7   
#![allow(clippy::should_implement_trait)]
    8      8   
#![allow(clippy::disallowed_names)]
    9      9   
#![allow(clippy::vec_init_then_push)]
   10     10   
#![allow(clippy::type_complexity)]
   11     11   
#![allow(clippy::needless_return)]
   12     12   
#![allow(clippy::derive_partial_eq_without_eq)]
   13     13   
#![allow(clippy::result_large_err)]
   14     14   
#![allow(clippy::unnecessary_map_on_constructor)]
          15  +
#![allow(clippy::useless_conversion)]
   15     16   
#![allow(clippy::deprecated_semver)]
   16     17   
#![allow(rustdoc::bare_urls)]
   17     18   
#![allow(rustdoc::redundant_explicit_links)]
   18     19   
#![allow(rustdoc::broken_intra_doc_links)]
   19     20   
#![allow(rustdoc::invalid_html_tags)]
   20     21   
#![forbid(unsafe_code)]
   21     22   
#![warn(missing_docs)]
   22     23   
#![cfg_attr(docsrs, feature(doc_cfg))]
   23     24   
//! Confounds model generation machinery with lots of problematic names
   24     25   
//!

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/operation/err_collisions.rs

@@ -311,311 +350,350 @@
  331    331   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  332    332   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  333    333   
    ) -> Self {
  334    334   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  335    335   
            source,
  336    336   
            meta: meta.unwrap_or_default(),
  337    337   
        })
  338    338   
    }
  339    339   
}
  340    340   
  341         -
pub use crate::operation::err_collisions::_err_collisions_output::ErrCollisionsOutput;
  342         -
  343    341   
pub use crate::operation::err_collisions::_err_collisions_input::ErrCollisionsInput;
  344    342   
         343  +
pub use crate::operation::err_collisions::_err_collisions_output::ErrCollisionsOutput;
         344  +
  345    345   
mod _err_collisions_input;
  346    346   
  347    347   
mod _err_collisions_output;
  348    348   
  349    349   
/// Builders
  350    350   
pub mod builders;

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/operation/err_collisions/builders.rs

@@ -1,1 +35,35 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::operation::err_collisions::_err_collisions_output::ErrCollisionsOutputBuilder;
    3         -
    4      2   
pub use crate::operation::err_collisions::_err_collisions_input::ErrCollisionsInputBuilder;
    5      3   
           4  +
pub use crate::operation::err_collisions::_err_collisions_output::ErrCollisionsOutputBuilder;
           5  +
    6      6   
impl crate::operation::err_collisions::builders::ErrCollisionsInputBuilder {
    7      7   
    /// Sends a request with this input using the given client.
    8      8   
    pub async fn send_with(
    9      9   
        self,
   10     10   
        client: &crate::Client,
   11     11   
    ) -> ::std::result::Result<
   12     12   
        crate::operation::err_collisions::ErrCollisionsOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::err_collisions::ErrCollisionsError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/operation/match_.rs

@@ -290,290 +329,329 @@
  310    310   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  311    311   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  312    312   
    ) -> Self {
  313    313   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  314    314   
            source,
  315    315   
            meta: meta.unwrap_or_default(),
  316    316   
        })
  317    317   
    }
  318    318   
}
  319    319   
  320         -
pub use crate::operation::match_::_match_output::MatchOutput;
  321         -
  322    320   
pub use crate::operation::match_::_match_input::MatchInput;
  323    321   
         322  +
pub use crate::operation::match_::_match_output::MatchOutput;
         323  +
  324    324   
mod _match_input;
  325    325   
  326    326   
mod _match_output;
  327    327   
  328    328   
/// Builders
  329    329   
pub mod builders;

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/operation/match_/builders.rs

@@ -1,1 +35,35 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::operation::match_::_match_output::MatchOutputBuilder;
    3         -
    4      2   
pub use crate::operation::match_::_match_input::MatchInputBuilder;
    5      3   
           4  +
pub use crate::operation::match_::_match_output::MatchOutputBuilder;
           5  +
    6      6   
impl crate::operation::match_::builders::MatchInputBuilder {
    7      7   
    /// Sends a request with this input using the given client.
    8      8   
    pub async fn send_with(
    9      9   
        self,
   10     10   
        client: &crate::Client,
   11     11   
    ) -> ::std::result::Result<
   12     12   
        crate::operation::match_::MatchOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::match_::MatchError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/operation/option.rs

@@ -281,281 +320,320 @@
  301    301   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  302    302   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  303    303   
    ) -> Self {
  304    304   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  305    305   
            source,
  306    306   
            meta: meta.unwrap_or_default(),
  307    307   
        })
  308    308   
    }
  309    309   
}
  310    310   
  311         -
pub use crate::operation::option::_option_output::OptionOutput;
  312         -
  313    311   
pub use crate::operation::option::_option_input::OptionInput;
  314    312   
         313  +
pub use crate::operation::option::_option_output::OptionOutput;
         314  +
  315    315   
mod _option_input;
  316    316   
  317    317   
mod _option_output;
  318    318   
  319    319   
/// Builders
  320    320   
pub mod builders;

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/operation/option/builders.rs

@@ -1,1 +35,35 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::operation::option::_option_output::OptionOutputBuilder;
    3         -
    4      2   
pub use crate::operation::option::_option_input::OptionInputBuilder;
    5      3   
           4  +
pub use crate::operation::option::_option_output::OptionOutputBuilder;
           5  +
    6      6   
impl crate::operation::option::builders::OptionInputBuilder {
    7      7   
    /// Sends a request with this input using the given client.
    8      8   
    pub async fn send_with(
    9      9   
        self,
   10     10   
        client: &crate::Client,
   11     11   
    ) -> ::std::result::Result<
   12     12   
        crate::operation::option::OptionOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::option::OptionError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/operation/reserved_words_as_members.rs

@@ -351,351 +390,390 @@
  371    371   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  372    372   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  373    373   
    ) -> Self {
  374    374   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  375    375   
            source,
  376    376   
            meta: meta.unwrap_or_default(),
  377    377   
        })
  378    378   
    }
  379    379   
}
  380    380   
  381         -
pub use crate::operation::reserved_words_as_members::_reserved_words_as_members_output::ReservedWordsAsMembersOutput;
  382         -
  383    381   
pub use crate::operation::reserved_words_as_members::_reserved_words_as_members_input::ReservedWordsAsMembersInput;
  384    382   
         383  +
pub use crate::operation::reserved_words_as_members::_reserved_words_as_members_output::ReservedWordsAsMembersOutput;
         384  +
  385    385   
mod _reserved_words_as_members_input;
  386    386   
  387    387   
mod _reserved_words_as_members_output;
  388    388   
  389    389   
/// Builders
  390    390   
pub mod builders;

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/operation/reserved_words_as_members/builders.rs

@@ -1,1 +35,35 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::operation::reserved_words_as_members::_reserved_words_as_members_output::ReservedWordsAsMembersOutputBuilder;
    3         -
    4      2   
pub use crate::operation::reserved_words_as_members::_reserved_words_as_members_input::ReservedWordsAsMembersInputBuilder;
    5      3   
           4  +
pub use crate::operation::reserved_words_as_members::_reserved_words_as_members_output::ReservedWordsAsMembersOutputBuilder;
           5  +
    6      6   
impl crate::operation::reserved_words_as_members::builders::ReservedWordsAsMembersInputBuilder {
    7      7   
    /// Sends a request with this input using the given client.
    8      8   
    pub async fn send_with(
    9      9   
        self,
   10     10   
        client: &crate::Client,
   11     11   
    ) -> ::std::result::Result<
   12     12   
        crate::operation::reserved_words_as_members::ReservedWordsAsMembersOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::reserved_words_as_members::ReservedWordsAsMembersError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/operation/result.rs

@@ -281,281 +320,320 @@
  301    301   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  302    302   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  303    303   
    ) -> Self {
  304    304   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  305    305   
            source,
  306    306   
            meta: meta.unwrap_or_default(),
  307    307   
        })
  308    308   
    }
  309    309   
}
  310    310   
  311         -
pub use crate::operation::result::_result_output::ResultOutput;
  312         -
  313    311   
pub use crate::operation::result::_result_input::ResultInput;
  314    312   
         313  +
pub use crate::operation::result::_result_output::ResultOutput;
         314  +
  315    315   
mod _result_input;
  316    316   
  317    317   
mod _result_output;
  318    318   
  319    319   
/// Builders
  320    320   
pub mod builders;

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/operation/result/builders.rs

@@ -1,1 +35,35 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::operation::result::_result_output::ResultOutputBuilder;
    3         -
    4      2   
pub use crate::operation::result::_result_input::ResultInputBuilder;
    5      3   
           4  +
pub use crate::operation::result::_result_output::ResultOutputBuilder;
           5  +
    6      6   
impl crate::operation::result::builders::ResultInputBuilder {
    7      7   
    /// Sends a request with this input using the given client.
    8      8   
    pub async fn send_with(
    9      9   
        self,
   10     10   
        client: &crate::Client,
   11     11   
    ) -> ::std::result::Result<
   12     12   
        crate::operation::result::ResultOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::result::ResultError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/operation/rpc_echo.rs

@@ -298,298 +337,337 @@
  318    318   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  319    319   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  320    320   
    ) -> Self {
  321    321   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  322    322   
            source,
  323    323   
            meta: meta.unwrap_or_default(),
  324    324   
        })
  325    325   
    }
  326    326   
}
  327    327   
  328         -
pub use crate::operation::rpc_echo::_rpc_echo_output::RpcEchoOutput;
  329         -
  330    328   
pub use crate::operation::rpc_echo::_rpc_echo_input::RpcEchoInput;
  331    329   
         330  +
pub use crate::operation::rpc_echo::_rpc_echo_output::RpcEchoOutput;
         331  +
  332    332   
mod _rpc_echo_input;
  333    333   
  334    334   
mod _rpc_echo_output;
  335    335   
  336    336   
/// Builders
  337    337   
pub mod builders;

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/operation/rpc_echo/builders.rs

@@ -1,1 +35,35 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::operation::rpc_echo::_rpc_echo_output::RpcEchoOutputBuilder;
    3         -
    4      2   
pub use crate::operation::rpc_echo::_rpc_echo_input::RpcEchoInputBuilder;
    5      3   
           4  +
pub use crate::operation::rpc_echo::_rpc_echo_output::RpcEchoOutputBuilder;
           5  +
    6      6   
impl crate::operation::rpc_echo::builders::RpcEchoInputBuilder {
    7      7   
    /// Sends a request with this input using the given client.
    8      8   
    pub async fn send_with(
    9      9   
        self,
   10     10   
        client: &crate::Client,
   11     11   
    ) -> ::std::result::Result<
   12     12   
        crate::operation::rpc_echo::RpcEchoOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::rpc_echo::RPCEchoError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/operation/structure_name_punning.rs

@@ -340,340 +379,379 @@
  360    360   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  361    361   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  362    362   
    ) -> Self {
  363    363   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  364    364   
            source,
  365    365   
            meta: meta.unwrap_or_default(),
  366    366   
        })
  367    367   
    }
  368    368   
}
  369    369   
  370         -
pub use crate::operation::structure_name_punning::_structure_name_punning_output::StructureNamePunningOutput;
  371         -
  372    370   
pub use crate::operation::structure_name_punning::_structure_name_punning_input::StructureNamePunningInput;
  373    371   
         372  +
pub use crate::operation::structure_name_punning::_structure_name_punning_output::StructureNamePunningOutput;
         373  +
  374    374   
mod _structure_name_punning_input;
  375    375   
  376    376   
mod _structure_name_punning_output;
  377    377   
  378    378   
/// Builders
  379    379   
pub mod builders;