Client Test

Client Test

rev. d838bf488731ae5e751cce0fe13f339a5b9be858 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/rpc_v2_cbor_sparse_maps/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_v2_cbor_sparse_maps::_rpc_v2_cbor_sparse_maps_output::RpcV2CborSparseMapsOutputBuilder;
    3         -
    4      2   
pub use crate::operation::rpc_v2_cbor_sparse_maps::_rpc_v2_cbor_sparse_maps_input::RpcV2CborSparseMapsInputBuilder;
    5      3   
           4  +
pub use crate::operation::rpc_v2_cbor_sparse_maps::_rpc_v2_cbor_sparse_maps_output::RpcV2CborSparseMapsOutputBuilder;
           5  +
    6      6   
impl crate::operation::rpc_v2_cbor_sparse_maps::builders::RpcV2CborSparseMapsInputBuilder {
    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_v2_cbor_sparse_maps::RpcV2CborSparseMapsOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/simple_scalar_properties.rs

@@ -1193,1193 +1232,1232 @@
 1213   1213   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
 1214   1214   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
 1215   1215   
    ) -> Self {
 1216   1216   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
 1217   1217   
            source,
 1218   1218   
            meta: meta.unwrap_or_default(),
 1219   1219   
        })
 1220   1220   
    }
 1221   1221   
}
 1222   1222   
 1223         -
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_output::SimpleScalarPropertiesOutput;
 1224         -
 1225   1223   
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_input::SimpleScalarPropertiesInput;
 1226   1224   
        1225  +
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_output::SimpleScalarPropertiesOutput;
        1226  +
 1227   1227   
mod _simple_scalar_properties_input;
 1228   1228   
 1229   1229   
mod _simple_scalar_properties_output;
 1230   1230   
 1231   1231   
/// Builders
 1232   1232   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/simple_scalar_properties/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::simple_scalar_properties::_simple_scalar_properties_output::SimpleScalarPropertiesOutputBuilder;
    3         -
    4      2   
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_input::SimpleScalarPropertiesInputBuilder;
    5      3   
           4  +
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_output::SimpleScalarPropertiesOutputBuilder;
           5  +
    6      6   
impl crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesInputBuilder {
    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::simple_scalar_properties::SimpleScalarPropertiesOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/sparse_nulls_operation.rs

@@ -504,504 +543,543 @@
  524    524   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  525    525   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  526    526   
    ) -> Self {
  527    527   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  528    528   
            source,
  529    529   
            meta: meta.unwrap_or_default(),
  530    530   
        })
  531    531   
    }
  532    532   
}
  533    533   
  534         -
pub use crate::operation::sparse_nulls_operation::_sparse_nulls_operation_output::SparseNullsOperationOutput;
  535         -
  536    534   
pub use crate::operation::sparse_nulls_operation::_sparse_nulls_operation_input::SparseNullsOperationInput;
  537    535   
         536  +
pub use crate::operation::sparse_nulls_operation::_sparse_nulls_operation_output::SparseNullsOperationOutput;
         537  +
  538    538   
mod _sparse_nulls_operation_input;
  539    539   
  540    540   
mod _sparse_nulls_operation_output;
  541    541   
  542    542   
/// Builders
  543    543   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/sparse_nulls_operation/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::sparse_nulls_operation::_sparse_nulls_operation_output::SparseNullsOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::sparse_nulls_operation::_sparse_nulls_operation_input::SparseNullsOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::sparse_nulls_operation::_sparse_nulls_operation_output::SparseNullsOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::sparse_nulls_operation::builders::SparseNullsOperationInputBuilder {
    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::sparse_nulls_operation::SparseNullsOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::sparse_nulls_operation::SparseNullsOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -1,1 +46,46 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::_validation_exception_field::ValidationExceptionField;
           2  +
pub use crate::types::_recursive_shapes_input_output_nested1::RecursiveShapesInputOutputNested1;
    3      3   
    4         -
pub use crate::types::_test_enum::TestEnum;
           4  +
pub use crate::types::_complex_nested_error_data::ComplexNestedErrorData;
           5  +
           6  +
pub use crate::types::_defaults::Defaults;
    5      7   
    6      8   
pub use crate::types::_client_optional_defaults::ClientOptionalDefaults;
    7      9   
    8         -
pub use crate::types::_defaults::Defaults;
          10  +
pub use crate::types::_test_enum::TestEnum;
    9     11   
   10         -
pub use crate::types::_complex_nested_error_data::ComplexNestedErrorData;
          12  +
pub use crate::types::_foo_enum::FooEnum;
   11     13   
   12         -
pub use crate::types::_recursive_shapes_input_output_nested1::RecursiveShapesInputOutputNested1;
          14  +
pub use crate::types::_structure_list_member::StructureListMember;
   13     15   
   14         -
pub use crate::types::_recursive_shapes_input_output_nested2::RecursiveShapesInputOutputNested2;
          16  +
pub use crate::types::_validation_exception_field::ValidationExceptionField;
   15     17   
   16     18   
pub use crate::types::_greeting_struct::GreetingStruct;
   17     19   
   18         -
pub use crate::types::_structure_list_member::StructureListMember;
   19         -
   20         -
pub use crate::types::_foo_enum::FooEnum;
          20  +
pub use crate::types::_recursive_shapes_input_output_nested2::RecursiveShapesInputOutputNested2;
   21     21   
   22     22   
mod _client_optional_defaults;
   23     23   
   24     24   
mod _complex_nested_error_data;
   25     25   
   26     26   
mod _defaults;
   27     27   
   28     28   
mod _foo_enum;
   29     29   
   30     30   
mod _greeting_struct;

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

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

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/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::ValidationError;
    3      3   
    4         -
pub use crate::types::error::_complex_error::ComplexError;
    5         -
    6      4   
pub use crate::types::error::_invalid_greeting::InvalidGreeting;
    7      5   
           6  +
pub use crate::types::error::_complex_error::ComplexError;
           7  +
    8      8   
mod _complex_error;
    9      9   
   10     10   
mod _invalid_greeting;
   11     11   
   12     12   
mod _validation_exception;
   13     13   
   14     14   
/// Builders
   15     15   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/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::ValidationErrorBuilder;
    3      3   
    4         -
pub use crate::types::error::_complex_error::ComplexErrorBuilder;
    5         -
    6      4   
pub use crate::types::error::_invalid_greeting::InvalidGreetingBuilder;
           5  +
           6  +
pub use crate::types::error::_complex_error::ComplexErrorBuilder;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/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   
//! rpcv2cbor_extras
   24     25   
//!

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

@@ -317,317 +356,356 @@
  337    337   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  338    338   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  339    339   
    ) -> Self {
  340    340   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  341    341   
            source,
  342    342   
            meta: meta.unwrap_or_default(),
  343    343   
        })
  344    344   
    }
  345    345   
}
  346    346   
  347         -
pub use crate::operation::complex_struct_operation::_complex_struct_operation_output::ComplexStructOperationOutput;
  348         -
  349    347   
pub use crate::operation::complex_struct_operation::_complex_struct_operation_input::ComplexStructOperationInput;
  350    348   
         349  +
pub use crate::operation::complex_struct_operation::_complex_struct_operation_output::ComplexStructOperationOutput;
         350  +
  351    351   
mod _complex_struct_operation_input;
  352    352   
  353    353   
mod _complex_struct_operation_output;
  354    354   
  355    355   
/// Builders
  356    356   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/complex_struct_operation/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::complex_struct_operation::_complex_struct_operation_output::ComplexStructOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::complex_struct_operation::_complex_struct_operation_input::ComplexStructOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::complex_struct_operation::_complex_struct_operation_output::ComplexStructOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::complex_struct_operation::builders::ComplexStructOperationInputBuilder {
    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::complex_struct_operation::ComplexStructOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::complex_struct_operation::ComplexStructOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -307,307 +346,346 @@
  327    327   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  328    328   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  329    329   
    ) -> Self {
  330    330   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  331    331   
            source,
  332    332   
            meta: meta.unwrap_or_default(),
  333    333   
        })
  334    334   
    }
  335    335   
}
  336    336   
  337         -
pub use crate::operation::empty_struct_operation::_empty_struct_operation_output::EmptyStructOperationOutput;
  338         -
  339    337   
pub use crate::operation::empty_struct_operation::_empty_struct_operation_input::EmptyStructOperationInput;
  340    338   
         339  +
pub use crate::operation::empty_struct_operation::_empty_struct_operation_output::EmptyStructOperationOutput;
         340  +
  341    341   
mod _empty_struct_operation_input;
  342    342   
  343    343   
mod _empty_struct_operation_output;
  344    344   
  345    345   
/// Builders
  346    346   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/empty_struct_operation/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::empty_struct_operation::_empty_struct_operation_output::EmptyStructOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::empty_struct_operation::_empty_struct_operation_input::EmptyStructOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::empty_struct_operation::_empty_struct_operation_output::EmptyStructOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::empty_struct_operation::builders::EmptyStructOperationInputBuilder {
    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::empty_struct_operation::EmptyStructOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::empty_struct_operation::EmptyStructOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -370,370 +409,409 @@
  390    390   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  391    391   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  392    392   
    ) -> Self {
  393    393   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  394    394   
            source,
  395    395   
            meta: meta.unwrap_or_default(),
  396    396   
        })
  397    397   
    }
  398    398   
}
  399    399   
  400         -
pub use crate::operation::error_serialization_operation::_error_serialization_operation_output::ErrorSerializationOperationOutput;
  401         -
  402    400   
pub use crate::operation::error_serialization_operation::_error_serialization_operation_input::ErrorSerializationOperationInput;
  403    401   
         402  +
pub use crate::operation::error_serialization_operation::_error_serialization_operation_output::ErrorSerializationOperationOutput;
         403  +
  404    404   
mod _error_serialization_operation_input;
  405    405   
  406    406   
mod _error_serialization_operation_output;
  407    407   
  408    408   
/// Builders
  409    409   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/error_serialization_operation/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::error_serialization_operation::_error_serialization_operation_output::ErrorSerializationOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::error_serialization_operation::_error_serialization_operation_input::ErrorSerializationOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::error_serialization_operation::_error_serialization_operation_output::ErrorSerializationOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::error_serialization_operation::builders::ErrorSerializationOperationInputBuilder {
    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::error_serialization_operation::ErrorSerializationOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::error_serialization_operation::ErrorSerializationOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,