Client Test

Client Test

rev. 024d02a2e8f38a611999fe239a68eb14068662df (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/rest_json_extras/rust-client-codegen/src/protocol_serde/shape_case_insensitive_error_operation.rs

@@ -2,2 +70,64 @@
   22     22   
        "CaseInsensitiveError" => crate::operation::case_insensitive_error_operation::CaseInsensitiveErrorOperationError::CaseInsensitiveError({
   23     23   
            #[allow(unused_mut)]
   24     24   
            let mut tmp = {
   25     25   
                #[allow(unused_mut)]
   26     26   
                let mut output = crate::types::error::builders::CaseInsensitiveErrorBuilder::default();
   27     27   
                output = crate::protocol_serde::shape_case_insensitive_error::de_case_insensitive_error_json_err(_response_body, output)
   28     28   
                    .map_err(crate::operation::case_insensitive_error_operation::CaseInsensitiveErrorOperationError::unhandled)?;
   29     29   
                let output = output.meta(generic);
   30     30   
                output.build()
   31     31   
            };
   32         -
            if tmp.message.is_none() {
   33         -
                tmp.message = _error_message;
   34         -
            }
   35     32   
            tmp
   36     33   
        }),
   37     34   
        "ExtraError" => crate::operation::case_insensitive_error_operation::CaseInsensitiveErrorOperationError::ExtraError({
   38     35   
            #[allow(unused_mut)]
   39     36   
            let mut tmp = {
   40     37   
                #[allow(unused_mut)]
   41     38   
                let mut output = crate::types::error::builders::ExtraErrorBuilder::default();
   42     39   
                output = crate::protocol_serde::shape_extra_error::de_extra_error_json_err(_response_body, output)
   43     40   
                    .map_err(crate::operation::case_insensitive_error_operation::CaseInsensitiveErrorOperationError::unhandled)?;
   44     41   
                let output = output.meta(generic);
   45     42   
                output.build()
   46     43   
            };
   47         -
            if tmp.message.is_none() {
   48         -
                tmp.message = _error_message;
   49         -
            }
   50     44   
            tmp
   51     45   
        }),
   52     46   
        _ => crate::operation::case_insensitive_error_operation::CaseInsensitiveErrorOperationError::generic(generic),
   53     47   
    })
   54     48   
}
   55     49   
   56     50   
#[allow(clippy::unnecessary_wraps)]
   57     51   
pub fn de_case_insensitive_error_operation_http_response(
   58     52   
    _response_status: u16,
   59     53   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,

tmp-codegen-diff/codegen-client-test/rest_json_extras/rust-client-codegen/src/protocol_serde/shape_empty_struct_with_content_on_wire_op.rs

@@ -2,2 +64,61 @@
   22     22   
        "ExtraError" => crate::operation::empty_struct_with_content_on_wire_op::EmptyStructWithContentOnWireOpError::ExtraError({
   23     23   
            #[allow(unused_mut)]
   24     24   
            let mut tmp = {
   25     25   
                #[allow(unused_mut)]
   26     26   
                let mut output = crate::types::error::builders::ExtraErrorBuilder::default();
   27     27   
                output = crate::protocol_serde::shape_extra_error::de_extra_error_json_err(_response_body, output)
   28     28   
                    .map_err(crate::operation::empty_struct_with_content_on_wire_op::EmptyStructWithContentOnWireOpError::unhandled)?;
   29     29   
                let output = output.meta(generic);
   30     30   
                output.build()
   31     31   
            };
   32         -
            if tmp.message.is_none() {
   33         -
                tmp.message = _error_message;
   34         -
            }
   35     32   
            tmp
   36     33   
        }),
   37     34   
        _ => crate::operation::empty_struct_with_content_on_wire_op::EmptyStructWithContentOnWireOpError::generic(generic),
   38     35   
    })
   39     36   
}
   40     37   
   41     38   
#[allow(clippy::unnecessary_wraps)]
   42     39   
pub fn de_empty_struct_with_content_on_wire_op_http_response(
   43     40   
    _response_status: u16,
   44     41   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,

tmp-codegen-diff/codegen-client-test/rest_json_extras/rust-client-codegen/src/protocol_serde/shape_enum_query.rs

@@ -13,13 +63,60 @@
   33     33   
        "ExtraError" => crate::operation::enum_query::EnumQueryError::ExtraError({
   34     34   
            #[allow(unused_mut)]
   35     35   
            let mut tmp = {
   36     36   
                #[allow(unused_mut)]
   37     37   
                let mut output = crate::types::error::builders::ExtraErrorBuilder::default();
   38     38   
                output = crate::protocol_serde::shape_extra_error::de_extra_error_json_err(_response_body, output)
   39     39   
                    .map_err(crate::operation::enum_query::EnumQueryError::unhandled)?;
   40     40   
                let output = output.meta(generic);
   41     41   
                output.build()
   42     42   
            };
   43         -
            if tmp.message.is_none() {
   44         -
                tmp.message = _error_message;
   45         -
            }
   46     43   
            tmp
   47     44   
        }),
   48     45   
        _ => crate::operation::enum_query::EnumQueryError::generic(generic),
   49     46   
    })
   50     47   
}
   51     48   
   52     49   
#[allow(clippy::unnecessary_wraps)]
   53     50   
pub fn de_enum_query_http_response(
   54     51   
    _response_status: u16,
   55     52   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,

tmp-codegen-diff/codegen-client-test/rest_json_extras/rust-client-codegen/src/protocol_serde/shape_escaped_string_values.rs

@@ -16,16 +78,75 @@
   36     36   
        "ExtraError" => crate::operation::escaped_string_values::EscapedStringValuesError::ExtraError({
   37     37   
            #[allow(unused_mut)]
   38     38   
            let mut tmp = {
   39     39   
                #[allow(unused_mut)]
   40     40   
                let mut output = crate::types::error::builders::ExtraErrorBuilder::default();
   41     41   
                output = crate::protocol_serde::shape_extra_error::de_extra_error_json_err(_response_body, output)
   42     42   
                    .map_err(crate::operation::escaped_string_values::EscapedStringValuesError::unhandled)?;
   43     43   
                let output = output.meta(generic);
   44     44   
                output.build()
   45     45   
            };
   46         -
            if tmp.message.is_none() {
   47         -
                tmp.message = _error_message;
   48         -
            }
   49     46   
            tmp
   50     47   
        }),
   51     48   
        _ => crate::operation::escaped_string_values::EscapedStringValuesError::generic(generic),
   52     49   
    })
   53     50   
}
   54     51   
   55     52   
#[allow(clippy::unnecessary_wraps)]
   56     53   
pub fn de_escaped_string_values_http_response(
   57     54   
    _response_status: u16,
   58     55   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,

tmp-codegen-diff/codegen-client-test/rest_json_extras/rust-client-codegen/src/protocol_serde/shape_map_with_enum_key_op.rs

@@ -14,14 +76,73 @@
   34     34   
        "ExtraError" => crate::operation::map_with_enum_key_op::MapWithEnumKeyOpError::ExtraError({
   35     35   
            #[allow(unused_mut)]
   36     36   
            let mut tmp = {
   37     37   
                #[allow(unused_mut)]
   38     38   
                let mut output = crate::types::error::builders::ExtraErrorBuilder::default();
   39     39   
                output = crate::protocol_serde::shape_extra_error::de_extra_error_json_err(_response_body, output)
   40     40   
                    .map_err(crate::operation::map_with_enum_key_op::MapWithEnumKeyOpError::unhandled)?;
   41     41   
                let output = output.meta(generic);
   42     42   
                output.build()
   43     43   
            };
   44         -
            if tmp.message.is_none() {
   45         -
                tmp.message = _error_message;
   46         -
            }
   47     44   
            tmp
   48     45   
        }),
   49     46   
        _ => crate::operation::map_with_enum_key_op::MapWithEnumKeyOpError::generic(generic),
   50     47   
    })
   51     48   
}
   52     49   
   53     50   
#[allow(clippy::unnecessary_wraps)]
   54     51   
pub fn de_map_with_enum_key_op_http_response(
   55     52   
    _response_status: u16,
   56     53   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,

tmp-codegen-diff/codegen-client-test/rest_json_extras/rust-client-codegen/src/protocol_serde/shape_null_in_non_sparse.rs

@@ -1,1 +61,58 @@
   19     19   
        "ExtraError" => crate::operation::null_in_non_sparse::NullInNonSparseError::ExtraError({
   20     20   
            #[allow(unused_mut)]
   21     21   
            let mut tmp = {
   22     22   
                #[allow(unused_mut)]
   23     23   
                let mut output = crate::types::error::builders::ExtraErrorBuilder::default();
   24     24   
                output = crate::protocol_serde::shape_extra_error::de_extra_error_json_err(_response_body, output)
   25     25   
                    .map_err(crate::operation::null_in_non_sparse::NullInNonSparseError::unhandled)?;
   26     26   
                let output = output.meta(generic);
   27     27   
                output.build()
   28     28   
            };
   29         -
            if tmp.message.is_none() {
   30         -
                tmp.message = _error_message;
   31         -
            }
   32     29   
            tmp
   33     30   
        }),
   34     31   
        _ => crate::operation::null_in_non_sparse::NullInNonSparseError::generic(generic),
   35     32   
    })
   36     33   
}
   37     34   
   38     35   
#[allow(clippy::unnecessary_wraps)]
   39     36   
pub fn de_null_in_non_sparse_http_response(
   40     37   
    _response_status: u16,
   41     38   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,

tmp-codegen-diff/codegen-client-test/rest_json_extras/rust-client-codegen/src/protocol_serde/shape_primitive_int_header.rs

@@ -16,16 +74,71 @@
   36     36   
        "ExtraError" => crate::operation::primitive_int_header::PrimitiveIntHeaderError::ExtraError({
   37     37   
            #[allow(unused_mut)]
   38     38   
            let mut tmp = {
   39     39   
                #[allow(unused_mut)]
   40     40   
                let mut output = crate::types::error::builders::ExtraErrorBuilder::default();
   41     41   
                output = crate::protocol_serde::shape_extra_error::de_extra_error_json_err(_response_body, output)
   42     42   
                    .map_err(crate::operation::primitive_int_header::PrimitiveIntHeaderError::unhandled)?;
   43     43   
                let output = output.meta(generic);
   44     44   
                output.build()
   45     45   
            };
   46         -
            if tmp.message.is_none() {
   47         -
                tmp.message = _error_message;
   48         -
            }
   49     46   
            tmp
   50     47   
        }),
   51     48   
        _ => crate::operation::primitive_int_header::PrimitiveIntHeaderError::generic(generic),
   52     49   
    })
   53     50   
}
   54     51   
   55     52   
#[allow(clippy::unnecessary_wraps)]
   56     53   
pub fn de_primitive_int_header_http_response(
   57     54   
    _response_status: u16,
   58     55   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,

tmp-codegen-diff/codegen-client-test/rest_json_extras/rust-client-codegen/src/protocol_serde/shape_primitive_int_op.rs

@@ -1,1 +61,58 @@
   19     19   
        "ExtraError" => crate::operation::primitive_int_op::PrimitiveIntOpError::ExtraError({
   20     20   
            #[allow(unused_mut)]
   21     21   
            let mut tmp = {
   22     22   
                #[allow(unused_mut)]
   23     23   
                let mut output = crate::types::error::builders::ExtraErrorBuilder::default();
   24     24   
                output = crate::protocol_serde::shape_extra_error::de_extra_error_json_err(_response_body, output)
   25     25   
                    .map_err(crate::operation::primitive_int_op::PrimitiveIntOpError::unhandled)?;
   26     26   
                let output = output.meta(generic);
   27     27   
                output.build()
   28     28   
            };
   29         -
            if tmp.message.is_none() {
   30         -
                tmp.message = _error_message;
   31         -
            }
   32     29   
            tmp
   33     30   
        }),
   34     31   
        _ => crate::operation::primitive_int_op::PrimitiveIntOpError::generic(generic),
   35     32   
    })
   36     33   
}
   37     34   
   38     35   
#[allow(clippy::unnecessary_wraps)]
   39     36   
pub fn de_primitive_int_op_http_response(
   40     37   
    _response_status: u16,
   41     38   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,

tmp-codegen-diff/codegen-client-test/rest_json_extras/rust-client-codegen/src/protocol_serde/shape_query_precedence.rs

@@ -1,1 +49,46 @@
   19     19   
        "ExtraError" => crate::operation::query_precedence::QueryPrecedenceError::ExtraError({
   20     20   
            #[allow(unused_mut)]
   21     21   
            let mut tmp = {
   22     22   
                #[allow(unused_mut)]
   23     23   
                let mut output = crate::types::error::builders::ExtraErrorBuilder::default();
   24     24   
                output = crate::protocol_serde::shape_extra_error::de_extra_error_json_err(_response_body, output)
   25     25   
                    .map_err(crate::operation::query_precedence::QueryPrecedenceError::unhandled)?;
   26     26   
                let output = output.meta(generic);
   27     27   
                output.build()
   28     28   
            };
   29         -
            if tmp.message.is_none() {
   30         -
                tmp.message = _error_message;
   31         -
            }
   32     29   
            tmp
   33     30   
        }),
   34     31   
        _ => crate::operation::query_precedence::QueryPrecedenceError::generic(generic),
   35     32   
    })
   36     33   
}
   37     34   
   38     35   
#[allow(clippy::unnecessary_wraps)]
   39     36   
pub fn de_query_precedence_http_response(
   40     37   
    _response_status: u16,
   41     38   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,

tmp-codegen-diff/codegen-client-test/rest_json_extras/rust-client-codegen/src/protocol_serde/shape_status_response.rs

@@ -1,1 +50,47 @@
   19     19   
        "ExtraError" => crate::operation::status_response::StatusResponseError::ExtraError({
   20     20   
            #[allow(unused_mut)]
   21     21   
            let mut tmp = {
   22     22   
                #[allow(unused_mut)]
   23     23   
                let mut output = crate::types::error::builders::ExtraErrorBuilder::default();
   24     24   
                output = crate::protocol_serde::shape_extra_error::de_extra_error_json_err(_response_body, output)
   25     25   
                    .map_err(crate::operation::status_response::StatusResponseError::unhandled)?;
   26     26   
                let output = output.meta(generic);
   27     27   
                output.build()
   28     28   
            };
   29         -
            if tmp.message.is_none() {
   30         -
                tmp.message = _error_message;
   31         -
            }
   32     29   
            tmp
   33     30   
        }),
   34     31   
        _ => crate::operation::status_response::StatusResponseError::generic(generic),
   35     32   
    })
   36     33   
}
   37     34   
   38     35   
#[allow(clippy::unnecessary_wraps)]
   39     36   
pub fn de_status_response_http_response(
   40     37   
    _response_status: u16,
   41     38   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,

tmp-codegen-diff/codegen-client-test/rest_json_extras/rust-client-codegen/src/protocol_serde/shape_string_payload.rs

@@ -1,1 +50,47 @@
   19     19   
        "ExtraError" => crate::operation::string_payload::StringPayloadError::ExtraError({
   20     20   
            #[allow(unused_mut)]
   21     21   
            let mut tmp = {
   22     22   
                #[allow(unused_mut)]
   23     23   
                let mut output = crate::types::error::builders::ExtraErrorBuilder::default();
   24     24   
                output = crate::protocol_serde::shape_extra_error::de_extra_error_json_err(_response_body, output)
   25     25   
                    .map_err(crate::operation::string_payload::StringPayloadError::unhandled)?;
   26     26   
                let output = output.meta(generic);
   27     27   
                output.build()
   28     28   
            };
   29         -
            if tmp.message.is_none() {
   30         -
                tmp.message = _error_message;
   31         -
            }
   32     29   
            tmp
   33     30   
        }),
   34     31   
        _ => crate::operation::string_payload::StringPayloadError::generic(generic),
   35     32   
    })
   36     33   
}
   37     34   
   38     35   
#[allow(clippy::unnecessary_wraps)]
   39     36   
pub fn de_string_payload_http_response(
   40     37   
    _response_status: u16,
   41     38   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,

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

@@ -1,1 +53,61 @@
   14     14   
    pub fn path(&self) -> &str {
   15     15   
        use std::ops::Deref;
   16     16   
        self.path.deref()
   17     17   
    }
   18     18   
    /// A detailed description of the validation failure.
   19     19   
    pub fn message(&self) -> &str {
   20     20   
        use std::ops::Deref;
   21     21   
        self.message.deref()
   22     22   
    }
   23     23   
}
          24  +
impl ::std::fmt::Display for ValidationExceptionField {
          25  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
          26  +
        ::std::write!(f, "ValidationExceptionField {{")?;
          27  +
        ::std::write!(f, "path={}", &self.path)?;
          28  +
        ::std::write!(f, ", message={}", &self.message)?;
          29  +
        ::std::write!(f, "}}")
          30  +
    }
          31  +
}
   24     32   
impl ValidationExceptionField {
   25     33   
    /// Creates a new builder-style object to manufacture [`ValidationExceptionField`](crate::types::ValidationExceptionField).
   26     34   
    pub fn builder() -> crate::types::builders::ValidationExceptionFieldBuilder {
   27     35   
        crate::types::builders::ValidationExceptionFieldBuilder::default()
   28     36   
    }
   29     37   
}
   30     38   
   31     39   
/// A builder for [`ValidationExceptionField`](crate::types::ValidationExceptionField).
   32     40   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   33     41   
#[non_exhaustive]

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/protocol_serde/shape_greeting_with_errors.rs

@@ -2,2 +64,61 @@
   22     22   
        "InvalidGreeting" => crate::operation::greeting_with_errors::GreetingWithErrorsError::InvalidGreeting({
   23     23   
            #[allow(unused_mut)]
   24     24   
            let mut tmp = {
   25     25   
                #[allow(unused_mut)]
   26     26   
                let mut output = crate::types::error::builders::InvalidGreetingBuilder::default();
   27     27   
                output = crate::protocol_serde::shape_invalid_greeting::de_invalid_greeting_xml_err(_response_body, output)
   28     28   
                    .map_err(crate::operation::greeting_with_errors::GreetingWithErrorsError::unhandled)?;
   29     29   
                let output = output.meta(generic);
   30     30   
                output.build()
   31     31   
            };
   32         -
            if tmp.message.is_none() {
   33         -
                tmp.message = _error_message;
   34         -
            }
   35     32   
            tmp
   36     33   
        }),
   37     34   
        "ComplexError" => crate::operation::greeting_with_errors::GreetingWithErrorsError::ComplexError({
   38     35   
            #[allow(unused_mut)]
   39     36   
            let mut tmp = {
   40     37   
                #[allow(unused_mut)]
   41     38   
                let mut output = crate::types::error::builders::ComplexErrorBuilder::default();
   42     39   
                output = crate::protocol_serde::shape_complex_error::de_complex_error_xml_err(_response_body, output)
   43     40   
                    .map_err(crate::operation::greeting_with_errors::GreetingWithErrorsError::unhandled)?;
   44     41   
                output = output.set_header(

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

@@ -1,1 +44,55 @@
    5      5   
pub struct ComplexNestedErrorData {
    6      6   
    #[allow(missing_docs)] // documentation missing in model
    7      7   
    pub foo: ::std::option::Option<::std::string::String>,
    8      8   
}
    9      9   
impl ComplexNestedErrorData {
   10     10   
    #[allow(missing_docs)] // documentation missing in model
   11     11   
    pub fn foo(&self) -> ::std::option::Option<&str> {
   12     12   
        self.foo.as_deref()
   13     13   
    }
   14     14   
}
          15  +
impl ::std::fmt::Display for ComplexNestedErrorData {
          16  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
          17  +
        ::std::write!(f, "ComplexNestedErrorData {{")?;
          18  +
        if let ::std::option::Option::Some(inner) = &self.foo {
          19  +
            ::std::write!(f, "foo=Some({})", inner)?;
          20  +
        } else {
          21  +
            ::std::write!(f, "foo=None")?;
          22  +
        }
          23  +
        ::std::write!(f, "}}")
          24  +
    }
          25  +
}
   15     26   
impl ComplexNestedErrorData {
   16     27   
    /// Creates a new builder-style object to manufacture [`ComplexNestedErrorData`](crate::types::ComplexNestedErrorData).
   17     28   
    pub fn builder() -> crate::types::builders::ComplexNestedErrorDataBuilder {
   18     29   
        crate::types::builders::ComplexNestedErrorDataBuilder::default()
   19     30   
    }
   20     31   
}
   21     32   
   22     33   
/// A builder for [`ComplexNestedErrorData`](crate::types::ComplexNestedErrorData).
   23     34   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   24     35   
#[non_exhaustive]

tmp-codegen-diff/codegen-client-test/rest_xml_extras_unwrapped/rust-client-codegen/src/protocol_serde/shape_greeting_with_unwrapped_errors.rs

@@ -2,2 +64,61 @@
   22     22   
        "InvalidGreetingUnwrapped" => crate::operation::greeting_with_unwrapped_errors::GreetingWithUnwrappedErrorsError::InvalidGreetingUnwrapped({
   23     23   
            #[allow(unused_mut)]
   24     24   
            let mut tmp = {
   25     25   
                #[allow(unused_mut)]
   26     26   
                let mut output = crate::types::error::builders::InvalidGreetingUnwrappedBuilder::default();
   27     27   
                output = crate::protocol_serde::shape_invalid_greeting_unwrapped::de_invalid_greeting_unwrapped_xml_err(_response_body, output)
   28     28   
                    .map_err(crate::operation::greeting_with_unwrapped_errors::GreetingWithUnwrappedErrorsError::unhandled)?;
   29     29   
                let output = output.meta(generic);
   30     30   
                output.build()
   31     31   
            };
   32         -
            if tmp.message.is_none() {
   33         -
                tmp.message = _error_message;
   34         -
            }
   35     32   
            tmp
   36     33   
        }),
   37     34   
        "ComplexErrorUnwrapped" => crate::operation::greeting_with_unwrapped_errors::GreetingWithUnwrappedErrorsError::ComplexErrorUnwrapped({
   38     35   
            #[allow(unused_mut)]
   39     36   
            let mut tmp = {
   40     37   
                #[allow(unused_mut)]
   41     38   
                let mut output = crate::types::error::builders::ComplexErrorUnwrappedBuilder::default();
   42     39   
                output = crate::protocol_serde::shape_complex_error_unwrapped::de_complex_error_unwrapped_xml_err(_response_body, output)
   43     40   
                    .map_err(crate::operation::greeting_with_unwrapped_errors::GreetingWithUnwrappedErrorsError::unhandled)?;
   44     41   
                output = output.set_header(

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

@@ -1,1 +44,55 @@
    5      5   
pub struct ComplexNestedErrorData {
    6      6   
    #[allow(missing_docs)] // documentation missing in model
    7      7   
    pub foo: ::std::option::Option<::std::string::String>,
    8      8   
}
    9      9   
impl ComplexNestedErrorData {
   10     10   
    #[allow(missing_docs)] // documentation missing in model
   11     11   
    pub fn foo(&self) -> ::std::option::Option<&str> {
   12     12   
        self.foo.as_deref()
   13     13   
    }
   14     14   
}
          15  +
impl ::std::fmt::Display for ComplexNestedErrorData {
          16  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
          17  +
        ::std::write!(f, "ComplexNestedErrorData {{")?;
          18  +
        if let ::std::option::Option::Some(inner) = &self.foo {
          19  +
            ::std::write!(f, "foo=Some({})", inner)?;
          20  +
        } else {
          21  +
            ::std::write!(f, "foo=None")?;
          22  +
        }
          23  +
        ::std::write!(f, "}}")
          24  +
    }
          25  +
}
   15     26   
impl ComplexNestedErrorData {
   16     27   
    /// Creates a new builder-style object to manufacture [`ComplexNestedErrorData`](crate::types::ComplexNestedErrorData).
   17     28   
    pub fn builder() -> crate::types::builders::ComplexNestedErrorDataBuilder {
   18     29   
        crate::types::builders::ComplexNestedErrorDataBuilder::default()
   19     30   
    }
   20     31   
}
   21     32   
   22     33   
/// A builder for [`ComplexNestedErrorData`](crate::types::ComplexNestedErrorData).
   23     34   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   24     35   
#[non_exhaustive]