Client Test

Client Test

rev. 7254d43655ed63111c94f599437f2b0d3f55446e

Files changed:

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;

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/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/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;