Client Test

Client Test

rev. d838bf488731ae5e751cce0fe13f339a5b9be858 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/operation/structure_name_punning/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::structure_name_punning::_structure_name_punning_output::StructureNamePunningOutputBuilder;
    3         -
    4      2   
pub use crate::operation::structure_name_punning::_structure_name_punning_input::StructureNamePunningInputBuilder;
    5      3   
           4  +
pub use crate::operation::structure_name_punning::_structure_name_punning_output::StructureNamePunningOutputBuilder;
           5  +
    6      6   
impl crate::operation::structure_name_punning::builders::StructureNamePunningInputBuilder {
    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::structure_name_punning::StructureNamePunningOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::structure_name_punning::StructureNamePunningError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -1,1 +18,18 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::_validation_exception_field::ValidationExceptionField;
    3         -
    4      2   
pub use crate::types::_unknown_variant_colliding_enum::UnknownVariantCollidingEnum;
    5      3   
    6      4   
pub use crate::types::_vec::Vec;
    7      5   
           6  +
pub use crate::types::_validation_exception_field::ValidationExceptionField;
           7  +
    8      8   
mod _unknown_variant_colliding_enum;
    9      9   
   10     10   
mod _validation_exception_field;
   11     11   
   12     12   
mod _vec;
   13     13   
   14     14   
/// Builders
   15     15   
pub mod builders;
   16     16   
   17     17   
/// Error types that the service can respond with.

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

@@ -1,1 +0,4 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::_validation_exception_field::ValidationExceptionFieldBuilder;
    3         -
    4      2   
pub use crate::types::_vec::VecBuilder;
           3  +
           4  +
pub use crate::types::_validation_exception_field::ValidationExceptionFieldBuilder;

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

@@ -1,1 +15,15 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub use crate::types::error::_validation_exception::ValidationException;
    3      3   
    4         -
pub use crate::types::error::_colliding_exception::CollidingException;
    5         -
    6      4   
pub use crate::types::error::_colliding_error::CollidingError;
    7      5   
           6  +
pub use crate::types::error::_colliding_exception::CollidingException;
           7  +
    8      8   
mod _colliding_error;
    9      9   
   10     10   
mod _colliding_exception;
   11     11   
   12     12   
mod _validation_exception;
   13     13   
   14     14   
/// Builders
   15     15   
pub mod builders;

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

@@ -1,1 +0,6 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub use crate::types::error::_validation_exception::ValidationExceptionBuilder;
    3      3   
    4         -
pub use crate::types::error::_colliding_exception::CollidingExceptionBuilder;
    5         -
    6      4   
pub use crate::types::error::_colliding_error::CollidingErrorBuilder;
           5  +
           6  +
pub use crate::types::error::_colliding_exception::CollidingExceptionBuilder;

tmp-codegen-diff/codegen-client-test/naming_test_structs/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_structs/rust-client-codegen/src/operation/structs.rs

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

tmp-codegen-diff/codegen-client-test/naming_test_structs/rust-client-codegen/src/operation/structs/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::structs::_structs_output::StructsOutputBuilder;
    3         -
    4      2   
pub use crate::operation::structs::_structs_input::StructsInputBuilder;
    5      3   
           4  +
pub use crate::operation::structs::_structs_output::StructsOutputBuilder;
           5  +
    6      6   
impl crate::operation::structs::builders::StructsInputBuilder {
    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::structs::StructsOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::structs::StructsError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -1,1 +19,19 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::_something_else::SomethingElse;
    3         -
    4         -
pub use crate::types::_some_union::SomeUnion;
           2  +
pub use crate::types::_result::Result;
    5      3   
    6      4   
pub use crate::types::_option::Option;
    7      5   
    8         -
pub use crate::types::_result::Result;
           6  +
pub use crate::types::_something_else::SomethingElse;
           7  +
           8  +
pub use crate::types::_some_union::SomeUnion;
    9      9   
   10     10   
mod _option;
   11     11   
   12     12   
mod _result;
   13     13   
   14     14   
mod _some_union;
   15     15   
   16     16   
mod _something_else;
   17     17   
   18     18   
/// Builders

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

@@ -1,1 +0,6 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::_something_else::SomethingElseBuilder;
           2  +
pub use crate::types::_result::ResultBuilder;
    3      3   
    4      4   
pub use crate::types::_option::OptionBuilder;
    5      5   
    6         -
pub use crate::types::_result::ResultBuilder;
           6  +
pub use crate::types::_something_else::SomethingElseBuilder;

tmp-codegen-diff/codegen-client-test/pokemon-service-awsjson-client/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   
//! The Pokémon Service allows you to retrieve information about Pokémon species.
   24     25   
//!

tmp-codegen-diff/codegen-client-test/pokemon-service-awsjson-client/rust-client-codegen/src/operation/capture_pokemon.rs

@@ -367,367 +406,406 @@
  387    387   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  388    388   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  389    389   
    ) -> Self {
  390    390   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  391    391   
            source,
  392    392   
            meta: meta.unwrap_or_default(),
  393    393   
        })
  394    394   
    }
  395    395   
}
  396    396   
  397         -
pub use crate::operation::capture_pokemon::_capture_pokemon_output::CapturePokemonOutput;
  398         -
  399    397   
pub use crate::operation::capture_pokemon::_capture_pokemon_input::CapturePokemonInput;
  400    398   
         399  +
pub use crate::operation::capture_pokemon::_capture_pokemon_output::CapturePokemonOutput;
         400  +
  401    401   
mod _capture_pokemon_input;
  402    402   
  403    403   
mod _capture_pokemon_output;
  404    404   
  405    405   
/// Builders
  406    406   
pub mod builders;

tmp-codegen-diff/codegen-client-test/pokemon-service-awsjson-client/rust-client-codegen/src/operation/capture_pokemon/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::capture_pokemon::_capture_pokemon_output::CapturePokemonOutputBuilder;
    3         -
    4      2   
pub use crate::operation::capture_pokemon::_capture_pokemon_input::CapturePokemonInputBuilder;
    5      3   
           4  +
pub use crate::operation::capture_pokemon::_capture_pokemon_output::CapturePokemonOutputBuilder;
           5  +
    6      6   
impl crate::operation::capture_pokemon::builders::CapturePokemonInputBuilder {
    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::capture_pokemon::CapturePokemonOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::capture_pokemon::CapturePokemonError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/pokemon-service-awsjson-client/rust-client-codegen/src/operation/check_health.rs

@@ -294,294 +333,333 @@
  314    314   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  315    315   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  316    316   
    ) -> Self {
  317    317   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  318    318   
            source,
  319    319   
            meta: meta.unwrap_or_default(),
  320    320   
        })
  321    321   
    }
  322    322   
}
  323    323   
  324         -
pub use crate::operation::check_health::_check_health_output::CheckHealthOutput;
  325         -
  326    324   
pub use crate::operation::check_health::_check_health_input::CheckHealthInput;
  327    325   
         326  +
pub use crate::operation::check_health::_check_health_output::CheckHealthOutput;
         327  +
  328    328   
mod _check_health_input;
  329    329   
  330    330   
mod _check_health_output;
  331    331   
  332    332   
/// Builders
  333    333   
pub mod builders;

tmp-codegen-diff/codegen-client-test/pokemon-service-awsjson-client/rust-client-codegen/src/operation/check_health/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::check_health::_check_health_output::CheckHealthOutputBuilder;
    3         -
    4      2   
pub use crate::operation::check_health::_check_health_input::CheckHealthInputBuilder;
    5      3   
           4  +
pub use crate::operation::check_health::_check_health_output::CheckHealthOutputBuilder;
           5  +
    6      6   
impl crate::operation::check_health::builders::CheckHealthInputBuilder {
    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::check_health::CheckHealthOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::check_health::CheckHealthError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/pokemon-service-awsjson-client/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;