Client Test

Client Test

rev. 7254d43655ed63111c94f599437f2b0d3f55446e (ignoring whitespace)

Files changed:

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

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

@@ -391,391 +430,430 @@
  411    411   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  412    412   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  413    413   
    ) -> Self {
  414    414   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  415    415   
            source,
  416    416   
            meta: meta.unwrap_or_default(),
  417    417   
        })
  418    418   
    }
  419    419   
}
  420    420   
  421         -
pub use crate::operation::recursive_union_operation::_recursive_union_operation_output::RecursiveUnionOperationOutput;
  422         -
  423    421   
pub use crate::operation::recursive_union_operation::_recursive_union_operation_input::RecursiveUnionOperationInput;
  424    422   
         423  +
pub use crate::operation::recursive_union_operation::_recursive_union_operation_output::RecursiveUnionOperationOutput;
         424  +
  425    425   
mod _recursive_union_operation_input;
  426    426   
  427    427   
mod _recursive_union_operation_output;
  428    428   
  429    429   
/// Builders
  430    430   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/recursive_union_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::recursive_union_operation::_recursive_union_operation_output::RecursiveUnionOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::recursive_union_operation::_recursive_union_operation_input::RecursiveUnionOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::recursive_union_operation::_recursive_union_operation_output::RecursiveUnionOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::recursive_union_operation::builders::RecursiveUnionOperationInputBuilder {
    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::recursive_union_operation::RecursiveUnionOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::recursive_union_operation::RecursiveUnionOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -607,607 +646,646 @@
  627    627   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  628    628   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  629    629   
    ) -> Self {
  630    630   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  631    631   
            source,
  632    632   
            meta: meta.unwrap_or_default(),
  633    633   
        })
  634    634   
    }
  635    635   
}
  636    636   
  637         -
pub use crate::operation::simple_struct_operation::_simple_struct_operation_output::SimpleStructOperationOutput;
  638         -
  639    637   
pub use crate::operation::simple_struct_operation::_simple_struct_operation_input::SimpleStructOperationInput;
  640    638   
         639  +
pub use crate::operation::simple_struct_operation::_simple_struct_operation_output::SimpleStructOperationOutput;
         640  +
  641    641   
mod _simple_struct_operation_input;
  642    642   
  643    643   
mod _simple_struct_operation_output;
  644    644   
  645    645   
/// Builders
  646    646   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/simple_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::simple_struct_operation::_simple_struct_operation_output::SimpleStructOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::simple_struct_operation::_simple_struct_operation_input::SimpleStructOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::simple_struct_operation::_simple_struct_operation_output::SimpleStructOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::simple_struct_operation::builders::SimpleStructOperationInputBuilder {
    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_struct_operation::SimpleStructOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::simple_struct_operation::SimpleStructOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/single_member_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::single_member_struct_operation::_single_member_struct_operation_output::SingleMemberStructOperationOutput;
  338         -
  339    337   
pub use crate::operation::single_member_struct_operation::_single_member_struct_operation_input::SingleMemberStructOperationInput;
  340    338   
         339  +
pub use crate::operation::single_member_struct_operation::_single_member_struct_operation_output::SingleMemberStructOperationOutput;
         340  +
  341    341   
mod _single_member_struct_operation_input;
  342    342   
  343    343   
mod _single_member_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/single_member_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::single_member_struct_operation::_single_member_struct_operation_output::SingleMemberStructOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::single_member_struct_operation::_single_member_struct_operation_input::SingleMemberStructOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::single_member_struct_operation::_single_member_struct_operation_output::SingleMemberStructOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::single_member_struct_operation::builders::SingleMemberStructOperationInputBuilder {
    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::single_member_struct_operation::SingleMemberStructOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::single_member_struct_operation::SingleMemberStructOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

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