Client Test

Client Test

rev. d838bf488731ae5e751cce0fe13f339a5b9be858 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/rest_xml_extras/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/rust-client-codegen/src/operation/attribute_party.rs

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

tmp-codegen-diff/codegen-client-test/rest_xml_extras/rust-client-codegen/src/operation/attribute_party/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::attribute_party::_attribute_party_output::AttributePartyOutputBuilder;
    3         -
    4      2   
pub use crate::operation::attribute_party::_attribute_party_input::AttributePartyInputBuilder;
    5      3   
           4  +
pub use crate::operation::attribute_party::_attribute_party_output::AttributePartyOutputBuilder;
           5  +
    6      6   
impl crate::operation::attribute_party::builders::AttributePartyInputBuilder {
    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::attribute_party::AttributePartyOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::attribute_party::AttributePartyError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -336,336 +375,375 @@
  356    356   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  357    357   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  358    358   
    ) -> Self {
  359    359   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  360    360   
            source,
  361    361   
            meta: meta.unwrap_or_default(),
  362    362   
        })
  363    363   
    }
  364    364   
}
  365    365   
  366         -
pub use crate::operation::checksum_required::_checksum_required_output::ChecksumRequiredOutput;
  367         -
  368    366   
pub use crate::operation::checksum_required::_checksum_required_input::ChecksumRequiredInput;
  369    367   
         368  +
pub use crate::operation::checksum_required::_checksum_required_output::ChecksumRequiredOutput;
         369  +
  370    370   
mod _checksum_required_input;
  371    371   
  372    372   
mod _checksum_required_output;
  373    373   
  374    374   
/// Builders
  375    375   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_xml_extras/rust-client-codegen/src/operation/checksum_required/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::checksum_required::_checksum_required_output::ChecksumRequiredOutputBuilder;
    3         -
    4      2   
pub use crate::operation::checksum_required::_checksum_required_input::ChecksumRequiredInputBuilder;
    5      3   
           4  +
pub use crate::operation::checksum_required::_checksum_required_output::ChecksumRequiredOutputBuilder;
           5  +
    6      6   
impl crate::operation::checksum_required::builders::ChecksumRequiredInputBuilder {
    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::checksum_required::ChecksumRequiredOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::checksum_required::ChecksumRequiredError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -290,290 +329,329 @@
  310    310   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  311    311   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  312    312   
    ) -> Self {
  313    313   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  314    314   
            source,
  315    315   
            meta: meta.unwrap_or_default(),
  316    316   
        })
  317    317   
    }
  318    318   
}
  319    319   
  320         -
pub use crate::operation::create_foo::_create_foo_output::CreateFooOutput;
  321         -
  322    320   
pub use crate::operation::create_foo::_create_foo_input::CreateFooInput;
  323    321   
         322  +
pub use crate::operation::create_foo::_create_foo_output::CreateFooOutput;
         323  +
  324    324   
mod _create_foo_input;
  325    325   
  326    326   
mod _create_foo_output;
  327    327   
  328    328   
/// Builders
  329    329   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_xml_extras/rust-client-codegen/src/operation/create_foo/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::create_foo::_create_foo_output::CreateFooOutputBuilder;
    3         -
    4      2   
pub use crate::operation::create_foo::_create_foo_input::CreateFooInputBuilder;
    5      3   
           4  +
pub use crate::operation::create_foo::_create_foo_output::CreateFooOutputBuilder;
           5  +
    6      6   
impl crate::operation::create_foo::builders::CreateFooInputBuilder {
    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::create_foo::CreateFooOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::create_foo::CreateFooError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -377,377 +416,416 @@
  397    397   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  398    398   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  399    399   
    ) -> Self {
  400    400   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  401    401   
            source,
  402    402   
            meta: meta.unwrap_or_default(),
  403    403   
        })
  404    404   
    }
  405    405   
}
  406    406   
  407         -
pub use crate::operation::enum_keys::_enum_keys_output::EnumKeysOutput;
  408         -
  409    407   
pub use crate::operation::enum_keys::_enum_keys_input::EnumKeysInput;
  410    408   
         409  +
pub use crate::operation::enum_keys::_enum_keys_output::EnumKeysOutput;
         410  +
  411    411   
mod _enum_keys_input;
  412    412   
  413    413   
mod _enum_keys_output;
  414    414   
  415    415   
/// Builders
  416    416   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_xml_extras/rust-client-codegen/src/operation/enum_keys/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::enum_keys::_enum_keys_output::EnumKeysOutputBuilder;
    3         -
    4      2   
pub use crate::operation::enum_keys::_enum_keys_input::EnumKeysInputBuilder;
    5      3   
           4  +
pub use crate::operation::enum_keys::_enum_keys_output::EnumKeysOutputBuilder;
           5  +
    6      6   
impl crate::operation::enum_keys::builders::EnumKeysInputBuilder {
    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::enum_keys::EnumKeysOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::enum_keys::EnumKeysError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -361,361 +400,400 @@
  381    381   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  382    382   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  383    383   
    ) -> Self {
  384    384   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  385    385   
            source,
  386    386   
            meta: meta.unwrap_or_default(),
  387    387   
        })
  388    388   
    }
  389    389   
}
  390    390   
  391         -
pub use crate::operation::primitive_int_op_xml::_primitive_int_op_xml_output::PrimitiveIntOpXmlOutput;
  392         -
  393    391   
pub use crate::operation::primitive_int_op_xml::_primitive_int_op_xml_input::PrimitiveIntOpXmlInput;
  394    392   
         393  +
pub use crate::operation::primitive_int_op_xml::_primitive_int_op_xml_output::PrimitiveIntOpXmlOutput;
         394  +
  395    395   
mod _primitive_int_op_xml_input;
  396    396   
  397    397   
mod _primitive_int_op_xml_output;
  398    398   
  399    399   
/// Builders
  400    400   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_xml_extras/rust-client-codegen/src/operation/primitive_int_op_xml/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::primitive_int_op_xml::_primitive_int_op_xml_output::PrimitiveIntOpXmlOutputBuilder;
    3         -
    4      2   
pub use crate::operation::primitive_int_op_xml::_primitive_int_op_xml_input::PrimitiveIntOpXmlInputBuilder;
    5      3   
           4  +
pub use crate::operation::primitive_int_op_xml::_primitive_int_op_xml_output::PrimitiveIntOpXmlOutputBuilder;
           5  +
    6      6   
impl crate::operation::primitive_int_op_xml::builders::PrimitiveIntOpXmlInputBuilder {
    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::primitive_int_op_xml::PrimitiveIntOpXmlOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::primitive_int_op_xml::PrimitiveIntOpXmlError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -292,292 +331,331 @@
  312    312   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  313    313   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  314    314   
    ) -> Self {
  315    315   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  316    316   
            source,
  317    317   
            meta: meta.unwrap_or_default(),
  318    318   
        })
  319    319   
    }
  320    320   
}
  321    321   
  322         -
pub use crate::operation::required_member::_required_member_output::RequiredMemberOutput;
  323         -
  324    322   
pub use crate::operation::required_member::_required_member_input::RequiredMemberInput;
  325    323   
         324  +
pub use crate::operation::required_member::_required_member_output::RequiredMemberOutput;
         325  +
  326    326   
mod _required_member_input;
  327    327   
  328    328   
mod _required_member_output;
  329    329   
  330    330   
/// Builders
  331    331   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_xml_extras/rust-client-codegen/src/operation/required_member/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::required_member::_required_member_output::RequiredMemberOutputBuilder;
    3         -
    4      2   
pub use crate::operation::required_member::_required_member_input::RequiredMemberInputBuilder;
    5      3   
           4  +
pub use crate::operation::required_member::_required_member_output::RequiredMemberOutputBuilder;
           5  +
    6      6   
impl crate::operation::required_member::builders::RequiredMemberInputBuilder {
    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::required_member::RequiredMemberOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::required_member::RequiredMemberError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/rest_xml_extras/rust-client-codegen/src/operation/string_header.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::string_header::_string_header_output::StringHeaderOutput;
  370         -
  371    369   
pub use crate::operation::string_header::_string_header_input::StringHeaderInput;
  372    370   
         371  +
pub use crate::operation::string_header::_string_header_output::StringHeaderOutput;
         372  +
  373    373   
mod _string_header_input;
  374    374   
  375    375   
mod _string_header_output;
  376    376   
  377    377   
/// Builders
  378    378   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_xml_extras/rust-client-codegen/src/operation/string_header/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::string_header::_string_header_output::StringHeaderOutputBuilder;
    3         -
    4      2   
pub use crate::operation::string_header::_string_header_input::StringHeaderInputBuilder;
    5      3   
           4  +
pub use crate::operation::string_header::_string_header_output::StringHeaderOutputBuilder;
           5  +
    6      6   
impl crate::operation::string_header::builders::StringHeaderInputBuilder {
    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::string_header::StringHeaderOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::string_header::StringHeaderError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

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