Server Test

Server Test

rev. d06a46cae0f385cdae37a9f8264db3469a090ab5

Files changed:

tmp-codegen-diff/codegen-server-test/json_rpc11-http0x/rust-server-codegen/src/protocol_serde/shape_put_and_get_inline_documents.rs

@@ -0,1 +0,107 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
#[allow(clippy::unnecessary_wraps)]
           3  +
pub async fn de_put_and_get_inline_documents_http_request<B>(
           4  +
    #[allow(unused_variables)] request: ::http::Request<B>,
           5  +
) -> std::result::Result<
           6  +
    crate::input::PutAndGetInlineDocumentsInput,
           7  +
    ::aws_smithy_legacy_http_server::protocol::aws_json::rejection::RequestRejection,
           8  +
>
           9  +
where
          10  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
          11  +
    B::Data: Send,
          12  +
    ::aws_smithy_legacy_http_server::protocol::aws_json::rejection::RequestRejection:
          13  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
          14  +
{
          15  +
    Ok({
          16  +
        #[allow(unused_mut)]
          17  +
        let mut input = crate::input::put_and_get_inline_documents_input::Builder::default();
          18  +
        #[allow(unused_variables)]
          19  +
        let ::aws_smithy_runtime_api::http::RequestParts {
          20  +
            uri, headers, body, ..
          21  +
        } = ::aws_smithy_runtime_api::http::Request::try_from(request)?.into_parts();
          22  +
        let bytes = ::hyper::body::to_bytes(body).await?;
          23  +
        if !bytes.is_empty() {
          24  +
            ::aws_smithy_legacy_http_server::protocol::content_type_header_classifier_smithy(
          25  +
                &headers,
          26  +
                Some("application/x-amz-json-1.1"),
          27  +
            )?;
          28  +
            input = crate::protocol_serde::shape_put_and_get_inline_documents::de_put_and_get_inline_documents(bytes.as_ref(), input)?;
          29  +
        }
          30  +
        input.build()
          31  +
    })
          32  +
}
          33  +
          34  +
#[allow(clippy::unnecessary_wraps)]
          35  +
pub fn ser_put_and_get_inline_documents_http_response(
          36  +
    #[allow(unused_variables)] output: crate::output::PutAndGetInlineDocumentsOutput,
          37  +
) -> std::result::Result<
          38  +
    ::aws_smithy_legacy_http_server::response::Response,
          39  +
    ::aws_smithy_legacy_http_server::protocol::aws_json::rejection::ResponseRejection,
          40  +
> {
          41  +
    Ok({
          42  +
        #[allow(unused_mut)]
          43  +
        let mut builder = ::http::Response::builder();
          44  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
          45  +
            builder,
          46  +
            ::http::header::CONTENT_TYPE,
          47  +
            "application/x-amz-json-1.1",
          48  +
        );
          49  +
        let http_status: u16 = 200;
          50  +
        builder = builder.status(http_status);
          51  +
        let payload =
          52  +
            crate::protocol_serde::shape_put_and_get_inline_documents_output::ser_put_and_get_inline_documents_output_output_output(&output)?
          53  +
        ;
          54  +
        let content_length = payload.len();
          55  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
          56  +
            builder,
          57  +
            ::http::header::CONTENT_LENGTH,
          58  +
            content_length,
          59  +
        );
          60  +
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);
          61  +
        builder.body(body)?
          62  +
    })
          63  +
}
          64  +
          65  +
pub(crate) fn de_put_and_get_inline_documents(
          66  +
    value: &[u8],
          67  +
    mut builder: crate::input::put_and_get_inline_documents_input::Builder,
          68  +
) -> ::std::result::Result<
          69  +
    crate::input::put_and_get_inline_documents_input::Builder,
          70  +
    ::aws_smithy_json::deserialize::error::DeserializeError,
          71  +
> {
          72  +
    let mut tokens_owned =
          73  +
        ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(value))
          74  +
            .peekable();
          75  +
    let tokens = &mut tokens_owned;
          76  +
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
          77  +
    loop {
          78  +
        match tokens.next().transpose()? {
          79  +
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
          80  +
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
          81  +
                match key.to_unescaped()?.as_ref() {
          82  +
                    "inlineDocument" => {
          83  +
                        builder = builder.set_inline_document(Some(
          84  +
                            ::aws_smithy_json::deserialize::token::expect_document(tokens)?,
          85  +
                        ));
          86  +
                    }
          87  +
                    _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
          88  +
                }
          89  +
            }
          90  +
            other => {
          91  +
                return Err(
          92  +
                    ::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
          93  +
                        "expected object key or end object, found: {other:?}"
          94  +
                    )),
          95  +
                )
          96  +
            }
          97  +
        }
          98  +
    }
          99  +
    if tokens.next().is_some() {
         100  +
        return Err(
         101  +
            ::aws_smithy_json::deserialize::error::DeserializeError::custom(
         102  +
                "found more JSON tokens after completing parsing",
         103  +
            ),
         104  +
        );
         105  +
    }
         106  +
    Ok(builder)
         107  +
}

tmp-codegen-diff/codegen-server-test/json_rpc11-http0x/rust-server-codegen/src/protocol_serde/shape_put_and_get_inline_documents_output.rs

@@ -0,1 +0,20 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub fn ser_put_and_get_inline_documents_output_output_output(
           3  +
    value: &crate::output::PutAndGetInlineDocumentsOutput,
           4  +
) -> ::std::result::Result<String, ::aws_smithy_types::error::operation::SerializationError> {
           5  +
    let mut out = ::std::string::String::new();
           6  +
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
           7  +
    crate::protocol_serde::shape_put_and_get_inline_documents_output::ser_put_and_get_inline_documents_output_output(&mut object, value)?;
           8  +
    object.finish();
           9  +
    Ok(out)
          10  +
}
          11  +
          12  +
pub fn ser_put_and_get_inline_documents_output_output(
          13  +
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
          14  +
    input: &crate::output::PutAndGetInlineDocumentsOutput,
          15  +
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
          16  +
    if let Some(var_1) = &input.inline_document {
          17  +
        object.key("inlineDocument").document(var_1);
          18  +
    }
          19  +
    Ok(())
          20  +
}

tmp-codegen-diff/codegen-server-test/json_rpc11-http0x/rust-server-codegen/src/protocol_serde/shape_put_with_content_encoding.rs

@@ -0,1 +0,118 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
#[allow(clippy::unnecessary_wraps)]
           3  +
pub async fn de_put_with_content_encoding_http_request<B>(
           4  +
    #[allow(unused_variables)] request: ::http::Request<B>,
           5  +
) -> std::result::Result<
           6  +
    crate::input::PutWithContentEncodingInput,
           7  +
    ::aws_smithy_legacy_http_server::protocol::aws_json::rejection::RequestRejection,
           8  +
>
           9  +
where
          10  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
          11  +
    B::Data: Send,
          12  +
    ::aws_smithy_legacy_http_server::protocol::aws_json::rejection::RequestRejection:
          13  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
          14  +
{
          15  +
    Ok({
          16  +
        #[allow(unused_mut)]
          17  +
        let mut input = crate::input::put_with_content_encoding_input::Builder::default();
          18  +
        #[allow(unused_variables)]
          19  +
        let ::aws_smithy_runtime_api::http::RequestParts {
          20  +
            uri, headers, body, ..
          21  +
        } = ::aws_smithy_runtime_api::http::Request::try_from(request)?.into_parts();
          22  +
        let bytes = ::hyper::body::to_bytes(body).await?;
          23  +
        if !bytes.is_empty() {
          24  +
            ::aws_smithy_legacy_http_server::protocol::content_type_header_classifier_smithy(
          25  +
                &headers,
          26  +
                Some("application/x-amz-json-1.1"),
          27  +
            )?;
          28  +
            input = crate::protocol_serde::shape_put_with_content_encoding::de_put_with_content_encoding(bytes.as_ref(), input)?;
          29  +
        }
          30  +
        input.build()
          31  +
    })
          32  +
}
          33  +
          34  +
#[allow(clippy::unnecessary_wraps)]
          35  +
pub fn ser_put_with_content_encoding_http_response(
          36  +
    #[allow(unused_variables)] output: crate::output::PutWithContentEncodingOutput,
          37  +
) -> std::result::Result<
          38  +
    ::aws_smithy_legacy_http_server::response::Response,
          39  +
    ::aws_smithy_legacy_http_server::protocol::aws_json::rejection::ResponseRejection,
          40  +
> {
          41  +
    Ok({
          42  +
        #[allow(unused_mut)]
          43  +
        let mut builder = ::http::Response::builder();
          44  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
          45  +
            builder,
          46  +
            ::http::header::CONTENT_TYPE,
          47  +
            "application/x-amz-json-1.1",
          48  +
        );
          49  +
        let http_status: u16 = 200;
          50  +
        builder = builder.status(http_status);
          51  +
        let payload = "";
          52  +
        let content_length = payload.len();
          53  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
          54  +
            builder,
          55  +
            ::http::header::CONTENT_LENGTH,
          56  +
            content_length,
          57  +
        );
          58  +
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);
          59  +
        builder.body(body)?
          60  +
    })
          61  +
}
          62  +
          63  +
pub(crate) fn de_put_with_content_encoding(
          64  +
    value: &[u8],
          65  +
    mut builder: crate::input::put_with_content_encoding_input::Builder,
          66  +
) -> ::std::result::Result<
          67  +
    crate::input::put_with_content_encoding_input::Builder,
          68  +
    ::aws_smithy_json::deserialize::error::DeserializeError,
          69  +
> {
          70  +
    let mut tokens_owned =
          71  +
        ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(value))
          72  +
            .peekable();
          73  +
    let tokens = &mut tokens_owned;
          74  +
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
          75  +
    loop {
          76  +
        match tokens.next().transpose()? {
          77  +
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
          78  +
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
          79  +
                match key.to_unescaped()?.as_ref() {
          80  +
                    "encoding" => {
          81  +
                        builder = builder.set_encoding(
          82  +
                            ::aws_smithy_json::deserialize::token::expect_string_or_null(
          83  +
                                tokens.next(),
          84  +
                            )?
          85  +
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
          86  +
                            .transpose()?,
          87  +
                        );
          88  +
                    }
          89  +
                    "data" => {
          90  +
                        builder = builder.set_data(
          91  +
                            ::aws_smithy_json::deserialize::token::expect_string_or_null(
          92  +
                                tokens.next(),
          93  +
                            )?
          94  +
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
          95  +
                            .transpose()?,
          96  +
                        );
          97  +
                    }
          98  +
                    _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
          99  +
                }
         100  +
            }
         101  +
            other => {
         102  +
                return Err(
         103  +
                    ::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
         104  +
                        "expected object key or end object, found: {other:?}"
         105  +
                    )),
         106  +
                )
         107  +
            }
         108  +
        }
         109  +
    }
         110  +
    if tokens.next().is_some() {
         111  +
        return Err(
         112  +
            ::aws_smithy_json::deserialize::error::DeserializeError::custom(
         113  +
                "found more JSON tokens after completing parsing",
         114  +
            ),
         115  +
        );
         116  +
    }
         117  +
    Ok(builder)
         118  +
}

tmp-codegen-diff/codegen-server-test/json_rpc11-http0x/rust-server-codegen/src/protocol_serde/shape_simple_scalar_properties.rs

@@ -0,1 +0,122 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
#[allow(clippy::unnecessary_wraps)]
           3  +
pub async fn de_simple_scalar_properties_http_request<B>(
           4  +
    #[allow(unused_variables)] request: ::http::Request<B>,
           5  +
) -> std::result::Result<
           6  +
    crate::input::SimpleScalarPropertiesInput,
           7  +
    ::aws_smithy_legacy_http_server::protocol::aws_json::rejection::RequestRejection,
           8  +
>
           9  +
where
          10  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
          11  +
    B::Data: Send,
          12  +
    ::aws_smithy_legacy_http_server::protocol::aws_json::rejection::RequestRejection:
          13  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
          14  +
{
          15  +
    Ok({
          16  +
        #[allow(unused_mut)]
          17  +
        let mut input = crate::input::simple_scalar_properties_input::Builder::default();
          18  +
        #[allow(unused_variables)]
          19  +
        let ::aws_smithy_runtime_api::http::RequestParts {
          20  +
            uri, headers, body, ..
          21  +
        } = ::aws_smithy_runtime_api::http::Request::try_from(request)?.into_parts();
          22  +
        let bytes = ::hyper::body::to_bytes(body).await?;
          23  +
        if !bytes.is_empty() {
          24  +
            ::aws_smithy_legacy_http_server::protocol::content_type_header_classifier_smithy(
          25  +
                &headers,
          26  +
                Some("application/x-amz-json-1.1"),
          27  +
            )?;
          28  +
            input =
          29  +
                crate::protocol_serde::shape_simple_scalar_properties::de_simple_scalar_properties(
          30  +
                    bytes.as_ref(),
          31  +
                    input,
          32  +
                )?;
          33  +
        }
          34  +
        input.build()
          35  +
    })
          36  +
}
          37  +
          38  +
#[allow(clippy::unnecessary_wraps)]
          39  +
pub fn ser_simple_scalar_properties_http_response(
          40  +
    #[allow(unused_variables)] output: crate::output::SimpleScalarPropertiesOutput,
          41  +
) -> std::result::Result<
          42  +
    ::aws_smithy_legacy_http_server::response::Response,
          43  +
    ::aws_smithy_legacy_http_server::protocol::aws_json::rejection::ResponseRejection,
          44  +
> {
          45  +
    Ok({
          46  +
        #[allow(unused_mut)]
          47  +
        let mut builder = ::http::Response::builder();
          48  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
          49  +
            builder,
          50  +
            ::http::header::CONTENT_TYPE,
          51  +
            "application/x-amz-json-1.1",
          52  +
        );
          53  +
        let http_status: u16 = 200;
          54  +
        builder = builder.status(http_status);
          55  +
        let payload =
          56  +
            crate::protocol_serde::shape_simple_scalar_properties_output::ser_simple_scalar_properties_output_output_output(&output)?
          57  +
        ;
          58  +
        let content_length = payload.len();
          59  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
          60  +
            builder,
          61  +
            ::http::header::CONTENT_LENGTH,
          62  +
            content_length,
          63  +
        );
          64  +
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);
          65  +
        builder.body(body)?
          66  +
    })
          67  +
}
          68  +
          69  +
pub(crate) fn de_simple_scalar_properties(
          70  +
    value: &[u8],
          71  +
    mut builder: crate::input::simple_scalar_properties_input::Builder,
          72  +
) -> ::std::result::Result<
          73  +
    crate::input::simple_scalar_properties_input::Builder,
          74  +
    ::aws_smithy_json::deserialize::error::DeserializeError,
          75  +
> {
          76  +
    let mut tokens_owned =
          77  +
        ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(value))
          78  +
            .peekable();
          79  +
    let tokens = &mut tokens_owned;
          80  +
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
          81  +
    loop {
          82  +
        match tokens.next().transpose()? {
          83  +
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
          84  +
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
          85  +
                match key.to_unescaped()?.as_ref() {
          86  +
                    "floatValue" => {
          87  +
                        builder = builder.set_float_value(
          88  +
                            ::aws_smithy_json::deserialize::token::expect_number_or_null(
          89  +
                                tokens.next(),
          90  +
                            )?
          91  +
                            .map(|v| v.to_f32_lossy()),
          92  +
                        );
          93  +
                    }
          94  +
                    "doubleValue" => {
          95  +
                        builder = builder.set_double_value(
          96  +
                            ::aws_smithy_json::deserialize::token::expect_number_or_null(
          97  +
                                tokens.next(),
          98  +
                            )?
          99  +
                            .map(|v| v.to_f64_lossy()),
         100  +
                        );
         101  +
                    }
         102  +
                    _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
         103  +
                }
         104  +
            }
         105  +
            other => {
         106  +
                return Err(
         107  +
                    ::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
         108  +
                        "expected object key or end object, found: {other:?}"
         109  +
                    )),
         110  +
                )
         111  +
            }
         112  +
        }
         113  +
    }
         114  +
    if tokens.next().is_some() {
         115  +
        return Err(
         116  +
            ::aws_smithy_json::deserialize::error::DeserializeError::custom(
         117  +
                "found more JSON tokens after completing parsing",
         118  +
            ),
         119  +
        );
         120  +
    }
         121  +
    Ok(builder)
         122  +
}

tmp-codegen-diff/codegen-server-test/json_rpc11-http0x/rust-server-codegen/src/protocol_serde/shape_simple_scalar_properties_output.rs

@@ -0,1 +0,29 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub fn ser_simple_scalar_properties_output_output_output(
           3  +
    value: &crate::output::SimpleScalarPropertiesOutput,
           4  +
) -> ::std::result::Result<String, ::aws_smithy_types::error::operation::SerializationError> {
           5  +
    let mut out = ::std::string::String::new();
           6  +
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
           7  +
    crate::protocol_serde::shape_simple_scalar_properties_output::ser_simple_scalar_properties_output_output(&mut object, value)?;
           8  +
    object.finish();
           9  +
    Ok(out)
          10  +
}
          11  +
          12  +
pub fn ser_simple_scalar_properties_output_output(
          13  +
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
          14  +
    input: &crate::output::SimpleScalarPropertiesOutput,
          15  +
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
          16  +
    if let Some(var_1) = &input.float_value {
          17  +
        object.key("floatValue").number(
          18  +
            #[allow(clippy::useless_conversion)]
          19  +
            ::aws_smithy_types::Number::Float((*var_1).into()),
          20  +
        );
          21  +
    }
          22  +
    if let Some(var_2) = &input.double_value {
          23  +
        object.key("doubleValue").number(
          24  +
            #[allow(clippy::useless_conversion)]
          25  +
            ::aws_smithy_types::Number::Float((*var_2).into()),
          26  +
        );
          27  +
    }
          28  +
    Ok(())
          29  +
}

tmp-codegen-diff/codegen-server-test/json_rpc11-http0x/rust-server-codegen/src/protocol_serde/shape_simple_struct.rs

@@ -0,1 +0,65 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub(crate) fn de_simple_struct<'a, I>(
           3  +
    tokens: &mut ::std::iter::Peekable<I>,
           4  +
) -> ::std::result::Result<
           5  +
    Option<crate::model::SimpleStruct>,
           6  +
    ::aws_smithy_json::deserialize::error::DeserializeError,
           7  +
>
           8  +
where
           9  +
    I: Iterator<
          10  +
        Item = Result<
          11  +
            ::aws_smithy_json::deserialize::Token<'a>,
          12  +
            ::aws_smithy_json::deserialize::error::DeserializeError,
          13  +
        >,
          14  +
    >,
          15  +
{
          16  +
    match tokens.next().transpose()? {
          17  +
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
          18  +
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
          19  +
            #[allow(unused_mut)]
          20  +
            let mut builder = crate::model::simple_struct::Builder::default();
          21  +
            loop {
          22  +
                match tokens.next().transpose()? {
          23  +
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
          24  +
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
          25  +
                        match key.to_unescaped()?.as_ref() {
          26  +
                            "Value" => {
          27  +
                                builder = builder.set_value(
          28  +
                                    ::aws_smithy_json::deserialize::token::expect_string_or_null(
          29  +
                                        tokens.next(),
          30  +
                                    )?
          31  +
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
          32  +
                                    .transpose()?,
          33  +
                                );
          34  +
                            }
          35  +
                            _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
          36  +
                        }
          37  +
                    }
          38  +
                    other => {
          39  +
                        return Err(
          40  +
                            ::aws_smithy_json::deserialize::error::DeserializeError::custom(
          41  +
                                format!("expected object key or end object, found: {other:?}"),
          42  +
                            ),
          43  +
                        )
          44  +
                    }
          45  +
                }
          46  +
            }
          47  +
            Ok(Some(builder.build()))
          48  +
        }
          49  +
        _ => Err(
          50  +
            ::aws_smithy_json::deserialize::error::DeserializeError::custom(
          51  +
                "expected start object or null",
          52  +
            ),
          53  +
        ),
          54  +
    }
          55  +
}
          56  +
          57  +
pub fn ser_simple_struct(
          58  +
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
          59  +
    input: &crate::model::SimpleStruct,
          60  +
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
          61  +
    if let Some(var_1) = &input.value {
          62  +
        object.key("Value").string(var_1.as_str());
          63  +
    }
          64  +
    Ok(())
          65  +
}

tmp-codegen-diff/codegen-server-test/json_rpc11-http0x/rust-server-codegen/src/protocol_serde/shape_sparse_nulls_operation.rs

@@ -0,1 +0,119 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
#[allow(clippy::unnecessary_wraps)]
           3  +
pub async fn de_sparse_nulls_operation_http_request<B>(
           4  +
    #[allow(unused_variables)] request: ::http::Request<B>,
           5  +
) -> std::result::Result<
           6  +
    crate::input::SparseNullsOperationInput,
           7  +
    ::aws_smithy_legacy_http_server::protocol::aws_json::rejection::RequestRejection,
           8  +
>
           9  +
where
          10  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
          11  +
    B::Data: Send,
          12  +
    ::aws_smithy_legacy_http_server::protocol::aws_json::rejection::RequestRejection:
          13  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
          14  +
{
          15  +
    Ok({
          16  +
        #[allow(unused_mut)]
          17  +
        let mut input = crate::input::sparse_nulls_operation_input::Builder::default();
          18  +
        #[allow(unused_variables)]
          19  +
        let ::aws_smithy_runtime_api::http::RequestParts {
          20  +
            uri, headers, body, ..
          21  +
        } = ::aws_smithy_runtime_api::http::Request::try_from(request)?.into_parts();
          22  +
        let bytes = ::hyper::body::to_bytes(body).await?;
          23  +
        if !bytes.is_empty() {
          24  +
            ::aws_smithy_legacy_http_server::protocol::content_type_header_classifier_smithy(
          25  +
                &headers,
          26  +
                Some("application/x-amz-json-1.1"),
          27  +
            )?;
          28  +
            input = crate::protocol_serde::shape_sparse_nulls_operation::de_sparse_nulls_operation(
          29  +
                bytes.as_ref(),
          30  +
                input,
          31  +
            )?;
          32  +
        }
          33  +
        input.build()
          34  +
    })
          35  +
}
          36  +
          37  +
#[allow(clippy::unnecessary_wraps)]
          38  +
pub fn ser_sparse_nulls_operation_http_response(
          39  +
    #[allow(unused_variables)] output: crate::output::SparseNullsOperationOutput,
          40  +
) -> std::result::Result<
          41  +
    ::aws_smithy_legacy_http_server::response::Response,
          42  +
    ::aws_smithy_legacy_http_server::protocol::aws_json::rejection::ResponseRejection,
          43  +
> {
          44  +
    Ok({
          45  +
        #[allow(unused_mut)]
          46  +
        let mut builder = ::http::Response::builder();
          47  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
          48  +
            builder,
          49  +
            ::http::header::CONTENT_TYPE,
          50  +
            "application/x-amz-json-1.1",
          51  +
        );
          52  +
        let http_status: u16 = 200;
          53  +
        builder = builder.status(http_status);
          54  +
        let payload =
          55  +
            crate::protocol_serde::shape_sparse_nulls_operation_output::ser_sparse_nulls_operation_output_output_output(&output)?
          56  +
        ;
          57  +
        let content_length = payload.len();
          58  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
          59  +
            builder,
          60  +
            ::http::header::CONTENT_LENGTH,
          61  +
            content_length,
          62  +
        );
          63  +
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);
          64  +
        builder.body(body)?
          65  +
    })
          66  +
}
          67  +
          68  +
pub(crate) fn de_sparse_nulls_operation(
          69  +
    value: &[u8],
          70  +
    mut builder: crate::input::sparse_nulls_operation_input::Builder,
          71  +
) -> ::std::result::Result<
          72  +
    crate::input::sparse_nulls_operation_input::Builder,
          73  +
    ::aws_smithy_json::deserialize::error::DeserializeError,
          74  +
> {
          75  +
    let mut tokens_owned =
          76  +
        ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(value))
          77  +
            .peekable();
          78  +
    let tokens = &mut tokens_owned;
          79  +
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
          80  +
    loop {
          81  +
        match tokens.next().transpose()? {
          82  +
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
          83  +
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
          84  +
                match key.to_unescaped()?.as_ref() {
          85  +
                    "sparseStringList" => {
          86  +
                        builder = builder.set_sparse_string_list(
          87  +
                            crate::protocol_serde::shape_sparse_string_list::de_sparse_string_list(
          88  +
                                tokens,
          89  +
                            )?,
          90  +
                        );
          91  +
                    }
          92  +
                    "sparseStringMap" => {
          93  +
                        builder = builder.set_sparse_string_map(
          94  +
                            crate::protocol_serde::shape_sparse_string_map::de_sparse_string_map(
          95  +
                                tokens,
          96  +
                            )?,
          97  +
                        );
          98  +
                    }
          99  +
                    _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
         100  +
                }
         101  +
            }
         102  +
            other => {
         103  +
                return Err(
         104  +
                    ::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
         105  +
                        "expected object key or end object, found: {other:?}"
         106  +
                    )),
         107  +
                )
         108  +
            }
         109  +
        }
         110  +
    }
         111  +
    if tokens.next().is_some() {
         112  +
        return Err(
         113  +
            ::aws_smithy_json::deserialize::error::DeserializeError::custom(
         114  +
                "found more JSON tokens after completing parsing",
         115  +
            ),
         116  +
        );
         117  +
    }
         118  +
    Ok(builder)
         119  +
}

tmp-codegen-diff/codegen-server-test/json_rpc11-http0x/rust-server-codegen/src/protocol_serde/shape_sparse_nulls_operation_output.rs

@@ -0,1 +0,40 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub fn ser_sparse_nulls_operation_output_output_output(
           3  +
    value: &crate::output::SparseNullsOperationOutput,
           4  +
) -> ::std::result::Result<String, ::aws_smithy_types::error::operation::SerializationError> {
           5  +
    let mut out = ::std::string::String::new();
           6  +
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
           7  +
    crate::protocol_serde::shape_sparse_nulls_operation_output::ser_sparse_nulls_operation_output_output(&mut object, value)?;
           8  +
    object.finish();
           9  +
    Ok(out)
          10  +
}
          11  +
          12  +
pub fn ser_sparse_nulls_operation_output_output(
          13  +
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
          14  +
    input: &crate::output::SparseNullsOperationOutput,
          15  +
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
          16  +
    if let Some(var_1) = &input.sparse_string_list {
          17  +
        let mut array_2 = object.key("sparseStringList").start_array();
          18  +
        for item_3 in var_1 {
          19  +
            if let Some(var_4) = item_3 {
          20  +
                array_2.value().string(var_4.as_str());
          21  +
            } else {
          22  +
                array_2.value().null();
          23  +
            }
          24  +
        }
          25  +
        array_2.finish();
          26  +
    }
          27  +
    if let Some(var_5) = &input.sparse_string_map {
          28  +
        #[allow(unused_mut)]
          29  +
        let mut object_6 = object.key("sparseStringMap").start_object();
          30  +
        for (key_7, value_8) in var_5 {
          31  +
            if let Some(var_9) = value_8 {
          32  +
                object_6.key(key_7.as_str()).string(var_9.as_str());
          33  +
            } else {
          34  +
                object_6.key(key_7.as_str()).null();
          35  +
            }
          36  +
        }
          37  +
        object_6.finish();
          38  +
    }
          39  +
    Ok(())
          40  +
}

tmp-codegen-diff/codegen-server-test/json_rpc11-http0x/rust-server-codegen/src/protocol_serde/shape_sparse_string_list.rs

@@ -0,1 +0,45 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub(crate) fn de_sparse_string_list<'a, I>(
           3  +
    tokens: &mut ::std::iter::Peekable<I>,
           4  +
) -> ::std::result::Result<
           5  +
    Option<::std::vec::Vec<::std::option::Option<::std::string::String>>>,
           6  +
    ::aws_smithy_json::deserialize::error::DeserializeError,
           7  +
>
           8  +
where
           9  +
    I: Iterator<
          10  +
        Item = Result<
          11  +
            ::aws_smithy_json::deserialize::Token<'a>,
          12  +
            ::aws_smithy_json::deserialize::error::DeserializeError,
          13  +
        >,
          14  +
    >,
          15  +
{
          16  +
    match tokens.next().transpose()? {
          17  +
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
          18  +
        Some(::aws_smithy_json::deserialize::Token::StartArray { .. }) => {
          19  +
            let mut items = Vec::new();
          20  +
            loop {
          21  +
                match tokens.peek() {
          22  +
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
          23  +
                        tokens.next().transpose().unwrap();
          24  +
                        break;
          25  +
                    }
          26  +
                    _ => {
          27  +
                        items.push(
          28  +
                            ::aws_smithy_json::deserialize::token::expect_string_or_null(
          29  +
                                tokens.next(),
          30  +
                            )?
          31  +
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
          32  +
                            .transpose()?,
          33  +
                        );
          34  +
                    }
          35  +
                }
          36  +
            }
          37  +
            Ok(Some(items))
          38  +
        }
          39  +
        _ => Err(
          40  +
            ::aws_smithy_json::deserialize::error::DeserializeError::custom(
          41  +
                "expected start array or null",
          42  +
            ),
          43  +
        ),
          44  +
    }
          45  +
}

tmp-codegen-diff/codegen-server-test/json_rpc11-http0x/rust-server-codegen/src/protocol_serde/shape_sparse_string_map.rs

@@ -0,1 +0,54 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub(crate) fn de_sparse_string_map<'a, I>(
           3  +
    tokens: &mut ::std::iter::Peekable<I>,
           4  +
) -> ::std::result::Result<
           5  +
    Option<
           6  +
        ::std::collections::HashMap<
           7  +
            ::std::string::String,
           8  +
            ::std::option::Option<::std::string::String>,
           9  +
        >,
          10  +
    >,
          11  +
    ::aws_smithy_json::deserialize::error::DeserializeError,
          12  +
>
          13  +
where
          14  +
    I: Iterator<
          15  +
        Item = Result<
          16  +
            ::aws_smithy_json::deserialize::Token<'a>,
          17  +
            ::aws_smithy_json::deserialize::error::DeserializeError,
          18  +
        >,
          19  +
    >,
          20  +
{
          21  +
    match tokens.next().transpose()? {
          22  +
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
          23  +
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
          24  +
            let mut map = ::std::collections::HashMap::new();
          25  +
            loop {
          26  +
                match tokens.next().transpose()? {
          27  +
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
          28  +
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
          29  +
                        let key = key.to_unescaped().map(|u| u.into_owned())?;
          30  +
                        let value = ::aws_smithy_json::deserialize::token::expect_string_or_null(
          31  +
                            tokens.next(),
          32  +
                        )?
          33  +
                        .map(|s| s.to_unescaped().map(|u| u.into_owned()))
          34  +
                        .transpose()?;
          35  +
                        map.insert(key, value);
          36  +
                    }
          37  +
                    other => {
          38  +
                        return Err(
          39  +
                            ::aws_smithy_json::deserialize::error::DeserializeError::custom(
          40  +
                                format!("expected object key or end object, found: {other:?}"),
          41  +
                            ),
          42  +
                        )
          43  +
                    }
          44  +
                }
          45  +
            }
          46  +
            Ok(Some(map))
          47  +
        }
          48  +
        _ => Err(
          49  +
            ::aws_smithy_json::deserialize::error::DeserializeError::custom(
          50  +
                "expected start object or null",
          51  +
            ),
          52  +
        ),
          53  +
    }
          54  +
}

tmp-codegen-diff/codegen-server-test/json_rpc11-http0x/rust-server-codegen/src/protocol_serde/shape_string_list.rs

@@ -0,1 +0,52 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub(crate) fn de_string_list<'a, I>(
           3  +
    tokens: &mut ::std::iter::Peekable<I>,
           4  +
) -> ::std::result::Result<
           5  +
    Option<::std::vec::Vec<::std::string::String>>,
           6  +
    ::aws_smithy_json::deserialize::error::DeserializeError,
           7  +
>
           8  +
where
           9  +
    I: Iterator<
          10  +
        Item = Result<
          11  +
            ::aws_smithy_json::deserialize::Token<'a>,
          12  +
            ::aws_smithy_json::deserialize::error::DeserializeError,
          13  +
        >,
          14  +
    >,
          15  +
{
          16  +
    match tokens.next().transpose()? {
          17  +
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
          18  +
        Some(::aws_smithy_json::deserialize::Token::StartArray { .. }) => {
          19  +
            let mut items = Vec::new();
          20  +
            loop {
          21  +
                match tokens.peek() {
          22  +
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
          23  +
                        tokens.next().transpose().unwrap();
          24  +
                        break;
          25  +
                    }
          26  +
                    _ => {
          27  +
                        let value = ::aws_smithy_json::deserialize::token::expect_string_or_null(
          28  +
                            tokens.next(),
          29  +
                        )?
          30  +
                        .map(|s| s.to_unescaped().map(|u| u.into_owned()))
          31  +
                        .transpose()?;
          32  +
                        if let Some(value) = value {
          33  +
                            items.push(value);
          34  +
                        } else {
          35  +
                            return Err(
          36  +
                                ::aws_smithy_json::deserialize::error::DeserializeError::custom(
          37  +
                                    "dense list cannot contain null values",
          38  +
                                ),
          39  +
                            );
          40  +
                        }
          41  +
                    }
          42  +
                }
          43  +
            }
          44  +
            Ok(Some(items))
          45  +
        }
          46  +
        _ => Err(
          47  +
            ::aws_smithy_json::deserialize::error::DeserializeError::custom(
          48  +
                "expected start array or null",
          49  +
            ),
          50  +
        ),
          51  +
    }
          52  +
}

tmp-codegen-diff/codegen-server-test/json_rpc11-http0x/rust-server-codegen/src/protocol_serde/shape_string_map.rs

@@ -0,1 +0,60 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub(crate) fn de_string_map<'a, I>(
           3  +
    tokens: &mut ::std::iter::Peekable<I>,
           4  +
) -> ::std::result::Result<
           5  +
    Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
           6  +
    ::aws_smithy_json::deserialize::error::DeserializeError,
           7  +
>
           8  +
where
           9  +
    I: Iterator<
          10  +
        Item = Result<
          11  +
            ::aws_smithy_json::deserialize::Token<'a>,
          12  +
            ::aws_smithy_json::deserialize::error::DeserializeError,
          13  +
        >,
          14  +
    >,
          15  +
{
          16  +
    match tokens.next().transpose()? {
          17  +
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
          18  +
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
          19  +
            let mut map = ::std::collections::HashMap::new();
          20  +
            loop {
          21  +
                match tokens.next().transpose()? {
          22  +
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
          23  +
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
          24  +
                        let key = key.to_unescaped().map(|u| u.into_owned())?;
          25  +
                        let value = ::aws_smithy_json::deserialize::token::expect_string_or_null(
          26  +
                            tokens.next(),
          27  +
                        )?
          28  +
                        .map(|s| s.to_unescaped().map(|u| u.into_owned()))
          29  +
                        .transpose()?;
          30  +
                        match value {
          31  +
                            Some(value) => {
          32  +
                                map.insert(key, value);
          33  +
                            }
          34  +
                            None => {
          35  +
                                return Err(
          36  +
                                    ::aws_smithy_json::deserialize::error::DeserializeError::custom(
          37  +
                                        "dense map cannot contain null values",
          38  +
                                    ),
          39  +
                                )
          40  +
                            }
          41  +
                        }
          42  +
                    }
          43  +
                    other => {
          44  +
                        return Err(
          45  +
                            ::aws_smithy_json::deserialize::error::DeserializeError::custom(
          46  +
                                format!("expected object key or end object, found: {other:?}"),
          47  +
                            ),
          48  +
                        )
          49  +
                    }
          50  +
                }
          51  +
            }
          52  +
            Ok(Some(map))
          53  +
        }
          54  +
        _ => Err(
          55  +
            ::aws_smithy_json::deserialize::error::DeserializeError::custom(
          56  +
                "expected start object or null",
          57  +
            ),
          58  +
        ),
          59  +
    }
          60  +
}

tmp-codegen-diff/codegen-server-test/json_rpc11-http0x/rust-server-codegen/src/protocol_serde/shape_struct_with_json_name.rs

@@ -0,1 +0,65 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub(crate) fn de_struct_with_json_name<'a, I>(
           3  +
    tokens: &mut ::std::iter::Peekable<I>,
           4  +
) -> ::std::result::Result<
           5  +
    Option<crate::model::StructWithJsonName>,
           6  +
    ::aws_smithy_json::deserialize::error::DeserializeError,
           7  +
>
           8  +
where
           9  +
    I: Iterator<
          10  +
        Item = Result<
          11  +
            ::aws_smithy_json::deserialize::Token<'a>,
          12  +
            ::aws_smithy_json::deserialize::error::DeserializeError,
          13  +
        >,
          14  +
    >,
          15  +
{
          16  +
    match tokens.next().transpose()? {
          17  +
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
          18  +
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
          19  +
            #[allow(unused_mut)]
          20  +
            let mut builder = crate::model::struct_with_json_name::Builder::default();
          21  +
            loop {
          22  +
                match tokens.next().transpose()? {
          23  +
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
          24  +
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
          25  +
                        match key.to_unescaped()?.as_ref() {
          26  +
                            "Value" => {
          27  +
                                builder = builder.set_value(
          28  +
                                    ::aws_smithy_json::deserialize::token::expect_string_or_null(
          29  +
                                        tokens.next(),
          30  +
                                    )?
          31  +
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
          32  +
                                    .transpose()?,
          33  +
                                );
          34  +
                            }
          35  +
                            _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
          36  +
                        }
          37  +
                    }
          38  +
                    other => {
          39  +
                        return Err(
          40  +
                            ::aws_smithy_json::deserialize::error::DeserializeError::custom(
          41  +
                                format!("expected object key or end object, found: {other:?}"),
          42  +
                            ),
          43  +
                        )
          44  +
                    }
          45  +
                }
          46  +
            }
          47  +
            Ok(Some(builder.build()))
          48  +
        }
          49  +
        _ => Err(
          50  +
            ::aws_smithy_json::deserialize::error::DeserializeError::custom(
          51  +
                "expected start object or null",
          52  +
            ),
          53  +
        ),
          54  +
    }
          55  +
}
          56  +
          57  +
pub fn ser_struct_with_json_name(
          58  +
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
          59  +
    input: &crate::model::StructWithJsonName,
          60  +
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
          61  +
    if let Some(var_1) = &input.value {
          62  +
        object.key("Value").string(var_1.as_str());
          63  +
    }
          64  +
    Ok(())
          65  +
}

tmp-codegen-diff/codegen-server-test/json_rpc11-http0x/rust-server-codegen/src/protocol_serde/shape_validation_exception.rs

@@ -0,1 +0,36 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub fn ser_validation_exception_error(
           3  +
    value: &crate::error::ValidationException,
           4  +
) -> ::std::result::Result<String, ::aws_smithy_types::error::operation::SerializationError> {
           5  +
    let mut out = ::std::string::String::new();
           6  +
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
           7  +
    crate::protocol_serde::shape_validation_exception::ser_validation_exception(
           8  +
        &mut object,
           9  +
        value,
          10  +
    )?;
          11  +
    object.key("__type").string("ValidationException");
          12  +
    object.finish();
          13  +
    Ok(out)
          14  +
}
          15  +
          16  +
pub fn ser_validation_exception(
          17  +
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
          18  +
    input: &crate::error::ValidationException,
          19  +
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
          20  +
    {
          21  +
        object.key("message").string(input.message.as_str());
          22  +
    }
          23  +
    if let Some(var_1) = &input.field_list {
          24  +
        let mut array_2 = object.key("fieldList").start_array();
          25  +
        for item_3 in var_1 {
          26  +
            {
          27  +
                #[allow(unused_mut)]
          28  +
                let mut object_4 = array_2.value().start_object();
          29  +
                crate::protocol_serde::shape_validation_exception_field::ser_validation_exception_field(&mut object_4, item_3)?;
          30  +
                object_4.finish();
          31  +
            }
          32  +
        }
          33  +
        array_2.finish();
          34  +
    }
          35  +
    Ok(())
          36  +
}

tmp-codegen-diff/codegen-server-test/json_rpc11-http0x/rust-server-codegen/src/protocol_serde/shape_validation_exception_field.rs

@@ -0,1 +0,13 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub fn ser_validation_exception_field(
           3  +
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
           4  +
    input: &crate::model::ValidationExceptionField,
           5  +
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
           6  +
    {
           7  +
        object.key("path").string(input.path.as_str());
           8  +
    }
           9  +
    {
          10  +
        object.key("message").string(input.message.as_str());
          11  +
    }
          12  +
    Ok(())
          13  +
}

tmp-codegen-diff/codegen-server-test/json_rpc11-http0x/rust-server-codegen/src/service.rs

@@ -0,1 +0,4101 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/// The service builder for [`JsonProtocol`].
           3  +
///
           4  +
/// Constructed via [`JsonProtocol::builder`].
           5  +
pub struct JsonProtocolBuilder<Body, L, HttpPl, ModelPl> {
           6  +
    content_type_parameters: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
           7  +
    datetime_offsets: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
           8  +
    empty_operation: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
           9  +
    endpoint_operation: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
          10  +
    endpoint_with_host_label_operation:
          11  +
        Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
          12  +
    fractional_seconds: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
          13  +
    greeting_with_errors: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
          14  +
    host_with_path_operation: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
          15  +
    json_enums: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
          16  +
    json_int_enums: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
          17  +
    json_unions: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
          18  +
    kitchen_sink_operation: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
          19  +
    null_operation: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
          20  +
    operation_with_optional_input_output:
          21  +
        Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
          22  +
    put_and_get_inline_documents: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
          23  +
    put_with_content_encoding: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
          24  +
    simple_scalar_properties: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
          25  +
    sparse_nulls_operation: Option<::aws_smithy_legacy_http_server::routing::Route<Body>>,
          26  +
    layer: L,
          27  +
    http_plugin: HttpPl,
          28  +
    model_plugin: ModelPl,
          29  +
}
          30  +
          31  +
impl<Body, L, HttpPl, ModelPl> JsonProtocolBuilder<Body, L, HttpPl, ModelPl> {
          32  +
    /// Sets the [`ContentTypeParameters`](crate::operation_shape::ContentTypeParameters) operation.
          33  +
    ///
          34  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
          35  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
          36  +
    ///
          37  +
    /// # Example
          38  +
    ///
          39  +
    /// ```no_run
          40  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
          41  +
    ///
          42  +
    /// use json_rpc11_http0x::{input, output, error};
          43  +
    ///
          44  +
    /// async fn handler(input: input::ContentTypeParametersInput) -> output::ContentTypeParametersOutput {
          45  +
    ///     todo!()
          46  +
    /// }
          47  +
    ///
          48  +
    /// let config = JsonProtocolConfig::builder().build();
          49  +
    /// let app = JsonProtocol::builder(config)
          50  +
    ///     .content_type_parameters(handler)
          51  +
    ///     /* Set other handlers */
          52  +
    ///     .build()
          53  +
    ///     .unwrap();
          54  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
          55  +
    /// ```
          56  +
    ///
          57  +
                    pub fn content_type_parameters<HandlerType, HandlerExtractors, UpgradeExtractors>(self, handler: HandlerType) -> Self
          58  +
                    where
          59  +
                        HandlerType: ::aws_smithy_legacy_http_server::operation::Handler<crate::operation_shape::ContentTypeParameters, HandlerExtractors>,
          60  +
          61  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
          62  +
                            JsonProtocol<L>,
          63  +
                            crate::operation_shape::ContentTypeParameters,
          64  +
                            ::aws_smithy_legacy_http_server::operation::IntoService<crate::operation_shape::ContentTypeParameters, HandlerType>
          65  +
                        >,
          66  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
          67  +
                            JsonProtocol<L>,
          68  +
                            crate::operation_shape::ContentTypeParameters,
          69  +
                            ModelPl::Output
          70  +
                        >,
          71  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
          72  +
                            JsonProtocol<L>,
          73  +
                            crate::operation_shape::ContentTypeParameters,
          74  +
                            <
          75  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
          76  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
          77  +
                                    JsonProtocol<L>,
          78  +
                                    crate::operation_shape::ContentTypeParameters,
          79  +
                                    ModelPl::Output
          80  +
                                >
          81  +
                            >::Output
          82  +
                        >,
          83  +
          84  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
          85  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
          86  +
          87  +
                    {
          88  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
          89  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
          90  +
        let svc = crate::operation_shape::ContentTypeParameters::from_handler(handler);
          91  +
        let svc = self.model_plugin.apply(svc);
          92  +
        let svc =
          93  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
          94  +
                .apply(svc);
          95  +
        let svc = self.http_plugin.apply(svc);
          96  +
        self.content_type_parameters_custom(svc)
          97  +
    }
          98  +
          99  +
    /// Sets the [`ContentTypeParameters`](crate::operation_shape::ContentTypeParameters) operation.
         100  +
    ///
         101  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
         102  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
         103  +
    ///
         104  +
    /// # Example
         105  +
    ///
         106  +
    /// ```no_run
         107  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
         108  +
    ///
         109  +
    /// use json_rpc11_http0x::{input, output, error};
         110  +
    ///
         111  +
    /// async fn handler(input: input::ContentTypeParametersInput) -> Result<output::ContentTypeParametersOutput, std::convert::Infallible> {
         112  +
    ///     todo!()
         113  +
    /// }
         114  +
    ///
         115  +
    /// let config = JsonProtocolConfig::builder().build();
         116  +
    /// let svc = ::tower::util::service_fn(handler);
         117  +
    /// let app = JsonProtocol::builder(config)
         118  +
    ///     .content_type_parameters_service(svc)
         119  +
    ///     /* Set other handlers */
         120  +
    ///     .build()
         121  +
    ///     .unwrap();
         122  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
         123  +
    /// ```
         124  +
    ///
         125  +
                    pub fn content_type_parameters_service<S, ServiceExtractors, UpgradeExtractors>(self, service: S) -> Self
         126  +
                    where
         127  +
                        S: ::aws_smithy_legacy_http_server::operation::OperationService<crate::operation_shape::ContentTypeParameters, ServiceExtractors>,
         128  +
         129  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         130  +
                            JsonProtocol<L>,
         131  +
                            crate::operation_shape::ContentTypeParameters,
         132  +
                            ::aws_smithy_legacy_http_server::operation::Normalize<crate::operation_shape::ContentTypeParameters, S>
         133  +
                        >,
         134  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
         135  +
                            JsonProtocol<L>,
         136  +
                            crate::operation_shape::ContentTypeParameters,
         137  +
                            ModelPl::Output
         138  +
                        >,
         139  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         140  +
                            JsonProtocol<L>,
         141  +
                            crate::operation_shape::ContentTypeParameters,
         142  +
                            <
         143  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
         144  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
         145  +
                                    JsonProtocol<L>,
         146  +
                                    crate::operation_shape::ContentTypeParameters,
         147  +
                                    ModelPl::Output
         148  +
                                >
         149  +
                            >::Output
         150  +
                        >,
         151  +
         152  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
         153  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
         154  +
         155  +
                    {
         156  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
         157  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
         158  +
        let svc = crate::operation_shape::ContentTypeParameters::from_service(service);
         159  +
        let svc = self.model_plugin.apply(svc);
         160  +
        let svc =
         161  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
         162  +
                .apply(svc);
         163  +
        let svc = self.http_plugin.apply(svc);
         164  +
        self.content_type_parameters_custom(svc)
         165  +
    }
         166  +
         167  +
    /// Sets the [`ContentTypeParameters`](crate::operation_shape::ContentTypeParameters) to a custom [`Service`](tower::Service).
         168  +
    /// not constrained by the Smithy contract.
         169  +
    fn content_type_parameters_custom<S>(mut self, svc: S) -> Self
         170  +
    where
         171  +
        S: ::tower::Service<
         172  +
                ::http::Request<Body>,
         173  +
                Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>,
         174  +
                Error = ::std::convert::Infallible,
         175  +
            > + Clone
         176  +
            + Send
         177  +
            + 'static,
         178  +
        S::Future: Send + 'static,
         179  +
    {
         180  +
        self.content_type_parameters =
         181  +
            Some(::aws_smithy_legacy_http_server::routing::Route::new(svc));
         182  +
        self
         183  +
    }
         184  +
         185  +
    /// Sets the [`DatetimeOffsets`](crate::operation_shape::DatetimeOffsets) operation.
         186  +
    ///
         187  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
         188  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
         189  +
    ///
         190  +
    /// # Example
         191  +
    ///
         192  +
    /// ```no_run
         193  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
         194  +
    ///
         195  +
    /// use json_rpc11_http0x::{input, output, error};
         196  +
    ///
         197  +
    /// async fn handler(input: input::DatetimeOffsetsInput) -> output::DatetimeOffsetsOutput {
         198  +
    ///     todo!()
         199  +
    /// }
         200  +
    ///
         201  +
    /// let config = JsonProtocolConfig::builder().build();
         202  +
    /// let app = JsonProtocol::builder(config)
         203  +
    ///     .datetime_offsets(handler)
         204  +
    ///     /* Set other handlers */
         205  +
    ///     .build()
         206  +
    ///     .unwrap();
         207  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
         208  +
    /// ```
         209  +
    ///
         210  +
                    pub fn datetime_offsets<HandlerType, HandlerExtractors, UpgradeExtractors>(self, handler: HandlerType) -> Self
         211  +
                    where
         212  +
                        HandlerType: ::aws_smithy_legacy_http_server::operation::Handler<crate::operation_shape::DatetimeOffsets, HandlerExtractors>,
         213  +
         214  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         215  +
                            JsonProtocol<L>,
         216  +
                            crate::operation_shape::DatetimeOffsets,
         217  +
                            ::aws_smithy_legacy_http_server::operation::IntoService<crate::operation_shape::DatetimeOffsets, HandlerType>
         218  +
                        >,
         219  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
         220  +
                            JsonProtocol<L>,
         221  +
                            crate::operation_shape::DatetimeOffsets,
         222  +
                            ModelPl::Output
         223  +
                        >,
         224  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         225  +
                            JsonProtocol<L>,
         226  +
                            crate::operation_shape::DatetimeOffsets,
         227  +
                            <
         228  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
         229  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
         230  +
                                    JsonProtocol<L>,
         231  +
                                    crate::operation_shape::DatetimeOffsets,
         232  +
                                    ModelPl::Output
         233  +
                                >
         234  +
                            >::Output
         235  +
                        >,
         236  +
         237  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
         238  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
         239  +
         240  +
                    {
         241  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
         242  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
         243  +
        let svc = crate::operation_shape::DatetimeOffsets::from_handler(handler);
         244  +
        let svc = self.model_plugin.apply(svc);
         245  +
        let svc =
         246  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
         247  +
                .apply(svc);
         248  +
        let svc = self.http_plugin.apply(svc);
         249  +
        self.datetime_offsets_custom(svc)
         250  +
    }
         251  +
         252  +
    /// Sets the [`DatetimeOffsets`](crate::operation_shape::DatetimeOffsets) operation.
         253  +
    ///
         254  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
         255  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
         256  +
    ///
         257  +
    /// # Example
         258  +
    ///
         259  +
    /// ```no_run
         260  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
         261  +
    ///
         262  +
    /// use json_rpc11_http0x::{input, output, error};
         263  +
    ///
         264  +
    /// async fn handler(input: input::DatetimeOffsetsInput) -> Result<output::DatetimeOffsetsOutput, std::convert::Infallible> {
         265  +
    ///     todo!()
         266  +
    /// }
         267  +
    ///
         268  +
    /// let config = JsonProtocolConfig::builder().build();
         269  +
    /// let svc = ::tower::util::service_fn(handler);
         270  +
    /// let app = JsonProtocol::builder(config)
         271  +
    ///     .datetime_offsets_service(svc)
         272  +
    ///     /* Set other handlers */
         273  +
    ///     .build()
         274  +
    ///     .unwrap();
         275  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
         276  +
    /// ```
         277  +
    ///
         278  +
                    pub fn datetime_offsets_service<S, ServiceExtractors, UpgradeExtractors>(self, service: S) -> Self
         279  +
                    where
         280  +
                        S: ::aws_smithy_legacy_http_server::operation::OperationService<crate::operation_shape::DatetimeOffsets, ServiceExtractors>,
         281  +
         282  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         283  +
                            JsonProtocol<L>,
         284  +
                            crate::operation_shape::DatetimeOffsets,
         285  +
                            ::aws_smithy_legacy_http_server::operation::Normalize<crate::operation_shape::DatetimeOffsets, S>
         286  +
                        >,
         287  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
         288  +
                            JsonProtocol<L>,
         289  +
                            crate::operation_shape::DatetimeOffsets,
         290  +
                            ModelPl::Output
         291  +
                        >,
         292  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         293  +
                            JsonProtocol<L>,
         294  +
                            crate::operation_shape::DatetimeOffsets,
         295  +
                            <
         296  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
         297  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
         298  +
                                    JsonProtocol<L>,
         299  +
                                    crate::operation_shape::DatetimeOffsets,
         300  +
                                    ModelPl::Output
         301  +
                                >
         302  +
                            >::Output
         303  +
                        >,
         304  +
         305  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
         306  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
         307  +
         308  +
                    {
         309  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
         310  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
         311  +
        let svc = crate::operation_shape::DatetimeOffsets::from_service(service);
         312  +
        let svc = self.model_plugin.apply(svc);
         313  +
        let svc =
         314  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
         315  +
                .apply(svc);
         316  +
        let svc = self.http_plugin.apply(svc);
         317  +
        self.datetime_offsets_custom(svc)
         318  +
    }
         319  +
         320  +
    /// Sets the [`DatetimeOffsets`](crate::operation_shape::DatetimeOffsets) to a custom [`Service`](tower::Service).
         321  +
    /// not constrained by the Smithy contract.
         322  +
    fn datetime_offsets_custom<S>(mut self, svc: S) -> Self
         323  +
    where
         324  +
        S: ::tower::Service<
         325  +
                ::http::Request<Body>,
         326  +
                Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>,
         327  +
                Error = ::std::convert::Infallible,
         328  +
            > + Clone
         329  +
            + Send
         330  +
            + 'static,
         331  +
        S::Future: Send + 'static,
         332  +
    {
         333  +
        self.datetime_offsets = Some(::aws_smithy_legacy_http_server::routing::Route::new(svc));
         334  +
        self
         335  +
    }
         336  +
         337  +
    /// Sets the [`EmptyOperation`](crate::operation_shape::EmptyOperation) operation.
         338  +
    ///
         339  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
         340  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
         341  +
    ///
         342  +
    /// # Example
         343  +
    ///
         344  +
    /// ```no_run
         345  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
         346  +
    ///
         347  +
    /// use json_rpc11_http0x::{input, output, error};
         348  +
    ///
         349  +
    /// async fn handler(input: input::EmptyOperationInput) -> output::EmptyOperationOutput {
         350  +
    ///     todo!()
         351  +
    /// }
         352  +
    ///
         353  +
    /// let config = JsonProtocolConfig::builder().build();
         354  +
    /// let app = JsonProtocol::builder(config)
         355  +
    ///     .empty_operation(handler)
         356  +
    ///     /* Set other handlers */
         357  +
    ///     .build()
         358  +
    ///     .unwrap();
         359  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
         360  +
    /// ```
         361  +
    ///
         362  +
                    pub fn empty_operation<HandlerType, HandlerExtractors, UpgradeExtractors>(self, handler: HandlerType) -> Self
         363  +
                    where
         364  +
                        HandlerType: ::aws_smithy_legacy_http_server::operation::Handler<crate::operation_shape::EmptyOperation, HandlerExtractors>,
         365  +
         366  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         367  +
                            JsonProtocol<L>,
         368  +
                            crate::operation_shape::EmptyOperation,
         369  +
                            ::aws_smithy_legacy_http_server::operation::IntoService<crate::operation_shape::EmptyOperation, HandlerType>
         370  +
                        >,
         371  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
         372  +
                            JsonProtocol<L>,
         373  +
                            crate::operation_shape::EmptyOperation,
         374  +
                            ModelPl::Output
         375  +
                        >,
         376  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         377  +
                            JsonProtocol<L>,
         378  +
                            crate::operation_shape::EmptyOperation,
         379  +
                            <
         380  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
         381  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
         382  +
                                    JsonProtocol<L>,
         383  +
                                    crate::operation_shape::EmptyOperation,
         384  +
                                    ModelPl::Output
         385  +
                                >
         386  +
                            >::Output
         387  +
                        >,
         388  +
         389  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
         390  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
         391  +
         392  +
                    {
         393  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
         394  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
         395  +
        let svc = crate::operation_shape::EmptyOperation::from_handler(handler);
         396  +
        let svc = self.model_plugin.apply(svc);
         397  +
        let svc =
         398  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
         399  +
                .apply(svc);
         400  +
        let svc = self.http_plugin.apply(svc);
         401  +
        self.empty_operation_custom(svc)
         402  +
    }
         403  +
         404  +
    /// Sets the [`EmptyOperation`](crate::operation_shape::EmptyOperation) operation.
         405  +
    ///
         406  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
         407  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
         408  +
    ///
         409  +
    /// # Example
         410  +
    ///
         411  +
    /// ```no_run
         412  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
         413  +
    ///
         414  +
    /// use json_rpc11_http0x::{input, output, error};
         415  +
    ///
         416  +
    /// async fn handler(input: input::EmptyOperationInput) -> Result<output::EmptyOperationOutput, std::convert::Infallible> {
         417  +
    ///     todo!()
         418  +
    /// }
         419  +
    ///
         420  +
    /// let config = JsonProtocolConfig::builder().build();
         421  +
    /// let svc = ::tower::util::service_fn(handler);
         422  +
    /// let app = JsonProtocol::builder(config)
         423  +
    ///     .empty_operation_service(svc)
         424  +
    ///     /* Set other handlers */
         425  +
    ///     .build()
         426  +
    ///     .unwrap();
         427  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
         428  +
    /// ```
         429  +
    ///
         430  +
                    pub fn empty_operation_service<S, ServiceExtractors, UpgradeExtractors>(self, service: S) -> Self
         431  +
                    where
         432  +
                        S: ::aws_smithy_legacy_http_server::operation::OperationService<crate::operation_shape::EmptyOperation, ServiceExtractors>,
         433  +
         434  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         435  +
                            JsonProtocol<L>,
         436  +
                            crate::operation_shape::EmptyOperation,
         437  +
                            ::aws_smithy_legacy_http_server::operation::Normalize<crate::operation_shape::EmptyOperation, S>
         438  +
                        >,
         439  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
         440  +
                            JsonProtocol<L>,
         441  +
                            crate::operation_shape::EmptyOperation,
         442  +
                            ModelPl::Output
         443  +
                        >,
         444  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         445  +
                            JsonProtocol<L>,
         446  +
                            crate::operation_shape::EmptyOperation,
         447  +
                            <
         448  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
         449  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
         450  +
                                    JsonProtocol<L>,
         451  +
                                    crate::operation_shape::EmptyOperation,
         452  +
                                    ModelPl::Output
         453  +
                                >
         454  +
                            >::Output
         455  +
                        >,
         456  +
         457  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
         458  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
         459  +
         460  +
                    {
         461  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
         462  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
         463  +
        let svc = crate::operation_shape::EmptyOperation::from_service(service);
         464  +
        let svc = self.model_plugin.apply(svc);
         465  +
        let svc =
         466  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
         467  +
                .apply(svc);
         468  +
        let svc = self.http_plugin.apply(svc);
         469  +
        self.empty_operation_custom(svc)
         470  +
    }
         471  +
         472  +
    /// Sets the [`EmptyOperation`](crate::operation_shape::EmptyOperation) to a custom [`Service`](tower::Service).
         473  +
    /// not constrained by the Smithy contract.
         474  +
    fn empty_operation_custom<S>(mut self, svc: S) -> Self
         475  +
    where
         476  +
        S: ::tower::Service<
         477  +
                ::http::Request<Body>,
         478  +
                Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>,
         479  +
                Error = ::std::convert::Infallible,
         480  +
            > + Clone
         481  +
            + Send
         482  +
            + 'static,
         483  +
        S::Future: Send + 'static,
         484  +
    {
         485  +
        self.empty_operation = Some(::aws_smithy_legacy_http_server::routing::Route::new(svc));
         486  +
        self
         487  +
    }
         488  +
         489  +
    /// Sets the [`EndpointOperation`](crate::operation_shape::EndpointOperation) operation.
         490  +
    ///
         491  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
         492  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
         493  +
    ///
         494  +
    /// # Example
         495  +
    ///
         496  +
    /// ```no_run
         497  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
         498  +
    ///
         499  +
    /// use json_rpc11_http0x::{input, output, error};
         500  +
    ///
         501  +
    /// async fn handler(input: input::EndpointOperationInput) -> output::EndpointOperationOutput {
         502  +
    ///     todo!()
         503  +
    /// }
         504  +
    ///
         505  +
    /// let config = JsonProtocolConfig::builder().build();
         506  +
    /// let app = JsonProtocol::builder(config)
         507  +
    ///     .endpoint_operation(handler)
         508  +
    ///     /* Set other handlers */
         509  +
    ///     .build()
         510  +
    ///     .unwrap();
         511  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
         512  +
    /// ```
         513  +
    ///
         514  +
                    pub fn endpoint_operation<HandlerType, HandlerExtractors, UpgradeExtractors>(self, handler: HandlerType) -> Self
         515  +
                    where
         516  +
                        HandlerType: ::aws_smithy_legacy_http_server::operation::Handler<crate::operation_shape::EndpointOperation, HandlerExtractors>,
         517  +
         518  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         519  +
                            JsonProtocol<L>,
         520  +
                            crate::operation_shape::EndpointOperation,
         521  +
                            ::aws_smithy_legacy_http_server::operation::IntoService<crate::operation_shape::EndpointOperation, HandlerType>
         522  +
                        >,
         523  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
         524  +
                            JsonProtocol<L>,
         525  +
                            crate::operation_shape::EndpointOperation,
         526  +
                            ModelPl::Output
         527  +
                        >,
         528  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         529  +
                            JsonProtocol<L>,
         530  +
                            crate::operation_shape::EndpointOperation,
         531  +
                            <
         532  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
         533  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
         534  +
                                    JsonProtocol<L>,
         535  +
                                    crate::operation_shape::EndpointOperation,
         536  +
                                    ModelPl::Output
         537  +
                                >
         538  +
                            >::Output
         539  +
                        >,
         540  +
         541  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
         542  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
         543  +
         544  +
                    {
         545  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
         546  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
         547  +
        let svc = crate::operation_shape::EndpointOperation::from_handler(handler);
         548  +
        let svc = self.model_plugin.apply(svc);
         549  +
        let svc =
         550  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
         551  +
                .apply(svc);
         552  +
        let svc = self.http_plugin.apply(svc);
         553  +
        self.endpoint_operation_custom(svc)
         554  +
    }
         555  +
         556  +
    /// Sets the [`EndpointOperation`](crate::operation_shape::EndpointOperation) operation.
         557  +
    ///
         558  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
         559  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
         560  +
    ///
         561  +
    /// # Example
         562  +
    ///
         563  +
    /// ```no_run
         564  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
         565  +
    ///
         566  +
    /// use json_rpc11_http0x::{input, output, error};
         567  +
    ///
         568  +
    /// async fn handler(input: input::EndpointOperationInput) -> Result<output::EndpointOperationOutput, std::convert::Infallible> {
         569  +
    ///     todo!()
         570  +
    /// }
         571  +
    ///
         572  +
    /// let config = JsonProtocolConfig::builder().build();
         573  +
    /// let svc = ::tower::util::service_fn(handler);
         574  +
    /// let app = JsonProtocol::builder(config)
         575  +
    ///     .endpoint_operation_service(svc)
         576  +
    ///     /* Set other handlers */
         577  +
    ///     .build()
         578  +
    ///     .unwrap();
         579  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
         580  +
    /// ```
         581  +
    ///
         582  +
                    pub fn endpoint_operation_service<S, ServiceExtractors, UpgradeExtractors>(self, service: S) -> Self
         583  +
                    where
         584  +
                        S: ::aws_smithy_legacy_http_server::operation::OperationService<crate::operation_shape::EndpointOperation, ServiceExtractors>,
         585  +
         586  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         587  +
                            JsonProtocol<L>,
         588  +
                            crate::operation_shape::EndpointOperation,
         589  +
                            ::aws_smithy_legacy_http_server::operation::Normalize<crate::operation_shape::EndpointOperation, S>
         590  +
                        >,
         591  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
         592  +
                            JsonProtocol<L>,
         593  +
                            crate::operation_shape::EndpointOperation,
         594  +
                            ModelPl::Output
         595  +
                        >,
         596  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         597  +
                            JsonProtocol<L>,
         598  +
                            crate::operation_shape::EndpointOperation,
         599  +
                            <
         600  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
         601  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
         602  +
                                    JsonProtocol<L>,
         603  +
                                    crate::operation_shape::EndpointOperation,
         604  +
                                    ModelPl::Output
         605  +
                                >
         606  +
                            >::Output
         607  +
                        >,
         608  +
         609  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
         610  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
         611  +
         612  +
                    {
         613  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
         614  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
         615  +
        let svc = crate::operation_shape::EndpointOperation::from_service(service);
         616  +
        let svc = self.model_plugin.apply(svc);
         617  +
        let svc =
         618  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
         619  +
                .apply(svc);
         620  +
        let svc = self.http_plugin.apply(svc);
         621  +
        self.endpoint_operation_custom(svc)
         622  +
    }
         623  +
         624  +
    /// Sets the [`EndpointOperation`](crate::operation_shape::EndpointOperation) to a custom [`Service`](tower::Service).
         625  +
    /// not constrained by the Smithy contract.
         626  +
    fn endpoint_operation_custom<S>(mut self, svc: S) -> Self
         627  +
    where
         628  +
        S: ::tower::Service<
         629  +
                ::http::Request<Body>,
         630  +
                Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>,
         631  +
                Error = ::std::convert::Infallible,
         632  +
            > + Clone
         633  +
            + Send
         634  +
            + 'static,
         635  +
        S::Future: Send + 'static,
         636  +
    {
         637  +
        self.endpoint_operation = Some(::aws_smithy_legacy_http_server::routing::Route::new(svc));
         638  +
        self
         639  +
    }
         640  +
         641  +
    /// Sets the [`EndpointWithHostLabelOperation`](crate::operation_shape::EndpointWithHostLabelOperation) operation.
         642  +
    ///
         643  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
         644  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
         645  +
    ///
         646  +
    /// # Example
         647  +
    ///
         648  +
    /// ```no_run
         649  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
         650  +
    ///
         651  +
    /// use json_rpc11_http0x::{input, output, error};
         652  +
    ///
         653  +
    /// async fn handler(input: input::EndpointWithHostLabelOperationInput) -> Result<output::EndpointWithHostLabelOperationOutput, error::EndpointWithHostLabelOperationError> {
         654  +
    ///     todo!()
         655  +
    /// }
         656  +
    ///
         657  +
    /// let config = JsonProtocolConfig::builder().build();
         658  +
    /// let app = JsonProtocol::builder(config)
         659  +
    ///     .endpoint_with_host_label_operation(handler)
         660  +
    ///     /* Set other handlers */
         661  +
    ///     .build()
         662  +
    ///     .unwrap();
         663  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
         664  +
    /// ```
         665  +
    ///
         666  +
                    pub fn endpoint_with_host_label_operation<HandlerType, HandlerExtractors, UpgradeExtractors>(self, handler: HandlerType) -> Self
         667  +
                    where
         668  +
                        HandlerType: ::aws_smithy_legacy_http_server::operation::Handler<crate::operation_shape::EndpointWithHostLabelOperation, HandlerExtractors>,
         669  +
         670  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         671  +
                            JsonProtocol<L>,
         672  +
                            crate::operation_shape::EndpointWithHostLabelOperation,
         673  +
                            ::aws_smithy_legacy_http_server::operation::IntoService<crate::operation_shape::EndpointWithHostLabelOperation, HandlerType>
         674  +
                        >,
         675  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
         676  +
                            JsonProtocol<L>,
         677  +
                            crate::operation_shape::EndpointWithHostLabelOperation,
         678  +
                            ModelPl::Output
         679  +
                        >,
         680  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         681  +
                            JsonProtocol<L>,
         682  +
                            crate::operation_shape::EndpointWithHostLabelOperation,
         683  +
                            <
         684  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
         685  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
         686  +
                                    JsonProtocol<L>,
         687  +
                                    crate::operation_shape::EndpointWithHostLabelOperation,
         688  +
                                    ModelPl::Output
         689  +
                                >
         690  +
                            >::Output
         691  +
                        >,
         692  +
         693  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
         694  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
         695  +
         696  +
                    {
         697  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
         698  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
         699  +
        let svc = crate::operation_shape::EndpointWithHostLabelOperation::from_handler(handler);
         700  +
        let svc = self.model_plugin.apply(svc);
         701  +
        let svc =
         702  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
         703  +
                .apply(svc);
         704  +
        let svc = self.http_plugin.apply(svc);
         705  +
        self.endpoint_with_host_label_operation_custom(svc)
         706  +
    }
         707  +
         708  +
    /// Sets the [`EndpointWithHostLabelOperation`](crate::operation_shape::EndpointWithHostLabelOperation) operation.
         709  +
    ///
         710  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
         711  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
         712  +
    ///
         713  +
    /// # Example
         714  +
    ///
         715  +
    /// ```no_run
         716  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
         717  +
    ///
         718  +
    /// use json_rpc11_http0x::{input, output, error};
         719  +
    ///
         720  +
    /// async fn handler(input: input::EndpointWithHostLabelOperationInput) -> Result<output::EndpointWithHostLabelOperationOutput, error::EndpointWithHostLabelOperationError> {
         721  +
    ///     todo!()
         722  +
    /// }
         723  +
    ///
         724  +
    /// let config = JsonProtocolConfig::builder().build();
         725  +
    /// let svc = ::tower::util::service_fn(handler);
         726  +
    /// let app = JsonProtocol::builder(config)
         727  +
    ///     .endpoint_with_host_label_operation_service(svc)
         728  +
    ///     /* Set other handlers */
         729  +
    ///     .build()
         730  +
    ///     .unwrap();
         731  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
         732  +
    /// ```
         733  +
    ///
         734  +
                    pub fn endpoint_with_host_label_operation_service<S, ServiceExtractors, UpgradeExtractors>(self, service: S) -> Self
         735  +
                    where
         736  +
                        S: ::aws_smithy_legacy_http_server::operation::OperationService<crate::operation_shape::EndpointWithHostLabelOperation, ServiceExtractors>,
         737  +
         738  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         739  +
                            JsonProtocol<L>,
         740  +
                            crate::operation_shape::EndpointWithHostLabelOperation,
         741  +
                            ::aws_smithy_legacy_http_server::operation::Normalize<crate::operation_shape::EndpointWithHostLabelOperation, S>
         742  +
                        >,
         743  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
         744  +
                            JsonProtocol<L>,
         745  +
                            crate::operation_shape::EndpointWithHostLabelOperation,
         746  +
                            ModelPl::Output
         747  +
                        >,
         748  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         749  +
                            JsonProtocol<L>,
         750  +
                            crate::operation_shape::EndpointWithHostLabelOperation,
         751  +
                            <
         752  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
         753  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
         754  +
                                    JsonProtocol<L>,
         755  +
                                    crate::operation_shape::EndpointWithHostLabelOperation,
         756  +
                                    ModelPl::Output
         757  +
                                >
         758  +
                            >::Output
         759  +
                        >,
         760  +
         761  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
         762  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
         763  +
         764  +
                    {
         765  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
         766  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
         767  +
        let svc = crate::operation_shape::EndpointWithHostLabelOperation::from_service(service);
         768  +
        let svc = self.model_plugin.apply(svc);
         769  +
        let svc =
         770  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
         771  +
                .apply(svc);
         772  +
        let svc = self.http_plugin.apply(svc);
         773  +
        self.endpoint_with_host_label_operation_custom(svc)
         774  +
    }
         775  +
         776  +
    /// Sets the [`EndpointWithHostLabelOperation`](crate::operation_shape::EndpointWithHostLabelOperation) to a custom [`Service`](tower::Service).
         777  +
    /// not constrained by the Smithy contract.
         778  +
    fn endpoint_with_host_label_operation_custom<S>(mut self, svc: S) -> Self
         779  +
    where
         780  +
        S: ::tower::Service<
         781  +
                ::http::Request<Body>,
         782  +
                Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>,
         783  +
                Error = ::std::convert::Infallible,
         784  +
            > + Clone
         785  +
            + Send
         786  +
            + 'static,
         787  +
        S::Future: Send + 'static,
         788  +
    {
         789  +
        self.endpoint_with_host_label_operation =
         790  +
            Some(::aws_smithy_legacy_http_server::routing::Route::new(svc));
         791  +
        self
         792  +
    }
         793  +
         794  +
    /// Sets the [`FractionalSeconds`](crate::operation_shape::FractionalSeconds) operation.
         795  +
    ///
         796  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
         797  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
         798  +
    ///
         799  +
    /// # Example
         800  +
    ///
         801  +
    /// ```no_run
         802  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
         803  +
    ///
         804  +
    /// use json_rpc11_http0x::{input, output, error};
         805  +
    ///
         806  +
    /// async fn handler(input: input::FractionalSecondsInput) -> output::FractionalSecondsOutput {
         807  +
    ///     todo!()
         808  +
    /// }
         809  +
    ///
         810  +
    /// let config = JsonProtocolConfig::builder().build();
         811  +
    /// let app = JsonProtocol::builder(config)
         812  +
    ///     .fractional_seconds(handler)
         813  +
    ///     /* Set other handlers */
         814  +
    ///     .build()
         815  +
    ///     .unwrap();
         816  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
         817  +
    /// ```
         818  +
    ///
         819  +
                    pub fn fractional_seconds<HandlerType, HandlerExtractors, UpgradeExtractors>(self, handler: HandlerType) -> Self
         820  +
                    where
         821  +
                        HandlerType: ::aws_smithy_legacy_http_server::operation::Handler<crate::operation_shape::FractionalSeconds, HandlerExtractors>,
         822  +
         823  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         824  +
                            JsonProtocol<L>,
         825  +
                            crate::operation_shape::FractionalSeconds,
         826  +
                            ::aws_smithy_legacy_http_server::operation::IntoService<crate::operation_shape::FractionalSeconds, HandlerType>
         827  +
                        >,
         828  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
         829  +
                            JsonProtocol<L>,
         830  +
                            crate::operation_shape::FractionalSeconds,
         831  +
                            ModelPl::Output
         832  +
                        >,
         833  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         834  +
                            JsonProtocol<L>,
         835  +
                            crate::operation_shape::FractionalSeconds,
         836  +
                            <
         837  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
         838  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
         839  +
                                    JsonProtocol<L>,
         840  +
                                    crate::operation_shape::FractionalSeconds,
         841  +
                                    ModelPl::Output
         842  +
                                >
         843  +
                            >::Output
         844  +
                        >,
         845  +
         846  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
         847  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
         848  +
         849  +
                    {
         850  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
         851  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
         852  +
        let svc = crate::operation_shape::FractionalSeconds::from_handler(handler);
         853  +
        let svc = self.model_plugin.apply(svc);
         854  +
        let svc =
         855  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
         856  +
                .apply(svc);
         857  +
        let svc = self.http_plugin.apply(svc);
         858  +
        self.fractional_seconds_custom(svc)
         859  +
    }
         860  +
         861  +
    /// Sets the [`FractionalSeconds`](crate::operation_shape::FractionalSeconds) operation.
         862  +
    ///
         863  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
         864  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
         865  +
    ///
         866  +
    /// # Example
         867  +
    ///
         868  +
    /// ```no_run
         869  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
         870  +
    ///
         871  +
    /// use json_rpc11_http0x::{input, output, error};
         872  +
    ///
         873  +
    /// async fn handler(input: input::FractionalSecondsInput) -> Result<output::FractionalSecondsOutput, std::convert::Infallible> {
         874  +
    ///     todo!()
         875  +
    /// }
         876  +
    ///
         877  +
    /// let config = JsonProtocolConfig::builder().build();
         878  +
    /// let svc = ::tower::util::service_fn(handler);
         879  +
    /// let app = JsonProtocol::builder(config)
         880  +
    ///     .fractional_seconds_service(svc)
         881  +
    ///     /* Set other handlers */
         882  +
    ///     .build()
         883  +
    ///     .unwrap();
         884  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
         885  +
    /// ```
         886  +
    ///
         887  +
                    pub fn fractional_seconds_service<S, ServiceExtractors, UpgradeExtractors>(self, service: S) -> Self
         888  +
                    where
         889  +
                        S: ::aws_smithy_legacy_http_server::operation::OperationService<crate::operation_shape::FractionalSeconds, ServiceExtractors>,
         890  +
         891  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         892  +
                            JsonProtocol<L>,
         893  +
                            crate::operation_shape::FractionalSeconds,
         894  +
                            ::aws_smithy_legacy_http_server::operation::Normalize<crate::operation_shape::FractionalSeconds, S>
         895  +
                        >,
         896  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
         897  +
                            JsonProtocol<L>,
         898  +
                            crate::operation_shape::FractionalSeconds,
         899  +
                            ModelPl::Output
         900  +
                        >,
         901  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         902  +
                            JsonProtocol<L>,
         903  +
                            crate::operation_shape::FractionalSeconds,
         904  +
                            <
         905  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
         906  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
         907  +
                                    JsonProtocol<L>,
         908  +
                                    crate::operation_shape::FractionalSeconds,
         909  +
                                    ModelPl::Output
         910  +
                                >
         911  +
                            >::Output
         912  +
                        >,
         913  +
         914  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
         915  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
         916  +
         917  +
                    {
         918  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
         919  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
         920  +
        let svc = crate::operation_shape::FractionalSeconds::from_service(service);
         921  +
        let svc = self.model_plugin.apply(svc);
         922  +
        let svc =
         923  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
         924  +
                .apply(svc);
         925  +
        let svc = self.http_plugin.apply(svc);
         926  +
        self.fractional_seconds_custom(svc)
         927  +
    }
         928  +
         929  +
    /// Sets the [`FractionalSeconds`](crate::operation_shape::FractionalSeconds) to a custom [`Service`](tower::Service).
         930  +
    /// not constrained by the Smithy contract.
         931  +
    fn fractional_seconds_custom<S>(mut self, svc: S) -> Self
         932  +
    where
         933  +
        S: ::tower::Service<
         934  +
                ::http::Request<Body>,
         935  +
                Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>,
         936  +
                Error = ::std::convert::Infallible,
         937  +
            > + Clone
         938  +
            + Send
         939  +
            + 'static,
         940  +
        S::Future: Send + 'static,
         941  +
    {
         942  +
        self.fractional_seconds = Some(::aws_smithy_legacy_http_server::routing::Route::new(svc));
         943  +
        self
         944  +
    }
         945  +
         946  +
    /// Sets the [`GreetingWithErrors`](crate::operation_shape::GreetingWithErrors) operation.
         947  +
    ///
         948  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
         949  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
         950  +
    ///
         951  +
    /// # Example
         952  +
    ///
         953  +
    /// ```no_run
         954  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
         955  +
    ///
         956  +
    /// use json_rpc11_http0x::{input, output, error};
         957  +
    ///
         958  +
    /// async fn handler(input: input::GreetingWithErrorsInput) -> Result<output::GreetingWithErrorsOutput, error::GreetingWithErrorsError> {
         959  +
    ///     todo!()
         960  +
    /// }
         961  +
    ///
         962  +
    /// let config = JsonProtocolConfig::builder().build();
         963  +
    /// let app = JsonProtocol::builder(config)
         964  +
    ///     .greeting_with_errors(handler)
         965  +
    ///     /* Set other handlers */
         966  +
    ///     .build()
         967  +
    ///     .unwrap();
         968  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
         969  +
    /// ```
         970  +
    ///
         971  +
                    pub fn greeting_with_errors<HandlerType, HandlerExtractors, UpgradeExtractors>(self, handler: HandlerType) -> Self
         972  +
                    where
         973  +
                        HandlerType: ::aws_smithy_legacy_http_server::operation::Handler<crate::operation_shape::GreetingWithErrors, HandlerExtractors>,
         974  +
         975  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         976  +
                            JsonProtocol<L>,
         977  +
                            crate::operation_shape::GreetingWithErrors,
         978  +
                            ::aws_smithy_legacy_http_server::operation::IntoService<crate::operation_shape::GreetingWithErrors, HandlerType>
         979  +
                        >,
         980  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
         981  +
                            JsonProtocol<L>,
         982  +
                            crate::operation_shape::GreetingWithErrors,
         983  +
                            ModelPl::Output
         984  +
                        >,
         985  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
         986  +
                            JsonProtocol<L>,
         987  +
                            crate::operation_shape::GreetingWithErrors,
         988  +
                            <
         989  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
         990  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
         991  +
                                    JsonProtocol<L>,
         992  +
                                    crate::operation_shape::GreetingWithErrors,
         993  +
                                    ModelPl::Output
         994  +
                                >
         995  +
                            >::Output
         996  +
                        >,
         997  +
         998  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
         999  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        1000  +
        1001  +
                    {
        1002  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        1003  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        1004  +
        let svc = crate::operation_shape::GreetingWithErrors::from_handler(handler);
        1005  +
        let svc = self.model_plugin.apply(svc);
        1006  +
        let svc =
        1007  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        1008  +
                .apply(svc);
        1009  +
        let svc = self.http_plugin.apply(svc);
        1010  +
        self.greeting_with_errors_custom(svc)
        1011  +
    }
        1012  +
        1013  +
    /// Sets the [`GreetingWithErrors`](crate::operation_shape::GreetingWithErrors) operation.
        1014  +
    ///
        1015  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        1016  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        1017  +
    ///
        1018  +
    /// # Example
        1019  +
    ///
        1020  +
    /// ```no_run
        1021  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        1022  +
    ///
        1023  +
    /// use json_rpc11_http0x::{input, output, error};
        1024  +
    ///
        1025  +
    /// async fn handler(input: input::GreetingWithErrorsInput) -> Result<output::GreetingWithErrorsOutput, error::GreetingWithErrorsError> {
        1026  +
    ///     todo!()
        1027  +
    /// }
        1028  +
    ///
        1029  +
    /// let config = JsonProtocolConfig::builder().build();
        1030  +
    /// let svc = ::tower::util::service_fn(handler);
        1031  +
    /// let app = JsonProtocol::builder(config)
        1032  +
    ///     .greeting_with_errors_service(svc)
        1033  +
    ///     /* Set other handlers */
        1034  +
    ///     .build()
        1035  +
    ///     .unwrap();
        1036  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        1037  +
    /// ```
        1038  +
    ///
        1039  +
                    pub fn greeting_with_errors_service<S, ServiceExtractors, UpgradeExtractors>(self, service: S) -> Self
        1040  +
                    where
        1041  +
                        S: ::aws_smithy_legacy_http_server::operation::OperationService<crate::operation_shape::GreetingWithErrors, ServiceExtractors>,
        1042  +
        1043  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1044  +
                            JsonProtocol<L>,
        1045  +
                            crate::operation_shape::GreetingWithErrors,
        1046  +
                            ::aws_smithy_legacy_http_server::operation::Normalize<crate::operation_shape::GreetingWithErrors, S>
        1047  +
                        >,
        1048  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1049  +
                            JsonProtocol<L>,
        1050  +
                            crate::operation_shape::GreetingWithErrors,
        1051  +
                            ModelPl::Output
        1052  +
                        >,
        1053  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1054  +
                            JsonProtocol<L>,
        1055  +
                            crate::operation_shape::GreetingWithErrors,
        1056  +
                            <
        1057  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        1058  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        1059  +
                                    JsonProtocol<L>,
        1060  +
                                    crate::operation_shape::GreetingWithErrors,
        1061  +
                                    ModelPl::Output
        1062  +
                                >
        1063  +
                            >::Output
        1064  +
                        >,
        1065  +
        1066  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        1067  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        1068  +
        1069  +
                    {
        1070  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        1071  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        1072  +
        let svc = crate::operation_shape::GreetingWithErrors::from_service(service);
        1073  +
        let svc = self.model_plugin.apply(svc);
        1074  +
        let svc =
        1075  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        1076  +
                .apply(svc);
        1077  +
        let svc = self.http_plugin.apply(svc);
        1078  +
        self.greeting_with_errors_custom(svc)
        1079  +
    }
        1080  +
        1081  +
    /// Sets the [`GreetingWithErrors`](crate::operation_shape::GreetingWithErrors) to a custom [`Service`](tower::Service).
        1082  +
    /// not constrained by the Smithy contract.
        1083  +
    fn greeting_with_errors_custom<S>(mut self, svc: S) -> Self
        1084  +
    where
        1085  +
        S: ::tower::Service<
        1086  +
                ::http::Request<Body>,
        1087  +
                Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>,
        1088  +
                Error = ::std::convert::Infallible,
        1089  +
            > + Clone
        1090  +
            + Send
        1091  +
            + 'static,
        1092  +
        S::Future: Send + 'static,
        1093  +
    {
        1094  +
        self.greeting_with_errors = Some(::aws_smithy_legacy_http_server::routing::Route::new(svc));
        1095  +
        self
        1096  +
    }
        1097  +
        1098  +
    /// Sets the [`HostWithPathOperation`](crate::operation_shape::HostWithPathOperation) operation.
        1099  +
    ///
        1100  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        1101  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        1102  +
    ///
        1103  +
    /// # Example
        1104  +
    ///
        1105  +
    /// ```no_run
        1106  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        1107  +
    ///
        1108  +
    /// use json_rpc11_http0x::{input, output, error};
        1109  +
    ///
        1110  +
    /// async fn handler(input: input::HostWithPathOperationInput) -> output::HostWithPathOperationOutput {
        1111  +
    ///     todo!()
        1112  +
    /// }
        1113  +
    ///
        1114  +
    /// let config = JsonProtocolConfig::builder().build();
        1115  +
    /// let app = JsonProtocol::builder(config)
        1116  +
    ///     .host_with_path_operation(handler)
        1117  +
    ///     /* Set other handlers */
        1118  +
    ///     .build()
        1119  +
    ///     .unwrap();
        1120  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        1121  +
    /// ```
        1122  +
    ///
        1123  +
                    pub fn host_with_path_operation<HandlerType, HandlerExtractors, UpgradeExtractors>(self, handler: HandlerType) -> Self
        1124  +
                    where
        1125  +
                        HandlerType: ::aws_smithy_legacy_http_server::operation::Handler<crate::operation_shape::HostWithPathOperation, HandlerExtractors>,
        1126  +
        1127  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1128  +
                            JsonProtocol<L>,
        1129  +
                            crate::operation_shape::HostWithPathOperation,
        1130  +
                            ::aws_smithy_legacy_http_server::operation::IntoService<crate::operation_shape::HostWithPathOperation, HandlerType>
        1131  +
                        >,
        1132  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1133  +
                            JsonProtocol<L>,
        1134  +
                            crate::operation_shape::HostWithPathOperation,
        1135  +
                            ModelPl::Output
        1136  +
                        >,
        1137  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1138  +
                            JsonProtocol<L>,
        1139  +
                            crate::operation_shape::HostWithPathOperation,
        1140  +
                            <
        1141  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        1142  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        1143  +
                                    JsonProtocol<L>,
        1144  +
                                    crate::operation_shape::HostWithPathOperation,
        1145  +
                                    ModelPl::Output
        1146  +
                                >
        1147  +
                            >::Output
        1148  +
                        >,
        1149  +
        1150  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        1151  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        1152  +
        1153  +
                    {
        1154  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        1155  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        1156  +
        let svc = crate::operation_shape::HostWithPathOperation::from_handler(handler);
        1157  +
        let svc = self.model_plugin.apply(svc);
        1158  +
        let svc =
        1159  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        1160  +
                .apply(svc);
        1161  +
        let svc = self.http_plugin.apply(svc);
        1162  +
        self.host_with_path_operation_custom(svc)
        1163  +
    }
        1164  +
        1165  +
    /// Sets the [`HostWithPathOperation`](crate::operation_shape::HostWithPathOperation) operation.
        1166  +
    ///
        1167  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        1168  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        1169  +
    ///
        1170  +
    /// # Example
        1171  +
    ///
        1172  +
    /// ```no_run
        1173  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        1174  +
    ///
        1175  +
    /// use json_rpc11_http0x::{input, output, error};
        1176  +
    ///
        1177  +
    /// async fn handler(input: input::HostWithPathOperationInput) -> Result<output::HostWithPathOperationOutput, std::convert::Infallible> {
        1178  +
    ///     todo!()
        1179  +
    /// }
        1180  +
    ///
        1181  +
    /// let config = JsonProtocolConfig::builder().build();
        1182  +
    /// let svc = ::tower::util::service_fn(handler);
        1183  +
    /// let app = JsonProtocol::builder(config)
        1184  +
    ///     .host_with_path_operation_service(svc)
        1185  +
    ///     /* Set other handlers */
        1186  +
    ///     .build()
        1187  +
    ///     .unwrap();
        1188  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        1189  +
    /// ```
        1190  +
    ///
        1191  +
                    pub fn host_with_path_operation_service<S, ServiceExtractors, UpgradeExtractors>(self, service: S) -> Self
        1192  +
                    where
        1193  +
                        S: ::aws_smithy_legacy_http_server::operation::OperationService<crate::operation_shape::HostWithPathOperation, ServiceExtractors>,
        1194  +
        1195  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1196  +
                            JsonProtocol<L>,
        1197  +
                            crate::operation_shape::HostWithPathOperation,
        1198  +
                            ::aws_smithy_legacy_http_server::operation::Normalize<crate::operation_shape::HostWithPathOperation, S>
        1199  +
                        >,
        1200  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1201  +
                            JsonProtocol<L>,
        1202  +
                            crate::operation_shape::HostWithPathOperation,
        1203  +
                            ModelPl::Output
        1204  +
                        >,
        1205  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1206  +
                            JsonProtocol<L>,
        1207  +
                            crate::operation_shape::HostWithPathOperation,
        1208  +
                            <
        1209  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        1210  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        1211  +
                                    JsonProtocol<L>,
        1212  +
                                    crate::operation_shape::HostWithPathOperation,
        1213  +
                                    ModelPl::Output
        1214  +
                                >
        1215  +
                            >::Output
        1216  +
                        >,
        1217  +
        1218  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        1219  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        1220  +
        1221  +
                    {
        1222  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        1223  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        1224  +
        let svc = crate::operation_shape::HostWithPathOperation::from_service(service);
        1225  +
        let svc = self.model_plugin.apply(svc);
        1226  +
        let svc =
        1227  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        1228  +
                .apply(svc);
        1229  +
        let svc = self.http_plugin.apply(svc);
        1230  +
        self.host_with_path_operation_custom(svc)
        1231  +
    }
        1232  +
        1233  +
    /// Sets the [`HostWithPathOperation`](crate::operation_shape::HostWithPathOperation) to a custom [`Service`](tower::Service).
        1234  +
    /// not constrained by the Smithy contract.
        1235  +
    fn host_with_path_operation_custom<S>(mut self, svc: S) -> Self
        1236  +
    where
        1237  +
        S: ::tower::Service<
        1238  +
                ::http::Request<Body>,
        1239  +
                Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>,
        1240  +
                Error = ::std::convert::Infallible,
        1241  +
            > + Clone
        1242  +
            + Send
        1243  +
            + 'static,
        1244  +
        S::Future: Send + 'static,
        1245  +
    {
        1246  +
        self.host_with_path_operation =
        1247  +
            Some(::aws_smithy_legacy_http_server::routing::Route::new(svc));
        1248  +
        self
        1249  +
    }
        1250  +
        1251  +
    /// Sets the [`JsonEnums`](crate::operation_shape::JsonEnums) operation.
        1252  +
    ///
        1253  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        1254  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        1255  +
    ///
        1256  +
    /// # Example
        1257  +
    ///
        1258  +
    /// ```no_run
        1259  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        1260  +
    ///
        1261  +
    /// use json_rpc11_http0x::{input, output, error};
        1262  +
    ///
        1263  +
    /// async fn handler(input: input::JsonEnumsInput) -> Result<output::JsonEnumsOutput, error::JsonEnumsError> {
        1264  +
    ///     todo!()
        1265  +
    /// }
        1266  +
    ///
        1267  +
    /// let config = JsonProtocolConfig::builder().build();
        1268  +
    /// let app = JsonProtocol::builder(config)
        1269  +
    ///     .json_enums(handler)
        1270  +
    ///     /* Set other handlers */
        1271  +
    ///     .build()
        1272  +
    ///     .unwrap();
        1273  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        1274  +
    /// ```
        1275  +
    ///
        1276  +
                    pub fn json_enums<HandlerType, HandlerExtractors, UpgradeExtractors>(self, handler: HandlerType) -> Self
        1277  +
                    where
        1278  +
                        HandlerType: ::aws_smithy_legacy_http_server::operation::Handler<crate::operation_shape::JsonEnums, HandlerExtractors>,
        1279  +
        1280  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1281  +
                            JsonProtocol<L>,
        1282  +
                            crate::operation_shape::JsonEnums,
        1283  +
                            ::aws_smithy_legacy_http_server::operation::IntoService<crate::operation_shape::JsonEnums, HandlerType>
        1284  +
                        >,
        1285  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1286  +
                            JsonProtocol<L>,
        1287  +
                            crate::operation_shape::JsonEnums,
        1288  +
                            ModelPl::Output
        1289  +
                        >,
        1290  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1291  +
                            JsonProtocol<L>,
        1292  +
                            crate::operation_shape::JsonEnums,
        1293  +
                            <
        1294  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        1295  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        1296  +
                                    JsonProtocol<L>,
        1297  +
                                    crate::operation_shape::JsonEnums,
        1298  +
                                    ModelPl::Output
        1299  +
                                >
        1300  +
                            >::Output
        1301  +
                        >,
        1302  +
        1303  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        1304  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        1305  +
        1306  +
                    {
        1307  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        1308  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        1309  +
        let svc = crate::operation_shape::JsonEnums::from_handler(handler);
        1310  +
        let svc = self.model_plugin.apply(svc);
        1311  +
        let svc =
        1312  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        1313  +
                .apply(svc);
        1314  +
        let svc = self.http_plugin.apply(svc);
        1315  +
        self.json_enums_custom(svc)
        1316  +
    }
        1317  +
        1318  +
    /// Sets the [`JsonEnums`](crate::operation_shape::JsonEnums) operation.
        1319  +
    ///
        1320  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        1321  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        1322  +
    ///
        1323  +
    /// # Example
        1324  +
    ///
        1325  +
    /// ```no_run
        1326  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        1327  +
    ///
        1328  +
    /// use json_rpc11_http0x::{input, output, error};
        1329  +
    ///
        1330  +
    /// async fn handler(input: input::JsonEnumsInput) -> Result<output::JsonEnumsOutput, error::JsonEnumsError> {
        1331  +
    ///     todo!()
        1332  +
    /// }
        1333  +
    ///
        1334  +
    /// let config = JsonProtocolConfig::builder().build();
        1335  +
    /// let svc = ::tower::util::service_fn(handler);
        1336  +
    /// let app = JsonProtocol::builder(config)
        1337  +
    ///     .json_enums_service(svc)
        1338  +
    ///     /* Set other handlers */
        1339  +
    ///     .build()
        1340  +
    ///     .unwrap();
        1341  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        1342  +
    /// ```
        1343  +
    ///
        1344  +
                    pub fn json_enums_service<S, ServiceExtractors, UpgradeExtractors>(self, service: S) -> Self
        1345  +
                    where
        1346  +
                        S: ::aws_smithy_legacy_http_server::operation::OperationService<crate::operation_shape::JsonEnums, ServiceExtractors>,
        1347  +
        1348  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1349  +
                            JsonProtocol<L>,
        1350  +
                            crate::operation_shape::JsonEnums,
        1351  +
                            ::aws_smithy_legacy_http_server::operation::Normalize<crate::operation_shape::JsonEnums, S>
        1352  +
                        >,
        1353  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1354  +
                            JsonProtocol<L>,
        1355  +
                            crate::operation_shape::JsonEnums,
        1356  +
                            ModelPl::Output
        1357  +
                        >,
        1358  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1359  +
                            JsonProtocol<L>,
        1360  +
                            crate::operation_shape::JsonEnums,
        1361  +
                            <
        1362  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        1363  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        1364  +
                                    JsonProtocol<L>,
        1365  +
                                    crate::operation_shape::JsonEnums,
        1366  +
                                    ModelPl::Output
        1367  +
                                >
        1368  +
                            >::Output
        1369  +
                        >,
        1370  +
        1371  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        1372  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        1373  +
        1374  +
                    {
        1375  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        1376  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        1377  +
        let svc = crate::operation_shape::JsonEnums::from_service(service);
        1378  +
        let svc = self.model_plugin.apply(svc);
        1379  +
        let svc =
        1380  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        1381  +
                .apply(svc);
        1382  +
        let svc = self.http_plugin.apply(svc);
        1383  +
        self.json_enums_custom(svc)
        1384  +
    }
        1385  +
        1386  +
    /// Sets the [`JsonEnums`](crate::operation_shape::JsonEnums) to a custom [`Service`](tower::Service).
        1387  +
    /// not constrained by the Smithy contract.
        1388  +
    fn json_enums_custom<S>(mut self, svc: S) -> Self
        1389  +
    where
        1390  +
        S: ::tower::Service<
        1391  +
                ::http::Request<Body>,
        1392  +
                Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>,
        1393  +
                Error = ::std::convert::Infallible,
        1394  +
            > + Clone
        1395  +
            + Send
        1396  +
            + 'static,
        1397  +
        S::Future: Send + 'static,
        1398  +
    {
        1399  +
        self.json_enums = Some(::aws_smithy_legacy_http_server::routing::Route::new(svc));
        1400  +
        self
        1401  +
    }
        1402  +
        1403  +
    /// Sets the [`JsonIntEnums`](crate::operation_shape::JsonIntEnums) operation.
        1404  +
    ///
        1405  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        1406  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        1407  +
    ///
        1408  +
    /// # Example
        1409  +
    ///
        1410  +
    /// ```no_run
        1411  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        1412  +
    ///
        1413  +
    /// use json_rpc11_http0x::{input, output, error};
        1414  +
    ///
        1415  +
    /// async fn handler(input: input::JsonIntEnumsInput) -> Result<output::JsonIntEnumsOutput, error::JsonIntEnumsError> {
        1416  +
    ///     todo!()
        1417  +
    /// }
        1418  +
    ///
        1419  +
    /// let config = JsonProtocolConfig::builder().build();
        1420  +
    /// let app = JsonProtocol::builder(config)
        1421  +
    ///     .json_int_enums(handler)
        1422  +
    ///     /* Set other handlers */
        1423  +
    ///     .build()
        1424  +
    ///     .unwrap();
        1425  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        1426  +
    /// ```
        1427  +
    ///
        1428  +
                    pub fn json_int_enums<HandlerType, HandlerExtractors, UpgradeExtractors>(self, handler: HandlerType) -> Self
        1429  +
                    where
        1430  +
                        HandlerType: ::aws_smithy_legacy_http_server::operation::Handler<crate::operation_shape::JsonIntEnums, HandlerExtractors>,
        1431  +
        1432  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1433  +
                            JsonProtocol<L>,
        1434  +
                            crate::operation_shape::JsonIntEnums,
        1435  +
                            ::aws_smithy_legacy_http_server::operation::IntoService<crate::operation_shape::JsonIntEnums, HandlerType>
        1436  +
                        >,
        1437  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1438  +
                            JsonProtocol<L>,
        1439  +
                            crate::operation_shape::JsonIntEnums,
        1440  +
                            ModelPl::Output
        1441  +
                        >,
        1442  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1443  +
                            JsonProtocol<L>,
        1444  +
                            crate::operation_shape::JsonIntEnums,
        1445  +
                            <
        1446  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        1447  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        1448  +
                                    JsonProtocol<L>,
        1449  +
                                    crate::operation_shape::JsonIntEnums,
        1450  +
                                    ModelPl::Output
        1451  +
                                >
        1452  +
                            >::Output
        1453  +
                        >,
        1454  +
        1455  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        1456  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        1457  +
        1458  +
                    {
        1459  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        1460  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        1461  +
        let svc = crate::operation_shape::JsonIntEnums::from_handler(handler);
        1462  +
        let svc = self.model_plugin.apply(svc);
        1463  +
        let svc =
        1464  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        1465  +
                .apply(svc);
        1466  +
        let svc = self.http_plugin.apply(svc);
        1467  +
        self.json_int_enums_custom(svc)
        1468  +
    }
        1469  +
        1470  +
    /// Sets the [`JsonIntEnums`](crate::operation_shape::JsonIntEnums) operation.
        1471  +
    ///
        1472  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        1473  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        1474  +
    ///
        1475  +
    /// # Example
        1476  +
    ///
        1477  +
    /// ```no_run
        1478  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        1479  +
    ///
        1480  +
    /// use json_rpc11_http0x::{input, output, error};
        1481  +
    ///
        1482  +
    /// async fn handler(input: input::JsonIntEnumsInput) -> Result<output::JsonIntEnumsOutput, error::JsonIntEnumsError> {
        1483  +
    ///     todo!()
        1484  +
    /// }
        1485  +
    ///
        1486  +
    /// let config = JsonProtocolConfig::builder().build();
        1487  +
    /// let svc = ::tower::util::service_fn(handler);
        1488  +
    /// let app = JsonProtocol::builder(config)
        1489  +
    ///     .json_int_enums_service(svc)
        1490  +
    ///     /* Set other handlers */
        1491  +
    ///     .build()
        1492  +
    ///     .unwrap();
        1493  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        1494  +
    /// ```
        1495  +
    ///
        1496  +
                    pub fn json_int_enums_service<S, ServiceExtractors, UpgradeExtractors>(self, service: S) -> Self
        1497  +
                    where
        1498  +
                        S: ::aws_smithy_legacy_http_server::operation::OperationService<crate::operation_shape::JsonIntEnums, ServiceExtractors>,
        1499  +
        1500  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1501  +
                            JsonProtocol<L>,
        1502  +
                            crate::operation_shape::JsonIntEnums,
        1503  +
                            ::aws_smithy_legacy_http_server::operation::Normalize<crate::operation_shape::JsonIntEnums, S>
        1504  +
                        >,
        1505  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1506  +
                            JsonProtocol<L>,
        1507  +
                            crate::operation_shape::JsonIntEnums,
        1508  +
                            ModelPl::Output
        1509  +
                        >,
        1510  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1511  +
                            JsonProtocol<L>,
        1512  +
                            crate::operation_shape::JsonIntEnums,
        1513  +
                            <
        1514  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        1515  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        1516  +
                                    JsonProtocol<L>,
        1517  +
                                    crate::operation_shape::JsonIntEnums,
        1518  +
                                    ModelPl::Output
        1519  +
                                >
        1520  +
                            >::Output
        1521  +
                        >,
        1522  +
        1523  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        1524  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        1525  +
        1526  +
                    {
        1527  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        1528  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        1529  +
        let svc = crate::operation_shape::JsonIntEnums::from_service(service);
        1530  +
        let svc = self.model_plugin.apply(svc);
        1531  +
        let svc =
        1532  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        1533  +
                .apply(svc);
        1534  +
        let svc = self.http_plugin.apply(svc);
        1535  +
        self.json_int_enums_custom(svc)
        1536  +
    }
        1537  +
        1538  +
    /// Sets the [`JsonIntEnums`](crate::operation_shape::JsonIntEnums) to a custom [`Service`](tower::Service).
        1539  +
    /// not constrained by the Smithy contract.
        1540  +
    fn json_int_enums_custom<S>(mut self, svc: S) -> Self
        1541  +
    where
        1542  +
        S: ::tower::Service<
        1543  +
                ::http::Request<Body>,
        1544  +
                Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>,
        1545  +
                Error = ::std::convert::Infallible,
        1546  +
            > + Clone
        1547  +
            + Send
        1548  +
            + 'static,
        1549  +
        S::Future: Send + 'static,
        1550  +
    {
        1551  +
        self.json_int_enums = Some(::aws_smithy_legacy_http_server::routing::Route::new(svc));
        1552  +
        self
        1553  +
    }
        1554  +
        1555  +
    /// Sets the [`JsonUnions`](crate::operation_shape::JsonUnions) operation.
        1556  +
    ///
        1557  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        1558  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        1559  +
    ///
        1560  +
    /// # Example
        1561  +
    ///
        1562  +
    /// ```no_run
        1563  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        1564  +
    ///
        1565  +
    /// use json_rpc11_http0x::{input, output, error};
        1566  +
    ///
        1567  +
    /// async fn handler(input: input::JsonUnionsInput) -> Result<output::JsonUnionsOutput, error::JsonUnionsError> {
        1568  +
    ///     todo!()
        1569  +
    /// }
        1570  +
    ///
        1571  +
    /// let config = JsonProtocolConfig::builder().build();
        1572  +
    /// let app = JsonProtocol::builder(config)
        1573  +
    ///     .json_unions(handler)
        1574  +
    ///     /* Set other handlers */
        1575  +
    ///     .build()
        1576  +
    ///     .unwrap();
        1577  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        1578  +
    /// ```
        1579  +
    ///
        1580  +
                    pub fn json_unions<HandlerType, HandlerExtractors, UpgradeExtractors>(self, handler: HandlerType) -> Self
        1581  +
                    where
        1582  +
                        HandlerType: ::aws_smithy_legacy_http_server::operation::Handler<crate::operation_shape::JsonUnions, HandlerExtractors>,
        1583  +
        1584  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1585  +
                            JsonProtocol<L>,
        1586  +
                            crate::operation_shape::JsonUnions,
        1587  +
                            ::aws_smithy_legacy_http_server::operation::IntoService<crate::operation_shape::JsonUnions, HandlerType>
        1588  +
                        >,
        1589  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1590  +
                            JsonProtocol<L>,
        1591  +
                            crate::operation_shape::JsonUnions,
        1592  +
                            ModelPl::Output
        1593  +
                        >,
        1594  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1595  +
                            JsonProtocol<L>,
        1596  +
                            crate::operation_shape::JsonUnions,
        1597  +
                            <
        1598  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        1599  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        1600  +
                                    JsonProtocol<L>,
        1601  +
                                    crate::operation_shape::JsonUnions,
        1602  +
                                    ModelPl::Output
        1603  +
                                >
        1604  +
                            >::Output
        1605  +
                        >,
        1606  +
        1607  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        1608  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        1609  +
        1610  +
                    {
        1611  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        1612  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        1613  +
        let svc = crate::operation_shape::JsonUnions::from_handler(handler);
        1614  +
        let svc = self.model_plugin.apply(svc);
        1615  +
        let svc =
        1616  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        1617  +
                .apply(svc);
        1618  +
        let svc = self.http_plugin.apply(svc);
        1619  +
        self.json_unions_custom(svc)
        1620  +
    }
        1621  +
        1622  +
    /// Sets the [`JsonUnions`](crate::operation_shape::JsonUnions) operation.
        1623  +
    ///
        1624  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        1625  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        1626  +
    ///
        1627  +
    /// # Example
        1628  +
    ///
        1629  +
    /// ```no_run
        1630  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        1631  +
    ///
        1632  +
    /// use json_rpc11_http0x::{input, output, error};
        1633  +
    ///
        1634  +
    /// async fn handler(input: input::JsonUnionsInput) -> Result<output::JsonUnionsOutput, error::JsonUnionsError> {
        1635  +
    ///     todo!()
        1636  +
    /// }
        1637  +
    ///
        1638  +
    /// let config = JsonProtocolConfig::builder().build();
        1639  +
    /// let svc = ::tower::util::service_fn(handler);
        1640  +
    /// let app = JsonProtocol::builder(config)
        1641  +
    ///     .json_unions_service(svc)
        1642  +
    ///     /* Set other handlers */
        1643  +
    ///     .build()
        1644  +
    ///     .unwrap();
        1645  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        1646  +
    /// ```
        1647  +
    ///
        1648  +
                    pub fn json_unions_service<S, ServiceExtractors, UpgradeExtractors>(self, service: S) -> Self
        1649  +
                    where
        1650  +
                        S: ::aws_smithy_legacy_http_server::operation::OperationService<crate::operation_shape::JsonUnions, ServiceExtractors>,
        1651  +
        1652  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1653  +
                            JsonProtocol<L>,
        1654  +
                            crate::operation_shape::JsonUnions,
        1655  +
                            ::aws_smithy_legacy_http_server::operation::Normalize<crate::operation_shape::JsonUnions, S>
        1656  +
                        >,
        1657  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1658  +
                            JsonProtocol<L>,
        1659  +
                            crate::operation_shape::JsonUnions,
        1660  +
                            ModelPl::Output
        1661  +
                        >,
        1662  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1663  +
                            JsonProtocol<L>,
        1664  +
                            crate::operation_shape::JsonUnions,
        1665  +
                            <
        1666  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        1667  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        1668  +
                                    JsonProtocol<L>,
        1669  +
                                    crate::operation_shape::JsonUnions,
        1670  +
                                    ModelPl::Output
        1671  +
                                >
        1672  +
                            >::Output
        1673  +
                        >,
        1674  +
        1675  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        1676  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        1677  +
        1678  +
                    {
        1679  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        1680  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        1681  +
        let svc = crate::operation_shape::JsonUnions::from_service(service);
        1682  +
        let svc = self.model_plugin.apply(svc);
        1683  +
        let svc =
        1684  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        1685  +
                .apply(svc);
        1686  +
        let svc = self.http_plugin.apply(svc);
        1687  +
        self.json_unions_custom(svc)
        1688  +
    }
        1689  +
        1690  +
    /// Sets the [`JsonUnions`](crate::operation_shape::JsonUnions) to a custom [`Service`](tower::Service).
        1691  +
    /// not constrained by the Smithy contract.
        1692  +
    fn json_unions_custom<S>(mut self, svc: S) -> Self
        1693  +
    where
        1694  +
        S: ::tower::Service<
        1695  +
                ::http::Request<Body>,
        1696  +
                Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>,
        1697  +
                Error = ::std::convert::Infallible,
        1698  +
            > + Clone
        1699  +
            + Send
        1700  +
            + 'static,
        1701  +
        S::Future: Send + 'static,
        1702  +
    {
        1703  +
        self.json_unions = Some(::aws_smithy_legacy_http_server::routing::Route::new(svc));
        1704  +
        self
        1705  +
    }
        1706  +
        1707  +
    /// Sets the [`KitchenSinkOperation`](crate::operation_shape::KitchenSinkOperation) operation.
        1708  +
    ///
        1709  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        1710  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        1711  +
    ///
        1712  +
    /// # Example
        1713  +
    ///
        1714  +
    /// ```no_run
        1715  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        1716  +
    ///
        1717  +
    /// use json_rpc11_http0x::{input, output, error};
        1718  +
    ///
        1719  +
    /// async fn handler(input: input::KitchenSinkOperationInput) -> Result<output::KitchenSinkOperationOutput, error::KitchenSinkOperationError> {
        1720  +
    ///     todo!()
        1721  +
    /// }
        1722  +
    ///
        1723  +
    /// let config = JsonProtocolConfig::builder().build();
        1724  +
    /// let app = JsonProtocol::builder(config)
        1725  +
    ///     .kitchen_sink_operation(handler)
        1726  +
    ///     /* Set other handlers */
        1727  +
    ///     .build()
        1728  +
    ///     .unwrap();
        1729  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        1730  +
    /// ```
        1731  +
    ///
        1732  +
                    pub fn kitchen_sink_operation<HandlerType, HandlerExtractors, UpgradeExtractors>(self, handler: HandlerType) -> Self
        1733  +
                    where
        1734  +
                        HandlerType: ::aws_smithy_legacy_http_server::operation::Handler<crate::operation_shape::KitchenSinkOperation, HandlerExtractors>,
        1735  +
        1736  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1737  +
                            JsonProtocol<L>,
        1738  +
                            crate::operation_shape::KitchenSinkOperation,
        1739  +
                            ::aws_smithy_legacy_http_server::operation::IntoService<crate::operation_shape::KitchenSinkOperation, HandlerType>
        1740  +
                        >,
        1741  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1742  +
                            JsonProtocol<L>,
        1743  +
                            crate::operation_shape::KitchenSinkOperation,
        1744  +
                            ModelPl::Output
        1745  +
                        >,
        1746  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1747  +
                            JsonProtocol<L>,
        1748  +
                            crate::operation_shape::KitchenSinkOperation,
        1749  +
                            <
        1750  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        1751  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        1752  +
                                    JsonProtocol<L>,
        1753  +
                                    crate::operation_shape::KitchenSinkOperation,
        1754  +
                                    ModelPl::Output
        1755  +
                                >
        1756  +
                            >::Output
        1757  +
                        >,
        1758  +
        1759  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        1760  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        1761  +
        1762  +
                    {
        1763  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        1764  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        1765  +
        let svc = crate::operation_shape::KitchenSinkOperation::from_handler(handler);
        1766  +
        let svc = self.model_plugin.apply(svc);
        1767  +
        let svc =
        1768  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        1769  +
                .apply(svc);
        1770  +
        let svc = self.http_plugin.apply(svc);
        1771  +
        self.kitchen_sink_operation_custom(svc)
        1772  +
    }
        1773  +
        1774  +
    /// Sets the [`KitchenSinkOperation`](crate::operation_shape::KitchenSinkOperation) operation.
        1775  +
    ///
        1776  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        1777  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        1778  +
    ///
        1779  +
    /// # Example
        1780  +
    ///
        1781  +
    /// ```no_run
        1782  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        1783  +
    ///
        1784  +
    /// use json_rpc11_http0x::{input, output, error};
        1785  +
    ///
        1786  +
    /// async fn handler(input: input::KitchenSinkOperationInput) -> Result<output::KitchenSinkOperationOutput, error::KitchenSinkOperationError> {
        1787  +
    ///     todo!()
        1788  +
    /// }
        1789  +
    ///
        1790  +
    /// let config = JsonProtocolConfig::builder().build();
        1791  +
    /// let svc = ::tower::util::service_fn(handler);
        1792  +
    /// let app = JsonProtocol::builder(config)
        1793  +
    ///     .kitchen_sink_operation_service(svc)
        1794  +
    ///     /* Set other handlers */
        1795  +
    ///     .build()
        1796  +
    ///     .unwrap();
        1797  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        1798  +
    /// ```
        1799  +
    ///
        1800  +
                    pub fn kitchen_sink_operation_service<S, ServiceExtractors, UpgradeExtractors>(self, service: S) -> Self
        1801  +
                    where
        1802  +
                        S: ::aws_smithy_legacy_http_server::operation::OperationService<crate::operation_shape::KitchenSinkOperation, ServiceExtractors>,
        1803  +
        1804  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1805  +
                            JsonProtocol<L>,
        1806  +
                            crate::operation_shape::KitchenSinkOperation,
        1807  +
                            ::aws_smithy_legacy_http_server::operation::Normalize<crate::operation_shape::KitchenSinkOperation, S>
        1808  +
                        >,
        1809  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1810  +
                            JsonProtocol<L>,
        1811  +
                            crate::operation_shape::KitchenSinkOperation,
        1812  +
                            ModelPl::Output
        1813  +
                        >,
        1814  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1815  +
                            JsonProtocol<L>,
        1816  +
                            crate::operation_shape::KitchenSinkOperation,
        1817  +
                            <
        1818  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        1819  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        1820  +
                                    JsonProtocol<L>,
        1821  +
                                    crate::operation_shape::KitchenSinkOperation,
        1822  +
                                    ModelPl::Output
        1823  +
                                >
        1824  +
                            >::Output
        1825  +
                        >,
        1826  +
        1827  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        1828  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        1829  +
        1830  +
                    {
        1831  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        1832  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        1833  +
        let svc = crate::operation_shape::KitchenSinkOperation::from_service(service);
        1834  +
        let svc = self.model_plugin.apply(svc);
        1835  +
        let svc =
        1836  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        1837  +
                .apply(svc);
        1838  +
        let svc = self.http_plugin.apply(svc);
        1839  +
        self.kitchen_sink_operation_custom(svc)
        1840  +
    }
        1841  +
        1842  +
    /// Sets the [`KitchenSinkOperation`](crate::operation_shape::KitchenSinkOperation) to a custom [`Service`](tower::Service).
        1843  +
    /// not constrained by the Smithy contract.
        1844  +
    fn kitchen_sink_operation_custom<S>(mut self, svc: S) -> Self
        1845  +
    where
        1846  +
        S: ::tower::Service<
        1847  +
                ::http::Request<Body>,
        1848  +
                Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>,
        1849  +
                Error = ::std::convert::Infallible,
        1850  +
            > + Clone
        1851  +
            + Send
        1852  +
            + 'static,
        1853  +
        S::Future: Send + 'static,
        1854  +
    {
        1855  +
        self.kitchen_sink_operation =
        1856  +
            Some(::aws_smithy_legacy_http_server::routing::Route::new(svc));
        1857  +
        self
        1858  +
    }
        1859  +
        1860  +
    /// Sets the [`NullOperation`](crate::operation_shape::NullOperation) operation.
        1861  +
    ///
        1862  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        1863  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        1864  +
    ///
        1865  +
    /// # Example
        1866  +
    ///
        1867  +
    /// ```no_run
        1868  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        1869  +
    ///
        1870  +
    /// use json_rpc11_http0x::{input, output, error};
        1871  +
    ///
        1872  +
    /// async fn handler(input: input::NullOperationInput) -> output::NullOperationOutput {
        1873  +
    ///     todo!()
        1874  +
    /// }
        1875  +
    ///
        1876  +
    /// let config = JsonProtocolConfig::builder().build();
        1877  +
    /// let app = JsonProtocol::builder(config)
        1878  +
    ///     .null_operation(handler)
        1879  +
    ///     /* Set other handlers */
        1880  +
    ///     .build()
        1881  +
    ///     .unwrap();
        1882  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        1883  +
    /// ```
        1884  +
    ///
        1885  +
                    pub fn null_operation<HandlerType, HandlerExtractors, UpgradeExtractors>(self, handler: HandlerType) -> Self
        1886  +
                    where
        1887  +
                        HandlerType: ::aws_smithy_legacy_http_server::operation::Handler<crate::operation_shape::NullOperation, HandlerExtractors>,
        1888  +
        1889  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1890  +
                            JsonProtocol<L>,
        1891  +
                            crate::operation_shape::NullOperation,
        1892  +
                            ::aws_smithy_legacy_http_server::operation::IntoService<crate::operation_shape::NullOperation, HandlerType>
        1893  +
                        >,
        1894  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1895  +
                            JsonProtocol<L>,
        1896  +
                            crate::operation_shape::NullOperation,
        1897  +
                            ModelPl::Output
        1898  +
                        >,
        1899  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1900  +
                            JsonProtocol<L>,
        1901  +
                            crate::operation_shape::NullOperation,
        1902  +
                            <
        1903  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        1904  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        1905  +
                                    JsonProtocol<L>,
        1906  +
                                    crate::operation_shape::NullOperation,
        1907  +
                                    ModelPl::Output
        1908  +
                                >
        1909  +
                            >::Output
        1910  +
                        >,
        1911  +
        1912  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        1913  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        1914  +
        1915  +
                    {
        1916  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        1917  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        1918  +
        let svc = crate::operation_shape::NullOperation::from_handler(handler);
        1919  +
        let svc = self.model_plugin.apply(svc);
        1920  +
        let svc =
        1921  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        1922  +
                .apply(svc);
        1923  +
        let svc = self.http_plugin.apply(svc);
        1924  +
        self.null_operation_custom(svc)
        1925  +
    }
        1926  +
        1927  +
    /// Sets the [`NullOperation`](crate::operation_shape::NullOperation) operation.
        1928  +
    ///
        1929  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        1930  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        1931  +
    ///
        1932  +
    /// # Example
        1933  +
    ///
        1934  +
    /// ```no_run
        1935  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        1936  +
    ///
        1937  +
    /// use json_rpc11_http0x::{input, output, error};
        1938  +
    ///
        1939  +
    /// async fn handler(input: input::NullOperationInput) -> Result<output::NullOperationOutput, std::convert::Infallible> {
        1940  +
    ///     todo!()
        1941  +
    /// }
        1942  +
    ///
        1943  +
    /// let config = JsonProtocolConfig::builder().build();
        1944  +
    /// let svc = ::tower::util::service_fn(handler);
        1945  +
    /// let app = JsonProtocol::builder(config)
        1946  +
    ///     .null_operation_service(svc)
        1947  +
    ///     /* Set other handlers */
        1948  +
    ///     .build()
        1949  +
    ///     .unwrap();
        1950  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        1951  +
    /// ```
        1952  +
    ///
        1953  +
                    pub fn null_operation_service<S, ServiceExtractors, UpgradeExtractors>(self, service: S) -> Self
        1954  +
                    where
        1955  +
                        S: ::aws_smithy_legacy_http_server::operation::OperationService<crate::operation_shape::NullOperation, ServiceExtractors>,
        1956  +
        1957  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1958  +
                            JsonProtocol<L>,
        1959  +
                            crate::operation_shape::NullOperation,
        1960  +
                            ::aws_smithy_legacy_http_server::operation::Normalize<crate::operation_shape::NullOperation, S>
        1961  +
                        >,
        1962  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1963  +
                            JsonProtocol<L>,
        1964  +
                            crate::operation_shape::NullOperation,
        1965  +
                            ModelPl::Output
        1966  +
                        >,
        1967  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        1968  +
                            JsonProtocol<L>,
        1969  +
                            crate::operation_shape::NullOperation,
        1970  +
                            <
        1971  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        1972  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        1973  +
                                    JsonProtocol<L>,
        1974  +
                                    crate::operation_shape::NullOperation,
        1975  +
                                    ModelPl::Output
        1976  +
                                >
        1977  +
                            >::Output
        1978  +
                        >,
        1979  +
        1980  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        1981  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        1982  +
        1983  +
                    {
        1984  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        1985  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        1986  +
        let svc = crate::operation_shape::NullOperation::from_service(service);
        1987  +
        let svc = self.model_plugin.apply(svc);
        1988  +
        let svc =
        1989  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        1990  +
                .apply(svc);
        1991  +
        let svc = self.http_plugin.apply(svc);
        1992  +
        self.null_operation_custom(svc)
        1993  +
    }
        1994  +
        1995  +
    /// Sets the [`NullOperation`](crate::operation_shape::NullOperation) to a custom [`Service`](tower::Service).
        1996  +
    /// not constrained by the Smithy contract.
        1997  +
    fn null_operation_custom<S>(mut self, svc: S) -> Self
        1998  +
    where
        1999  +
        S: ::tower::Service<
        2000  +
                ::http::Request<Body>,
        2001  +
                Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>,
        2002  +
                Error = ::std::convert::Infallible,
        2003  +
            > + Clone
        2004  +
            + Send
        2005  +
            + 'static,
        2006  +
        S::Future: Send + 'static,
        2007  +
    {
        2008  +
        self.null_operation = Some(::aws_smithy_legacy_http_server::routing::Route::new(svc));
        2009  +
        self
        2010  +
    }
        2011  +
        2012  +
    /// Sets the [`OperationWithOptionalInputOutput`](crate::operation_shape::OperationWithOptionalInputOutput) operation.
        2013  +
    ///
        2014  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        2015  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        2016  +
    ///
        2017  +
    /// # Example
        2018  +
    ///
        2019  +
    /// ```no_run
        2020  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        2021  +
    ///
        2022  +
    /// use json_rpc11_http0x::{input, output, error};
        2023  +
    ///
        2024  +
    /// async fn handler(input: input::OperationWithOptionalInputOutputInput) -> output::OperationWithOptionalInputOutputOutput {
        2025  +
    ///     todo!()
        2026  +
    /// }
        2027  +
    ///
        2028  +
    /// let config = JsonProtocolConfig::builder().build();
        2029  +
    /// let app = JsonProtocol::builder(config)
        2030  +
    ///     .operation_with_optional_input_output(handler)
        2031  +
    ///     /* Set other handlers */
        2032  +
    ///     .build()
        2033  +
    ///     .unwrap();
        2034  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        2035  +
    /// ```
        2036  +
    ///
        2037  +
                    pub fn operation_with_optional_input_output<HandlerType, HandlerExtractors, UpgradeExtractors>(self, handler: HandlerType) -> Self
        2038  +
                    where
        2039  +
                        HandlerType: ::aws_smithy_legacy_http_server::operation::Handler<crate::operation_shape::OperationWithOptionalInputOutput, HandlerExtractors>,
        2040  +
        2041  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2042  +
                            JsonProtocol<L>,
        2043  +
                            crate::operation_shape::OperationWithOptionalInputOutput,
        2044  +
                            ::aws_smithy_legacy_http_server::operation::IntoService<crate::operation_shape::OperationWithOptionalInputOutput, HandlerType>
        2045  +
                        >,
        2046  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2047  +
                            JsonProtocol<L>,
        2048  +
                            crate::operation_shape::OperationWithOptionalInputOutput,
        2049  +
                            ModelPl::Output
        2050  +
                        >,
        2051  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2052  +
                            JsonProtocol<L>,
        2053  +
                            crate::operation_shape::OperationWithOptionalInputOutput,
        2054  +
                            <
        2055  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        2056  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        2057  +
                                    JsonProtocol<L>,
        2058  +
                                    crate::operation_shape::OperationWithOptionalInputOutput,
        2059  +
                                    ModelPl::Output
        2060  +
                                >
        2061  +
                            >::Output
        2062  +
                        >,
        2063  +
        2064  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        2065  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        2066  +
        2067  +
                    {
        2068  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        2069  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        2070  +
        let svc = crate::operation_shape::OperationWithOptionalInputOutput::from_handler(handler);
        2071  +
        let svc = self.model_plugin.apply(svc);
        2072  +
        let svc =
        2073  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        2074  +
                .apply(svc);
        2075  +
        let svc = self.http_plugin.apply(svc);
        2076  +
        self.operation_with_optional_input_output_custom(svc)
        2077  +
    }
        2078  +
        2079  +
    /// Sets the [`OperationWithOptionalInputOutput`](crate::operation_shape::OperationWithOptionalInputOutput) operation.
        2080  +
    ///
        2081  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        2082  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        2083  +
    ///
        2084  +
    /// # Example
        2085  +
    ///
        2086  +
    /// ```no_run
        2087  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        2088  +
    ///
        2089  +
    /// use json_rpc11_http0x::{input, output, error};
        2090  +
    ///
        2091  +
    /// async fn handler(input: input::OperationWithOptionalInputOutputInput) -> Result<output::OperationWithOptionalInputOutputOutput, std::convert::Infallible> {
        2092  +
    ///     todo!()
        2093  +
    /// }
        2094  +
    ///
        2095  +
    /// let config = JsonProtocolConfig::builder().build();
        2096  +
    /// let svc = ::tower::util::service_fn(handler);
        2097  +
    /// let app = JsonProtocol::builder(config)
        2098  +
    ///     .operation_with_optional_input_output_service(svc)
        2099  +
    ///     /* Set other handlers */
        2100  +
    ///     .build()
        2101  +
    ///     .unwrap();
        2102  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        2103  +
    /// ```
        2104  +
    ///
        2105  +
                    pub fn operation_with_optional_input_output_service<S, ServiceExtractors, UpgradeExtractors>(self, service: S) -> Self
        2106  +
                    where
        2107  +
                        S: ::aws_smithy_legacy_http_server::operation::OperationService<crate::operation_shape::OperationWithOptionalInputOutput, ServiceExtractors>,
        2108  +
        2109  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2110  +
                            JsonProtocol<L>,
        2111  +
                            crate::operation_shape::OperationWithOptionalInputOutput,
        2112  +
                            ::aws_smithy_legacy_http_server::operation::Normalize<crate::operation_shape::OperationWithOptionalInputOutput, S>
        2113  +
                        >,
        2114  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2115  +
                            JsonProtocol<L>,
        2116  +
                            crate::operation_shape::OperationWithOptionalInputOutput,
        2117  +
                            ModelPl::Output
        2118  +
                        >,
        2119  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2120  +
                            JsonProtocol<L>,
        2121  +
                            crate::operation_shape::OperationWithOptionalInputOutput,
        2122  +
                            <
        2123  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        2124  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        2125  +
                                    JsonProtocol<L>,
        2126  +
                                    crate::operation_shape::OperationWithOptionalInputOutput,
        2127  +
                                    ModelPl::Output
        2128  +
                                >
        2129  +
                            >::Output
        2130  +
                        >,
        2131  +
        2132  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        2133  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        2134  +
        2135  +
                    {
        2136  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        2137  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        2138  +
        let svc = crate::operation_shape::OperationWithOptionalInputOutput::from_service(service);
        2139  +
        let svc = self.model_plugin.apply(svc);
        2140  +
        let svc =
        2141  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        2142  +
                .apply(svc);
        2143  +
        let svc = self.http_plugin.apply(svc);
        2144  +
        self.operation_with_optional_input_output_custom(svc)
        2145  +
    }
        2146  +
        2147  +
    /// Sets the [`OperationWithOptionalInputOutput`](crate::operation_shape::OperationWithOptionalInputOutput) to a custom [`Service`](tower::Service).
        2148  +
    /// not constrained by the Smithy contract.
        2149  +
    fn operation_with_optional_input_output_custom<S>(mut self, svc: S) -> Self
        2150  +
    where
        2151  +
        S: ::tower::Service<
        2152  +
                ::http::Request<Body>,
        2153  +
                Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>,
        2154  +
                Error = ::std::convert::Infallible,
        2155  +
            > + Clone
        2156  +
            + Send
        2157  +
            + 'static,
        2158  +
        S::Future: Send + 'static,
        2159  +
    {
        2160  +
        self.operation_with_optional_input_output =
        2161  +
            Some(::aws_smithy_legacy_http_server::routing::Route::new(svc));
        2162  +
        self
        2163  +
    }
        2164  +
        2165  +
    /// Sets the [`PutAndGetInlineDocuments`](crate::operation_shape::PutAndGetInlineDocuments) operation.
        2166  +
    ///
        2167  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        2168  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        2169  +
    ///
        2170  +
    /// # Example
        2171  +
    ///
        2172  +
    /// ```no_run
        2173  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        2174  +
    ///
        2175  +
    /// use json_rpc11_http0x::{input, output, error};
        2176  +
    ///
        2177  +
    /// async fn handler(input: input::PutAndGetInlineDocumentsInput) -> output::PutAndGetInlineDocumentsOutput {
        2178  +
    ///     todo!()
        2179  +
    /// }
        2180  +
    ///
        2181  +
    /// let config = JsonProtocolConfig::builder().build();
        2182  +
    /// let app = JsonProtocol::builder(config)
        2183  +
    ///     .put_and_get_inline_documents(handler)
        2184  +
    ///     /* Set other handlers */
        2185  +
    ///     .build()
        2186  +
    ///     .unwrap();
        2187  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        2188  +
    /// ```
        2189  +
    ///
        2190  +
                    pub fn put_and_get_inline_documents<HandlerType, HandlerExtractors, UpgradeExtractors>(self, handler: HandlerType) -> Self
        2191  +
                    where
        2192  +
                        HandlerType: ::aws_smithy_legacy_http_server::operation::Handler<crate::operation_shape::PutAndGetInlineDocuments, HandlerExtractors>,
        2193  +
        2194  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2195  +
                            JsonProtocol<L>,
        2196  +
                            crate::operation_shape::PutAndGetInlineDocuments,
        2197  +
                            ::aws_smithy_legacy_http_server::operation::IntoService<crate::operation_shape::PutAndGetInlineDocuments, HandlerType>
        2198  +
                        >,
        2199  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2200  +
                            JsonProtocol<L>,
        2201  +
                            crate::operation_shape::PutAndGetInlineDocuments,
        2202  +
                            ModelPl::Output
        2203  +
                        >,
        2204  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2205  +
                            JsonProtocol<L>,
        2206  +
                            crate::operation_shape::PutAndGetInlineDocuments,
        2207  +
                            <
        2208  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        2209  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        2210  +
                                    JsonProtocol<L>,
        2211  +
                                    crate::operation_shape::PutAndGetInlineDocuments,
        2212  +
                                    ModelPl::Output
        2213  +
                                >
        2214  +
                            >::Output
        2215  +
                        >,
        2216  +
        2217  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        2218  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        2219  +
        2220  +
                    {
        2221  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        2222  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        2223  +
        let svc = crate::operation_shape::PutAndGetInlineDocuments::from_handler(handler);
        2224  +
        let svc = self.model_plugin.apply(svc);
        2225  +
        let svc =
        2226  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        2227  +
                .apply(svc);
        2228  +
        let svc = self.http_plugin.apply(svc);
        2229  +
        self.put_and_get_inline_documents_custom(svc)
        2230  +
    }
        2231  +
        2232  +
    /// Sets the [`PutAndGetInlineDocuments`](crate::operation_shape::PutAndGetInlineDocuments) operation.
        2233  +
    ///
        2234  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        2235  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        2236  +
    ///
        2237  +
    /// # Example
        2238  +
    ///
        2239  +
    /// ```no_run
        2240  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        2241  +
    ///
        2242  +
    /// use json_rpc11_http0x::{input, output, error};
        2243  +
    ///
        2244  +
    /// async fn handler(input: input::PutAndGetInlineDocumentsInput) -> Result<output::PutAndGetInlineDocumentsOutput, std::convert::Infallible> {
        2245  +
    ///     todo!()
        2246  +
    /// }
        2247  +
    ///
        2248  +
    /// let config = JsonProtocolConfig::builder().build();
        2249  +
    /// let svc = ::tower::util::service_fn(handler);
        2250  +
    /// let app = JsonProtocol::builder(config)
        2251  +
    ///     .put_and_get_inline_documents_service(svc)
        2252  +
    ///     /* Set other handlers */
        2253  +
    ///     .build()
        2254  +
    ///     .unwrap();
        2255  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        2256  +
    /// ```
        2257  +
    ///
        2258  +
                    pub fn put_and_get_inline_documents_service<S, ServiceExtractors, UpgradeExtractors>(self, service: S) -> Self
        2259  +
                    where
        2260  +
                        S: ::aws_smithy_legacy_http_server::operation::OperationService<crate::operation_shape::PutAndGetInlineDocuments, ServiceExtractors>,
        2261  +
        2262  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2263  +
                            JsonProtocol<L>,
        2264  +
                            crate::operation_shape::PutAndGetInlineDocuments,
        2265  +
                            ::aws_smithy_legacy_http_server::operation::Normalize<crate::operation_shape::PutAndGetInlineDocuments, S>
        2266  +
                        >,
        2267  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2268  +
                            JsonProtocol<L>,
        2269  +
                            crate::operation_shape::PutAndGetInlineDocuments,
        2270  +
                            ModelPl::Output
        2271  +
                        >,
        2272  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2273  +
                            JsonProtocol<L>,
        2274  +
                            crate::operation_shape::PutAndGetInlineDocuments,
        2275  +
                            <
        2276  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        2277  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        2278  +
                                    JsonProtocol<L>,
        2279  +
                                    crate::operation_shape::PutAndGetInlineDocuments,
        2280  +
                                    ModelPl::Output
        2281  +
                                >
        2282  +
                            >::Output
        2283  +
                        >,
        2284  +
        2285  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        2286  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        2287  +
        2288  +
                    {
        2289  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        2290  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        2291  +
        let svc = crate::operation_shape::PutAndGetInlineDocuments::from_service(service);
        2292  +
        let svc = self.model_plugin.apply(svc);
        2293  +
        let svc =
        2294  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        2295  +
                .apply(svc);
        2296  +
        let svc = self.http_plugin.apply(svc);
        2297  +
        self.put_and_get_inline_documents_custom(svc)
        2298  +
    }
        2299  +
        2300  +
    /// Sets the [`PutAndGetInlineDocuments`](crate::operation_shape::PutAndGetInlineDocuments) to a custom [`Service`](tower::Service).
        2301  +
    /// not constrained by the Smithy contract.
        2302  +
    fn put_and_get_inline_documents_custom<S>(mut self, svc: S) -> Self
        2303  +
    where
        2304  +
        S: ::tower::Service<
        2305  +
                ::http::Request<Body>,
        2306  +
                Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>,
        2307  +
                Error = ::std::convert::Infallible,
        2308  +
            > + Clone
        2309  +
            + Send
        2310  +
            + 'static,
        2311  +
        S::Future: Send + 'static,
        2312  +
    {
        2313  +
        self.put_and_get_inline_documents =
        2314  +
            Some(::aws_smithy_legacy_http_server::routing::Route::new(svc));
        2315  +
        self
        2316  +
    }
        2317  +
        2318  +
    /// Sets the [`PutWithContentEncoding`](crate::operation_shape::PutWithContentEncoding) operation.
        2319  +
    ///
        2320  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        2321  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        2322  +
    ///
        2323  +
    /// # Example
        2324  +
    ///
        2325  +
    /// ```no_run
        2326  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        2327  +
    ///
        2328  +
    /// use json_rpc11_http0x::{input, output, error};
        2329  +
    ///
        2330  +
    /// async fn handler(input: input::PutWithContentEncodingInput) -> output::PutWithContentEncodingOutput {
        2331  +
    ///     todo!()
        2332  +
    /// }
        2333  +
    ///
        2334  +
    /// let config = JsonProtocolConfig::builder().build();
        2335  +
    /// let app = JsonProtocol::builder(config)
        2336  +
    ///     .put_with_content_encoding(handler)
        2337  +
    ///     /* Set other handlers */
        2338  +
    ///     .build()
        2339  +
    ///     .unwrap();
        2340  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        2341  +
    /// ```
        2342  +
    ///
        2343  +
                    pub fn put_with_content_encoding<HandlerType, HandlerExtractors, UpgradeExtractors>(self, handler: HandlerType) -> Self
        2344  +
                    where
        2345  +
                        HandlerType: ::aws_smithy_legacy_http_server::operation::Handler<crate::operation_shape::PutWithContentEncoding, HandlerExtractors>,
        2346  +
        2347  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2348  +
                            JsonProtocol<L>,
        2349  +
                            crate::operation_shape::PutWithContentEncoding,
        2350  +
                            ::aws_smithy_legacy_http_server::operation::IntoService<crate::operation_shape::PutWithContentEncoding, HandlerType>
        2351  +
                        >,
        2352  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2353  +
                            JsonProtocol<L>,
        2354  +
                            crate::operation_shape::PutWithContentEncoding,
        2355  +
                            ModelPl::Output
        2356  +
                        >,
        2357  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2358  +
                            JsonProtocol<L>,
        2359  +
                            crate::operation_shape::PutWithContentEncoding,
        2360  +
                            <
        2361  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        2362  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        2363  +
                                    JsonProtocol<L>,
        2364  +
                                    crate::operation_shape::PutWithContentEncoding,
        2365  +
                                    ModelPl::Output
        2366  +
                                >
        2367  +
                            >::Output
        2368  +
                        >,
        2369  +
        2370  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        2371  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        2372  +
        2373  +
                    {
        2374  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        2375  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        2376  +
        let svc = crate::operation_shape::PutWithContentEncoding::from_handler(handler);
        2377  +
        let svc = self.model_plugin.apply(svc);
        2378  +
        let svc =
        2379  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        2380  +
                .apply(svc);
        2381  +
        let svc = self.http_plugin.apply(svc);
        2382  +
        self.put_with_content_encoding_custom(svc)
        2383  +
    }
        2384  +
        2385  +
    /// Sets the [`PutWithContentEncoding`](crate::operation_shape::PutWithContentEncoding) operation.
        2386  +
    ///
        2387  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        2388  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        2389  +
    ///
        2390  +
    /// # Example
        2391  +
    ///
        2392  +
    /// ```no_run
        2393  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        2394  +
    ///
        2395  +
    /// use json_rpc11_http0x::{input, output, error};
        2396  +
    ///
        2397  +
    /// async fn handler(input: input::PutWithContentEncodingInput) -> Result<output::PutWithContentEncodingOutput, std::convert::Infallible> {
        2398  +
    ///     todo!()
        2399  +
    /// }
        2400  +
    ///
        2401  +
    /// let config = JsonProtocolConfig::builder().build();
        2402  +
    /// let svc = ::tower::util::service_fn(handler);
        2403  +
    /// let app = JsonProtocol::builder(config)
        2404  +
    ///     .put_with_content_encoding_service(svc)
        2405  +
    ///     /* Set other handlers */
        2406  +
    ///     .build()
        2407  +
    ///     .unwrap();
        2408  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        2409  +
    /// ```
        2410  +
    ///
        2411  +
                    pub fn put_with_content_encoding_service<S, ServiceExtractors, UpgradeExtractors>(self, service: S) -> Self
        2412  +
                    where
        2413  +
                        S: ::aws_smithy_legacy_http_server::operation::OperationService<crate::operation_shape::PutWithContentEncoding, ServiceExtractors>,
        2414  +
        2415  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2416  +
                            JsonProtocol<L>,
        2417  +
                            crate::operation_shape::PutWithContentEncoding,
        2418  +
                            ::aws_smithy_legacy_http_server::operation::Normalize<crate::operation_shape::PutWithContentEncoding, S>
        2419  +
                        >,
        2420  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2421  +
                            JsonProtocol<L>,
        2422  +
                            crate::operation_shape::PutWithContentEncoding,
        2423  +
                            ModelPl::Output
        2424  +
                        >,
        2425  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2426  +
                            JsonProtocol<L>,
        2427  +
                            crate::operation_shape::PutWithContentEncoding,
        2428  +
                            <
        2429  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        2430  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        2431  +
                                    JsonProtocol<L>,
        2432  +
                                    crate::operation_shape::PutWithContentEncoding,
        2433  +
                                    ModelPl::Output
        2434  +
                                >
        2435  +
                            >::Output
        2436  +
                        >,
        2437  +
        2438  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        2439  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        2440  +
        2441  +
                    {
        2442  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        2443  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        2444  +
        let svc = crate::operation_shape::PutWithContentEncoding::from_service(service);
        2445  +
        let svc = self.model_plugin.apply(svc);
        2446  +
        let svc =
        2447  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        2448  +
                .apply(svc);
        2449  +
        let svc = self.http_plugin.apply(svc);
        2450  +
        self.put_with_content_encoding_custom(svc)
        2451  +
    }
        2452  +
        2453  +
    /// Sets the [`PutWithContentEncoding`](crate::operation_shape::PutWithContentEncoding) to a custom [`Service`](tower::Service).
        2454  +
    /// not constrained by the Smithy contract.
        2455  +
    fn put_with_content_encoding_custom<S>(mut self, svc: S) -> Self
        2456  +
    where
        2457  +
        S: ::tower::Service<
        2458  +
                ::http::Request<Body>,
        2459  +
                Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>,
        2460  +
                Error = ::std::convert::Infallible,
        2461  +
            > + Clone
        2462  +
            + Send
        2463  +
            + 'static,
        2464  +
        S::Future: Send + 'static,
        2465  +
    {
        2466  +
        self.put_with_content_encoding =
        2467  +
            Some(::aws_smithy_legacy_http_server::routing::Route::new(svc));
        2468  +
        self
        2469  +
    }
        2470  +
        2471  +
    /// Sets the [`SimpleScalarProperties`](crate::operation_shape::SimpleScalarProperties) operation.
        2472  +
    ///
        2473  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        2474  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        2475  +
    ///
        2476  +
    /// # Example
        2477  +
    ///
        2478  +
    /// ```no_run
        2479  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        2480  +
    ///
        2481  +
    /// use json_rpc11_http0x::{input, output, error};
        2482  +
    ///
        2483  +
    /// async fn handler(input: input::SimpleScalarPropertiesInput) -> output::SimpleScalarPropertiesOutput {
        2484  +
    ///     todo!()
        2485  +
    /// }
        2486  +
    ///
        2487  +
    /// let config = JsonProtocolConfig::builder().build();
        2488  +
    /// let app = JsonProtocol::builder(config)
        2489  +
    ///     .simple_scalar_properties(handler)
        2490  +
    ///     /* Set other handlers */
        2491  +
    ///     .build()
        2492  +
    ///     .unwrap();
        2493  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        2494  +
    /// ```
        2495  +
    ///
        2496  +
                    pub fn simple_scalar_properties<HandlerType, HandlerExtractors, UpgradeExtractors>(self, handler: HandlerType) -> Self
        2497  +
                    where
        2498  +
                        HandlerType: ::aws_smithy_legacy_http_server::operation::Handler<crate::operation_shape::SimpleScalarProperties, HandlerExtractors>,
        2499  +
        2500  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2501  +
                            JsonProtocol<L>,
        2502  +
                            crate::operation_shape::SimpleScalarProperties,
        2503  +
                            ::aws_smithy_legacy_http_server::operation::IntoService<crate::operation_shape::SimpleScalarProperties, HandlerType>
        2504  +
                        >,
        2505  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2506  +
                            JsonProtocol<L>,
        2507  +
                            crate::operation_shape::SimpleScalarProperties,
        2508  +
                            ModelPl::Output
        2509  +
                        >,
        2510  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2511  +
                            JsonProtocol<L>,
        2512  +
                            crate::operation_shape::SimpleScalarProperties,
        2513  +
                            <
        2514  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        2515  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        2516  +
                                    JsonProtocol<L>,
        2517  +
                                    crate::operation_shape::SimpleScalarProperties,
        2518  +
                                    ModelPl::Output
        2519  +
                                >
        2520  +
                            >::Output
        2521  +
                        >,
        2522  +
        2523  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        2524  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        2525  +
        2526  +
                    {
        2527  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        2528  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        2529  +
        let svc = crate::operation_shape::SimpleScalarProperties::from_handler(handler);
        2530  +
        let svc = self.model_plugin.apply(svc);
        2531  +
        let svc =
        2532  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        2533  +
                .apply(svc);
        2534  +
        let svc = self.http_plugin.apply(svc);
        2535  +
        self.simple_scalar_properties_custom(svc)
        2536  +
    }
        2537  +
        2538  +
    /// Sets the [`SimpleScalarProperties`](crate::operation_shape::SimpleScalarProperties) operation.
        2539  +
    ///
        2540  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        2541  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        2542  +
    ///
        2543  +
    /// # Example
        2544  +
    ///
        2545  +
    /// ```no_run
        2546  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        2547  +
    ///
        2548  +
    /// use json_rpc11_http0x::{input, output, error};
        2549  +
    ///
        2550  +
    /// async fn handler(input: input::SimpleScalarPropertiesInput) -> Result<output::SimpleScalarPropertiesOutput, std::convert::Infallible> {
        2551  +
    ///     todo!()
        2552  +
    /// }
        2553  +
    ///
        2554  +
    /// let config = JsonProtocolConfig::builder().build();
        2555  +
    /// let svc = ::tower::util::service_fn(handler);
        2556  +
    /// let app = JsonProtocol::builder(config)
        2557  +
    ///     .simple_scalar_properties_service(svc)
        2558  +
    ///     /* Set other handlers */
        2559  +
    ///     .build()
        2560  +
    ///     .unwrap();
        2561  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        2562  +
    /// ```
        2563  +
    ///
        2564  +
                    pub fn simple_scalar_properties_service<S, ServiceExtractors, UpgradeExtractors>(self, service: S) -> Self
        2565  +
                    where
        2566  +
                        S: ::aws_smithy_legacy_http_server::operation::OperationService<crate::operation_shape::SimpleScalarProperties, ServiceExtractors>,
        2567  +
        2568  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2569  +
                            JsonProtocol<L>,
        2570  +
                            crate::operation_shape::SimpleScalarProperties,
        2571  +
                            ::aws_smithy_legacy_http_server::operation::Normalize<crate::operation_shape::SimpleScalarProperties, S>
        2572  +
                        >,
        2573  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2574  +
                            JsonProtocol<L>,
        2575  +
                            crate::operation_shape::SimpleScalarProperties,
        2576  +
                            ModelPl::Output
        2577  +
                        >,
        2578  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2579  +
                            JsonProtocol<L>,
        2580  +
                            crate::operation_shape::SimpleScalarProperties,
        2581  +
                            <
        2582  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        2583  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        2584  +
                                    JsonProtocol<L>,
        2585  +
                                    crate::operation_shape::SimpleScalarProperties,
        2586  +
                                    ModelPl::Output
        2587  +
                                >
        2588  +
                            >::Output
        2589  +
                        >,
        2590  +
        2591  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        2592  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        2593  +
        2594  +
                    {
        2595  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        2596  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        2597  +
        let svc = crate::operation_shape::SimpleScalarProperties::from_service(service);
        2598  +
        let svc = self.model_plugin.apply(svc);
        2599  +
        let svc =
        2600  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        2601  +
                .apply(svc);
        2602  +
        let svc = self.http_plugin.apply(svc);
        2603  +
        self.simple_scalar_properties_custom(svc)
        2604  +
    }
        2605  +
        2606  +
    /// Sets the [`SimpleScalarProperties`](crate::operation_shape::SimpleScalarProperties) to a custom [`Service`](tower::Service).
        2607  +
    /// not constrained by the Smithy contract.
        2608  +
    fn simple_scalar_properties_custom<S>(mut self, svc: S) -> Self
        2609  +
    where
        2610  +
        S: ::tower::Service<
        2611  +
                ::http::Request<Body>,
        2612  +
                Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>,
        2613  +
                Error = ::std::convert::Infallible,
        2614  +
            > + Clone
        2615  +
            + Send
        2616  +
            + 'static,
        2617  +
        S::Future: Send + 'static,
        2618  +
    {
        2619  +
        self.simple_scalar_properties =
        2620  +
            Some(::aws_smithy_legacy_http_server::routing::Route::new(svc));
        2621  +
        self
        2622  +
    }
        2623  +
        2624  +
    /// Sets the [`SparseNullsOperation`](crate::operation_shape::SparseNullsOperation) operation.
        2625  +
    ///
        2626  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        2627  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        2628  +
    ///
        2629  +
    /// # Example
        2630  +
    ///
        2631  +
    /// ```no_run
        2632  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        2633  +
    ///
        2634  +
    /// use json_rpc11_http0x::{input, output, error};
        2635  +
    ///
        2636  +
    /// async fn handler(input: input::SparseNullsOperationInput) -> output::SparseNullsOperationOutput {
        2637  +
    ///     todo!()
        2638  +
    /// }
        2639  +
    ///
        2640  +
    /// let config = JsonProtocolConfig::builder().build();
        2641  +
    /// let app = JsonProtocol::builder(config)
        2642  +
    ///     .sparse_nulls_operation(handler)
        2643  +
    ///     /* Set other handlers */
        2644  +
    ///     .build()
        2645  +
    ///     .unwrap();
        2646  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        2647  +
    /// ```
        2648  +
    ///
        2649  +
                    pub fn sparse_nulls_operation<HandlerType, HandlerExtractors, UpgradeExtractors>(self, handler: HandlerType) -> Self
        2650  +
                    where
        2651  +
                        HandlerType: ::aws_smithy_legacy_http_server::operation::Handler<crate::operation_shape::SparseNullsOperation, HandlerExtractors>,
        2652  +
        2653  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2654  +
                            JsonProtocol<L>,
        2655  +
                            crate::operation_shape::SparseNullsOperation,
        2656  +
                            ::aws_smithy_legacy_http_server::operation::IntoService<crate::operation_shape::SparseNullsOperation, HandlerType>
        2657  +
                        >,
        2658  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2659  +
                            JsonProtocol<L>,
        2660  +
                            crate::operation_shape::SparseNullsOperation,
        2661  +
                            ModelPl::Output
        2662  +
                        >,
        2663  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2664  +
                            JsonProtocol<L>,
        2665  +
                            crate::operation_shape::SparseNullsOperation,
        2666  +
                            <
        2667  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        2668  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        2669  +
                                    JsonProtocol<L>,
        2670  +
                                    crate::operation_shape::SparseNullsOperation,
        2671  +
                                    ModelPl::Output
        2672  +
                                >
        2673  +
                            >::Output
        2674  +
                        >,
        2675  +
        2676  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        2677  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        2678  +
        2679  +
                    {
        2680  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        2681  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        2682  +
        let svc = crate::operation_shape::SparseNullsOperation::from_handler(handler);
        2683  +
        let svc = self.model_plugin.apply(svc);
        2684  +
        let svc =
        2685  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        2686  +
                .apply(svc);
        2687  +
        let svc = self.http_plugin.apply(svc);
        2688  +
        self.sparse_nulls_operation_custom(svc)
        2689  +
    }
        2690  +
        2691  +
    /// Sets the [`SparseNullsOperation`](crate::operation_shape::SparseNullsOperation) operation.
        2692  +
    ///
        2693  +
    /// This should be an async function satisfying the [`Handler`](::aws_smithy_legacy_http_server::operation::Handler) trait.
        2694  +
    /// See the [operation module documentation](::aws_smithy_legacy_http_server::operation) for more information.
        2695  +
    ///
        2696  +
    /// # Example
        2697  +
    ///
        2698  +
    /// ```no_run
        2699  +
    /// use json_rpc11_http0x::{JsonProtocol, JsonProtocolConfig};
        2700  +
    ///
        2701  +
    /// use json_rpc11_http0x::{input, output, error};
        2702  +
    ///
        2703  +
    /// async fn handler(input: input::SparseNullsOperationInput) -> Result<output::SparseNullsOperationOutput, std::convert::Infallible> {
        2704  +
    ///     todo!()
        2705  +
    /// }
        2706  +
    ///
        2707  +
    /// let config = JsonProtocolConfig::builder().build();
        2708  +
    /// let svc = ::tower::util::service_fn(handler);
        2709  +
    /// let app = JsonProtocol::builder(config)
        2710  +
    ///     .sparse_nulls_operation_service(svc)
        2711  +
    ///     /* Set other handlers */
        2712  +
    ///     .build()
        2713  +
    ///     .unwrap();
        2714  +
    /// # let app: JsonProtocol<::aws_smithy_legacy_http_server::routing::RoutingService<::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<::aws_smithy_legacy_http_server::routing::Route>, ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>> = app;
        2715  +
    /// ```
        2716  +
    ///
        2717  +
                    pub fn sparse_nulls_operation_service<S, ServiceExtractors, UpgradeExtractors>(self, service: S) -> Self
        2718  +
                    where
        2719  +
                        S: ::aws_smithy_legacy_http_server::operation::OperationService<crate::operation_shape::SparseNullsOperation, ServiceExtractors>,
        2720  +
        2721  +
                        ModelPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2722  +
                            JsonProtocol<L>,
        2723  +
                            crate::operation_shape::SparseNullsOperation,
        2724  +
                            ::aws_smithy_legacy_http_server::operation::Normalize<crate::operation_shape::SparseNullsOperation, S>
        2725  +
                        >,
        2726  +
                        ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2727  +
                            JsonProtocol<L>,
        2728  +
                            crate::operation_shape::SparseNullsOperation,
        2729  +
                            ModelPl::Output
        2730  +
                        >,
        2731  +
                        HttpPl: ::aws_smithy_legacy_http_server::plugin::Plugin<
        2732  +
                            JsonProtocol<L>,
        2733  +
                            crate::operation_shape::SparseNullsOperation,
        2734  +
                            <
        2735  +
                                ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>
        2736  +
                                as ::aws_smithy_legacy_http_server::plugin::Plugin<
        2737  +
                                    JsonProtocol<L>,
        2738  +
                                    crate::operation_shape::SparseNullsOperation,
        2739  +
                                    ModelPl::Output
        2740  +
                                >
        2741  +
                            >::Output
        2742  +
                        >,
        2743  +
        2744  +
                        HttpPl::Output: ::tower::Service<::http::Request<Body>, Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>, Error = ::std::convert::Infallible> + Clone + Send + 'static,
        2745  +
                        <HttpPl::Output as ::tower::Service<::http::Request<Body>>>::Future: Send + 'static,
        2746  +
        2747  +
                    {
        2748  +
        use ::aws_smithy_legacy_http_server::operation::OperationShapeExt;
        2749  +
        use ::aws_smithy_legacy_http_server::plugin::Plugin;
        2750  +
        let svc = crate::operation_shape::SparseNullsOperation::from_service(service);
        2751  +
        let svc = self.model_plugin.apply(svc);
        2752  +
        let svc =
        2753  +
            ::aws_smithy_legacy_http_server::operation::UpgradePlugin::<UpgradeExtractors>::new()
        2754  +
                .apply(svc);
        2755  +
        let svc = self.http_plugin.apply(svc);
        2756  +
        self.sparse_nulls_operation_custom(svc)
        2757  +
    }
        2758  +
        2759  +
    /// Sets the [`SparseNullsOperation`](crate::operation_shape::SparseNullsOperation) to a custom [`Service`](tower::Service).
        2760  +
    /// not constrained by the Smithy contract.
        2761  +
    fn sparse_nulls_operation_custom<S>(mut self, svc: S) -> Self
        2762  +
    where
        2763  +
        S: ::tower::Service<
        2764  +
                ::http::Request<Body>,
        2765  +
                Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>,
        2766  +
                Error = ::std::convert::Infallible,
        2767  +
            > + Clone
        2768  +
            + Send
        2769  +
            + 'static,
        2770  +
        S::Future: Send + 'static,
        2771  +
    {
        2772  +
        self.sparse_nulls_operation =
        2773  +
            Some(::aws_smithy_legacy_http_server::routing::Route::new(svc));
        2774  +
        self
        2775  +
    }
        2776  +
}
        2777  +
        2778  +
impl<Body, L, HttpPl, ModelPl> JsonProtocolBuilder<Body, L, HttpPl, ModelPl> {
        2779  +
    /// Constructs a [`JsonProtocol`] from the arguments provided to the builder.
        2780  +
    ///
        2781  +
    /// Forgetting to register a handler for one or more operations will result in an error.
        2782  +
    ///
        2783  +
    /// Check out [`JsonProtocolBuilder::build_unchecked`] if you'd prefer the service to return status code 500 when an
        2784  +
    /// unspecified route is requested.
        2785  +
    pub fn build(
        2786  +
        self,
        2787  +
    ) -> ::std::result::Result<
        2788  +
        JsonProtocol<
        2789  +
            ::aws_smithy_legacy_http_server::routing::RoutingService<
        2790  +
                ::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<
        2791  +
                    L::Service,
        2792  +
                >,
        2793  +
                ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1,
        2794  +
            >,
        2795  +
        >,
        2796  +
        MissingOperationsError,
        2797  +
    >
        2798  +
    where
        2799  +
        L: ::tower::Layer<::aws_smithy_legacy_http_server::routing::Route<Body>>,
        2800  +
    {
        2801  +
        let router = {
        2802  +
            use ::aws_smithy_legacy_http_server::operation::OperationShape;
        2803  +
            let mut missing_operation_names = std::collections::HashMap::new();
        2804  +
            if self.content_type_parameters.is_none() {
        2805  +
                missing_operation_names.insert(
        2806  +
                    crate::operation_shape::ContentTypeParameters::ID,
        2807  +
                    ".content_type_parameters()",
        2808  +
                );
        2809  +
            }
        2810  +
            if self.datetime_offsets.is_none() {
        2811  +
                missing_operation_names.insert(
        2812  +
                    crate::operation_shape::DatetimeOffsets::ID,
        2813  +
                    ".datetime_offsets()",
        2814  +
                );
        2815  +
            }
        2816  +
            if self.empty_operation.is_none() {
        2817  +
                missing_operation_names.insert(
        2818  +
                    crate::operation_shape::EmptyOperation::ID,
        2819  +
                    ".empty_operation()",
        2820  +
                );
        2821  +
            }
        2822  +
            if self.endpoint_operation.is_none() {
        2823  +
                missing_operation_names.insert(
        2824  +
                    crate::operation_shape::EndpointOperation::ID,
        2825  +
                    ".endpoint_operation()",
        2826  +
                );
        2827  +
            }
        2828  +
            if self.endpoint_with_host_label_operation.is_none() {
        2829  +
                missing_operation_names.insert(
        2830  +
                    crate::operation_shape::EndpointWithHostLabelOperation::ID,
        2831  +
                    ".endpoint_with_host_label_operation()",
        2832  +
                );
        2833  +
            }
        2834  +
            if self.fractional_seconds.is_none() {
        2835  +
                missing_operation_names.insert(
        2836  +
                    crate::operation_shape::FractionalSeconds::ID,
        2837  +
                    ".fractional_seconds()",
        2838  +
                );
        2839  +
            }
        2840  +
            if self.greeting_with_errors.is_none() {
        2841  +
                missing_operation_names.insert(
        2842  +
                    crate::operation_shape::GreetingWithErrors::ID,
        2843  +
                    ".greeting_with_errors()",
        2844  +
                );
        2845  +
            }
        2846  +
            if self.host_with_path_operation.is_none() {
        2847  +
                missing_operation_names.insert(
        2848  +
                    crate::operation_shape::HostWithPathOperation::ID,
        2849  +
                    ".host_with_path_operation()",
        2850  +
                );
        2851  +
            }
        2852  +
            if self.json_enums.is_none() {
        2853  +
                missing_operation_names
        2854  +
                    .insert(crate::operation_shape::JsonEnums::ID, ".json_enums()");
        2855  +
            }
        2856  +
            if self.json_int_enums.is_none() {
        2857  +
                missing_operation_names.insert(
        2858  +
                    crate::operation_shape::JsonIntEnums::ID,
        2859  +
                    ".json_int_enums()",
        2860  +
                );
        2861  +
            }
        2862  +
            if self.json_unions.is_none() {
        2863  +
                missing_operation_names
        2864  +
                    .insert(crate::operation_shape::JsonUnions::ID, ".json_unions()");
        2865  +
            }
        2866  +
            if self.kitchen_sink_operation.is_none() {
        2867  +
                missing_operation_names.insert(
        2868  +
                    crate::operation_shape::KitchenSinkOperation::ID,
        2869  +
                    ".kitchen_sink_operation()",
        2870  +
                );
        2871  +
            }
        2872  +
            if self.null_operation.is_none() {
        2873  +
                missing_operation_names.insert(
        2874  +
                    crate::operation_shape::NullOperation::ID,
        2875  +
                    ".null_operation()",
        2876  +
                );
        2877  +
            }
        2878  +
            if self.operation_with_optional_input_output.is_none() {
        2879  +
                missing_operation_names.insert(
        2880  +
                    crate::operation_shape::OperationWithOptionalInputOutput::ID,
        2881  +
                    ".operation_with_optional_input_output()",
        2882  +
                );
        2883  +
            }
        2884  +
            if self.put_and_get_inline_documents.is_none() {
        2885  +
                missing_operation_names.insert(
        2886  +
                    crate::operation_shape::PutAndGetInlineDocuments::ID,
        2887  +
                    ".put_and_get_inline_documents()",
        2888  +
                );
        2889  +
            }
        2890  +
            if self.put_with_content_encoding.is_none() {
        2891  +
                missing_operation_names.insert(
        2892  +
                    crate::operation_shape::PutWithContentEncoding::ID,
        2893  +
                    ".put_with_content_encoding()",
        2894  +
                );
        2895  +
            }
        2896  +
            if self.simple_scalar_properties.is_none() {
        2897  +
                missing_operation_names.insert(
        2898  +
                    crate::operation_shape::SimpleScalarProperties::ID,
        2899  +
                    ".simple_scalar_properties()",
        2900  +
                );
        2901  +
            }
        2902  +
            if self.sparse_nulls_operation.is_none() {
        2903  +
                missing_operation_names.insert(
        2904  +
                    crate::operation_shape::SparseNullsOperation::ID,
        2905  +
                    ".sparse_nulls_operation()",
        2906  +
                );
        2907  +
            }
        2908  +
            if !missing_operation_names.is_empty() {
        2909  +
                return Err(MissingOperationsError {
        2910  +
                    operation_names2setter_methods: missing_operation_names,
        2911  +
                });
        2912  +
            }
        2913  +
            let unexpected_error_msg = "this should never panic since we are supposed to check beforehand that a handler has been registered for this operation; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues";
        2914  +
        2915  +
            ::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter::from_iter([
        2916  +
                (
        2917  +
                    request_specs::content_type_parameters(),
        2918  +
                    self.content_type_parameters.expect(unexpected_error_msg),
        2919  +
                ),
        2920  +
                (
        2921  +
                    request_specs::datetime_offsets(),
        2922  +
                    self.datetime_offsets.expect(unexpected_error_msg),
        2923  +
                ),
        2924  +
                (
        2925  +
                    request_specs::empty_operation(),
        2926  +
                    self.empty_operation.expect(unexpected_error_msg),
        2927  +
                ),
        2928  +
                (
        2929  +
                    request_specs::endpoint_operation(),
        2930  +
                    self.endpoint_operation.expect(unexpected_error_msg),
        2931  +
                ),
        2932  +
                (
        2933  +
                    request_specs::endpoint_with_host_label_operation(),
        2934  +
                    self.endpoint_with_host_label_operation
        2935  +
                        .expect(unexpected_error_msg),
        2936  +
                ),
        2937  +
                (
        2938  +
                    request_specs::fractional_seconds(),
        2939  +
                    self.fractional_seconds.expect(unexpected_error_msg),
        2940  +
                ),
        2941  +
                (
        2942  +
                    request_specs::greeting_with_errors(),
        2943  +
                    self.greeting_with_errors.expect(unexpected_error_msg),
        2944  +
                ),
        2945  +
                (
        2946  +
                    request_specs::host_with_path_operation(),
        2947  +
                    self.host_with_path_operation.expect(unexpected_error_msg),
        2948  +
                ),
        2949  +
                (
        2950  +
                    request_specs::json_enums(),
        2951  +
                    self.json_enums.expect(unexpected_error_msg),
        2952  +
                ),
        2953  +
                (
        2954  +
                    request_specs::json_int_enums(),
        2955  +
                    self.json_int_enums.expect(unexpected_error_msg),
        2956  +
                ),
        2957  +
                (
        2958  +
                    request_specs::json_unions(),
        2959  +
                    self.json_unions.expect(unexpected_error_msg),
        2960  +
                ),
        2961  +
                (
        2962  +
                    request_specs::kitchen_sink_operation(),
        2963  +
                    self.kitchen_sink_operation.expect(unexpected_error_msg),
        2964  +
                ),
        2965  +
                (
        2966  +
                    request_specs::null_operation(),
        2967  +
                    self.null_operation.expect(unexpected_error_msg),
        2968  +
                ),
        2969  +
                (
        2970  +
                    request_specs::operation_with_optional_input_output(),
        2971  +
                    self.operation_with_optional_input_output
        2972  +
                        .expect(unexpected_error_msg),
        2973  +
                ),
        2974  +
                (
        2975  +
                    request_specs::put_and_get_inline_documents(),
        2976  +
                    self.put_and_get_inline_documents
        2977  +
                        .expect(unexpected_error_msg),
        2978  +
                ),
        2979  +
                (
        2980  +
                    request_specs::put_with_content_encoding(),
        2981  +
                    self.put_with_content_encoding.expect(unexpected_error_msg),
        2982  +
                ),
        2983  +
                (
        2984  +
                    request_specs::simple_scalar_properties(),
        2985  +
                    self.simple_scalar_properties.expect(unexpected_error_msg),
        2986  +
                ),
        2987  +
                (
        2988  +
                    request_specs::sparse_nulls_operation(),
        2989  +
                    self.sparse_nulls_operation.expect(unexpected_error_msg),
        2990  +
                ),
        2991  +
            ])
        2992  +
        };
        2993  +
        let svc = ::aws_smithy_legacy_http_server::routing::RoutingService::new(router);
        2994  +
        let svc = svc.map(|s| s.layer(self.layer));
        2995  +
        Ok(JsonProtocol { svc })
        2996  +
    }
        2997  +
        2998  +
    /// Constructs a [`JsonProtocol`] from the arguments provided to the builder.
        2999  +
    /// Operations without a handler default to returning 500 Internal Server Error to the caller.
        3000  +
    ///
        3001  +
    /// Check out [`JsonProtocolBuilder::build`] if you'd prefer the builder to fail if one or more operations do
        3002  +
    /// not have a registered handler.
        3003  +
    pub fn build_unchecked(self) -> JsonProtocol<L::Service>
        3004  +
    where
        3005  +
        Body: Send + 'static,
        3006  +
        L: ::tower::Layer<
        3007  +
            ::aws_smithy_legacy_http_server::routing::RoutingService<
        3008  +
                ::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<
        3009  +
                    ::aws_smithy_legacy_http_server::routing::Route<Body>,
        3010  +
                >,
        3011  +
                ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1,
        3012  +
            >,
        3013  +
        >,
        3014  +
    {
        3015  +
        let router = ::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter::from_iter([(
        3016  +
                                request_specs::content_type_parameters(),
        3017  +
                                self.content_type_parameters.unwrap_or_else(|| {
        3018  +
                                    let svc = ::aws_smithy_legacy_http_server::operation::MissingFailure::<::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>::default();
        3019  +
                                    ::aws_smithy_legacy_http_server::routing::Route::new(svc)
        3020  +
                                })
        3021  +
                            ),
        3022  +
(
        3023  +
                                request_specs::datetime_offsets(),
        3024  +
                                self.datetime_offsets.unwrap_or_else(|| {
        3025  +
                                    let svc = ::aws_smithy_legacy_http_server::operation::MissingFailure::<::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>::default();
        3026  +
                                    ::aws_smithy_legacy_http_server::routing::Route::new(svc)
        3027  +
                                })
        3028  +
                            ),
        3029  +
(
        3030  +
                                request_specs::empty_operation(),
        3031  +
                                self.empty_operation.unwrap_or_else(|| {
        3032  +
                                    let svc = ::aws_smithy_legacy_http_server::operation::MissingFailure::<::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>::default();
        3033  +
                                    ::aws_smithy_legacy_http_server::routing::Route::new(svc)
        3034  +
                                })
        3035  +
                            ),
        3036  +
(
        3037  +
                                request_specs::endpoint_operation(),
        3038  +
                                self.endpoint_operation.unwrap_or_else(|| {
        3039  +
                                    let svc = ::aws_smithy_legacy_http_server::operation::MissingFailure::<::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>::default();
        3040  +
                                    ::aws_smithy_legacy_http_server::routing::Route::new(svc)
        3041  +
                                })
        3042  +
                            ),
        3043  +
(
        3044  +
                                request_specs::endpoint_with_host_label_operation(),
        3045  +
                                self.endpoint_with_host_label_operation.unwrap_or_else(|| {
        3046  +
                                    let svc = ::aws_smithy_legacy_http_server::operation::MissingFailure::<::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>::default();
        3047  +
                                    ::aws_smithy_legacy_http_server::routing::Route::new(svc)
        3048  +
                                })
        3049  +
                            ),
        3050  +
(
        3051  +
                                request_specs::fractional_seconds(),
        3052  +
                                self.fractional_seconds.unwrap_or_else(|| {
        3053  +
                                    let svc = ::aws_smithy_legacy_http_server::operation::MissingFailure::<::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>::default();
        3054  +
                                    ::aws_smithy_legacy_http_server::routing::Route::new(svc)
        3055  +
                                })
        3056  +
                            ),
        3057  +
(
        3058  +
                                request_specs::greeting_with_errors(),
        3059  +
                                self.greeting_with_errors.unwrap_or_else(|| {
        3060  +
                                    let svc = ::aws_smithy_legacy_http_server::operation::MissingFailure::<::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>::default();
        3061  +
                                    ::aws_smithy_legacy_http_server::routing::Route::new(svc)
        3062  +
                                })
        3063  +
                            ),
        3064  +
(
        3065  +
                                request_specs::host_with_path_operation(),
        3066  +
                                self.host_with_path_operation.unwrap_or_else(|| {
        3067  +
                                    let svc = ::aws_smithy_legacy_http_server::operation::MissingFailure::<::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>::default();
        3068  +
                                    ::aws_smithy_legacy_http_server::routing::Route::new(svc)
        3069  +
                                })
        3070  +
                            ),
        3071  +
(
        3072  +
                                request_specs::json_enums(),
        3073  +
                                self.json_enums.unwrap_or_else(|| {
        3074  +
                                    let svc = ::aws_smithy_legacy_http_server::operation::MissingFailure::<::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>::default();
        3075  +
                                    ::aws_smithy_legacy_http_server::routing::Route::new(svc)
        3076  +
                                })
        3077  +
                            ),
        3078  +
(
        3079  +
                                request_specs::json_int_enums(),
        3080  +
                                self.json_int_enums.unwrap_or_else(|| {
        3081  +
                                    let svc = ::aws_smithy_legacy_http_server::operation::MissingFailure::<::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>::default();
        3082  +
                                    ::aws_smithy_legacy_http_server::routing::Route::new(svc)
        3083  +
                                })
        3084  +
                            ),
        3085  +
(
        3086  +
                                request_specs::json_unions(),
        3087  +
                                self.json_unions.unwrap_or_else(|| {
        3088  +
                                    let svc = ::aws_smithy_legacy_http_server::operation::MissingFailure::<::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>::default();
        3089  +
                                    ::aws_smithy_legacy_http_server::routing::Route::new(svc)
        3090  +
                                })
        3091  +
                            ),
        3092  +
(
        3093  +
                                request_specs::kitchen_sink_operation(),
        3094  +
                                self.kitchen_sink_operation.unwrap_or_else(|| {
        3095  +
                                    let svc = ::aws_smithy_legacy_http_server::operation::MissingFailure::<::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>::default();
        3096  +
                                    ::aws_smithy_legacy_http_server::routing::Route::new(svc)
        3097  +
                                })
        3098  +
                            ),
        3099  +
(
        3100  +
                                request_specs::null_operation(),
        3101  +
                                self.null_operation.unwrap_or_else(|| {
        3102  +
                                    let svc = ::aws_smithy_legacy_http_server::operation::MissingFailure::<::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>::default();
        3103  +
                                    ::aws_smithy_legacy_http_server::routing::Route::new(svc)
        3104  +
                                })
        3105  +
                            ),
        3106  +
(
        3107  +
                                request_specs::operation_with_optional_input_output(),
        3108  +
                                self.operation_with_optional_input_output.unwrap_or_else(|| {
        3109  +
                                    let svc = ::aws_smithy_legacy_http_server::operation::MissingFailure::<::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>::default();
        3110  +
                                    ::aws_smithy_legacy_http_server::routing::Route::new(svc)
        3111  +
                                })
        3112  +
                            ),
        3113  +
(
        3114  +
                                request_specs::put_and_get_inline_documents(),
        3115  +
                                self.put_and_get_inline_documents.unwrap_or_else(|| {
        3116  +
                                    let svc = ::aws_smithy_legacy_http_server::operation::MissingFailure::<::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>::default();
        3117  +
                                    ::aws_smithy_legacy_http_server::routing::Route::new(svc)
        3118  +
                                })
        3119  +
                            ),
        3120  +
(
        3121  +
                                request_specs::put_with_content_encoding(),
        3122  +
                                self.put_with_content_encoding.unwrap_or_else(|| {
        3123  +
                                    let svc = ::aws_smithy_legacy_http_server::operation::MissingFailure::<::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>::default();
        3124  +
                                    ::aws_smithy_legacy_http_server::routing::Route::new(svc)
        3125  +
                                })
        3126  +
                            ),
        3127  +
(
        3128  +
                                request_specs::simple_scalar_properties(),
        3129  +
                                self.simple_scalar_properties.unwrap_or_else(|| {
        3130  +
                                    let svc = ::aws_smithy_legacy_http_server::operation::MissingFailure::<::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>::default();
        3131  +
                                    ::aws_smithy_legacy_http_server::routing::Route::new(svc)
        3132  +
                                })
        3133  +
                            ),
        3134  +
(
        3135  +
                                request_specs::sparse_nulls_operation(),
        3136  +
                                self.sparse_nulls_operation.unwrap_or_else(|| {
        3137  +
                                    let svc = ::aws_smithy_legacy_http_server::operation::MissingFailure::<::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1>::default();
        3138  +
                                    ::aws_smithy_legacy_http_server::routing::Route::new(svc)
        3139  +
                                })
        3140  +
                            ),]);
        3141  +
        let svc = self
        3142  +
            .layer
        3143  +
            .layer(::aws_smithy_legacy_http_server::routing::RoutingService::new(router));
        3144  +
        JsonProtocol { svc }
        3145  +
    }
        3146  +
}
        3147  +
        3148  +
/// The error encountered when calling the [`JsonProtocolBuilder::build`] method if one or more operation handlers are not
        3149  +
/// specified.
        3150  +
#[derive(Debug)]
        3151  +
pub struct MissingOperationsError {
        3152  +
    operation_names2setter_methods:
        3153  +
        std::collections::HashMap<::aws_smithy_legacy_http_server::shape_id::ShapeId, &'static str>,
        3154  +
}
        3155  +
        3156  +
impl std::fmt::Display for MissingOperationsError {
        3157  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        3158  +
        write!(
        3159  +
            f,
        3160  +
            "You must specify a handler for all operations attached to `JsonProtocol`.\n\
        3161  +
                            We are missing handlers for the following operations:\n",
        3162  +
        )?;
        3163  +
        for operation_name in self.operation_names2setter_methods.keys() {
        3164  +
            writeln!(f, "- {}", operation_name.absolute())?;
        3165  +
        }
        3166  +
        3167  +
        writeln!(f, "\nUse the dedicated methods on `JsonProtocolBuilder` to register the missing handlers:")?;
        3168  +
        for setter_name in self.operation_names2setter_methods.values() {
        3169  +
            writeln!(f, "- {}", setter_name)?;
        3170  +
        }
        3171  +
        Ok(())
        3172  +
    }
        3173  +
}
        3174  +
        3175  +
impl std::error::Error for MissingOperationsError {}
        3176  +
        3177  +
mod request_specs {
        3178  +
    pub(super) fn content_type_parameters() -> &'static str {
        3179  +
        "JsonProtocol.ContentTypeParameters"
        3180  +
    }
        3181  +
    pub(super) fn datetime_offsets() -> &'static str {
        3182  +
        "JsonProtocol.DatetimeOffsets"
        3183  +
    }
        3184  +
    pub(super) fn empty_operation() -> &'static str {
        3185  +
        "JsonProtocol.EmptyOperation"
        3186  +
    }
        3187  +
    pub(super) fn endpoint_operation() -> &'static str {
        3188  +
        "JsonProtocol.EndpointOperation"
        3189  +
    }
        3190  +
    pub(super) fn endpoint_with_host_label_operation() -> &'static str {
        3191  +
        "JsonProtocol.EndpointWithHostLabelOperation"
        3192  +
    }
        3193  +
    pub(super) fn fractional_seconds() -> &'static str {
        3194  +
        "JsonProtocol.FractionalSeconds"
        3195  +
    }
        3196  +
    pub(super) fn greeting_with_errors() -> &'static str {
        3197  +
        "JsonProtocol.GreetingWithErrors"
        3198  +
    }
        3199  +
    pub(super) fn host_with_path_operation() -> &'static str {
        3200  +
        "JsonProtocol.HostWithPathOperation"
        3201  +
    }
        3202  +
    pub(super) fn json_enums() -> &'static str {
        3203  +
        "JsonProtocol.JsonEnums"
        3204  +
    }
        3205  +
    pub(super) fn json_int_enums() -> &'static str {
        3206  +
        "JsonProtocol.JsonIntEnums"
        3207  +
    }
        3208  +
    pub(super) fn json_unions() -> &'static str {
        3209  +
        "JsonProtocol.JsonUnions"
        3210  +
    }
        3211  +
    pub(super) fn kitchen_sink_operation() -> &'static str {
        3212  +
        "JsonProtocol.KitchenSinkOperation"
        3213  +
    }
        3214  +
    pub(super) fn null_operation() -> &'static str {
        3215  +
        "JsonProtocol.NullOperation"
        3216  +
    }
        3217  +
    pub(super) fn operation_with_optional_input_output() -> &'static str {
        3218  +
        "JsonProtocol.OperationWithOptionalInputOutput"
        3219  +
    }
        3220  +
    pub(super) fn put_and_get_inline_documents() -> &'static str {
        3221  +
        "JsonProtocol.PutAndGetInlineDocuments"
        3222  +
    }
        3223  +
    pub(super) fn put_with_content_encoding() -> &'static str {
        3224  +
        "JsonProtocol.PutWithContentEncoding"
        3225  +
    }
        3226  +
    pub(super) fn simple_scalar_properties() -> &'static str {
        3227  +
        "JsonProtocol.SimpleScalarProperties"
        3228  +
    }
        3229  +
    pub(super) fn sparse_nulls_operation() -> &'static str {
        3230  +
        "JsonProtocol.SparseNullsOperation"
        3231  +
    }
        3232  +
}
        3233  +
        3234  +
#[allow(missing_docs)] // documentation missing in model
        3235  +
///
        3236  +
/// See the [root](crate) documentation for more information.
        3237  +
#[derive(Clone)]
        3238  +
pub struct JsonProtocol<
        3239  +
    S = ::aws_smithy_legacy_http_server::routing::RoutingService<
        3240  +
        ::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<
        3241  +
            ::aws_smithy_legacy_http_server::routing::Route<
        3242  +
                ::aws_smithy_legacy_http_server::body::BoxBody,
        3243  +
            >,
        3244  +
        >,
        3245  +
        ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1,
        3246  +
    >,
        3247  +
> {
        3248  +
    // This is the router wrapped by layers.
        3249  +
    svc: S,
        3250  +
}
        3251  +
        3252  +
impl JsonProtocol<()> {
        3253  +
    /// Constructs a builder for [`JsonProtocol`].
        3254  +
    /// You must specify a configuration object holding any plugins and layers that should be applied
        3255  +
    /// to the operations in this service.
        3256  +
    pub fn builder<
        3257  +
        Body,
        3258  +
        L,
        3259  +
        HttpPl: ::aws_smithy_legacy_http_server::plugin::HttpMarker,
        3260  +
        ModelPl: ::aws_smithy_legacy_http_server::plugin::ModelMarker,
        3261  +
    >(
        3262  +
        config: JsonProtocolConfig<L, HttpPl, ModelPl>,
        3263  +
    ) -> JsonProtocolBuilder<Body, L, HttpPl, ModelPl> {
        3264  +
        JsonProtocolBuilder {
        3265  +
            content_type_parameters: None,
        3266  +
            datetime_offsets: None,
        3267  +
            empty_operation: None,
        3268  +
            endpoint_operation: None,
        3269  +
            endpoint_with_host_label_operation: None,
        3270  +
            fractional_seconds: None,
        3271  +
            greeting_with_errors: None,
        3272  +
            host_with_path_operation: None,
        3273  +
            json_enums: None,
        3274  +
            json_int_enums: None,
        3275  +
            json_unions: None,
        3276  +
            kitchen_sink_operation: None,
        3277  +
            null_operation: None,
        3278  +
            operation_with_optional_input_output: None,
        3279  +
            put_and_get_inline_documents: None,
        3280  +
            put_with_content_encoding: None,
        3281  +
            simple_scalar_properties: None,
        3282  +
            sparse_nulls_operation: None,
        3283  +
            layer: config.layers,
        3284  +
            http_plugin: config.http_plugins,
        3285  +
            model_plugin: config.model_plugins,
        3286  +
        }
        3287  +
    }
        3288  +
        3289  +
    /// Constructs a builder for [`JsonProtocol`].
        3290  +
    /// You must specify what plugins should be applied to the operations in this service.
        3291  +
    ///
        3292  +
    /// Use [`JsonProtocol::builder_without_plugins`] if you don't need to apply plugins.
        3293  +
    ///
        3294  +
    /// Check out [`HttpPlugins`](::aws_smithy_legacy_http_server::plugin::HttpPlugins) and
        3295  +
    /// [`ModelPlugins`](::aws_smithy_legacy_http_server::plugin::ModelPlugins) if you need to apply
        3296  +
    /// multiple plugins.
        3297  +
    #[deprecated(
        3298  +
        since = "0.57.0",
        3299  +
        note = "please use the `builder` constructor and register plugins on the `JsonProtocolConfig` object instead; see https://github.com/smithy-lang/smithy-rs/discussions/3096"
        3300  +
    )]
        3301  +
    pub fn builder_with_plugins<
        3302  +
        Body,
        3303  +
        HttpPl: ::aws_smithy_legacy_http_server::plugin::HttpMarker,
        3304  +
        ModelPl: ::aws_smithy_legacy_http_server::plugin::ModelMarker,
        3305  +
    >(
        3306  +
        http_plugin: HttpPl,
        3307  +
        model_plugin: ModelPl,
        3308  +
    ) -> JsonProtocolBuilder<Body, ::tower::layer::util::Identity, HttpPl, ModelPl> {
        3309  +
        JsonProtocolBuilder {
        3310  +
            content_type_parameters: None,
        3311  +
            datetime_offsets: None,
        3312  +
            empty_operation: None,
        3313  +
            endpoint_operation: None,
        3314  +
            endpoint_with_host_label_operation: None,
        3315  +
            fractional_seconds: None,
        3316  +
            greeting_with_errors: None,
        3317  +
            host_with_path_operation: None,
        3318  +
            json_enums: None,
        3319  +
            json_int_enums: None,
        3320  +
            json_unions: None,
        3321  +
            kitchen_sink_operation: None,
        3322  +
            null_operation: None,
        3323  +
            operation_with_optional_input_output: None,
        3324  +
            put_and_get_inline_documents: None,
        3325  +
            put_with_content_encoding: None,
        3326  +
            simple_scalar_properties: None,
        3327  +
            sparse_nulls_operation: None,
        3328  +
            layer: ::tower::layer::util::Identity::new(),
        3329  +
            http_plugin,
        3330  +
            model_plugin,
        3331  +
        }
        3332  +
    }
        3333  +
        3334  +
    /// Constructs a builder for [`JsonProtocol`].
        3335  +
    ///
        3336  +
    /// Use [`JsonProtocol::builder_with_plugins`] if you need to specify plugins.
        3337  +
    #[deprecated(
        3338  +
        since = "0.57.0",
        3339  +
        note = "please use the `builder` constructor instead; see https://github.com/smithy-lang/smithy-rs/discussions/3096"
        3340  +
    )]
        3341  +
    pub fn builder_without_plugins<Body>() -> JsonProtocolBuilder<
        3342  +
        Body,
        3343  +
        ::tower::layer::util::Identity,
        3344  +
        ::aws_smithy_legacy_http_server::plugin::IdentityPlugin,
        3345  +
        ::aws_smithy_legacy_http_server::plugin::IdentityPlugin,
        3346  +
    > {
        3347  +
        Self::builder_with_plugins(
        3348  +
            ::aws_smithy_legacy_http_server::plugin::IdentityPlugin,
        3349  +
            ::aws_smithy_legacy_http_server::plugin::IdentityPlugin,
        3350  +
        )
        3351  +
    }
        3352  +
}
        3353  +
        3354  +
impl<S> JsonProtocol<S> {
        3355  +
    /// Converts [`JsonProtocol`] into a [`MakeService`](tower::make::MakeService).
        3356  +
    pub fn into_make_service(
        3357  +
        self,
        3358  +
    ) -> ::aws_smithy_legacy_http_server::routing::IntoMakeService<Self> {
        3359  +
        ::aws_smithy_legacy_http_server::routing::IntoMakeService::new(self)
        3360  +
    }
        3361  +
        3362  +
    /// Converts [`JsonProtocol`] into a [`MakeService`](tower::make::MakeService) with [`ConnectInfo`](::aws_smithy_legacy_http_server::request::connect_info::ConnectInfo).
        3363  +
    pub fn into_make_service_with_connect_info<C>(
        3364  +
        self,
        3365  +
    ) -> ::aws_smithy_legacy_http_server::routing::IntoMakeServiceWithConnectInfo<Self, C> {
        3366  +
        ::aws_smithy_legacy_http_server::routing::IntoMakeServiceWithConnectInfo::new(self)
        3367  +
    }
        3368  +
}
        3369  +
        3370  +
impl<S>
        3371  +
    JsonProtocol<
        3372  +
        ::aws_smithy_legacy_http_server::routing::RoutingService<
        3373  +
            ::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<S>,
        3374  +
            ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1,
        3375  +
        >,
        3376  +
    >
        3377  +
{
        3378  +
    /// Applies a [`Layer`](::tower::Layer) uniformly to all routes.
        3379  +
    #[deprecated(
        3380  +
        since = "0.57.0",
        3381  +
        note = "please add layers to the `JsonProtocolConfig` object instead; see https://github.com/smithy-lang/smithy-rs/discussions/3096"
        3382  +
    )]
        3383  +
    pub fn layer<L>(
        3384  +
        self,
        3385  +
        layer: &L,
        3386  +
    ) -> JsonProtocol<
        3387  +
        ::aws_smithy_legacy_http_server::routing::RoutingService<
        3388  +
            ::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<L::Service>,
        3389  +
            ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1,
        3390  +
        >,
        3391  +
    >
        3392  +
    where
        3393  +
        L: ::tower::Layer<S>,
        3394  +
    {
        3395  +
        JsonProtocol {
        3396  +
            svc: self.svc.map(|s| s.layer(layer)),
        3397  +
        }
        3398  +
    }
        3399  +
        3400  +
    /// Applies [`Route::new`](::aws_smithy_legacy_http_server::routing::Route::new) to all routes.
        3401  +
    ///
        3402  +
    /// This has the effect of erasing all types accumulated via layers.
        3403  +
    pub fn boxed<B>(
        3404  +
        self,
        3405  +
    ) -> JsonProtocol<
        3406  +
        ::aws_smithy_legacy_http_server::routing::RoutingService<
        3407  +
            ::aws_smithy_legacy_http_server::protocol::aws_json::router::AwsJsonRouter<
        3408  +
                ::aws_smithy_legacy_http_server::routing::Route<B>,
        3409  +
            >,
        3410  +
            ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1,
        3411  +
        >,
        3412  +
    >
        3413  +
    where
        3414  +
        S: ::tower::Service<
        3415  +
            ::http::Request<B>,
        3416  +
            Response = ::http::Response<::aws_smithy_legacy_http_server::body::BoxBody>,
        3417  +
            Error = std::convert::Infallible,
        3418  +
        >,
        3419  +
        S: Clone + Send + 'static,
        3420  +
        S::Future: Send + 'static,
        3421  +
    {
        3422  +
        self.layer(&::tower::layer::layer_fn(
        3423  +
            ::aws_smithy_legacy_http_server::routing::Route::new,
        3424  +
        ))
        3425  +
    }
        3426  +
}
        3427  +
        3428  +
impl<S, R> ::tower::Service<R> for JsonProtocol<S>
        3429  +
where
        3430  +
    S: ::tower::Service<R>,
        3431  +
{
        3432  +
    type Response = S::Response;
        3433  +
    type Error = S::Error;
        3434  +
    type Future = S::Future;
        3435  +
        3436  +
    fn poll_ready(
        3437  +
        &mut self,
        3438  +
        cx: &mut std::task::Context,
        3439  +
    ) -> std::task::Poll<::std::result::Result<(), Self::Error>> {
        3440  +
        self.svc.poll_ready(cx)
        3441  +
    }
        3442  +
        3443  +
    fn call(&mut self, request: R) -> Self::Future {
        3444  +
        self.svc.call(request)
        3445  +
    }
        3446  +
}
        3447  +
        3448  +
/// An enumeration of all [operations](https://smithy.io/2.0/spec/service-types.html#operation) in JsonProtocol.
        3449  +
#[allow(clippy::enum_variant_names)]
        3450  +
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
        3451  +
pub enum Operation {
        3452  +
    ContentTypeParameters,
        3453  +
    DatetimeOffsets,
        3454  +
    EmptyOperation,
        3455  +
    EndpointOperation,
        3456  +
    EndpointWithHostLabelOperation,
        3457  +
    FractionalSeconds,
        3458  +
    GreetingWithErrors,
        3459  +
    HostWithPathOperation,
        3460  +
    JsonEnums,
        3461  +
    JsonIntEnums,
        3462  +
    JsonUnions,
        3463  +
    KitchenSinkOperation,
        3464  +
    NullOperation,
        3465  +
    OperationWithOptionalInputOutput,
        3466  +
    PutAndGetInlineDocuments,
        3467  +
    PutWithContentEncoding,
        3468  +
    SimpleScalarProperties,
        3469  +
    SparseNullsOperation,
        3470  +
}
        3471  +
        3472  +
impl Operation {
        3473  +
    /// Returns the [operations](https://smithy.io/2.0/spec/service-types.html#operation) [`ShapeId`](::aws_smithy_legacy_http_server::shape_id::ShapeId).
        3474  +
    pub fn shape_id(&self) -> ::aws_smithy_legacy_http_server::shape_id::ShapeId {
        3475  +
        match self {
        3476  +
            Operation::ContentTypeParameters => {
        3477  +
                ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
        3478  +
                    "aws.protocoltests.json#ContentTypeParameters",
        3479  +
                    "aws.protocoltests.json",
        3480  +
                    "ContentTypeParameters",
        3481  +
                )
        3482  +
            }
        3483  +
            Operation::DatetimeOffsets => ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
        3484  +
                "aws.protocoltests.json#DatetimeOffsets",
        3485  +
                "aws.protocoltests.json",
        3486  +
                "DatetimeOffsets",
        3487  +
            ),
        3488  +
            Operation::EmptyOperation => ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
        3489  +
                "aws.protocoltests.json#EmptyOperation",
        3490  +
                "aws.protocoltests.json",
        3491  +
                "EmptyOperation",
        3492  +
            ),
        3493  +
            Operation::EndpointOperation => {
        3494  +
                ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
        3495  +
                    "aws.protocoltests.json#EndpointOperation",
        3496  +
                    "aws.protocoltests.json",
        3497  +
                    "EndpointOperation",
        3498  +
                )
        3499  +
            }
        3500  +
            Operation::EndpointWithHostLabelOperation => {
        3501  +
                ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
        3502  +
                    "aws.protocoltests.json#EndpointWithHostLabelOperation",
        3503  +
                    "aws.protocoltests.json",
        3504  +
                    "EndpointWithHostLabelOperation",
        3505  +
                )
        3506  +
            }
        3507  +
            Operation::FractionalSeconds => {
        3508  +
                ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
        3509  +
                    "aws.protocoltests.json#FractionalSeconds",
        3510  +
                    "aws.protocoltests.json",
        3511  +
                    "FractionalSeconds",
        3512  +
                )
        3513  +
            }
        3514  +
            Operation::GreetingWithErrors => {
        3515  +
                ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
        3516  +
                    "aws.protocoltests.json#GreetingWithErrors",
        3517  +
                    "aws.protocoltests.json",
        3518  +
                    "GreetingWithErrors",
        3519  +
                )
        3520  +
            }
        3521  +
            Operation::HostWithPathOperation => {
        3522  +
                ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
        3523  +
                    "aws.protocoltests.json#HostWithPathOperation",
        3524  +
                    "aws.protocoltests.json",
        3525  +
                    "HostWithPathOperation",
        3526  +
                )
        3527  +
            }
        3528  +
            Operation::JsonEnums => ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
        3529  +
                "aws.protocoltests.json#JsonEnums",
        3530  +
                "aws.protocoltests.json",
        3531  +
                "JsonEnums",
        3532  +
            ),
        3533  +
            Operation::JsonIntEnums => ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
        3534  +
                "aws.protocoltests.json#JsonIntEnums",
        3535  +
                "aws.protocoltests.json",
        3536  +
                "JsonIntEnums",
        3537  +
            ),
        3538  +
            Operation::JsonUnions => ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
        3539  +
                "aws.protocoltests.json#JsonUnions",
        3540  +
                "aws.protocoltests.json",
        3541  +
                "JsonUnions",
        3542  +
            ),
        3543  +
            Operation::KitchenSinkOperation => {
        3544  +
                ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
        3545  +
                    "aws.protocoltests.json#KitchenSinkOperation",
        3546  +
                    "aws.protocoltests.json",
        3547  +
                    "KitchenSinkOperation",
        3548  +
                )
        3549  +
            }
        3550  +
            Operation::NullOperation => ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
        3551  +
                "aws.protocoltests.json#NullOperation",
        3552  +
                "aws.protocoltests.json",
        3553  +
                "NullOperation",
        3554  +
            ),
        3555  +
            Operation::OperationWithOptionalInputOutput => {
        3556  +
                ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
        3557  +
                    "aws.protocoltests.json#OperationWithOptionalInputOutput",
        3558  +
                    "aws.protocoltests.json",
        3559  +
                    "OperationWithOptionalInputOutput",
        3560  +
                )
        3561  +
            }
        3562  +
            Operation::PutAndGetInlineDocuments => {
        3563  +
                ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
        3564  +
                    "aws.protocoltests.json#PutAndGetInlineDocuments",
        3565  +
                    "aws.protocoltests.json",
        3566  +
                    "PutAndGetInlineDocuments",
        3567  +
                )
        3568  +
            }
        3569  +
            Operation::PutWithContentEncoding => {
        3570  +
                ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
        3571  +
                    "aws.protocoltests.json#PutWithContentEncoding",
        3572  +
                    "aws.protocoltests.json",
        3573  +
                    "PutWithContentEncoding",
        3574  +
                )
        3575  +
            }
        3576  +
            Operation::SimpleScalarProperties => {
        3577  +
                ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
        3578  +
                    "aws.protocoltests.json#SimpleScalarProperties",
        3579  +
                    "aws.protocoltests.json",
        3580  +
                    "SimpleScalarProperties",
        3581  +
                )
        3582  +
            }
        3583  +
            Operation::SparseNullsOperation => {
        3584  +
                ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
        3585  +
                    "aws.protocoltests.json#SparseNullsOperation",
        3586  +
                    "aws.protocoltests.json",
        3587  +
                    "SparseNullsOperation",
        3588  +
                )
        3589  +
            }
        3590  +
        }
        3591  +
    }
        3592  +
}
        3593  +
impl<L>
        3594  +
    ::aws_smithy_legacy_http_server::service::ContainsOperation<
        3595  +
        crate::operation_shape::ContentTypeParameters,
        3596  +
    > for JsonProtocol<L>
        3597  +
{
        3598  +
    const VALUE: Operation = Operation::ContentTypeParameters;
        3599  +
}
        3600  +
impl<L>
        3601  +
    ::aws_smithy_legacy_http_server::service::ContainsOperation<
        3602  +
        crate::operation_shape::DatetimeOffsets,
        3603  +
    > for JsonProtocol<L>
        3604  +
{
        3605  +
    const VALUE: Operation = Operation::DatetimeOffsets;
        3606  +
}
        3607  +
impl<L>
        3608  +
    ::aws_smithy_legacy_http_server::service::ContainsOperation<
        3609  +
        crate::operation_shape::EmptyOperation,
        3610  +
    > for JsonProtocol<L>
        3611  +
{
        3612  +
    const VALUE: Operation = Operation::EmptyOperation;
        3613  +
}
        3614  +
impl<L>
        3615  +
    ::aws_smithy_legacy_http_server::service::ContainsOperation<
        3616  +
        crate::operation_shape::EndpointOperation,
        3617  +
    > for JsonProtocol<L>
        3618  +
{
        3619  +
    const VALUE: Operation = Operation::EndpointOperation;
        3620  +
}
        3621  +
impl<L>
        3622  +
    ::aws_smithy_legacy_http_server::service::ContainsOperation<
        3623  +
        crate::operation_shape::EndpointWithHostLabelOperation,
        3624  +
    > for JsonProtocol<L>
        3625  +
{
        3626  +
    const VALUE: Operation = Operation::EndpointWithHostLabelOperation;
        3627  +
}
        3628  +
impl<L>
        3629  +
    ::aws_smithy_legacy_http_server::service::ContainsOperation<
        3630  +
        crate::operation_shape::FractionalSeconds,
        3631  +
    > for JsonProtocol<L>
        3632  +
{
        3633  +
    const VALUE: Operation = Operation::FractionalSeconds;
        3634  +
}
        3635  +
impl<L>
        3636  +
    ::aws_smithy_legacy_http_server::service::ContainsOperation<
        3637  +
        crate::operation_shape::GreetingWithErrors,
        3638  +
    > for JsonProtocol<L>
        3639  +
{
        3640  +
    const VALUE: Operation = Operation::GreetingWithErrors;
        3641  +
}
        3642  +
impl<L>
        3643  +
    ::aws_smithy_legacy_http_server::service::ContainsOperation<
        3644  +
        crate::operation_shape::HostWithPathOperation,
        3645  +
    > for JsonProtocol<L>
        3646  +
{
        3647  +
    const VALUE: Operation = Operation::HostWithPathOperation;
        3648  +
}
        3649  +
impl<L>
        3650  +
    ::aws_smithy_legacy_http_server::service::ContainsOperation<crate::operation_shape::JsonEnums>
        3651  +
    for JsonProtocol<L>
        3652  +
{
        3653  +
    const VALUE: Operation = Operation::JsonEnums;
        3654  +
}
        3655  +
impl<L>
        3656  +
    ::aws_smithy_legacy_http_server::service::ContainsOperation<
        3657  +
        crate::operation_shape::JsonIntEnums,
        3658  +
    > for JsonProtocol<L>
        3659  +
{
        3660  +
    const VALUE: Operation = Operation::JsonIntEnums;
        3661  +
}
        3662  +
impl<L>
        3663  +
    ::aws_smithy_legacy_http_server::service::ContainsOperation<crate::operation_shape::JsonUnions>
        3664  +
    for JsonProtocol<L>
        3665  +
{
        3666  +
    const VALUE: Operation = Operation::JsonUnions;
        3667  +
}
        3668  +
impl<L>
        3669  +
    ::aws_smithy_legacy_http_server::service::ContainsOperation<
        3670  +
        crate::operation_shape::KitchenSinkOperation,
        3671  +
    > for JsonProtocol<L>
        3672  +
{
        3673  +
    const VALUE: Operation = Operation::KitchenSinkOperation;
        3674  +
}
        3675  +
impl<L>
        3676  +
    ::aws_smithy_legacy_http_server::service::ContainsOperation<
        3677  +
        crate::operation_shape::NullOperation,
        3678  +
    > for JsonProtocol<L>
        3679  +
{
        3680  +
    const VALUE: Operation = Operation::NullOperation;
        3681  +
}
        3682  +
impl<L>
        3683  +
    ::aws_smithy_legacy_http_server::service::ContainsOperation<
        3684  +
        crate::operation_shape::OperationWithOptionalInputOutput,
        3685  +
    > for JsonProtocol<L>
        3686  +
{
        3687  +
    const VALUE: Operation = Operation::OperationWithOptionalInputOutput;
        3688  +
}
        3689  +
impl<L>
        3690  +
    ::aws_smithy_legacy_http_server::service::ContainsOperation<
        3691  +
        crate::operation_shape::PutAndGetInlineDocuments,
        3692  +
    > for JsonProtocol<L>
        3693  +
{
        3694  +
    const VALUE: Operation = Operation::PutAndGetInlineDocuments;
        3695  +
}
        3696  +
impl<L>
        3697  +
    ::aws_smithy_legacy_http_server::service::ContainsOperation<
        3698  +
        crate::operation_shape::PutWithContentEncoding,
        3699  +
    > for JsonProtocol<L>
        3700  +
{
        3701  +
    const VALUE: Operation = Operation::PutWithContentEncoding;
        3702  +
}
        3703  +
impl<L>
        3704  +
    ::aws_smithy_legacy_http_server::service::ContainsOperation<
        3705  +
        crate::operation_shape::SimpleScalarProperties,
        3706  +
    > for JsonProtocol<L>
        3707  +
{
        3708  +
    const VALUE: Operation = Operation::SimpleScalarProperties;
        3709  +
}
        3710  +
impl<L>
        3711  +
    ::aws_smithy_legacy_http_server::service::ContainsOperation<
        3712  +
        crate::operation_shape::SparseNullsOperation,
        3713  +
    > for JsonProtocol<L>
        3714  +
{
        3715  +
    const VALUE: Operation = Operation::SparseNullsOperation;
        3716  +
}
        3717  +
        3718  +
impl<S> ::aws_smithy_legacy_http_server::service::ServiceShape for JsonProtocol<S> {
        3719  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
        3720  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
        3721  +
            "aws.protocoltests.json#JsonProtocol",
        3722  +
            "aws.protocoltests.json",
        3723  +
            "JsonProtocol",
        3724  +
        );
        3725  +
        3726  +
    const VERSION: Option<&'static str> = Some("2018-01-01");
        3727  +
        3728  +
    type Protocol = ::aws_smithy_legacy_http_server::protocol::aws_json_11::AwsJson1_1;
        3729  +
        3730  +
    type Operations = Operation;
        3731  +
}
        3732  +
/// Configuration for the [`JsonProtocol`]. This is the central place where to register and
        3733  +
/// configure [`::tower::Layer`]s, HTTP plugins, and model plugins.
        3734  +
///
        3735  +
/// ```rust,no_run
        3736  +
/// # use json_rpc11_http0x::JsonProtocolConfig;
        3737  +
/// # use ::aws_smithy_legacy_http_server::plugin::IdentityPlugin;
        3738  +
/// # use ::tower::layer::util::Identity;
        3739  +
/// # let authentication_plugin = IdentityPlugin;
        3740  +
/// # let authorization_plugin = IdentityPlugin;
        3741  +
/// # let server_request_id_provider_layer = Identity::new();
        3742  +
/// let config = JsonProtocolConfig::builder()
        3743  +
///     // Layers get executed first...
        3744  +
///     .layer(server_request_id_provider_layer)
        3745  +
///     // ...then HTTP plugins...
        3746  +
///     .http_plugin(authentication_plugin)
        3747  +
///     // ...and right after deserialization, model plugins.
        3748  +
///     .model_plugin(authorization_plugin)
        3749  +
///     .build();
        3750  +
/// ```
        3751  +
///
        3752  +
/// See the [`plugin`] system for details.
        3753  +
///
        3754  +
/// [`plugin`]: ::aws_smithy_legacy_http_server::plugin
        3755  +
#[derive(::std::fmt::Debug)]
        3756  +
pub struct JsonProtocolConfig<L, H, M> {
        3757  +
    layers: L,
        3758  +
    http_plugins: H,
        3759  +
    model_plugins: M,
        3760  +
}
        3761  +
        3762  +
impl JsonProtocolConfig<(), (), ()> {
        3763  +
    /// Returns a builder to construct the configuration.
        3764  +
    pub fn builder() -> JsonProtocolConfigBuilder<
        3765  +
        ::tower::layer::util::Identity,
        3766  +
        ::aws_smithy_legacy_http_server::plugin::IdentityPlugin,
        3767  +
        ::aws_smithy_legacy_http_server::plugin::IdentityPlugin,
        3768  +
    > {
        3769  +
        JsonProtocolConfigBuilder {
        3770  +
            layers: ::tower::layer::util::Identity::new(),
        3771  +
            http_plugins: ::aws_smithy_legacy_http_server::plugin::IdentityPlugin,
        3772  +
            model_plugins: ::aws_smithy_legacy_http_server::plugin::IdentityPlugin,
        3773  +
        }
        3774  +
    }
        3775  +
}
        3776  +
        3777  +
/// Builder returned by [`JsonProtocolConfig::builder()`].
        3778  +
#[derive(::std::fmt::Debug)]
        3779  +
pub struct JsonProtocolConfigBuilder<L, H, M> {
        3780  +
    pub(crate) layers: L,
        3781  +
    pub(crate) http_plugins: H,
        3782  +
    pub(crate) model_plugins: M,
        3783  +
}
        3784  +
        3785  +
impl<L, H, M> JsonProtocolConfigBuilder<L, H, M> {
        3786  +
    /// Add a [`::tower::Layer`] to the service.
        3787  +
    pub fn layer<NewLayer>(
        3788  +
        self,
        3789  +
        layer: NewLayer,
        3790  +
    ) -> JsonProtocolConfigBuilder<::tower::layer::util::Stack<NewLayer, L>, H, M> {
        3791  +
        JsonProtocolConfigBuilder {
        3792  +
            layers: ::tower::layer::util::Stack::new(layer, self.layers),
        3793  +
            http_plugins: self.http_plugins,
        3794  +
            model_plugins: self.model_plugins,
        3795  +
        }
        3796  +
    }
        3797  +
        3798  +
    /// Add a HTTP [plugin] to the service.
        3799  +
    ///
        3800  +
    /// [plugin]: ::aws_smithy_legacy_http_server::plugin
        3801  +
    // We eagerly require `NewPlugin: HttpMarker`, despite not really needing it, because compiler
        3802  +
    // errors get _substantially_ better if the user makes a mistake.
        3803  +
    pub fn http_plugin<NewPlugin: ::aws_smithy_legacy_http_server::plugin::HttpMarker>(
        3804  +
        self,
        3805  +
        http_plugin: NewPlugin,
        3806  +
    ) -> JsonProtocolConfigBuilder<
        3807  +
        L,
        3808  +
        ::aws_smithy_legacy_http_server::plugin::PluginStack<NewPlugin, H>,
        3809  +
        M,
        3810  +
    > {
        3811  +
        JsonProtocolConfigBuilder {
        3812  +
            layers: self.layers,
        3813  +
            http_plugins: ::aws_smithy_legacy_http_server::plugin::PluginStack::new(
        3814  +
                http_plugin,
        3815  +
                self.http_plugins,
        3816  +
            ),
        3817  +
            model_plugins: self.model_plugins,
        3818  +
        }
        3819  +
    }
        3820  +
        3821  +
    /// Add a model [plugin] to the service.
        3822  +
    ///
        3823  +
    /// [plugin]: ::aws_smithy_legacy_http_server::plugin
        3824  +
    // We eagerly require `NewPlugin: ModelMarker`, despite not really needing it, because compiler
        3825  +
    // errors get _substantially_ better if the user makes a mistake.
        3826  +
    pub fn model_plugin<NewPlugin: ::aws_smithy_legacy_http_server::plugin::ModelMarker>(
        3827  +
        self,
        3828  +
        model_plugin: NewPlugin,
        3829  +
    ) -> JsonProtocolConfigBuilder<
        3830  +
        L,
        3831  +
        H,
        3832  +
        ::aws_smithy_legacy_http_server::plugin::PluginStack<NewPlugin, M>,
        3833  +
    > {
        3834  +
        JsonProtocolConfigBuilder {
        3835  +
            layers: self.layers,
        3836  +
            http_plugins: self.http_plugins,
        3837  +
            model_plugins: ::aws_smithy_legacy_http_server::plugin::PluginStack::new(
        3838  +
                model_plugin,
        3839  +
                self.model_plugins,
        3840  +
            ),
        3841  +
        }
        3842  +
    }
        3843  +
        3844  +
    /// Build the configuration.
        3845  +
    pub fn build(self) -> super::JsonProtocolConfig<L, H, M> {
        3846  +
        super::JsonProtocolConfig {
        3847  +
            layers: self.layers,
        3848  +
            http_plugins: self.http_plugins,
        3849  +
            model_plugins: self.model_plugins,
        3850  +
        }
        3851  +
    }
        3852  +
}
        3853  +
/// A macro to help with scoping [plugins](crate::server::plugin) to a subset of all operations.
        3854  +
///
        3855  +
/// In contrast to [`crate::server::scope`](crate::server::scope), this macro has knowledge
        3856  +
/// of the service and any operations _not_ specified will be placed in the opposing group.
        3857  +
///
        3858  +
/// # Example
        3859  +
///
        3860  +
/// ```rust
        3861  +
/// scope! {
        3862  +
///     /// Includes [`ContentTypeParameters`], excluding all other operations.
        3863  +
///     struct ScopeA {
        3864  +
///         includes: [ContentTypeParameters]
        3865  +
///     }
        3866  +
/// }
        3867  +
///
        3868  +
/// scope! {
        3869  +
///     /// Excludes [`ContentTypeParameters`], excluding all other operations.
        3870  +
///     struct ScopeB {
        3871  +
///         excludes: [ContentTypeParameters]
        3872  +
///     }
        3873  +
/// }
        3874  +
///
        3875  +
/// # use json_rpc11_http0x::server::plugin::{Plugin, Scoped};
        3876  +
/// # use json_rpc11_http0x::scope;
        3877  +
/// # struct MockPlugin;
        3878  +
/// # impl<S, Op, T> Plugin<S, Op, T> for MockPlugin { type Output = u32; fn apply(&self, input: T) -> u32 { 3 } }
        3879  +
/// # let scoped_a = Scoped::new::<ScopeA>(MockPlugin);
        3880  +
/// # let scoped_b = Scoped::new::<ScopeB>(MockPlugin);
        3881  +
/// # let a = Plugin::<(), json_rpc11_http0x::operation_shape::ContentTypeParameters, u64>::apply(&scoped_a, 6);
        3882  +
/// # let b = Plugin::<(), json_rpc11_http0x::operation_shape::ContentTypeParameters, u64>::apply(&scoped_b, 6);
        3883  +
/// # assert_eq!(a, 3_u32);
        3884  +
/// # assert_eq!(b, 6_u64);
        3885  +
/// ```
        3886  +
#[macro_export]
        3887  +
macro_rules! scope {
        3888  +
                    // Completed, render impls
        3889  +
                    (@ $ name: ident, $ contains: ident () ($($ temp: ident)*) ($($ not_member: ident)*)) => {
        3890  +
                        $(
        3891  +
                            impl $ crate::server::plugin::scoped::Membership<$ temp> for $ name {
        3892  +
                                type Contains = $ crate::server::plugin::scoped::$ contains;
        3893  +
                            }
        3894  +
                        )*
        3895  +
                        $(
        3896  +
                            impl $ crate::server::plugin::scoped::Membership<$ not_member> for $ name {
        3897  +
                                type Contains = $ crate::server::plugin::scoped::$ contains;
        3898  +
                            }
        3899  +
                        )*
        3900  +
                    };
        3901  +
                    // All `not_member`s exhausted, move `temp` into `not_member`
        3902  +
                    (@ $ name: ident, $ contains: ident ($($ member: ident)*) ($($ temp: ident)*) ()) => {
        3903  +
                        scope! { @ $ name, $ contains ($($ member)*) () ($($ temp)*) }
        3904  +
                    };
        3905  +
        3906  +
                        // ContentTypeParameters match found, pop from both `member` and `not_member`
        3907  +
                        (@ $ name: ident, $ contains: ident (ContentTypeParameters $($ member: ident)*) ($($ temp: ident)*) (ContentTypeParameters $($ not_member: ident)*)) => {
        3908  +
                            scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
        3909  +
                        };
        3910  +
                        // ContentTypeParameters match not found, pop from `not_member` into `temp` stack
        3911  +
                        (@ $ name: ident, $ contains: ident (ContentTypeParameters $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
        3912  +
                            scope! { @ $ name, $ contains (ContentTypeParameters $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
        3913  +
                        };
        3914  +
        3915  +
                        // DatetimeOffsets match found, pop from both `member` and `not_member`
        3916  +
                        (@ $ name: ident, $ contains: ident (DatetimeOffsets $($ member: ident)*) ($($ temp: ident)*) (DatetimeOffsets $($ not_member: ident)*)) => {
        3917  +
                            scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
        3918  +
                        };
        3919  +
                        // DatetimeOffsets match not found, pop from `not_member` into `temp` stack
        3920  +
                        (@ $ name: ident, $ contains: ident (DatetimeOffsets $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
        3921  +
                            scope! { @ $ name, $ contains (DatetimeOffsets $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
        3922  +
                        };
        3923  +
        3924  +
                        // EmptyOperation match found, pop from both `member` and `not_member`
        3925  +
                        (@ $ name: ident, $ contains: ident (EmptyOperation $($ member: ident)*) ($($ temp: ident)*) (EmptyOperation $($ not_member: ident)*)) => {
        3926  +
                            scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
        3927  +
                        };
        3928  +
                        // EmptyOperation match not found, pop from `not_member` into `temp` stack
        3929  +
                        (@ $ name: ident, $ contains: ident (EmptyOperation $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
        3930  +
                            scope! { @ $ name, $ contains (EmptyOperation $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
        3931  +
                        };
        3932  +
        3933  +
                        // EndpointOperation match found, pop from both `member` and `not_member`
        3934  +
                        (@ $ name: ident, $ contains: ident (EndpointOperation $($ member: ident)*) ($($ temp: ident)*) (EndpointOperation $($ not_member: ident)*)) => {
        3935  +
                            scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
        3936  +
                        };
        3937  +
                        // EndpointOperation match not found, pop from `not_member` into `temp` stack
        3938  +
                        (@ $ name: ident, $ contains: ident (EndpointOperation $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
        3939  +
                            scope! { @ $ name, $ contains (EndpointOperation $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
        3940  +
                        };
        3941  +
        3942  +
                        // EndpointWithHostLabelOperation match found, pop from both `member` and `not_member`
        3943  +
                        (@ $ name: ident, $ contains: ident (EndpointWithHostLabelOperation $($ member: ident)*) ($($ temp: ident)*) (EndpointWithHostLabelOperation $($ not_member: ident)*)) => {
        3944  +
                            scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
        3945  +
                        };
        3946  +
                        // EndpointWithHostLabelOperation match not found, pop from `not_member` into `temp` stack
        3947  +
                        (@ $ name: ident, $ contains: ident (EndpointWithHostLabelOperation $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
        3948  +
                            scope! { @ $ name, $ contains (EndpointWithHostLabelOperation $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
        3949  +
                        };
        3950  +
        3951  +
                        // FractionalSeconds match found, pop from both `member` and `not_member`
        3952  +
                        (@ $ name: ident, $ contains: ident (FractionalSeconds $($ member: ident)*) ($($ temp: ident)*) (FractionalSeconds $($ not_member: ident)*)) => {
        3953  +
                            scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
        3954  +
                        };
        3955  +
                        // FractionalSeconds match not found, pop from `not_member` into `temp` stack
        3956  +
                        (@ $ name: ident, $ contains: ident (FractionalSeconds $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
        3957  +
                            scope! { @ $ name, $ contains (FractionalSeconds $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
        3958  +
                        };
        3959  +
        3960  +
                        // GreetingWithErrors match found, pop from both `member` and `not_member`
        3961  +
                        (@ $ name: ident, $ contains: ident (GreetingWithErrors $($ member: ident)*) ($($ temp: ident)*) (GreetingWithErrors $($ not_member: ident)*)) => {
        3962  +
                            scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
        3963  +
                        };
        3964  +
                        // GreetingWithErrors match not found, pop from `not_member` into `temp` stack
        3965  +
                        (@ $ name: ident, $ contains: ident (GreetingWithErrors $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
        3966  +
                            scope! { @ $ name, $ contains (GreetingWithErrors $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
        3967  +
                        };
        3968  +
        3969  +
                        // HostWithPathOperation match found, pop from both `member` and `not_member`
        3970  +
                        (@ $ name: ident, $ contains: ident (HostWithPathOperation $($ member: ident)*) ($($ temp: ident)*) (HostWithPathOperation $($ not_member: ident)*)) => {
        3971  +
                            scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
        3972  +
                        };
        3973  +
                        // HostWithPathOperation match not found, pop from `not_member` into `temp` stack
        3974  +
                        (@ $ name: ident, $ contains: ident (HostWithPathOperation $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
        3975  +
                            scope! { @ $ name, $ contains (HostWithPathOperation $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
        3976  +
                        };
        3977  +
        3978  +
                        // JsonEnums match found, pop from both `member` and `not_member`
        3979  +
                        (@ $ name: ident, $ contains: ident (JsonEnums $($ member: ident)*) ($($ temp: ident)*) (JsonEnums $($ not_member: ident)*)) => {
        3980  +
                            scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
        3981  +
                        };
        3982  +
                        // JsonEnums match not found, pop from `not_member` into `temp` stack
        3983  +
                        (@ $ name: ident, $ contains: ident (JsonEnums $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
        3984  +
                            scope! { @ $ name, $ contains (JsonEnums $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
        3985  +
                        };
        3986  +
        3987  +
                        // JsonIntEnums match found, pop from both `member` and `not_member`
        3988  +
                        (@ $ name: ident, $ contains: ident (JsonIntEnums $($ member: ident)*) ($($ temp: ident)*) (JsonIntEnums $($ not_member: ident)*)) => {
        3989  +
                            scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
        3990  +
                        };
        3991  +
                        // JsonIntEnums match not found, pop from `not_member` into `temp` stack
        3992  +
                        (@ $ name: ident, $ contains: ident (JsonIntEnums $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
        3993  +
                            scope! { @ $ name, $ contains (JsonIntEnums $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
        3994  +
                        };
        3995  +
        3996  +
                        // JsonUnions match found, pop from both `member` and `not_member`
        3997  +
                        (@ $ name: ident, $ contains: ident (JsonUnions $($ member: ident)*) ($($ temp: ident)*) (JsonUnions $($ not_member: ident)*)) => {
        3998  +
                            scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
        3999  +
                        };
        4000  +
                        // JsonUnions match not found, pop from `not_member` into `temp` stack
        4001  +
                        (@ $ name: ident, $ contains: ident (JsonUnions $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
        4002  +
                            scope! { @ $ name, $ contains (JsonUnions $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
        4003  +
                        };
        4004  +
        4005  +
                        // KitchenSinkOperation match found, pop from both `member` and `not_member`
        4006  +
                        (@ $ name: ident, $ contains: ident (KitchenSinkOperation $($ member: ident)*) ($($ temp: ident)*) (KitchenSinkOperation $($ not_member: ident)*)) => {
        4007  +
                            scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
        4008  +
                        };
        4009  +
                        // KitchenSinkOperation match not found, pop from `not_member` into `temp` stack
        4010  +
                        (@ $ name: ident, $ contains: ident (KitchenSinkOperation $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
        4011  +
                            scope! { @ $ name, $ contains (KitchenSinkOperation $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
        4012  +
                        };
        4013  +
        4014  +
                        // NullOperation match found, pop from both `member` and `not_member`
        4015  +
                        (@ $ name: ident, $ contains: ident (NullOperation $($ member: ident)*) ($($ temp: ident)*) (NullOperation $($ not_member: ident)*)) => {
        4016  +
                            scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
        4017  +
                        };
        4018  +
                        // NullOperation match not found, pop from `not_member` into `temp` stack
        4019  +
                        (@ $ name: ident, $ contains: ident (NullOperation $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
        4020  +
                            scope! { @ $ name, $ contains (NullOperation $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
        4021  +
                        };
        4022  +
        4023  +
                        // OperationWithOptionalInputOutput match found, pop from both `member` and `not_member`
        4024  +
                        (@ $ name: ident, $ contains: ident (OperationWithOptionalInputOutput $($ member: ident)*) ($($ temp: ident)*) (OperationWithOptionalInputOutput $($ not_member: ident)*)) => {
        4025  +
                            scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
        4026  +
                        };
        4027  +
                        // OperationWithOptionalInputOutput match not found, pop from `not_member` into `temp` stack
        4028  +
                        (@ $ name: ident, $ contains: ident (OperationWithOptionalInputOutput $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
        4029  +
                            scope! { @ $ name, $ contains (OperationWithOptionalInputOutput $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
        4030  +
                        };
        4031  +
        4032  +
                        // PutAndGetInlineDocuments match found, pop from both `member` and `not_member`
        4033  +
                        (@ $ name: ident, $ contains: ident (PutAndGetInlineDocuments $($ member: ident)*) ($($ temp: ident)*) (PutAndGetInlineDocuments $($ not_member: ident)*)) => {
        4034  +
                            scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
        4035  +
                        };
        4036  +
                        // PutAndGetInlineDocuments match not found, pop from `not_member` into `temp` stack
        4037  +
                        (@ $ name: ident, $ contains: ident (PutAndGetInlineDocuments $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
        4038  +
                            scope! { @ $ name, $ contains (PutAndGetInlineDocuments $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
        4039  +
                        };
        4040  +
        4041  +
                        // PutWithContentEncoding match found, pop from both `member` and `not_member`
        4042  +
                        (@ $ name: ident, $ contains: ident (PutWithContentEncoding $($ member: ident)*) ($($ temp: ident)*) (PutWithContentEncoding $($ not_member: ident)*)) => {
        4043  +
                            scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
        4044  +
                        };
        4045  +
                        // PutWithContentEncoding match not found, pop from `not_member` into `temp` stack
        4046  +
                        (@ $ name: ident, $ contains: ident (PutWithContentEncoding $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
        4047  +
                            scope! { @ $ name, $ contains (PutWithContentEncoding $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
        4048  +
                        };
        4049  +
        4050  +
                        // SimpleScalarProperties match found, pop from both `member` and `not_member`
        4051  +
                        (@ $ name: ident, $ contains: ident (SimpleScalarProperties $($ member: ident)*) ($($ temp: ident)*) (SimpleScalarProperties $($ not_member: ident)*)) => {
        4052  +
                            scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
        4053  +
                        };
        4054  +
                        // SimpleScalarProperties match not found, pop from `not_member` into `temp` stack
        4055  +
                        (@ $ name: ident, $ contains: ident (SimpleScalarProperties $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
        4056  +
                            scope! { @ $ name, $ contains (SimpleScalarProperties $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
        4057  +
                        };
        4058  +
        4059  +
                        // SparseNullsOperation match found, pop from both `member` and `not_member`
        4060  +
                        (@ $ name: ident, $ contains: ident (SparseNullsOperation $($ member: ident)*) ($($ temp: ident)*) (SparseNullsOperation $($ not_member: ident)*)) => {
        4061  +
                            scope! { @ $ name, $ contains ($($ member)*) ($($ temp)*) ($($ not_member)*) }
        4062  +
                        };
        4063  +
                        // SparseNullsOperation match not found, pop from `not_member` into `temp` stack
        4064  +
                        (@ $ name: ident, $ contains: ident (SparseNullsOperation $($ member: ident)*) ($($ temp: ident)*) ($ other: ident $($ not_member: ident)*)) => {
        4065  +
                            scope! { @ $ name, $ contains (SparseNullsOperation $($ member)*) ($ other $($ temp)*) ($($ not_member)*) }
        4066  +
                        };
        4067  +
        4068  +
                    (
        4069  +
                        $(#[$ attrs:meta])*
        4070  +
                        $ vis:vis struct $ name:ident {
        4071  +
                            includes: [$($ include:ident),*]
        4072  +
                        }
        4073  +
                    ) => {
        4074  +
                        use $ crate::operation_shape::*;
        4075  +
                        $ crate::server::scope! {
        4076  +
                            $(#[$ attrs])*
        4077  +
                            $ vis struct $ name {
        4078  +
                                includes: [$($ include),*],
        4079  +
                                excludes: []
        4080  +
                            }
        4081  +
                        }
        4082  +
                        scope! { @ $ name, False ($($ include)*) () (ContentTypeParameters DatetimeOffsets EmptyOperation EndpointOperation EndpointWithHostLabelOperation FractionalSeconds GreetingWithErrors HostWithPathOperation JsonEnums JsonIntEnums JsonUnions KitchenSinkOperation NullOperation OperationWithOptionalInputOutput PutAndGetInlineDocuments PutWithContentEncoding SimpleScalarProperties SparseNullsOperation) }
        4083  +
                    };
        4084  +
                    (
        4085  +
                        $(#[$ attrs:meta])*
        4086  +
                        $ vis:vis struct $ name:ident {
        4087  +
                            excludes: [$($ exclude:ident),*]
        4088  +
                        }
        4089  +
                    ) => {
        4090  +
                        use $ crate::operation_shape::*;
        4091  +
        4092  +
                        $ crate::server::scope! {
        4093  +
                            $(#[$ attrs])*
        4094  +
                            $ vis struct $ name {
        4095  +
                                includes: [],
        4096  +
                                excludes: [$($ exclude),*]
        4097  +
                            }
        4098  +
                        }
        4099  +
                        scope! { @ $ name, True ($($ exclude)*) () (ContentTypeParameters DatetimeOffsets EmptyOperation EndpointOperation EndpointWithHostLabelOperation FractionalSeconds GreetingWithErrors HostWithPathOperation JsonEnums JsonIntEnums JsonUnions KitchenSinkOperation NullOperation OperationWithOptionalInputOutput PutAndGetInlineDocuments PutWithContentEncoding SimpleScalarProperties SparseNullsOperation) }
        4100  +
                    };
        4101  +
                }