Client Test

Client Test

rev. d838bf488731ae5e751cce0fe13f339a5b9be858 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/rest_xml_extras/rust-client-codegen/src/operation/xml_maps_flattened_nested_xml_namespace/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::xml_maps_flattened_nested_xml_namespace::_xml_maps_flattened_nested_xml_namespace_output::XmlMapsFlattenedNestedXmlNamespaceOutputBuilder;
    3         -
    4      2   
pub use crate::operation::xml_maps_flattened_nested_xml_namespace::_xml_maps_flattened_nested_xml_namespace_input::XmlMapsFlattenedNestedXmlNamespaceInputBuilder;
    5      3   
           4  +
pub use crate::operation::xml_maps_flattened_nested_xml_namespace::_xml_maps_flattened_nested_xml_namespace_output::XmlMapsFlattenedNestedXmlNamespaceOutputBuilder;
           5  +
    6      6   
impl crate::operation::xml_maps_flattened_nested_xml_namespace::builders::XmlMapsFlattenedNestedXmlNamespaceInputBuilder {
    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::xml_maps_flattened_nested_xml_namespace::XmlMapsFlattenedNestedXmlNamespaceOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::xml_maps_flattened_nested_xml_namespace::XmlMapsFlattenedNestedXmlNamespaceError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -1,1 +11,11 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::_create_foo_input::CreateFooInput;
    3         -
    4      2   
pub use crate::types::_string_enum::StringEnum;
    5      3   
           4  +
pub use crate::types::_create_foo_input::CreateFooInput;
           5  +
    6      6   
mod _create_foo_input;
    7      7   
    8      8   
mod _string_enum;
    9      9   
   10     10   
/// Builders
   11     11   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_xml_extras_unwrapped/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   
//! A REST XML service that sends XML requests and responses.
   24     25   
//!

tmp-codegen-diff/codegen-client-test/rest_xml_extras_unwrapped/rust-client-codegen/src/operation/greeting_with_unwrapped_errors.rs

@@ -454,454 +493,493 @@
  474    474   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  475    475   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  476    476   
    ) -> Self {
  477    477   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  478    478   
            source,
  479    479   
            meta: meta.unwrap_or_default(),
  480    480   
        })
  481    481   
    }
  482    482   
}
  483    483   
  484         -
pub use crate::operation::greeting_with_unwrapped_errors::_greeting_with_unwrapped_errors_output::GreetingWithUnwrappedErrorsOutput;
  485         -
  486    484   
pub use crate::operation::greeting_with_unwrapped_errors::_greeting_with_unwrapped_errors_input::GreetingWithUnwrappedErrorsInput;
  487    485   
         486  +
pub use crate::operation::greeting_with_unwrapped_errors::_greeting_with_unwrapped_errors_output::GreetingWithUnwrappedErrorsOutput;
         487  +
  488    488   
mod _greeting_with_unwrapped_errors_input;
  489    489   
  490    490   
mod _greeting_with_unwrapped_errors_output;
  491    491   
  492    492   
/// Builders
  493    493   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_xml_extras_unwrapped/rust-client-codegen/src/operation/greeting_with_unwrapped_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_unwrapped_errors::_greeting_with_unwrapped_errors_output::GreetingWithUnwrappedErrorsOutputBuilder;
    3         -
    4      2   
pub use crate::operation::greeting_with_unwrapped_errors::_greeting_with_unwrapped_errors_input::GreetingWithUnwrappedErrorsInputBuilder;
    5      3   
           4  +
pub use crate::operation::greeting_with_unwrapped_errors::_greeting_with_unwrapped_errors_output::GreetingWithUnwrappedErrorsOutputBuilder;
           5  +
    6      6   
impl crate::operation::greeting_with_unwrapped_errors::builders::GreetingWithUnwrappedErrorsInputBuilder {
    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_unwrapped_errors::GreetingWithUnwrappedErrorsOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::greeting_with_unwrapped_errors::GreetingWithUnwrappedErrorsError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -1,1 +11,11 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::error::_complex_error_unwrapped::ComplexErrorUnwrapped;
    3         -
    4      2   
pub use crate::types::error::_invalid_greeting_unwrapped::InvalidGreetingUnwrapped;
    5      3   
           4  +
pub use crate::types::error::_complex_error_unwrapped::ComplexErrorUnwrapped;
           5  +
    6      6   
mod _complex_error_unwrapped;
    7      7   
    8      8   
mod _invalid_greeting_unwrapped;
    9      9   
   10     10   
/// Builders
   11     11   
pub mod builders;

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

@@ -1,1 +0,4 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::error::_complex_error_unwrapped::ComplexErrorUnwrappedBuilder;
    3         -
    4      2   
pub use crate::types::error::_invalid_greeting_unwrapped::InvalidGreetingUnwrappedBuilder;
           3  +
           4  +
pub use crate::types::error::_complex_error_unwrapped::ComplexErrorUnwrappedBuilder;

tmp-codegen-diff/codegen-client-test/rest_xml_namespace/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   
//! A REST XML service that sends XML requests and responses.
   24     25   
//!

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

@@ -440,440 +479,479 @@
  460    460   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  461    461   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  462    462   
    ) -> Self {
  463    463   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  464    464   
            source,
  465    465   
            meta: meta.unwrap_or_default(),
  466    466   
        })
  467    467   
    }
  468    468   
}
  469    469   
  470         -
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_output::SimpleScalarPropertiesOutput;
  471         -
  472    470   
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_input::SimpleScalarPropertiesInput;
  473    471   
         472  +
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_output::SimpleScalarPropertiesOutput;
         473  +
  474    474   
mod _simple_scalar_properties_input;
  475    475   
  476    476   
mod _simple_scalar_properties_output;
  477    477   
  478    478   
/// Builders
  479    479   
pub mod builders;

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

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

@@ -422,422 +461,461 @@
  442    442   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  443    443   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  444    444   
    ) -> Self {
  445    445   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  446    446   
            source,
  447    447   
            meta: meta.unwrap_or_default(),
  448    448   
        })
  449    449   
    }
  450    450   
}
  451    451   
  452         -
pub use crate::operation::empty_input_output::_empty_input_output_output::EmptyInputOutputOutput;
  453         -
  454    452   
pub use crate::operation::empty_input_output::_empty_input_output_input::EmptyInputOutputInput;
  455    453   
         454  +
pub use crate::operation::empty_input_output::_empty_input_output_output::EmptyInputOutputOutput;
         455  +
  456    456   
mod _empty_input_output_input;
  457    457   
  458    458   
mod _empty_input_output_output;
  459    459   
  460    460   
/// Builders
  461    461   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/empty_input_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_output::_empty_input_output_output::EmptyInputOutputOutputBuilder;
    3         -
    4      2   
pub use crate::operation::empty_input_output::_empty_input_output_input::EmptyInputOutputInputBuilder;
    5      3   
           4  +
pub use crate::operation::empty_input_output::_empty_input_output_output::EmptyInputOutputOutputBuilder;
           5  +
    6      6   
impl crate::operation::empty_input_output::builders::EmptyInputOutputInputBuilder {
    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_output::EmptyInputOutputOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::empty_input_output::EmptyInputOutputError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -543,543 +582,582 @@
  563    563   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  564    564   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  565    565   
    ) -> Self {
  566    566   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  567    567   
            source,
  568    568   
            meta: meta.unwrap_or_default(),
  569    569   
        })
  570    570   
    }
  571    571   
}
  572    572   
  573         -
pub use crate::operation::float16::_float16_output::Float16Output;
  574         -
  575    573   
pub use crate::operation::float16::_float16_input::Float16Input;
  576    574   
         575  +
pub use crate::operation::float16::_float16_output::Float16Output;
         576  +
  577    577   
mod _float16_input;
  578    578   
  579    579   
mod _float16_output;
  580    580   
  581    581   
/// Builders
  582    582   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/float16/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::float16::_float16_output::Float16OutputBuilder;
    3         -
    4      2   
pub use crate::operation::float16::_float16_input::Float16InputBuilder;
    5      3   
           4  +
pub use crate::operation::float16::_float16_output::Float16OutputBuilder;
           5  +
    6      6   
impl crate::operation::float16::builders::Float16InputBuilder {
    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::float16::Float16Output,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::float16::Float16Error,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

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