Client Test

Client Test

rev. d838bf488731ae5e751cce0fe13f339a5b9be858 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/output_stream_with_initial_response/builders.rs

@@ -0,1 +0,141 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::output_stream_with_initial_response::_output_stream_with_initial_response_input::OutputStreamWithInitialResponseInputBuilder;
           3  +
           4  +
pub use crate::operation::output_stream_with_initial_response::_output_stream_with_initial_response_output::OutputStreamWithInitialResponseOutputBuilder;
           5  +
           6  +
impl crate::operation::output_stream_with_initial_response::builders::OutputStreamWithInitialResponseInputBuilder {
           7  +
    /// Sends a request with this input using the given client.
           8  +
    pub async fn send_with(
           9  +
        self,
          10  +
        client: &crate::Client,
          11  +
    ) -> ::std::result::Result<
          12  +
        crate::operation::output_stream_with_initial_response::OutputStreamWithInitialResponseOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::output_stream_with_initial_response::OutputStreamWithInitialResponseError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.output_stream_with_initial_response();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `OutputStreamWithInitialResponse`.
          24  +
///
          25  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          26  +
pub struct OutputStreamWithInitialResponseFluentBuilder {
          27  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          28  +
    inner: crate::operation::output_stream_with_initial_response::builders::OutputStreamWithInitialResponseInputBuilder,
          29  +
    config_override: ::std::option::Option<crate::config::Builder>,
          30  +
}
          31  +
impl
          32  +
    crate::client::customize::internal::CustomizableSend<
          33  +
        crate::operation::output_stream_with_initial_response::OutputStreamWithInitialResponseOutput,
          34  +
        crate::operation::output_stream_with_initial_response::OutputStreamWithInitialResponseError,
          35  +
    > for OutputStreamWithInitialResponseFluentBuilder
          36  +
{
          37  +
    fn send(
          38  +
        self,
          39  +
        config_override: crate::config::Builder,
          40  +
    ) -> crate::client::customize::internal::BoxFuture<
          41  +
        crate::client::customize::internal::SendResult<
          42  +
            crate::operation::output_stream_with_initial_response::OutputStreamWithInitialResponseOutput,
          43  +
            crate::operation::output_stream_with_initial_response::OutputStreamWithInitialResponseError,
          44  +
        >,
          45  +
    > {
          46  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          47  +
    }
          48  +
}
          49  +
impl OutputStreamWithInitialResponseFluentBuilder {
          50  +
    /// Creates a new `OutputStreamWithInitialResponseFluentBuilder`.
          51  +
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
          52  +
        Self {
          53  +
            handle,
          54  +
            inner: ::std::default::Default::default(),
          55  +
            config_override: ::std::option::Option::None,
          56  +
        }
          57  +
    }
          58  +
    /// Access the OutputStreamWithInitialResponse as a reference.
          59  +
    pub fn as_input(&self) -> &crate::operation::output_stream_with_initial_response::builders::OutputStreamWithInitialResponseInputBuilder {
          60  +
        &self.inner
          61  +
    }
          62  +
    /// Sends the request and returns the response.
          63  +
    ///
          64  +
    /// If an error occurs, an `SdkError` will be returned with additional details that
          65  +
    /// can be matched against.
          66  +
    ///
          67  +
    /// By default, any retryable failures will be retried twice. Retry behavior
          68  +
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
          69  +
    /// set when configuring the client.
          70  +
    pub async fn send(
          71  +
        self,
          72  +
    ) -> ::std::result::Result<
          73  +
        crate::operation::output_stream_with_initial_response::OutputStreamWithInitialResponseOutput,
          74  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          75  +
            crate::operation::output_stream_with_initial_response::OutputStreamWithInitialResponseError,
          76  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          77  +
        >,
          78  +
    > {
          79  +
        let input = self
          80  +
            .inner
          81  +
            .build()
          82  +
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
          83  +
        let runtime_plugins = crate::operation::output_stream_with_initial_response::OutputStreamWithInitialResponse::operation_runtime_plugins(
          84  +
            self.handle.runtime_plugins.clone(),
          85  +
            &self.handle.conf,
          86  +
            self.config_override,
          87  +
        );
          88  +
        let mut output =
          89  +
            crate::operation::output_stream_with_initial_response::OutputStreamWithInitialResponse::orchestrate(&runtime_plugins, input).await?;
          90  +
          91  +
        // Converts any error encountered beyond this point into an `SdkError` response error
          92  +
        // with an `HttpResponse`. However, since we have already exited the `orchestrate`
          93  +
        // function, the original `HttpResponse` is no longer available and cannot be restored.
          94  +
        // This means that header information from the original response has been lost.
          95  +
        //
          96  +
        // Note that the response body would have been consumed by the deserializer
          97  +
        // regardless, even if the initial message was hypothetically processed during
          98  +
        // the orchestrator's deserialization phase but later resulted in an error.
          99  +
        fn response_error(
         100  +
            err: impl ::std::convert::Into<::aws_smithy_runtime_api::box_error::BoxError>,
         101  +
        ) -> ::aws_smithy_runtime_api::client::result::SdkError<
         102  +
            crate::operation::output_stream_with_initial_response::OutputStreamWithInitialResponseError,
         103  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         104  +
        > {
         105  +
            ::aws_smithy_runtime_api::client::result::SdkError::response_error(
         106  +
                err,
         107  +
                ::aws_smithy_runtime_api::client::orchestrator::HttpResponse::new(
         108  +
                    ::aws_smithy_runtime_api::http::StatusCode::try_from(200).expect("valid successful code"),
         109  +
                    ::aws_smithy_types::body::SdkBody::empty(),
         110  +
                ),
         111  +
            )
         112  +
        }
         113  +
         114  +
        let message = output.stream.try_recv_initial_response().await.map_err(response_error)?;
         115  +
         116  +
        match message {
         117  +
            ::std::option::Option::Some(_message) => ::std::result::Result::Ok(output),
         118  +
            ::std::option::Option::None => ::std::result::Result::Ok(output),
         119  +
        }
         120  +
    }
         121  +
         122  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
         123  +
    pub fn customize(
         124  +
        self,
         125  +
    ) -> crate::client::customize::CustomizableOperation<
         126  +
        crate::operation::output_stream_with_initial_response::OutputStreamWithInitialResponseOutput,
         127  +
        crate::operation::output_stream_with_initial_response::OutputStreamWithInitialResponseError,
         128  +
        Self,
         129  +
    > {
         130  +
        crate::client::customize::CustomizableOperation::new(self)
         131  +
    }
         132  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         133  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         134  +
        self
         135  +
    }
         136  +
         137  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         138  +
        self.config_override = config_override;
         139  +
        self
         140  +
    }
         141  +
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/post_player_action.rs

@@ -382,382 +421,421 @@
  402    402   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  403    403   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  404    404   
    ) -> Self {
  405    405   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  406    406   
            source,
  407    407   
            meta: meta.unwrap_or_default(),
  408    408   
        })
  409    409   
    }
  410    410   
}
  411    411   
  412         -
pub use crate::operation::post_player_action::_post_player_action_output::PostPlayerActionOutput;
  413         -
  414    412   
pub use crate::operation::post_player_action::_post_player_action_input::PostPlayerActionInput;
  415    413   
         414  +
pub use crate::operation::post_player_action::_post_player_action_output::PostPlayerActionOutput;
         415  +
  416    416   
mod _post_player_action_input;
  417    417   
  418    418   
mod _post_player_action_output;
  419    419   
  420    420   
/// Builders
  421    421   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/post_player_action/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::post_player_action::_post_player_action_output::PostPlayerActionOutputBuilder;
    3         -
    4      2   
pub use crate::operation::post_player_action::_post_player_action_input::PostPlayerActionInputBuilder;
    5      3   
           4  +
pub use crate::operation::post_player_action::_post_player_action_output::PostPlayerActionOutputBuilder;
           5  +
    6      6   
impl crate::operation::post_player_action::builders::PostPlayerActionInputBuilder {
    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::post_player_action::PostPlayerActionOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::post_player_action::PostPlayerActionError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/post_union_with_json_name.rs

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

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/post_union_with_json_name/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::post_union_with_json_name::_post_union_with_json_name_output::PostUnionWithJsonNameOutputBuilder;
    3         -
    4      2   
pub use crate::operation::post_union_with_json_name::_post_union_with_json_name_input::PostUnionWithJsonNameInputBuilder;
    5      3   
           4  +
pub use crate::operation::post_union_with_json_name::_post_union_with_json_name_output::PostUnionWithJsonNameOutputBuilder;
           5  +
    6      6   
impl crate::operation::post_union_with_json_name::builders::PostUnionWithJsonNameInputBuilder {
    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::post_union_with_json_name::PostUnionWithJsonNameOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::post_union_with_json_name::PostUnionWithJsonNameError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/put_with_content_encoding.rs

@@ -374,374 +413,413 @@
  394    394   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  395    395   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  396    396   
    ) -> Self {
  397    397   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  398    398   
            source,
  399    399   
            meta: meta.unwrap_or_default(),
  400    400   
        })
  401    401   
    }
  402    402   
}
  403    403   
  404         -
pub use crate::operation::put_with_content_encoding::_put_with_content_encoding_output::PutWithContentEncodingOutput;
  405         -
  406    404   
pub use crate::operation::put_with_content_encoding::_put_with_content_encoding_input::PutWithContentEncodingInput;
  407    405   
         406  +
pub use crate::operation::put_with_content_encoding::_put_with_content_encoding_output::PutWithContentEncodingOutput;
         407  +
  408    408   
mod _put_with_content_encoding_input;
  409    409   
  410    410   
mod _put_with_content_encoding_output;
  411    411   
  412    412   
/// Builders
  413    413   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/put_with_content_encoding/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::put_with_content_encoding::_put_with_content_encoding_output::PutWithContentEncodingOutputBuilder;
    3         -
    4      2   
pub use crate::operation::put_with_content_encoding::_put_with_content_encoding_input::PutWithContentEncodingInputBuilder;
    5      3   
           4  +
pub use crate::operation::put_with_content_encoding::_put_with_content_encoding_output::PutWithContentEncodingOutputBuilder;
           5  +
    6      6   
impl crate::operation::put_with_content_encoding::builders::PutWithContentEncodingInputBuilder {
    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::put_with_content_encoding::PutWithContentEncodingOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::put_with_content_encoding::PutWithContentEncodingError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/query_idempotency_token_auto_fill.rs

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

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/query_idempotency_token_auto_fill/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_idempotency_token_auto_fill::_query_idempotency_token_auto_fill_output::QueryIdempotencyTokenAutoFillOutputBuilder;
    3         -
    4      2   
pub use crate::operation::query_idempotency_token_auto_fill::_query_idempotency_token_auto_fill_input::QueryIdempotencyTokenAutoFillInputBuilder;
    5      3   
           4  +
pub use crate::operation::query_idempotency_token_auto_fill::_query_idempotency_token_auto_fill_output::QueryIdempotencyTokenAutoFillOutputBuilder;
           5  +
    6      6   
impl crate::operation::query_idempotency_token_auto_fill::builders::QueryIdempotencyTokenAutoFillInputBuilder {
    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_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/query_params_as_string_list_map.rs

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

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/query_params_as_string_list_map/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_params_as_string_list_map::_query_params_as_string_list_map_output::QueryParamsAsStringListMapOutputBuilder;
    3         -
    4      2   
pub use crate::operation::query_params_as_string_list_map::_query_params_as_string_list_map_input::QueryParamsAsStringListMapInputBuilder;
    5      3   
           4  +
pub use crate::operation::query_params_as_string_list_map::_query_params_as_string_list_map_output::QueryParamsAsStringListMapOutputBuilder;
           5  +
    6      6   
impl crate::operation::query_params_as_string_list_map::builders::QueryParamsAsStringListMapInputBuilder {
    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_params_as_string_list_map::QueryParamsAsStringListMapOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::query_params_as_string_list_map::QueryParamsAsStringListMapError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/query_precedence.rs

@@ -359,359 +398,398 @@
  379    379   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  380    380   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  381    381   
    ) -> Self {
  382    382   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  383    383   
            source,
  384    384   
            meta: meta.unwrap_or_default(),
  385    385   
        })
  386    386   
    }
  387    387   
}
  388    388   
  389         -
pub use crate::operation::query_precedence::_query_precedence_output::QueryPrecedenceOutput;
  390         -
  391    389   
pub use crate::operation::query_precedence::_query_precedence_input::QueryPrecedenceInput;
  392    390   
         391  +
pub use crate::operation::query_precedence::_query_precedence_output::QueryPrecedenceOutput;
         392  +
  393    393   
mod _query_precedence_input;
  394    394   
  395    395   
mod _query_precedence_output;
  396    396   
  397    397   
/// Builders
  398    398   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/query_precedence/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_precedence::_query_precedence_output::QueryPrecedenceOutputBuilder;
    3         -
    4      2   
pub use crate::operation::query_precedence::_query_precedence_input::QueryPrecedenceInputBuilder;
    5      3   
           4  +
pub use crate::operation::query_precedence::_query_precedence_output::QueryPrecedenceOutputBuilder;
           5  +
    6      6   
impl crate::operation::query_precedence::builders::QueryPrecedenceInputBuilder {
    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_precedence::QueryPrecedenceOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::query_precedence::QueryPrecedenceError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/recursive_shapes.rs

@@ -413,413 +452,452 @@
  433    433   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  434    434   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  435    435   
    ) -> Self {
  436    436   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  437    437   
            source,
  438    438   
            meta: meta.unwrap_or_default(),
  439    439   
        })
  440    440   
    }
  441    441   
}
  442    442   
  443         -
pub use crate::operation::recursive_shapes::_recursive_shapes_output::RecursiveShapesOutput;
  444         -
  445    443   
pub use crate::operation::recursive_shapes::_recursive_shapes_input::RecursiveShapesInput;
  446    444   
         445  +
pub use crate::operation::recursive_shapes::_recursive_shapes_output::RecursiveShapesOutput;
         446  +
  447    447   
mod _recursive_shapes_input;
  448    448   
  449    449   
mod _recursive_shapes_output;
  450    450   
  451    451   
/// Builders
  452    452   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/recursive_shapes/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_shapes::_recursive_shapes_output::RecursiveShapesOutputBuilder;
    3         -
    4      2   
pub use crate::operation::recursive_shapes::_recursive_shapes_input::RecursiveShapesInputBuilder;
    5      3   
           4  +
pub use crate::operation::recursive_shapes::_recursive_shapes_output::RecursiveShapesOutputBuilder;
           5  +
    6      6   
impl crate::operation::recursive_shapes::builders::RecursiveShapesInputBuilder {
    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_shapes::RecursiveShapesOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::recursive_shapes::RecursiveShapesError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/response_code_http_fallback.rs

@@ -294,294 +333,333 @@
  314    314   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  315    315   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  316    316   
    ) -> Self {
  317    317   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  318    318   
            source,
  319    319   
            meta: meta.unwrap_or_default(),
  320    320   
        })
  321    321   
    }
  322    322   
}
  323    323   
  324         -
pub use crate::operation::response_code_http_fallback::_response_code_http_fallback_output::ResponseCodeHttpFallbackOutput;
  325         -
  326    324   
pub use crate::operation::response_code_http_fallback::_response_code_http_fallback_input::ResponseCodeHttpFallbackInput;
  327    325   
         326  +
pub use crate::operation::response_code_http_fallback::_response_code_http_fallback_output::ResponseCodeHttpFallbackOutput;
         327  +
  328    328   
mod _response_code_http_fallback_input;
  329    329   
  330    330   
mod _response_code_http_fallback_output;
  331    331   
  332    332   
/// Builders
  333    333   
pub mod builders;