Client Test

Client Test

rev. d838bf488731ae5e751cce0fe13f339a5b9be858 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/endpoint-rules/rust-client-codegen/src/operation/test_operation.rs

@@ -300,300 +339,339 @@
  320    320   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  321    321   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  322    322   
    ) -> Self {
  323    323   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  324    324   
            source,
  325    325   
            meta: meta.unwrap_or_default(),
  326    326   
        })
  327    327   
    }
  328    328   
}
  329    329   
  330         -
pub use crate::operation::test_operation::_test_operation_output::TestOperationOutput;
  331         -
  332    330   
pub use crate::operation::test_operation::_test_operation_input::TestOperationInput;
  333    331   
         332  +
pub use crate::operation::test_operation::_test_operation_output::TestOperationOutput;
         333  +
  334    334   
mod _test_operation_input;
  335    335   
  336    336   
mod _test_operation_output;
  337    337   
  338    338   
/// Builders
  339    339   
pub mod builders;

tmp-codegen-diff/codegen-client-test/endpoint-rules/rust-client-codegen/src/operation/test_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::test_operation::_test_operation_output::TestOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::test_operation::_test_operation_input::TestOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::test_operation::_test_operation_output::TestOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::test_operation::builders::TestOperationInputBuilder {
    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::test_operation::TestOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::test_operation::TestOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

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

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

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

@@ -379,379 +418,418 @@
  399    399   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  400    400   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  401    401   
    ) -> Self {
  402    402   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  403    403   
            source,
  404    404   
            meta: meta.unwrap_or_default(),
  405    405   
        })
  406    406   
    }
  407    407   
}
  408    408   
  409         -
pub use crate::operation::empty_input_and_empty_output::_empty_input_and_empty_output_output::EmptyInputAndEmptyOutputOutput;
  410         -
  411    409   
pub use crate::operation::empty_input_and_empty_output::_empty_input_and_empty_output_input::EmptyInputAndEmptyOutputInput;
  412    410   
         411  +
pub use crate::operation::empty_input_and_empty_output::_empty_input_and_empty_output_output::EmptyInputAndEmptyOutputOutput;
         412  +
  413    413   
mod _empty_input_and_empty_output_input;
  414    414   
  415    415   
mod _empty_input_and_empty_output_output;
  416    416   
  417    417   
/// Builders
  418    418   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/operation/empty_input_and_empty_output/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_input_and_empty_output::_empty_input_and_empty_output_output::EmptyInputAndEmptyOutputOutputBuilder;
    3         -
    4      2   
pub use crate::operation::empty_input_and_empty_output::_empty_input_and_empty_output_input::EmptyInputAndEmptyOutputInputBuilder;
    5      3   
           4  +
pub use crate::operation::empty_input_and_empty_output::_empty_input_and_empty_output_output::EmptyInputAndEmptyOutputOutputBuilder;
           5  +
    6      6   
impl crate::operation::empty_input_and_empty_output::builders::EmptyInputAndEmptyOutputInputBuilder {
    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_input_and_empty_output::EmptyInputAndEmptyOutputOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::empty_input_and_empty_output::EmptyInputAndEmptyOutputError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -334,334 +373,373 @@
  354    354   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  355    355   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  356    356   
    ) -> Self {
  357    357   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  358    358   
            source,
  359    359   
            meta: meta.unwrap_or_default(),
  360    360   
        })
  361    361   
    }
  362    362   
}
  363    363   
  364         -
pub use crate::operation::endpoint_operation::_endpoint_operation_output::EndpointOperationOutput;
  365         -
  366    364   
pub use crate::operation::endpoint_operation::_endpoint_operation_input::EndpointOperationInput;
  367    365   
         366  +
pub use crate::operation::endpoint_operation::_endpoint_operation_output::EndpointOperationOutput;
         367  +
  368    368   
mod _endpoint_operation_input;
  369    369   
  370    370   
mod _endpoint_operation_output;
  371    371   
  372    372   
/// Builders
  373    373   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc10/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,

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

@@ -363,363 +402,402 @@
  383    383   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  384    384   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  385    385   
    ) -> Self {
  386    386   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  387    387   
            source,
  388    388   
            meta: meta.unwrap_or_default(),
  389    389   
        })
  390    390   
    }
  391    391   
}
  392    392   
  393         -
pub use crate::operation::endpoint_with_host_label_operation::_endpoint_with_host_label_operation_output::EndpointWithHostLabelOperationOutput;
  394         -
  395    393   
pub use crate::operation::endpoint_with_host_label_operation::_endpoint_with_host_label_operation_input::EndpointWithHostLabelOperationInput;
  396    394   
         395  +
pub use crate::operation::endpoint_with_host_label_operation::_endpoint_with_host_label_operation_output::EndpointWithHostLabelOperationOutput;
         396  +
  397    397   
mod _endpoint_with_host_label_operation_input;
  398    398   
  399    399   
mod _endpoint_with_host_label_operation_output;
  400    400   
  401    401   
/// Builders
  402    402   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/operation/endpoint_with_host_label_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_with_host_label_operation::_endpoint_with_host_label_operation_output::EndpointWithHostLabelOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::endpoint_with_host_label_operation::_endpoint_with_host_label_operation_input::EndpointWithHostLabelOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::endpoint_with_host_label_operation::_endpoint_with_host_label_operation_output::EndpointWithHostLabelOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::endpoint_with_host_label_operation::builders::EndpointWithHostLabelOperationInputBuilder {
    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_with_host_label_operation::EndpointWithHostLabelOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::endpoint_with_host_label_operation::EndpointWithHostLabelOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -923,923 +962,962 @@
  943    943   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  944    944   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  945    945   
    ) -> Self {
  946    946   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  947    947   
            source,
  948    948   
            meta: meta.unwrap_or_default(),
  949    949   
        })
  950    950   
    }
  951    951   
}
  952    952   
  953         -
pub use crate::operation::greeting_with_errors::_greeting_with_errors_output::GreetingWithErrorsOutput;
  954         -
  955    953   
pub use crate::operation::greeting_with_errors::_greeting_with_errors_input::GreetingWithErrorsInput;
  956    954   
         955  +
pub use crate::operation::greeting_with_errors::_greeting_with_errors_output::GreetingWithErrorsOutput;
         956  +
  957    957   
mod _greeting_with_errors_input;
  958    958   
  959    959   
mod _greeting_with_errors_output;
  960    960   
  961    961   
/// Builders
  962    962   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/operation/greeting_with_errors/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::greeting_with_errors::_greeting_with_errors_output::GreetingWithErrorsOutputBuilder;
    3         -
    4      2   
pub use crate::operation::greeting_with_errors::_greeting_with_errors_input::GreetingWithErrorsInputBuilder;
    5      3   
           4  +
pub use crate::operation::greeting_with_errors::_greeting_with_errors_output::GreetingWithErrorsOutputBuilder;
           5  +
    6      6   
impl crate::operation::greeting_with_errors::builders::GreetingWithErrorsInputBuilder {
    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::greeting_with_errors::GreetingWithErrorsOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::greeting_with_errors::GreetingWithErrorsError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -329,329 +368,368 @@
  349    349   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  350    350   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  351    351   
    ) -> Self {
  352    352   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  353    353   
            source,
  354    354   
            meta: meta.unwrap_or_default(),
  355    355   
        })
  356    356   
    }
  357    357   
}
  358    358   
  359         -
pub use crate::operation::host_with_path_operation::_host_with_path_operation_output::HostWithPathOperationOutput;
  360         -
  361    359   
pub use crate::operation::host_with_path_operation::_host_with_path_operation_input::HostWithPathOperationInput;
  362    360   
         361  +
pub use crate::operation::host_with_path_operation::_host_with_path_operation_output::HostWithPathOperationOutput;
         362  +
  363    363   
mod _host_with_path_operation_input;
  364    364   
  365    365   
mod _host_with_path_operation_output;
  366    366   
  367    367   
/// Builders
  368    368   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/operation/host_with_path_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::host_with_path_operation::_host_with_path_operation_output::HostWithPathOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::host_with_path_operation::_host_with_path_operation_input::HostWithPathOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::host_with_path_operation::_host_with_path_operation_output::HostWithPathOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::host_with_path_operation::builders::HostWithPathOperationInputBuilder {
    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::host_with_path_operation::HostWithPathOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::host_with_path_operation::HostWithPathOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -1197,1197 +1236,1236 @@
 1217   1217   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
 1218   1218   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
 1219   1219   
    ) -> Self {
 1220   1220   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
 1221   1221   
            source,
 1222   1222   
            meta: meta.unwrap_or_default(),
 1223   1223   
        })
 1224   1224   
    }
 1225   1225   
}
 1226   1226   
 1227         -
pub use crate::operation::json_unions::_json_unions_output::JsonUnionsOutput;
 1228         -
 1229   1227   
pub use crate::operation::json_unions::_json_unions_input::JsonUnionsInput;
 1230   1228   
        1229  +
pub use crate::operation::json_unions::_json_unions_output::JsonUnionsOutput;
        1230  +
 1231   1231   
mod _json_unions_input;
 1232   1232   
 1233   1233   
mod _json_unions_output;
 1234   1234   
 1235   1235   
/// Builders
 1236   1236   
pub mod builders;