Client Test

Client Test

rev. d838bf488731ae5e751cce0fe13f339a5b9be858

Files changed:

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/operation/query_incompatible_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::query_incompatible_operation::_query_incompatible_operation_output::QueryIncompatibleOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::query_incompatible_operation::_query_incompatible_operation_input::QueryIncompatibleOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::query_incompatible_operation::_query_incompatible_operation_output::QueryIncompatibleOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::query_incompatible_operation::builders::QueryIncompatibleOperationInputBuilder {
    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::query_incompatible_operation::QueryIncompatibleOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::query_incompatible_operation::QueryIncompatibleOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -617,617 +656,656 @@
  637    637   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  638    638   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  639    639   
    ) -> Self {
  640    640   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  641    641   
            source,
  642    642   
            meta: meta.unwrap_or_default(),
  643    643   
        })
  644    644   
    }
  645    645   
}
  646    646   
  647         -
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_output::SimpleScalarPropertiesOutput;
  648         -
  649    647   
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_input::SimpleScalarPropertiesInput;
  650    648   
         649  +
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_output::SimpleScalarPropertiesOutput;
         650  +
  651    651   
mod _simple_scalar_properties_input;
  652    652   
  653    653   
mod _simple_scalar_properties_output;
  654    654   
  655    655   
/// Builders
  656    656   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc10/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/json_rpc10/rust-client-codegen/src/types.rs

@@ -1,1 +50,50 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::_required_enum::RequiredEnum;
           2  +
pub use crate::types::_complex_nested_error_data::ComplexNestedErrorData;
    3      3   
    4         -
pub use crate::types::_dialog::Dialog;
           4  +
pub use crate::types::_my_union::MyUnion;
    5      5   
    6         -
pub use crate::types::_farewell::Farewell;
           6  +
pub use crate::types::_defaults::Defaults;
    7      7   
    8         -
pub use crate::types::_top_level::TopLevel;
           8  +
pub use crate::types::_client_optional_defaults::ClientOptionalDefaults;
    9      9   
   10     10   
pub use crate::types::_test_enum::TestEnum;
   11     11   
   12         -
pub use crate::types::_client_optional_defaults::ClientOptionalDefaults;
   13         -
   14         -
pub use crate::types::_defaults::Defaults;
          12  +
pub use crate::types::_top_level::TopLevel;
   15     13   
   16         -
pub use crate::types::_my_union::MyUnion;
          14  +
pub use crate::types::_dialog::Dialog;
   17     15   
   18         -
pub use crate::types::_greeting_struct::GreetingStruct;
          16  +
pub use crate::types::_required_enum::RequiredEnum;
   19     17   
   20     18   
pub use crate::types::_foo_enum::FooEnum;
   21     19   
   22         -
pub use crate::types::_complex_nested_error_data::ComplexNestedErrorData;
          20  +
pub use crate::types::_greeting_struct::GreetingStruct;
          21  +
          22  +
pub use crate::types::_farewell::Farewell;
   23     23   
   24     24   
mod _client_optional_defaults;
   25     25   
   26     26   
mod _complex_nested_error_data;
   27     27   
   28     28   
mod _defaults;
   29     29   
   30     30   
mod _dialog;
   31     31   
   32     32   
mod _farewell;

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

@@ -1,1 +0,14 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::_dialog::DialogBuilder;
    3         -
    4         -
pub use crate::types::_farewell::FarewellBuilder;
           2  +
pub use crate::types::_complex_nested_error_data::ComplexNestedErrorDataBuilder;
    5      3   
    6         -
pub use crate::types::_top_level::TopLevelBuilder;
           4  +
pub use crate::types::_defaults::DefaultsBuilder;
    7      5   
    8      6   
pub use crate::types::_client_optional_defaults::ClientOptionalDefaultsBuilder;
    9      7   
   10         -
pub use crate::types::_defaults::DefaultsBuilder;
           8  +
pub use crate::types::_top_level::TopLevelBuilder;
           9  +
          10  +
pub use crate::types::_dialog::DialogBuilder;
   11     11   
   12     12   
pub use crate::types::_greeting_struct::GreetingStructBuilder;
   13     13   
   14         -
pub use crate::types::_complex_nested_error_data::ComplexNestedErrorDataBuilder;
          14  +
pub use crate::types::_farewell::FarewellBuilder;

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

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

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

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/operation/content_type_parameters.rs

@@ -305,305 +344,344 @@
  325    325   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  326    326   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  327    327   
    ) -> Self {
  328    328   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  329    329   
            source,
  330    330   
            meta: meta.unwrap_or_default(),
  331    331   
        })
  332    332   
    }
  333    333   
}
  334    334   
  335         -
pub use crate::operation::content_type_parameters::_content_type_parameters_output::ContentTypeParametersOutput;
  336         -
  337    335   
pub use crate::operation::content_type_parameters::_content_type_parameters_input::ContentTypeParametersInput;
  338    336   
         337  +
pub use crate::operation::content_type_parameters::_content_type_parameters_output::ContentTypeParametersOutput;
         338  +
  339    339   
mod _content_type_parameters_input;
  340    340   
  341    341   
mod _content_type_parameters_output;
  342    342   
  343    343   
/// Builders
  344    344   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/operation/content_type_parameters/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::content_type_parameters::_content_type_parameters_output::ContentTypeParametersOutputBuilder;
    3         -
    4      2   
pub use crate::operation::content_type_parameters::_content_type_parameters_input::ContentTypeParametersInputBuilder;
    5      3   
           4  +
pub use crate::operation::content_type_parameters::_content_type_parameters_output::ContentTypeParametersOutputBuilder;
           5  +
    6      6   
impl crate::operation::content_type_parameters::builders::ContentTypeParametersInputBuilder {
    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::content_type_parameters::ContentTypeParametersOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::content_type_parameters::ContentTypeParametersError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/operation/datetime_offsets.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::datetime_offsets::_datetime_offsets_output::DatetimeOffsetsOutput;
  422         -
  423    421   
pub use crate::operation::datetime_offsets::_datetime_offsets_input::DatetimeOffsetsInput;
  424    422   
         423  +
pub use crate::operation::datetime_offsets::_datetime_offsets_output::DatetimeOffsetsOutput;
         424  +
  425    425   
mod _datetime_offsets_input;
  426    426   
  427    427   
mod _datetime_offsets_output;
  428    428   
  429    429   
/// Builders
  430    430   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/operation/datetime_offsets/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::datetime_offsets::_datetime_offsets_output::DatetimeOffsetsOutputBuilder;
    3         -
    4      2   
pub use crate::operation::datetime_offsets::_datetime_offsets_input::DatetimeOffsetsInputBuilder;
    5      3   
           4  +
pub use crate::operation::datetime_offsets::_datetime_offsets_output::DatetimeOffsetsOutputBuilder;
           5  +
    6      6   
impl crate::operation::datetime_offsets::builders::DatetimeOffsetsInputBuilder {
    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::datetime_offsets::DatetimeOffsetsOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::datetime_offsets::DatetimeOffsetsError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/operation/empty_operation.rs

@@ -518,518 +557,557 @@
  538    538   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  539    539   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  540    540   
    ) -> Self {
  541    541   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  542    542   
            source,
  543    543   
            meta: meta.unwrap_or_default(),
  544    544   
        })
  545    545   
    }
  546    546   
}
  547    547   
  548         -
pub use crate::operation::empty_operation::_empty_operation_output::EmptyOperationOutput;
  549         -
  550    548   
pub use crate::operation::empty_operation::_empty_operation_input::EmptyOperationInput;
  551    549   
         550  +
pub use crate::operation::empty_operation::_empty_operation_output::EmptyOperationOutput;
         551  +
  552    552   
mod _empty_operation_input;
  553    553   
  554    554   
mod _empty_operation_output;
  555    555   
  556    556   
/// Builders
  557    557   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/operation/empty_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_operation::_empty_operation_output::EmptyOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::empty_operation::_empty_operation_input::EmptyOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::empty_operation::_empty_operation_output::EmptyOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::empty_operation::builders::EmptyOperationInputBuilder {
    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_operation::EmptyOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::empty_operation::EmptyOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/operation/endpoint_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::endpoint_operation::_endpoint_operation_output::EndpointOperationOutput;
  370         -
  371    369   
pub use crate::operation::endpoint_operation::_endpoint_operation_input::EndpointOperationInput;
  372    370   
         371  +
pub use crate::operation::endpoint_operation::_endpoint_operation_output::EndpointOperationOutput;
         372  +
  373    373   
mod _endpoint_operation_input;
  374    374   
  375    375   
mod _endpoint_operation_output;
  376    376   
  377    377   
/// Builders
  378    378   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/operation/endpoint_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::endpoint_operation::_endpoint_operation_output::EndpointOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::endpoint_operation::_endpoint_operation_input::EndpointOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::endpoint_operation::_endpoint_operation_output::EndpointOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::endpoint_operation::builders::EndpointOperationInputBuilder {
    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::endpoint_operation::EndpointOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::endpoint_operation::EndpointOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,