Client Test

Client Test

rev. d838bf488731ae5e751cce0fe13f339a5b9be858 (ignoring whitespace)

Files changed:

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;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/streaming_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::streaming_operation::_streaming_operation_output::StreamingOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::streaming_operation::_streaming_operation_input::StreamingOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::streaming_operation::_streaming_operation_output::StreamingOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::streaming_operation::builders::StreamingOperationInputBuilder {
    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::streaming_operation::StreamingOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::streaming_operation::StreamingOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -347,347 +386,386 @@
  367    367   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  368    368   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  369    369   
    ) -> Self {
  370    370   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  371    371   
            source,
  372    372   
            meta: meta.unwrap_or_default(),
  373    373   
        })
  374    374   
    }
  375    375   
}
  376    376   
  377         -
pub use crate::operation::streaming_operation_with_initial_data::_streaming_operation_with_initial_data_output::StreamingOperationWithInitialDataOutput;
  378         -
  379    377   
pub use crate::operation::streaming_operation_with_initial_data::_streaming_operation_with_initial_data_input::StreamingOperationWithInitialDataInput;
  380    378   
         379  +
pub use crate::operation::streaming_operation_with_initial_data::_streaming_operation_with_initial_data_output::StreamingOperationWithInitialDataOutput;
         380  +
  381    381   
mod _streaming_operation_with_initial_data_input;
  382    382   
  383    383   
mod _streaming_operation_with_initial_data_output;
  384    384   
  385    385   
/// Builders
  386    386   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/streaming_operation_with_initial_data/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::streaming_operation_with_initial_data::_streaming_operation_with_initial_data_output::StreamingOperationWithInitialDataOutputBuilder;
    3         -
    4      2   
pub use crate::operation::streaming_operation_with_initial_data::_streaming_operation_with_initial_data_input::StreamingOperationWithInitialDataInputBuilder;
    5      3   
           4  +
pub use crate::operation::streaming_operation_with_initial_data::_streaming_operation_with_initial_data_output::StreamingOperationWithInitialDataOutputBuilder;
           5  +
    6      6   
impl crate::operation::streaming_operation_with_initial_data::builders::StreamingOperationWithInitialDataInputBuilder {
    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::streaming_operation_with_initial_data::StreamingOperationWithInitialDataOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::streaming_operation_with_initial_data::StreamingOperationWithInitialDataError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -344,344 +383,383 @@
  364    364   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  365    365   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  366    366   
    ) -> Self {
  367    367   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  368    368   
            source,
  369    369   
            meta: meta.unwrap_or_default(),
  370    370   
        })
  371    371   
    }
  372    372   
}
  373    373   
  374         -
pub use crate::operation::streaming_operation_with_initial_response::_streaming_operation_with_initial_response_output::StreamingOperationWithInitialResponseOutput;
  375         -
  376    374   
pub use crate::operation::streaming_operation_with_initial_response::_streaming_operation_with_initial_response_input::StreamingOperationWithInitialResponseInput;
  377    375   
         376  +
pub use crate::operation::streaming_operation_with_initial_response::_streaming_operation_with_initial_response_output::StreamingOperationWithInitialResponseOutput;
         377  +
  378    378   
mod _streaming_operation_with_initial_response_input;
  379    379   
  380    380   
mod _streaming_operation_with_initial_response_output;
  381    381   
  382    382   
/// Builders
  383    383   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/streaming_operation_with_initial_response/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::streaming_operation_with_initial_response::_streaming_operation_with_initial_response_output::StreamingOperationWithInitialResponseOutputBuilder;
    3         -
    4      2   
pub use crate::operation::streaming_operation_with_initial_response::_streaming_operation_with_initial_response_input::StreamingOperationWithInitialResponseInputBuilder;
    5      3   
           4  +
pub use crate::operation::streaming_operation_with_initial_response::_streaming_operation_with_initial_response_output::StreamingOperationWithInitialResponseOutputBuilder;
           5  +
    6      6   
impl crate::operation::streaming_operation_with_initial_response::builders::StreamingOperationWithInitialResponseInputBuilder {
    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::streaming_operation_with_initial_response::StreamingOperationWithInitialResponseOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::streaming_operation_with_initial_response::StreamingOperationWithInitialResponseError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -347,347 +386,386 @@
  367    367   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  368    368   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  369    369   
    ) -> Self {
  370    370   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  371    371   
            source,
  372    372   
            meta: meta.unwrap_or_default(),
  373    373   
        })
  374    374   
    }
  375    375   
}
  376    376   
  377         -
pub use crate::operation::streaming_operation_with_optional_data::_streaming_operation_with_optional_data_output::StreamingOperationWithOptionalDataOutput;
  378         -
  379    377   
pub use crate::operation::streaming_operation_with_optional_data::_streaming_operation_with_optional_data_input::StreamingOperationWithOptionalDataInput;
  380    378   
         379  +
pub use crate::operation::streaming_operation_with_optional_data::_streaming_operation_with_optional_data_output::StreamingOperationWithOptionalDataOutput;
         380  +
  381    381   
mod _streaming_operation_with_optional_data_input;
  382    382   
  383    383   
mod _streaming_operation_with_optional_data_output;
  384    384   
  385    385   
/// Builders
  386    386   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/streaming_operation_with_optional_data/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::streaming_operation_with_optional_data::_streaming_operation_with_optional_data_output::StreamingOperationWithOptionalDataOutputBuilder;
    3         -
    4      2   
pub use crate::operation::streaming_operation_with_optional_data::_streaming_operation_with_optional_data_input::StreamingOperationWithOptionalDataInputBuilder;
    5      3   
           4  +
pub use crate::operation::streaming_operation_with_optional_data::_streaming_operation_with_optional_data_output::StreamingOperationWithOptionalDataOutputBuilder;
           5  +
    6      6   
impl crate::operation::streaming_operation_with_optional_data::builders::StreamingOperationWithOptionalDataInputBuilder {
    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::streaming_operation_with_optional_data::StreamingOperationWithOptionalDataOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::streaming_operation_with_optional_data::StreamingOperationWithOptionalDataError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -1,1 +58,58 @@
    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         -
pub use crate::types::_events::Events;
           2  +
pub use crate::types::_suit::Suit;
    5      3   
    6         -
pub use crate::types::_event::Event;
           4  +
pub use crate::types::_simple_struct::SimpleStruct;
    7      5   
    8         -
pub use crate::types::_recursive_operation_input_output_nested1::RecursiveOperationInputOutputNested1;
           6  +
pub use crate::types::_empty_struct::EmptyStruct;
    9      7   
   10         -
pub use crate::types::_foo_choice::FooChoice;
           8  +
pub use crate::types::_simple_union::SimpleUnion;
   11      9   
   12         -
pub use crate::types::_recursive_operation_input_output_nested2::RecursiveOperationInputOutputNested2;
          10  +
pub use crate::types::_unit_union::UnitUnion;
   13     11   
   14     12   
pub use crate::types::_complex_union::ComplexUnion;
   15     13   
   16         -
pub use crate::types::_simple_union::SimpleUnion;
          14  +
pub use crate::types::_recursive_operation_input_output_nested1::RecursiveOperationInputOutputNested1;
   17     15   
   18         -
pub use crate::types::_unit::Unit;
          16  +
pub use crate::types::_events::Events;
   19     17   
   20         -
pub use crate::types::_simple_struct::SimpleStruct;
          18  +
pub use crate::types::_validation_exception_field::ValidationExceptionField;
   21     19   
   22         -
pub use crate::types::_suit::Suit;
          20  +
pub use crate::types::_unit::Unit;
   23     21   
   24     22   
pub use crate::types::_complex_struct::ComplexStruct;
   25     23   
   26         -
pub use crate::types::_unit_union::UnitUnion;
          24  +
pub use crate::types::_recursive_operation_input_output_nested2::RecursiveOperationInputOutputNested2;
   27     25   
   28         -
pub use crate::types::_empty_struct::EmptyStruct;
          26  +
pub use crate::types::_foo_choice::FooChoice;
          27  +
          28  +
pub use crate::types::_event::Event;
   29     29   
   30     30   
mod _complex_struct;
   31     31   
   32     32   
mod _complex_union;
   33     33   
   34     34   
mod _empty_struct;
   35     35   
   36     36   
mod _event;
   37     37   
   38     38   
mod _events;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/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::_simple_struct::SimpleStructBuilder;
    3      3   
    4         -
pub use crate::types::_event::EventBuilder;
           4  +
pub use crate::types::_empty_struct::EmptyStructBuilder;
    5      5   
    6      6   
pub use crate::types::_recursive_operation_input_output_nested1::RecursiveOperationInputOutputNested1Builder;
    7      7   
    8         -
pub use crate::types::_recursive_operation_input_output_nested2::RecursiveOperationInputOutputNested2Builder;
           8  +
pub use crate::types::_validation_exception_field::ValidationExceptionFieldBuilder;
    9      9   
   10     10   
pub use crate::types::_unit::UnitBuilder;
   11     11   
   12         -
pub use crate::types::_simple_struct::SimpleStructBuilder;
   13         -
   14     12   
pub use crate::types::_complex_struct::ComplexStructBuilder;
   15     13   
   16         -
pub use crate::types::_empty_struct::EmptyStructBuilder;
          14  +
pub use crate::types::_recursive_operation_input_output_nested2::RecursiveOperationInputOutputNested2Builder;
          15  +
          16  +
pub use crate::types::_event::EventBuilder;