Server Test

Server Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-server-test/constraints_without_public_constrained_types/rust-server-codegen/src/protocol_serde/shape_sparse_list.rs

@@ -1,1 +47,72 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* JsonParserGenerator.kt:398 */
    2      3   
pub(crate) fn de_sparse_list<'a, I>(
    3      4   
    tokens: &mut ::std::iter::Peekable<I>,
    4      5   
) -> ::std::result::Result<
    5      6   
    Option<crate::unconstrained::sparse_list_unconstrained::SparseListUnconstrained>,
    6      7   
    ::aws_smithy_json::deserialize::error::DeserializeError,
    7      8   
>
    8      9   
where
    9     10   
    I: Iterator<
   10     11   
        Item = Result<
   11     12   
            ::aws_smithy_json::deserialize::Token<'a>,
   12     13   
            ::aws_smithy_json::deserialize::error::DeserializeError,
   13     14   
        >,
   14     15   
    >,
   15     16   
{
          17  +
    /* JsonParserGenerator.kt:712 */
   16     18   
    match tokens.next().transpose()? {
          19  +
        /* JsonParserGenerator.kt:713 */
   17     20   
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   18     21   
        Some(::aws_smithy_json::deserialize::Token::StartArray { .. }) => {
          22  +
            /* JsonParserGenerator.kt:407 */
   19     23   
            let mut items = Vec::new();
          24  +
            /* JsonParserGenerator.kt:408 */
   20     25   
            loop {
          26  +
                /* JsonParserGenerator.kt:409 */
   21     27   
                match tokens.peek() {
          28  +
                    /* JsonParserGenerator.kt:410 */
   22     29   
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
          30  +
                        /* JsonParserGenerator.kt:411 */
   23     31   
                        tokens.next().transpose().unwrap();
   24     32   
                        break;
          33  +
                        /* JsonParserGenerator.kt:410 */
   25     34   
                    }
          35  +
                    /* JsonParserGenerator.kt:413 */
   26     36   
                    _ => {
          37  +
                        /* JsonParserGenerator.kt:415 */
   27     38   
                        items.push(
          39  +
                            /* JsonParserGenerator.kt:354 */
   28     40   
                            ::aws_smithy_json::deserialize::token::expect_string_or_null(
   29     41   
                                tokens.next(),
   30     42   
                            )?
   31         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   32         -
                            .transpose()?,
          43  +
                            .map(|s|
          44  +
                                /* JsonParserGenerator.kt:339 */s.to_unescaped().map(|u|
          45  +
                                    /* JsonParserGenerator.kt:348 */u.into_owned()
          46  +
                                /* JsonParserGenerator.kt:339 */) /* JsonParserGenerator.kt:354 */)
          47  +
                            .transpose()?, /* JsonParserGenerator.kt:415 */
   33     48   
                        );
          49  +
                        /* JsonParserGenerator.kt:413 */
          50  +
                    } /* JsonParserGenerator.kt:409 */
   34     51   
                }
          52  +
                /* JsonParserGenerator.kt:408 */
   35     53   
            }
   36         -
            }
          54  +
            /* JsonParserGenerator.kt:444 */
   37     55   
            Ok(Some(
   38     56   
                crate::unconstrained::sparse_list_unconstrained::SparseListUnconstrained(items),
   39     57   
            ))
          58  +
            /* JsonParserGenerator.kt:713 */
   40     59   
        }
   41         -
        _ => Err(
          60  +
        /* JsonParserGenerator.kt:722 */
          61  +
        _ => {
          62  +
            /* JsonParserGenerator.kt:723 */
          63  +
            Err(
   42     64   
                ::aws_smithy_json::deserialize::error::DeserializeError::custom(
   43     65   
                    "expected start array or null",
   44     66   
                ),
   45         -
        ),
          67  +
            )
          68  +
            /* JsonParserGenerator.kt:722 */
          69  +
        } /* JsonParserGenerator.kt:712 */
   46     70   
    }
          71  +
    /* JsonParserGenerator.kt:398 */
   47     72   
}

tmp-codegen-diff/codegen-server-test/constraints_without_public_constrained_types/rust-server-codegen/src/protocol_serde/shape_sparse_map.rs

@@ -1,1 +50,74 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* JsonParserGenerator.kt:460 */
    2      3   
pub(crate) fn de_sparse_map<'a, I>(
    3      4   
    tokens: &mut ::std::iter::Peekable<I>,
    4      5   
) -> ::std::result::Result<
    5      6   
    Option<crate::unconstrained::sparse_map_unconstrained::SparseMapUnconstrained>,
    6      7   
    ::aws_smithy_json::deserialize::error::DeserializeError,
    7      8   
>
    8      9   
where
    9     10   
    I: Iterator<
   10     11   
        Item = Result<
   11     12   
            ::aws_smithy_json::deserialize::Token<'a>,
   12     13   
            ::aws_smithy_json::deserialize::error::DeserializeError,
   13     14   
        >,
   14     15   
    >,
   15     16   
{
          17  +
    /* JsonParserGenerator.kt:712 */
   16     18   
    match tokens.next().transpose()? {
          19  +
        /* JsonParserGenerator.kt:713 */
   17     20   
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   18     21   
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
          22  +
            /* JsonParserGenerator.kt:469 */
   19     23   
            let mut map = ::std::collections::HashMap::new();
          24  +
            /* JsonParserGenerator.kt:684 */
   20     25   
            loop {
          26  +
                /* JsonParserGenerator.kt:685 */
   21     27   
                match tokens.next().transpose()? {
          28  +
                    /* JsonParserGenerator.kt:686 */
   22     29   
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   23     30   
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
   24         -
                        let key = key.to_unescaped().map(|u| u.into_owned())?;
          31  +
                        /* JsonParserGenerator.kt:471 */
          32  +
                        let key =
          33  +
                            /* JsonParserGenerator.kt:339 */key.to_unescaped().map(|u|
          34  +
                                /* JsonParserGenerator.kt:348 */u.into_owned()
          35  +
                            /* JsonParserGenerator.kt:339 */)
          36  +
                        /* JsonParserGenerator.kt:471 */?;
          37  +
                        /* JsonParserGenerator.kt:474 */
   25     38   
                        let value =
   26         -
                            crate::protocol_serde::shape_unique_items_list::de_unique_items_list(
   27         -
                                tokens,
   28         -
                            )?;
          39  +
                            /* JsonParserGenerator.kt:451 */crate::protocol_serde::shape_unique_items_list::de_unique_items_list(tokens)?
          40  +
                        /* JsonParserGenerator.kt:474 */;
          41  +
                        /* JsonParserGenerator.kt:478 */
   29     42   
                        map.insert(key, value);
          43  +
                        /* JsonParserGenerator.kt:686 */
   30     44   
                    }
          45  +
                    /* JsonParserGenerator.kt:695 */
   31     46   
                    other => {
   32     47   
                        return Err(
   33     48   
                            ::aws_smithy_json::deserialize::error::DeserializeError::custom(
   34     49   
                                format!("expected object key or end object, found: {:?}", other),
   35     50   
                            ),
   36     51   
                        )
          52  +
                    } /* JsonParserGenerator.kt:685 */
   37     53   
                }
          54  +
                /* JsonParserGenerator.kt:684 */
   38     55   
            }
   39         -
            }
          56  +
            /* JsonParserGenerator.kt:502 */
   40     57   
            Ok(Some(
   41     58   
                crate::unconstrained::sparse_map_unconstrained::SparseMapUnconstrained(map),
   42     59   
            ))
          60  +
            /* JsonParserGenerator.kt:713 */
   43     61   
        }
   44         -
        _ => Err(
          62  +
        /* JsonParserGenerator.kt:722 */
          63  +
        _ => {
          64  +
            /* JsonParserGenerator.kt:723 */
          65  +
            Err(
   45     66   
                ::aws_smithy_json::deserialize::error::DeserializeError::custom(
   46     67   
                    "expected start object or null",
   47     68   
                ),
   48         -
        ),
          69  +
            )
          70  +
            /* JsonParserGenerator.kt:722 */
          71  +
        } /* JsonParserGenerator.kt:712 */
   49     72   
    }
          73  +
    /* JsonParserGenerator.kt:460 */
   50     74   
}

tmp-codegen-diff/codegen-server-test/constraints_without_public_constrained_types/rust-server-codegen/src/protocol_serde/shape_streaming_blob_operation.rs

@@ -1,1 +56,78 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* RustType.kt:516 */
    2      3   
#[allow(clippy::unnecessary_wraps)]
           4  +
/* ServerHttpBoundProtocolGenerator.kt:383 */
    3      5   
pub async fn de_streaming_blob_operation_http_request<B>(
    4      6   
    #[allow(unused_variables)] request: ::http::Request<B>,
    5      7   
) -> std::result::Result<
    6      8   
    crate::input::StreamingBlobOperationInput,
    7      9   
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
    8     10   
>
    9     11   
where
   10     12   
    B: ::aws_smithy_http_server::body::HttpBody + Send,
   11     13   
    B: Into<::aws_smithy_types::byte_stream::ByteStream>,
   12     14   
    B::Data: Send,
   13     15   
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
   14     16   
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
   15     17   
{
          18  +
    /* ServerHttpBoundProtocolGenerator.kt:399 */
   16     19   
    Ok({
          20  +
        /* RustType.kt:516 */
   17     21   
        #[allow(unused_mut)]
          22  +
        /* ServerHttpBoundProtocolGenerator.kt:723 */
   18     23   
        let mut input = crate::input::streaming_blob_operation_input_internal::Builder::default();
          24  +
        /* RustType.kt:516 */
   19     25   
        #[allow(unused_variables)]
          26  +
        /* ServerHttpBoundProtocolGenerator.kt:728 */
   20     27   
        let ::aws_smithy_runtime_api::http::RequestParts {
   21     28   
            uri, headers, body, ..
   22     29   
        } = ::aws_smithy_runtime_api::http::Request::try_from(request)?.into_parts();
          30  +
        /* ServerHttpBoundProtocolGenerator.kt:794 */
   23     31   
        if let Some(value) = {
   24     32   
            Some(crate::protocol_serde::shape_streaming_blob_operation_input::de_streaming_blob_payload(&mut body.into().into_inner())?)
   25     33   
        } {
   26     34   
            input = input.set_streaming_blob(value)
   27     35   
        }
          36  +
        /* ServerHttpBoundProtocolGenerator.kt:834 */
   28     37   
        input.build()
          38  +
        /* ServerHttpBoundProtocolGenerator.kt:399 */
   29     39   
    })
          40  +
    /* ServerHttpBoundProtocolGenerator.kt:383 */
   30     41   
}
   31     42   
          43  +
/* RustType.kt:516 */
   32     44   
#[allow(clippy::unnecessary_wraps)]
          45  +
/* ServerHttpBoundProtocolGenerator.kt:421 */
   33     46   
pub fn ser_streaming_blob_operation_http_response(
   34     47   
    #[allow(unused_variables)] output: crate::output::StreamingBlobOperationOutput,
   35     48   
) -> std::result::Result<
   36     49   
    ::aws_smithy_http_server::response::Response,
   37     50   
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
   38     51   
> {
          52  +
    /* ServerHttpBoundProtocolGenerator.kt:433 */
   39     53   
    Ok({
          54  +
        /* RustType.kt:516 */
   40     55   
        #[allow(unused_mut)]
          56  +
        /* ServerHttpBoundProtocolGenerator.kt:523 */
   41     57   
        let mut builder = ::http::Response::builder();
          58  +
        /* ServerHttpBoundProtocolGenerator.kt:597 */
   42     59   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   43     60   
            builder,
   44     61   
            ::http::header::CONTENT_TYPE,
   45     62   
            "application/octet-stream",
   46     63   
        );
          64  +
        /* ServerHttpBoundProtocolGenerator.kt:682 */
   47     65   
        let http_status: u16 = 200;
   48     66   
        builder = builder.status(http_status);
          67  +
        /* ServerHttpBoundProtocolGenerator.kt:543 */
   49     68   
        let body = ::aws_smithy_http_server::body::boxed(::aws_smithy_http_server::body::Body::wrap_stream(
   50         -
            ::aws_smithy_http::futures_stream_adapter::FuturesStreamCompatByteStream::new(
   51         -
                crate::protocol_serde::shape_streaming_blob_operation_output::ser_streaming_blob_http_payload( output.streaming_blob)?
   52         -
            )
   53         -
        ));
          69  +
            /* ServerProtocolLoader.kt:36 */::aws_smithy_http::futures_stream_adapter::FuturesStreamCompatByteStream::new(
          70  +
                /* HttpBoundProtocolPayloadGenerator.kt:350 */crate::protocol_serde::shape_streaming_blob_operation_output::ser_streaming_blob_http_payload( output.streaming_blob)?
          71  +
            /* ServerProtocolLoader.kt:36 */)
          72  +
        /* ServerHttpBoundProtocolGenerator.kt:543 */));
          73  +
        /* ServerHttpBoundProtocolGenerator.kt:575 */
   54     74   
        builder.body(body)?
          75  +
        /* ServerHttpBoundProtocolGenerator.kt:433 */
   55     76   
    })
          77  +
    /* ServerHttpBoundProtocolGenerator.kt:421 */
   56     78   
}

tmp-codegen-diff/codegen-server-test/constraints_without_public_constrained_types/rust-server-codegen/src/protocol_serde/shape_streaming_blob_operation_input.rs

@@ -1,1 +11,13 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* HttpBindingGenerator.kt:230 */
    2      3   
pub fn de_streaming_blob_payload(
    3      4   
    body: &mut ::aws_smithy_types::body::SdkBody,
    4      5   
) -> std::result::Result<
    5      6   
    ::aws_smithy_types::byte_stream::ByteStream,
    6      7   
    ::aws_smithy_json::deserialize::error::DeserializeError,
    7      8   
> {
    8         -
    // replace the body with an empty body
           9  +
    /* HttpBindingGenerator.kt:299 */// replace the body with an empty body
    9     10   
    let body = std::mem::replace(body, ::aws_smithy_types::body::SdkBody::taken());
   10     11   
    Ok(::aws_smithy_types::byte_stream::ByteStream::new(body))
          12  +
    /* HttpBindingGenerator.kt:230 */
   11     13   
}

tmp-codegen-diff/codegen-server-test/constraints_without_public_constrained_types/rust-server-codegen/src/protocol_serde/shape_streaming_blob_operation_output.rs

@@ -1,1 +9,15 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* HttpBoundProtocolPayloadGenerator.kt:311 */
    2      3   
pub fn ser_streaming_blob_http_payload(
    3      4   
    payload: ::aws_smithy_types::byte_stream::ByteStream,
    4      5   
) -> ::std::result::Result<
    5      6   
    ::aws_smithy_types::byte_stream::ByteStream,
    6      7   
    ::aws_smithy_types::error::operation::BuildError,
    7      8   
> {
    8         -
    Ok(payload)
           9  +
    /* HttpBoundProtocolPayloadGenerator.kt:345 */
          10  +
    Ok(
          11  +
        /* HttpBoundProtocolPayloadGenerator.kt:374 */
          12  +
        payload, /* HttpBoundProtocolPayloadGenerator.kt:345 */
          13  +
    )
          14  +
    /* HttpBoundProtocolPayloadGenerator.kt:311 */
    9     15   
}

tmp-codegen-diff/codegen-server-test/constraints_without_public_constrained_types/rust-server-codegen/src/protocol_serde/shape_transitively_constrained_structure_in_output.rs

@@ -1,1 +10,16 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* JsonSerializerGenerator.kt:358 */
    2      3   
pub fn ser_transitively_constrained_structure_in_output(
    3      4   
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4      5   
    input: &crate::model::TransitivelyConstrainedStructureInOutput,
    5      6   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
           7  +
    /* JsonSerializerGenerator.kt:382 */
    6      8   
    if let Some(var_1) = &input.length_string {
           9  +
        /* JsonSerializerGenerator.kt:423 */
    7     10   
        object.key("lengthString").string(var_1.as_str());
          11  +
        /* JsonSerializerGenerator.kt:382 */
    8     12   
    }
          13  +
    /* JsonSerializerGenerator.kt:372 */
    9     14   
    Ok(())
          15  +
    /* JsonSerializerGenerator.kt:358 */
   10     16   
}

tmp-codegen-diff/codegen-server-test/constraints_without_public_constrained_types/rust-server-codegen/src/protocol_serde/shape_unique_items_list.rs

@@ -1,1 +56,82 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* JsonParserGenerator.kt:398 */
    2      3   
pub(crate) fn de_unique_items_list<'a, I>(
    3      4   
    tokens: &mut ::std::iter::Peekable<I>,
    4      5   
) -> ::std::result::Result<
    5      6   
    Option<crate::unconstrained::unique_items_list_unconstrained::UniqueItemsListUnconstrained>,
    6      7   
    ::aws_smithy_json::deserialize::error::DeserializeError,
    7      8   
>
    8      9   
where
    9     10   
    I: Iterator<
   10     11   
        Item = Result<
   11     12   
            ::aws_smithy_json::deserialize::Token<'a>,
   12     13   
            ::aws_smithy_json::deserialize::error::DeserializeError,
   13     14   
        >,
   14     15   
    >,
   15     16   
{
          17  +
    /* JsonParserGenerator.kt:712 */
   16     18   
    match tokens.next().transpose()? {
          19  +
        /* JsonParserGenerator.kt:713 */
   17     20   
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   18     21   
        Some(::aws_smithy_json::deserialize::Token::StartArray { .. }) => {
          22  +
            /* JsonParserGenerator.kt:407 */
   19     23   
            let mut items = Vec::new();
          24  +
            /* JsonParserGenerator.kt:408 */
   20     25   
            loop {
          26  +
                /* JsonParserGenerator.kt:409 */
   21     27   
                match tokens.peek() {
          28  +
                    /* JsonParserGenerator.kt:410 */
   22     29   
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
          30  +
                        /* JsonParserGenerator.kt:411 */
   23     31   
                        tokens.next().transpose().unwrap();
   24     32   
                        break;
          33  +
                        /* JsonParserGenerator.kt:410 */
   25     34   
                    }
          35  +
                    /* JsonParserGenerator.kt:413 */
   26     36   
                    _ => {
   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()?;
          37  +
                        /* JsonParserGenerator.kt:419 */
          38  +
                        let value =
          39  +
                            /* JsonParserGenerator.kt:354 */::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?.map(|s|
          40  +
                                /* JsonParserGenerator.kt:339 */s.to_unescaped().map(|u|
          41  +
                                    /* JsonParserGenerator.kt:348 */u.into_owned()
          42  +
                                /* JsonParserGenerator.kt:339 */)
          43  +
                            /* JsonParserGenerator.kt:354 */).transpose()?
          44  +
                        /* JsonParserGenerator.kt:419 */;
          45  +
                        /* JsonParserGenerator.kt:422 */
   32     46   
                        if let Some(value) = value {
   33     47   
                            items.push(value);
   34         -
                        } else {
          48  +
                        }
          49  +
                        /* JsonParserGenerator.kt:430 */
          50  +
                        else {
   35     51   
                            return Err(
   36     52   
                                ::aws_smithy_json::deserialize::error::DeserializeError::custom(
   37     53   
                                    "dense list cannot contain null values",
   38     54   
                                ),
   39     55   
                            );
   40     56   
                        }
          57  +
                        /* JsonParserGenerator.kt:413 */
          58  +
                    } /* JsonParserGenerator.kt:409 */
   41     59   
                }
          60  +
                /* JsonParserGenerator.kt:408 */
   42     61   
            }
   43         -
            }
          62  +
            /* JsonParserGenerator.kt:444 */
   44     63   
            Ok(Some(
   45     64   
                crate::unconstrained::unique_items_list_unconstrained::UniqueItemsListUnconstrained(
   46     65   
                    items,
   47     66   
                ),
   48     67   
            ))
          68  +
            /* JsonParserGenerator.kt:713 */
   49     69   
        }
   50         -
        _ => Err(
          70  +
        /* JsonParserGenerator.kt:722 */
          71  +
        _ => {
          72  +
            /* JsonParserGenerator.kt:723 */
          73  +
            Err(
   51     74   
                ::aws_smithy_json::deserialize::error::DeserializeError::custom(
   52     75   
                    "expected start array or null",
   53     76   
                ),
   54         -
        ),
          77  +
            )
          78  +
            /* JsonParserGenerator.kt:722 */
          79  +
        } /* JsonParserGenerator.kt:712 */
   55     80   
    }
          81  +
    /* JsonParserGenerator.kt:398 */
   56     82   
}

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

@@ -1,1 +35,58 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* JsonSerializerGenerator.kt:213 */
    2      3   
pub fn ser_validation_exception_error(
    3      4   
    value: &crate::error::ValidationException,
    4      5   
) -> ::std::result::Result<String, ::aws_smithy_types::error::operation::SerializationError> {
           6  +
    /* JsonSerializerGenerator.kt:218 */
    5      7   
    let mut out = ::std::string::String::new();
    6      8   
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
           9  +
    /* JsonSerializerGenerator.kt:375 */
    7     10   
    crate::protocol_serde::shape_validation_exception::ser_validation_exception(
    8     11   
        &mut object,
    9     12   
        value,
   10     13   
    )?;
          14  +
    /* JsonSerializerGenerator.kt:227 */
   11     15   
    object.finish();
   12     16   
    Ok(out)
          17  +
    /* JsonSerializerGenerator.kt:213 */
   13     18   
}
   14     19   
          20  +
/* JsonSerializerGenerator.kt:358 */
   15     21   
pub fn ser_validation_exception(
   16     22   
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
   17     23   
    input: &crate::error::ValidationException,
   18     24   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
          25  +
    /* JsonSerializerGenerator.kt:382 */
   19     26   
    if let Some(var_1) = &input.field_list {
          27  +
        /* JsonSerializerGenerator.kt:484 */
   20     28   
        let mut array_2 = object.key("fieldList").start_array();
          29  +
        /* JsonSerializerGenerator.kt:524 */
   21     30   
        for item_3 in var_1 {
          31  +
            /* SerializerUtil.kt:42 */
   22     32   
            {
          33  +
                /* JsonSerializerGenerator.kt:495 */
   23     34   
                #[allow(unused_mut)]
          35  +
                /* JsonSerializerGenerator.kt:496 */
   24     36   
                let mut object_4 = array_2.value().start_object();
          37  +
                /* JsonSerializerGenerator.kt:375 */
   25     38   
                crate::protocol_serde::shape_validation_exception_field::ser_validation_exception_field(&mut object_4, item_3)?;
          39  +
                /* JsonSerializerGenerator.kt:515 */
   26     40   
                object_4.finish();
          41  +
                /* SerializerUtil.kt:42 */
   27     42   
            }
          43  +
            /* JsonSerializerGenerator.kt:524 */
   28     44   
        }
          45  +
        /* JsonSerializerGenerator.kt:486 */
   29     46   
        array_2.finish();
          47  +
        /* JsonSerializerGenerator.kt:382 */
   30     48   
    }
          49  +
    /* SerializerUtil.kt:42 */
   31     50   
    {
          51  +
        /* JsonSerializerGenerator.kt:423 */
   32     52   
        object.key("message").string(input.message.as_str());
          53  +
        /* SerializerUtil.kt:42 */
   33     54   
    }
          55  +
    /* JsonSerializerGenerator.kt:372 */
   34     56   
    Ok(())
          57  +
    /* JsonSerializerGenerator.kt:358 */
   35     58   
}

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

@@ -1,1 +13,22 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* JsonSerializerGenerator.kt:358 */
    2      3   
pub fn ser_validation_exception_field(
    3      4   
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4      5   
    input: &crate::model::ValidationExceptionField,
    5      6   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
           7  +
    /* SerializerUtil.kt:42 */
    6      8   
    {
           9  +
        /* JsonSerializerGenerator.kt:423 */
    7     10   
        object.key("path").string(input.path.as_str());
          11  +
        /* SerializerUtil.kt:42 */
    8     12   
    }
          13  +
    /* SerializerUtil.kt:42 */
    9     14   
    {
          15  +
        /* JsonSerializerGenerator.kt:423 */
   10     16   
        object.key("message").string(input.message.as_str());
          17  +
        /* SerializerUtil.kt:42 */
   11     18   
    }
          19  +
    /* JsonSerializerGenerator.kt:372 */
   12     20   
    Ok(())
          21  +
    /* JsonSerializerGenerator.kt:358 */
   13     22   
}

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

@@ -1,1 +31,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ServerServiceGenerator.kt:795 */
    2      3   
/// The service builder for [`ConstraintsService`].
    3      4   
///
    4      5   
/// Constructed via [`ConstraintsService::builder`].
    5      6   
pub struct ConstraintsServiceBuilder<Body, L, HttpPl, ModelPl> {
    6      7   
    constrained_http_bound_shapes_operation: Option<::aws_smithy_http_server::routing::Route<Body>>,
    7      8   
    constrained_http_payload_bound_shape_operation:
    8      9   
        Option<::aws_smithy_http_server::routing::Route<Body>>,
    9     10   
    constrained_recursive_shapes_operation: Option<::aws_smithy_http_server::routing::Route<Body>>,
   10     11   
    constrained_shapes_only_in_output_operation:
   11     12   
        Option<::aws_smithy_http_server::routing::Route<Body>>,
@@ -4219,4220 +4278,4280 @@
 4239   4240   
            "com.amazonaws.constraints",
 4240   4241   
            "ConstraintsService",
 4241   4242   
        );
 4242   4243   
 4243   4244   
    const VERSION: Option<&'static str> = Some("");
 4244   4245   
 4245   4246   
    type Protocol = ::aws_smithy_http_server::protocol::rest_json_1::RestJson1;
 4246   4247   
 4247   4248   
    type Operations = Operation;
 4248   4249   
}
        4250  +
/* ServiceConfigGenerator.kt:178 */
 4249   4251   
/// Configuration for the [`ConstraintsService`]. This is the central place where to register and
 4250   4252   
/// configure [`::tower::Layer`]s, HTTP plugins, and model plugins.
 4251   4253   
///
 4252   4254   
/// ```rust,no_run
 4253   4255   
/// # use constraints_without_public_constrained_types::ConstraintsServiceConfig;
 4254   4256   
/// # use ::aws_smithy_http_server::plugin::IdentityPlugin;
 4255   4257   
/// # use ::tower::layer::util::Identity;
 4256   4258   
/// # let authentication_plugin = IdentityPlugin;
 4257   4259   
/// # let authorization_plugin = IdentityPlugin;
 4258   4260   
/// # let server_request_id_provider_layer = Identity::new();
@@ -4340,4342 +4399,4402 @@
 4360   4362   
 4361   4363   
    /// Build the configuration.
 4362   4364   
    pub fn build(self) -> super::ConstraintsServiceConfig<L, H, M> {
 4363   4365   
        super::ConstraintsServiceConfig {
 4364   4366   
            layers: self.layers,
 4365   4367   
            http_plugins: self.http_plugins,
 4366   4368   
            model_plugins: self.model_plugins,
 4367   4369   
        }
 4368   4370   
    }
 4369   4371   
}
        4372  +
/* ScopeMacroGenerator.kt:81 */
 4370   4373   
/// A macro to help with scoping [plugins](crate::server::plugin) to a subset of all operations.
 4371   4374   
///
 4372   4375   
/// In contrast to [`crate::server::scope`](crate::server::scope), this macro has knowledge
 4373   4376   
/// of the service and any operations _not_ specified will be placed in the opposing group.
 4374   4377   
///
 4375   4378   
/// # Example
 4376   4379   
///
 4377   4380   
/// ```rust
 4378   4381   
/// scope! {
 4379   4382   
///     /// Includes [`ConstrainedHttpBoundShapesOperation`], excluding all other operations.

tmp-codegen-diff/codegen-server-test/constraints_without_public_constrained_types/rust-server-codegen/src/types.rs

@@ -1,1 +0,15 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* SmithyTypesPubUseExtra.kt:66 */
    2      3   
pub use ::aws_smithy_types::body::SdkBody;
    3      4   
pub use ::aws_smithy_types::byte_stream::error::Error as ByteStreamError;
    4      5   
pub use ::aws_smithy_types::byte_stream::AggregatedBytes;
    5         -
pub use ::aws_smithy_types::byte_stream::ByteStream;
           6  +
/* SmithyTypesPubUseExtra.kt:86 */ pub use ::aws_smithy_types::byte_stream::ByteStream;
    6      7   
#[cfg(feature = "rt-tokio")]
    7      8   
pub use ::aws_smithy_types::byte_stream::FsBuilder;
    8      9   
#[cfg(feature = "rt-tokio")]
    9     10   
pub use ::aws_smithy_types::byte_stream::Length;
   10     11   
pub use ::aws_smithy_types::date_time::Format as DateTimeFormat;
          12  +
/* ServerRequiredCustomizations.kt:69 */
   11     13   
pub use ::aws_smithy_types::error::display::DisplayErrorContext;
   12     14   
pub use ::aws_smithy_types::Blob;
   13         -
pub use ::aws_smithy_types::DateTime;
          15  +
/* SmithyTypesPubUseExtra.kt:69 */ pub use ::aws_smithy_types::DateTime;

tmp-codegen-diff/codegen-server-test/constraints_without_public_constrained_types/rust-server-codegen/src/unconstrained.rs

@@ -1,1 +1876,2317 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
           3  +
/* UnconstrainedUnionGenerator.kt:121 */
    3      4   
impl crate::constrained::Constrained for crate::model::ConstrainedUnion {
    4      5   
    type Unconstrained =
    5      6   
        crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained;
    6      7   
}
    7      8   
    8      9   
impl From<crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained>
    9     10   
    for crate::constrained::MaybeConstrained<crate::model::ConstrainedUnion>
   10     11   
{
   11     12   
    fn from(
   12     13   
        value: crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained,
   13     14   
    ) -> Self {
   14     15   
        Self::Unconstrained(value)
   15     16   
    }
   16     17   
}
   17     18   
   18     19   
pub(crate) mod map_of_enum_string_unconstrained {
   19     20   
          21  +
    /* UnconstrainedMapGenerator.kt:79 */
   20     22   
    #[derive(Debug, Clone)]
   21     23   
    pub(crate) struct MapOfEnumStringUnconstrained(
   22     24   
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
   23     25   
    );
   24     26   
   25     27   
    impl From<MapOfEnumStringUnconstrained>
   26     28   
        for crate::constrained::MaybeConstrained<
   27     29   
            crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained,
   28     30   
        >
   29     31   
    {
   30     32   
        fn from(value: MapOfEnumStringUnconstrained) -> Self {
   31     33   
            Self::Unconstrained(value)
   32     34   
        }
   33     35   
    }
          36  +
    /* UnconstrainedMapGenerator.kt:101 */
   34     37   
    impl std::convert::TryFrom<MapOfEnumStringUnconstrained>
   35     38   
        for crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained
   36     39   
    {
          40  +
        /* UnconstrainedMapGenerator.kt:102 */
   37     41   
        type Error = crate::model::map_of_enum_string_internal::ConstraintViolation;
          42  +
        /* UnconstrainedMapGenerator.kt:104 */
   38     43   
        fn try_from(value: MapOfEnumStringUnconstrained) -> std::result::Result<Self, Self::Error> {
          44  +
            /* UnconstrainedMapGenerator.kt:186 */
   39     45   
            let res: ::std::result::Result<
   40     46   
                ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
   41     47   
                Self::Error,
   42     48   
            > = value
   43     49   
                .0
   44     50   
                .into_iter()
   45     51   
                .map(|(k, v)| {
   46     52   
                    let k: crate::model::EnumString = k.try_into().map_err(Self::Error::Key)?;
   47     53   
   48     54   
                    match crate::model::EnumString::try_from(v) {
   49     55   
                        Ok(v) => Ok((k, v)),
   50     56   
                        Err(inner_constraint_violation) => {
   51     57   
                            Err(Self::Error::Value(k, inner_constraint_violation))
   52     58   
                        }
   53     59   
                    }
   54     60   
                })
   55     61   
                .collect();
   56     62   
            let hm = res?;
          63  +
            /* UnconstrainedMapGenerator.kt:247 */
   57     64   
            Ok(Self(hm))
          65  +
            /* UnconstrainedMapGenerator.kt:104 */
   58     66   
        }
          67  +
        /* UnconstrainedMapGenerator.kt:101 */
   59     68   
    }
          69  +
          70  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
   60     71   
}
   61     72   
pub(crate) mod con_b_map_unconstrained {
   62     73   
          74  +
    /* UnconstrainedMapGenerator.kt:79 */
   63     75   
    #[derive(Debug, Clone)]
   64     76   
    pub(crate) struct ConBMapUnconstrained(
   65     77   
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
   66     78   
    );
   67     79   
   68     80   
    impl From<ConBMapUnconstrained> for crate::constrained::MaybeConstrained<crate::model::ConBMap> {
   69     81   
        fn from(value: ConBMapUnconstrained) -> Self {
   70     82   
            Self::Unconstrained(value)
   71     83   
        }
   72     84   
    }
          85  +
    /* UnconstrainedMapGenerator.kt:101 */
   73     86   
    impl std::convert::TryFrom<ConBMapUnconstrained> for crate::model::ConBMap {
          87  +
        /* UnconstrainedMapGenerator.kt:102 */
   74     88   
        type Error = crate::model::con_b_map_internal::ConstraintViolation;
          89  +
        /* UnconstrainedMapGenerator.kt:104 */
   75     90   
        fn try_from(value: ConBMapUnconstrained) -> std::result::Result<Self, Self::Error> {
          91  +
            /* UnconstrainedMapGenerator.kt:186 */
   76     92   
            let res: ::std::result::Result<
   77     93   
                ::std::collections::HashMap<::std::string::String, crate::model::LengthString>,
   78     94   
                Self::Error,
   79     95   
            > = value
   80     96   
                .0
   81     97   
                .into_iter()
   82     98   
                .map(|(k, v)| match crate::model::LengthString::try_from(v) {
   83     99   
                    Ok(v) => Ok((k, v)),
   84    100   
                    Err(inner_constraint_violation) => {
   85    101   
                        Err(Self::Error::Value(k, inner_constraint_violation))
   86    102   
                    }
   87    103   
                })
   88    104   
                .collect();
   89    105   
            let hm = res?;
         106  +
            /* UnconstrainedMapGenerator.kt:245 */
   90    107   
            Self::try_from(hm)
         108  +
            /* UnconstrainedMapGenerator.kt:104 */
   91    109   
        }
         110  +
        /* UnconstrainedMapGenerator.kt:101 */
   92    111   
    }
         112  +
         113  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
   93    114   
}
   94    115   
pub(crate) mod map_of_list_of_length_pattern_string_unconstrained {
   95    116   
         117  +
    /* UnconstrainedMapGenerator.kt:79 */
   96    118   
    #[derive(Debug, Clone)]
   97    119   
    pub(crate) struct MapOfListOfLengthPatternStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::list_of_length_pattern_string_unconstrained::ListOfLengthPatternStringUnconstrained>);
   98    120   
   99    121   
    impl From<MapOfListOfLengthPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained> {
  100    122   
                        fn from(value: MapOfListOfLengthPatternStringUnconstrained) -> Self {
  101    123   
                            Self::Unconstrained(value)
  102    124   
                        }
  103    125   
                    }
         126  +
    /* UnconstrainedMapGenerator.kt:101 */
  104    127   
    impl std::convert::TryFrom<MapOfListOfLengthPatternStringUnconstrained> for crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained {
  105         -
        type Error = crate::model::map_of_list_of_length_pattern_string_internal::ConstraintViolation;
  106         -
        fn try_from(value: MapOfListOfLengthPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
  107         -
            let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthPatternString, crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained>, Self::Error> = value.0
         128  +
        /* UnconstrainedMapGenerator.kt:102 */type Error = crate::model::map_of_list_of_length_pattern_string_internal::ConstraintViolation;
         129  +
        /* UnconstrainedMapGenerator.kt:104 */fn try_from(value: MapOfListOfLengthPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
         130  +
            /* UnconstrainedMapGenerator.kt:186 */let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthPatternString, crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained>, Self::Error> = value.0
  108    131   
                                        .into_iter()
  109    132   
                                        .map(|(k, v)| {
  110    133   
                                            let k: crate::model::LengthPatternString = k.try_into().map_err(Self::Error::Key)?;
  111    134   
            
  112    135   
            match crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained::try_from(v) {
  113    136   
                                                    Ok(v) => Ok((k, v)),
  114    137   
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
  115    138   
                                                }
  116    139   
                                        })
  117    140   
                                        .collect();
  118    141   
                                    let hm = res?;
  119         -
            Ok(Self(hm))
  120         -
        }
  121         -
    }
         142  +
            /* UnconstrainedMapGenerator.kt:247 */Ok(Self(hm))
         143  +
        /* UnconstrainedMapGenerator.kt:104 */}
         144  +
    /* UnconstrainedMapGenerator.kt:101 */}
         145  +
         146  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  122    147   
}
  123    148   
pub(crate) mod list_of_length_pattern_string_unconstrained {
  124    149   
         150  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  125    151   
    #[derive(Debug, Clone)]
  126    152   
    pub(crate) struct ListOfLengthPatternStringUnconstrained(
  127    153   
        pub(crate) std::vec::Vec<::std::string::String>,
  128    154   
    );
  129    155   
  130    156   
    impl From<ListOfLengthPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained> {
  131    157   
                        fn from(value: ListOfLengthPatternStringUnconstrained) -> Self {
  132    158   
                            Self::Unconstrained(value)
  133    159   
                        }
  134    160   
                    }
         161  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  135    162   
    impl std::convert::TryFrom<ListOfLengthPatternStringUnconstrained> for crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained {
  136         -
        type Error = crate::model::list_of_length_pattern_string_internal::ConstraintViolation;
  137         -
        fn try_from(value: ListOfLengthPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
  138         -
            let res: ::std::result::Result<::std::vec::Vec<crate::model::LengthPatternString>, (usize, crate::model::length_pattern_string_internal::ConstraintViolation) > = value
         163  +
        /* UnconstrainedCollectionGenerator.kt:98 */type Error = crate::model::list_of_length_pattern_string_internal::ConstraintViolation;
         164  +
        /* UnconstrainedCollectionGenerator.kt:100 */fn try_from(value: ListOfLengthPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
         165  +
            /* UnconstrainedCollectionGenerator.kt:127 */let res: ::std::result::Result<::std::vec::Vec<crate::model::LengthPatternString>, (usize, crate::model::length_pattern_string_internal::ConstraintViolation) > = value
  139    166   
                                        .0
  140    167   
                                        .into_iter()
  141    168   
                                        .enumerate()
  142    169   
                                        .map(|(idx, inner)| {
  143    170   
                                            inner.try_into().map_err(|inner_violation| (idx, inner_violation))
  144    171   
                                        })
  145    172   
                                        .collect();
  146    173   
                                    let inner = res
  147    174   
                                        
  148    175   
                                        .map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
  149         -
            Ok(Self(inner))
  150         -
        }
  151         -
    }
         176  +
            /* UnconstrainedCollectionGenerator.kt:191 */Ok(Self(inner))
         177  +
        /* UnconstrainedCollectionGenerator.kt:100 */}
         178  +
    /* UnconstrainedCollectionGenerator.kt:97 */}
         179  +
         180  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  152    181   
}
  153    182   
pub(crate) mod map_of_length_pattern_string_unconstrained {
  154    183   
         184  +
    /* UnconstrainedMapGenerator.kt:79 */
  155    185   
    #[derive(Debug, Clone)]
  156    186   
    pub(crate) struct MapOfLengthPatternStringUnconstrained(
  157    187   
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
  158    188   
    );
  159    189   
  160    190   
    impl From<MapOfLengthPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained> {
  161    191   
                        fn from(value: MapOfLengthPatternStringUnconstrained) -> Self {
  162    192   
                            Self::Unconstrained(value)
  163    193   
                        }
  164    194   
                    }
         195  +
    /* UnconstrainedMapGenerator.kt:101 */
  165    196   
    impl std::convert::TryFrom<MapOfLengthPatternStringUnconstrained> for crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained {
  166         -
        type Error = crate::model::map_of_length_pattern_string_internal::ConstraintViolation;
  167         -
        fn try_from(value: MapOfLengthPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
  168         -
            let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthPatternString, crate::model::LengthPatternString>, Self::Error> = value.0
         197  +
        /* UnconstrainedMapGenerator.kt:102 */type Error = crate::model::map_of_length_pattern_string_internal::ConstraintViolation;
         198  +
        /* UnconstrainedMapGenerator.kt:104 */fn try_from(value: MapOfLengthPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
         199  +
            /* UnconstrainedMapGenerator.kt:186 */let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthPatternString, crate::model::LengthPatternString>, Self::Error> = value.0
  169    200   
                                        .into_iter()
  170    201   
                                        .map(|(k, v)| {
  171    202   
                                            let k: crate::model::LengthPatternString = k.try_into().map_err(Self::Error::Key)?;
  172    203   
            
  173    204   
            match crate::model::LengthPatternString::try_from(v) {
  174    205   
                                                    Ok(v) => Ok((k, v)),
  175    206   
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
  176    207   
                                                }
  177    208   
                                        })
  178    209   
                                        .collect();
  179    210   
                                    let hm = res?;
  180         -
            Ok(Self(hm))
  181         -
        }
  182         -
    }
         211  +
            /* UnconstrainedMapGenerator.kt:247 */Ok(Self(hm))
         212  +
        /* UnconstrainedMapGenerator.kt:104 */}
         213  +
    /* UnconstrainedMapGenerator.kt:101 */}
         214  +
         215  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  183    216   
}
  184    217   
pub(crate) mod map_of_list_of_pattern_string_unconstrained {
  185    218   
         219  +
    /* UnconstrainedMapGenerator.kt:79 */
  186    220   
    #[derive(Debug, Clone)]
  187    221   
    pub(crate) struct MapOfListOfPatternStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::list_of_pattern_string_unconstrained::ListOfPatternStringUnconstrained>);
  188    222   
  189    223   
    impl From<MapOfListOfPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained> {
  190    224   
                        fn from(value: MapOfListOfPatternStringUnconstrained) -> Self {
  191    225   
                            Self::Unconstrained(value)
  192    226   
                        }
  193    227   
                    }
         228  +
    /* UnconstrainedMapGenerator.kt:101 */
  194    229   
    impl std::convert::TryFrom<MapOfListOfPatternStringUnconstrained> for crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained {
  195         -
        type Error = crate::model::map_of_list_of_pattern_string_internal::ConstraintViolation;
  196         -
        fn try_from(value: MapOfListOfPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
  197         -
            let res: ::std::result::Result<::std::collections::HashMap<crate::model::PatternString, crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained>, Self::Error> = value.0
         230  +
        /* UnconstrainedMapGenerator.kt:102 */type Error = crate::model::map_of_list_of_pattern_string_internal::ConstraintViolation;
         231  +
        /* UnconstrainedMapGenerator.kt:104 */fn try_from(value: MapOfListOfPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
         232  +
            /* UnconstrainedMapGenerator.kt:186 */let res: ::std::result::Result<::std::collections::HashMap<crate::model::PatternString, crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained>, Self::Error> = value.0
  198    233   
                                        .into_iter()
  199    234   
                                        .map(|(k, v)| {
  200    235   
                                            let k: crate::model::PatternString = k.try_into().map_err(Self::Error::Key)?;
  201    236   
            
  202    237   
            match crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained::try_from(v) {
  203    238   
                                                    Ok(v) => Ok((k, v)),
  204    239   
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
  205    240   
                                                }
  206    241   
                                        })
  207    242   
                                        .collect();
  208    243   
                                    let hm = res?;
  209         -
            Ok(Self(hm))
  210         -
        }
  211         -
    }
         244  +
            /* UnconstrainedMapGenerator.kt:247 */Ok(Self(hm))
         245  +
        /* UnconstrainedMapGenerator.kt:104 */}
         246  +
    /* UnconstrainedMapGenerator.kt:101 */}
         247  +
         248  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  212    249   
}
  213    250   
pub(crate) mod list_of_pattern_string_unconstrained {
  214    251   
         252  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  215    253   
    #[derive(Debug, Clone)]
  216    254   
    pub(crate) struct ListOfPatternStringUnconstrained(
  217    255   
        pub(crate) std::vec::Vec<::std::string::String>,
  218    256   
    );
  219    257   
  220    258   
    impl From<ListOfPatternStringUnconstrained>
  221    259   
        for crate::constrained::MaybeConstrained<
  222    260   
            crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained,
  223    261   
        >
  224    262   
    {
  225    263   
        fn from(value: ListOfPatternStringUnconstrained) -> Self {
  226    264   
            Self::Unconstrained(value)
  227    265   
        }
  228    266   
    }
         267  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  229    268   
    impl std::convert::TryFrom<ListOfPatternStringUnconstrained>
  230    269   
        for crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained
  231    270   
    {
         271  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  232    272   
        type Error = crate::model::list_of_pattern_string_internal::ConstraintViolation;
         273  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  233    274   
        fn try_from(
  234    275   
            value: ListOfPatternStringUnconstrained,
  235    276   
        ) -> std::result::Result<Self, Self::Error> {
         277  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  236    278   
            let res: ::std::result::Result<
  237    279   
                ::std::vec::Vec<crate::model::PatternString>,
  238    280   
                (
  239    281   
                    usize,
  240    282   
                    crate::model::pattern_string_internal::ConstraintViolation,
  241    283   
                ),
  242    284   
            > = value
  243    285   
                .0
  244    286   
                .into_iter()
  245    287   
                .enumerate()
  246    288   
                .map(|(idx, inner)| {
  247    289   
                    inner
  248    290   
                        .try_into()
  249    291   
                        .map_err(|inner_violation| (idx, inner_violation))
  250    292   
                })
  251    293   
                .collect();
  252    294   
            let inner =
  253    295   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         296  +
            /* UnconstrainedCollectionGenerator.kt:191 */
  254    297   
            Ok(Self(inner))
         298  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  255    299   
        }
         300  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  256    301   
    }
         302  +
         303  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  257    304   
}
  258    305   
pub(crate) mod map_of_pattern_string_unconstrained {
  259    306   
         307  +
    /* UnconstrainedMapGenerator.kt:79 */
  260    308   
    #[derive(Debug, Clone)]
  261    309   
    pub(crate) struct MapOfPatternStringUnconstrained(
  262    310   
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
  263    311   
    );
  264    312   
  265    313   
    impl From<MapOfPatternStringUnconstrained>
  266    314   
        for crate::constrained::MaybeConstrained<
  267    315   
            crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained,
  268    316   
        >
  269    317   
    {
  270    318   
        fn from(value: MapOfPatternStringUnconstrained) -> Self {
  271    319   
            Self::Unconstrained(value)
  272    320   
        }
  273    321   
    }
         322  +
    /* UnconstrainedMapGenerator.kt:101 */
  274    323   
    impl std::convert::TryFrom<MapOfPatternStringUnconstrained>
  275    324   
        for crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained
  276    325   
    {
         326  +
        /* UnconstrainedMapGenerator.kt:102 */
  277    327   
        type Error = crate::model::map_of_pattern_string_internal::ConstraintViolation;
         328  +
        /* UnconstrainedMapGenerator.kt:104 */
  278    329   
        fn try_from(
  279    330   
            value: MapOfPatternStringUnconstrained,
  280    331   
        ) -> std::result::Result<Self, Self::Error> {
         332  +
            /* UnconstrainedMapGenerator.kt:186 */
  281    333   
            let res: ::std::result::Result<
  282    334   
                ::std::collections::HashMap<
  283    335   
                    crate::model::PatternString,
  284    336   
                    crate::model::PatternString,
  285    337   
                >,
  286    338   
                Self::Error,
  287    339   
            > = value
  288    340   
                .0
  289    341   
                .into_iter()
  290    342   
                .map(|(k, v)| {
  291    343   
                    let k: crate::model::PatternString = k.try_into().map_err(Self::Error::Key)?;
  292    344   
  293    345   
                    match crate::model::PatternString::try_from(v) {
  294    346   
                        Ok(v) => Ok((k, v)),
  295    347   
                        Err(inner_constraint_violation) => {
  296    348   
                            Err(Self::Error::Value(k, inner_constraint_violation))
  297    349   
                        }
  298    350   
                    }
  299    351   
                })
  300    352   
                .collect();
  301    353   
            let hm = res?;
         354  +
            /* UnconstrainedMapGenerator.kt:247 */
  302    355   
            Ok(Self(hm))
         356  +
            /* UnconstrainedMapGenerator.kt:104 */
  303    357   
        }
         358  +
        /* UnconstrainedMapGenerator.kt:101 */
  304    359   
    }
         360  +
         361  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  305    362   
}
  306    363   
pub(crate) mod map_of_list_of_enum_string_unconstrained {
  307    364   
         365  +
    /* UnconstrainedMapGenerator.kt:79 */
  308    366   
    #[derive(Debug, Clone)]
  309    367   
    pub(crate) struct MapOfListOfEnumStringUnconstrained(
  310    368   
        pub(crate)  std::collections::HashMap<
  311    369   
            ::std::string::String,
  312    370   
            crate::unconstrained::list_of_enum_string_unconstrained::ListOfEnumStringUnconstrained,
  313    371   
        >,
  314    372   
    );
  315    373   
  316    374   
    impl From<MapOfListOfEnumStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained> {
  317    375   
                        fn from(value: MapOfListOfEnumStringUnconstrained) -> Self {
  318    376   
                            Self::Unconstrained(value)
  319    377   
                        }
  320    378   
                    }
         379  +
    /* UnconstrainedMapGenerator.kt:101 */
  321    380   
    impl std::convert::TryFrom<MapOfListOfEnumStringUnconstrained> for crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained {
  322         -
        type Error = crate::model::map_of_list_of_enum_string_internal::ConstraintViolation;
  323         -
        fn try_from(value: MapOfListOfEnumStringUnconstrained) -> std::result::Result<Self, Self::Error> {
  324         -
            let res: ::std::result::Result<::std::collections::HashMap<crate::model::EnumString, crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>, Self::Error> = value.0
         381  +
        /* UnconstrainedMapGenerator.kt:102 */type Error = crate::model::map_of_list_of_enum_string_internal::ConstraintViolation;
         382  +
        /* UnconstrainedMapGenerator.kt:104 */fn try_from(value: MapOfListOfEnumStringUnconstrained) -> std::result::Result<Self, Self::Error> {
         383  +
            /* UnconstrainedMapGenerator.kt:186 */let res: ::std::result::Result<::std::collections::HashMap<crate::model::EnumString, crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>, Self::Error> = value.0
  325    384   
                                        .into_iter()
  326    385   
                                        .map(|(k, v)| {
  327    386   
                                            let k: crate::model::EnumString = k.try_into().map_err(Self::Error::Key)?;
  328    387   
            
  329    388   
            match crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained::try_from(v) {
  330    389   
                                                    Ok(v) => Ok((k, v)),
  331    390   
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
  332    391   
                                                }
  333    392   
                                        })
  334    393   
                                        .collect();
  335    394   
                                    let hm = res?;
  336         -
            Ok(Self(hm))
  337         -
        }
  338         -
    }
         395  +
            /* UnconstrainedMapGenerator.kt:247 */Ok(Self(hm))
         396  +
        /* UnconstrainedMapGenerator.kt:104 */}
         397  +
    /* UnconstrainedMapGenerator.kt:101 */}
         398  +
         399  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  339    400   
}
  340    401   
pub(crate) mod list_of_enum_string_unconstrained {
  341    402   
         403  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  342    404   
    #[derive(Debug, Clone)]
  343    405   
    pub(crate) struct ListOfEnumStringUnconstrained(
  344    406   
        pub(crate) std::vec::Vec<::std::string::String>,
  345    407   
    );
  346    408   
  347    409   
    impl From<ListOfEnumStringUnconstrained>
  348    410   
        for crate::constrained::MaybeConstrained<
  349    411   
            crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained,
  350    412   
        >
  351    413   
    {
  352    414   
        fn from(value: ListOfEnumStringUnconstrained) -> Self {
  353    415   
            Self::Unconstrained(value)
  354    416   
        }
  355    417   
    }
         418  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  356    419   
    impl std::convert::TryFrom<ListOfEnumStringUnconstrained>
  357    420   
        for crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained
  358    421   
    {
         422  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  359    423   
        type Error = crate::model::list_of_enum_string_internal::ConstraintViolation;
         424  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  360    425   
        fn try_from(
  361    426   
            value: ListOfEnumStringUnconstrained,
  362    427   
        ) -> std::result::Result<Self, Self::Error> {
         428  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  363    429   
            let res: ::std::result::Result<
  364    430   
                ::std::vec::Vec<crate::model::EnumString>,
  365    431   
                (
  366    432   
                    usize,
  367    433   
                    crate::model::enum_string_internal::ConstraintViolation,
  368    434   
                ),
  369    435   
            > = value
  370    436   
                .0
  371    437   
                .into_iter()
  372    438   
                .enumerate()
  373    439   
                .map(|(idx, inner)| {
  374    440   
                    inner
  375    441   
                        .try_into()
  376    442   
                        .map_err(|inner_violation| (idx, inner_violation))
  377    443   
                })
  378    444   
                .collect();
  379    445   
            let inner =
  380    446   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         447  +
            /* UnconstrainedCollectionGenerator.kt:191 */
  381    448   
            Ok(Self(inner))
         449  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  382    450   
        }
         451  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  383    452   
    }
         453  +
         454  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  384    455   
}
  385    456   
pub(crate) mod map_of_length_list_of_pattern_string_unconstrained {
  386    457   
         458  +
    /* UnconstrainedMapGenerator.kt:79 */
  387    459   
    #[derive(Debug, Clone)]
  388    460   
    pub(crate) struct MapOfLengthListOfPatternStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::length_list_of_pattern_string_unconstrained::LengthListOfPatternStringUnconstrained>);
  389    461   
  390    462   
    impl From<MapOfLengthListOfPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained> {
  391    463   
                        fn from(value: MapOfLengthListOfPatternStringUnconstrained) -> Self {
  392    464   
                            Self::Unconstrained(value)
  393    465   
                        }
  394    466   
                    }
         467  +
    /* UnconstrainedMapGenerator.kt:101 */
  395    468   
    impl std::convert::TryFrom<MapOfLengthListOfPatternStringUnconstrained> for crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained {
  396         -
        type Error = crate::model::map_of_length_list_of_pattern_string_internal::ConstraintViolation;
  397         -
        fn try_from(value: MapOfLengthListOfPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
  398         -
            let res: ::std::result::Result<::std::collections::HashMap<crate::model::PatternString, crate::model::LengthListOfPatternString>, Self::Error> = value.0
         469  +
        /* UnconstrainedMapGenerator.kt:102 */type Error = crate::model::map_of_length_list_of_pattern_string_internal::ConstraintViolation;
         470  +
        /* UnconstrainedMapGenerator.kt:104 */fn try_from(value: MapOfLengthListOfPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
         471  +
            /* UnconstrainedMapGenerator.kt:186 */let res: ::std::result::Result<::std::collections::HashMap<crate::model::PatternString, crate::model::LengthListOfPatternString>, Self::Error> = value.0
  399    472   
                                        .into_iter()
  400    473   
                                        .map(|(k, v)| {
  401    474   
                                            let k: crate::model::PatternString = k.try_into().map_err(Self::Error::Key)?;
  402    475   
            
  403    476   
            match crate::model::LengthListOfPatternString::try_from(v) {
  404    477   
                                                    Ok(v) => Ok((k, v)),
  405    478   
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
  406    479   
                                                }
  407    480   
                                        })
  408    481   
                                        .collect();
  409    482   
                                    let hm = res?;
  410         -
            Ok(Self(hm))
  411         -
        }
  412         -
    }
         483  +
            /* UnconstrainedMapGenerator.kt:247 */Ok(Self(hm))
         484  +
        /* UnconstrainedMapGenerator.kt:104 */}
         485  +
    /* UnconstrainedMapGenerator.kt:101 */}
         486  +
         487  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  413    488   
}
  414    489   
pub(crate) mod length_list_of_pattern_string_unconstrained {
  415    490   
         491  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  416    492   
    #[derive(Debug, Clone)]
  417    493   
    pub(crate) struct LengthListOfPatternStringUnconstrained(
  418    494   
        pub(crate) std::vec::Vec<::std::string::String>,
  419    495   
    );
  420    496   
  421    497   
    impl From<LengthListOfPatternStringUnconstrained>
  422    498   
        for crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>
  423    499   
    {
  424    500   
        fn from(value: LengthListOfPatternStringUnconstrained) -> Self {
  425    501   
            Self::Unconstrained(value)
  426    502   
        }
  427    503   
    }
         504  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  428    505   
    impl std::convert::TryFrom<LengthListOfPatternStringUnconstrained>
  429    506   
        for crate::model::LengthListOfPatternString
  430    507   
    {
         508  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  431    509   
        type Error = crate::model::length_list_of_pattern_string_internal::ConstraintViolation;
         510  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  432    511   
        fn try_from(
  433    512   
            value: LengthListOfPatternStringUnconstrained,
  434    513   
        ) -> std::result::Result<Self, Self::Error> {
         514  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  435    515   
            let res: ::std::result::Result<
  436    516   
                ::std::vec::Vec<crate::model::PatternString>,
  437    517   
                (
  438    518   
                    usize,
  439    519   
                    crate::model::pattern_string_internal::ConstraintViolation,
  440    520   
                ),
  441    521   
            > = value
  442    522   
                .0
  443    523   
                .into_iter()
  444    524   
                .enumerate()
  445    525   
                .map(|(idx, inner)| {
  446    526   
                    inner
  447    527   
                        .try_into()
  448    528   
                        .map_err(|inner_violation| (idx, inner_violation))
  449    529   
                })
  450    530   
                .collect();
  451    531   
            let inner =
  452    532   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         533  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  453    534   
            Self::try_from(inner)
         535  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  454    536   
        }
         537  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  455    538   
    }
         539  +
         540  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  456    541   
}
  457    542   
pub(crate) mod map_of_set_of_length_string_unconstrained {
  458    543   
         544  +
    /* UnconstrainedMapGenerator.kt:79 */
  459    545   
    #[derive(Debug, Clone)]
  460    546   
    pub(crate) struct MapOfSetOfLengthStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::set_of_length_string_unconstrained::SetOfLengthStringUnconstrained>);
  461    547   
  462    548   
    impl From<MapOfSetOfLengthStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained> {
  463    549   
                        fn from(value: MapOfSetOfLengthStringUnconstrained) -> Self {
  464    550   
                            Self::Unconstrained(value)
  465    551   
                        }
  466    552   
                    }
         553  +
    /* UnconstrainedMapGenerator.kt:101 */
  467    554   
    impl std::convert::TryFrom<MapOfSetOfLengthStringUnconstrained> for crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained {
  468         -
        type Error = crate::model::map_of_set_of_length_string_internal::ConstraintViolation;
  469         -
        fn try_from(value: MapOfSetOfLengthStringUnconstrained) -> std::result::Result<Self, Self::Error> {
  470         -
            let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthString, crate::model::SetOfLengthString>, Self::Error> = value.0
         555  +
        /* UnconstrainedMapGenerator.kt:102 */type Error = crate::model::map_of_set_of_length_string_internal::ConstraintViolation;
         556  +
        /* UnconstrainedMapGenerator.kt:104 */fn try_from(value: MapOfSetOfLengthStringUnconstrained) -> std::result::Result<Self, Self::Error> {
         557  +
            /* UnconstrainedMapGenerator.kt:186 */let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthString, crate::model::SetOfLengthString>, Self::Error> = value.0
  471    558   
                                        .into_iter()
  472    559   
                                        .map(|(k, v)| {
  473    560   
                                            let k: crate::model::LengthString = k.try_into().map_err(Self::Error::Key)?;
  474    561   
            
  475    562   
            match crate::model::SetOfLengthString::try_from(v) {
  476    563   
                                                    Ok(v) => Ok((k, v)),
  477    564   
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
  478    565   
                                                }
  479    566   
                                        })
  480    567   
                                        .collect();
  481    568   
                                    let hm = res?;
  482         -
            Ok(Self(hm))
  483         -
        }
  484         -
    }
         569  +
            /* UnconstrainedMapGenerator.kt:247 */Ok(Self(hm))
         570  +
        /* UnconstrainedMapGenerator.kt:104 */}
         571  +
    /* UnconstrainedMapGenerator.kt:101 */}
         572  +
         573  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  485    574   
}
  486    575   
pub(crate) mod set_of_length_string_unconstrained {
  487    576   
         577  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  488    578   
    #[derive(Debug, Clone)]
  489    579   
    pub(crate) struct SetOfLengthStringUnconstrained(
  490    580   
        pub(crate) std::vec::Vec<::std::string::String>,
  491    581   
    );
  492    582   
  493    583   
    impl From<SetOfLengthStringUnconstrained>
  494    584   
        for crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>
  495    585   
    {
  496    586   
        fn from(value: SetOfLengthStringUnconstrained) -> Self {
  497    587   
            Self::Unconstrained(value)
  498    588   
        }
  499    589   
    }
         590  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  500    591   
    impl std::convert::TryFrom<SetOfLengthStringUnconstrained> for crate::model::SetOfLengthString {
         592  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  501    593   
        type Error = crate::model::set_of_length_string_internal::ConstraintViolation;
         594  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  502    595   
        fn try_from(
  503    596   
            value: SetOfLengthStringUnconstrained,
  504    597   
        ) -> std::result::Result<Self, Self::Error> {
         598  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  505    599   
            let res: ::std::result::Result<
  506    600   
                ::std::vec::Vec<crate::model::LengthString>,
  507    601   
                (
  508    602   
                    usize,
  509    603   
                    crate::model::length_string_internal::ConstraintViolation,
  510    604   
                ),
  511    605   
            > = value
  512    606   
                .0
  513    607   
                .into_iter()
  514    608   
                .enumerate()
  515    609   
                .map(|(idx, inner)| {
  516    610   
                    inner
  517    611   
                        .try_into()
  518    612   
                        .map_err(|inner_violation| (idx, inner_violation))
  519    613   
                })
  520    614   
                .collect();
  521    615   
            let inner =
  522    616   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         617  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  523    618   
            Self::try_from(inner)
         619  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  524    620   
        }
         621  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  525    622   
    }
         623  +
         624  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  526    625   
}
  527    626   
pub(crate) mod map_of_list_of_length_string_unconstrained {
  528    627   
         628  +
    /* UnconstrainedMapGenerator.kt:79 */
  529    629   
    #[derive(Debug, Clone)]
  530    630   
    pub(crate) struct MapOfListOfLengthStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::list_of_length_string_unconstrained::ListOfLengthStringUnconstrained>);
  531    631   
  532    632   
    impl From<MapOfListOfLengthStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained> {
  533    633   
                        fn from(value: MapOfListOfLengthStringUnconstrained) -> Self {
  534    634   
                            Self::Unconstrained(value)
  535    635   
                        }
  536    636   
                    }
         637  +
    /* UnconstrainedMapGenerator.kt:101 */
  537    638   
    impl std::convert::TryFrom<MapOfListOfLengthStringUnconstrained> for crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained {
  538         -
        type Error = crate::model::map_of_list_of_length_string_internal::ConstraintViolation;
  539         -
        fn try_from(value: MapOfListOfLengthStringUnconstrained) -> std::result::Result<Self, Self::Error> {
  540         -
            let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthString, crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>, Self::Error> = value.0
         639  +
        /* UnconstrainedMapGenerator.kt:102 */type Error = crate::model::map_of_list_of_length_string_internal::ConstraintViolation;
         640  +
        /* UnconstrainedMapGenerator.kt:104 */fn try_from(value: MapOfListOfLengthStringUnconstrained) -> std::result::Result<Self, Self::Error> {
         641  +
            /* UnconstrainedMapGenerator.kt:186 */let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthString, crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>, Self::Error> = value.0
  541    642   
                                        .into_iter()
  542    643   
                                        .map(|(k, v)| {
  543    644   
                                            let k: crate::model::LengthString = k.try_into().map_err(Self::Error::Key)?;
  544    645   
            
  545    646   
            match crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained::try_from(v) {
  546    647   
                                                    Ok(v) => Ok((k, v)),
  547    648   
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
  548    649   
                                                }
  549    650   
                                        })
  550    651   
                                        .collect();
  551    652   
                                    let hm = res?;
  552         -
            Ok(Self(hm))
  553         -
        }
  554         -
    }
         653  +
            /* UnconstrainedMapGenerator.kt:247 */Ok(Self(hm))
         654  +
        /* UnconstrainedMapGenerator.kt:104 */}
         655  +
    /* UnconstrainedMapGenerator.kt:101 */}
         656  +
         657  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  555    658   
}
  556    659   
pub(crate) mod list_of_length_string_unconstrained {
  557    660   
         661  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  558    662   
    #[derive(Debug, Clone)]
  559    663   
    pub(crate) struct ListOfLengthStringUnconstrained(
  560    664   
        pub(crate) std::vec::Vec<::std::string::String>,
  561    665   
    );
  562    666   
  563    667   
    impl From<ListOfLengthStringUnconstrained>
  564    668   
        for crate::constrained::MaybeConstrained<
  565    669   
            crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained,
  566    670   
        >
  567    671   
    {
  568    672   
        fn from(value: ListOfLengthStringUnconstrained) -> Self {
  569    673   
            Self::Unconstrained(value)
  570    674   
        }
  571    675   
    }
         676  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  572    677   
    impl std::convert::TryFrom<ListOfLengthStringUnconstrained>
  573    678   
        for crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained
  574    679   
    {
         680  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  575    681   
        type Error = crate::model::list_of_length_string_internal::ConstraintViolation;
         682  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  576    683   
        fn try_from(
  577    684   
            value: ListOfLengthStringUnconstrained,
  578    685   
        ) -> std::result::Result<Self, Self::Error> {
         686  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  579    687   
            let res: ::std::result::Result<
  580    688   
                ::std::vec::Vec<crate::model::LengthString>,
  581    689   
                (
  582    690   
                    usize,
  583    691   
                    crate::model::length_string_internal::ConstraintViolation,
  584    692   
                ),
  585    693   
            > = value
  586    694   
                .0
  587    695   
                .into_iter()
  588    696   
                .enumerate()
  589    697   
                .map(|(idx, inner)| {
  590    698   
                    inner
  591    699   
                        .try_into()
  592    700   
                        .map_err(|inner_violation| (idx, inner_violation))
  593    701   
                })
  594    702   
                .collect();
  595    703   
            let inner =
  596    704   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         705  +
            /* UnconstrainedCollectionGenerator.kt:191 */
  597    706   
            Ok(Self(inner))
         707  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  598    708   
        }
         709  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  599    710   
    }
         711  +
         712  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  600    713   
}
  601    714   
pub(crate) mod map_of_length_string_unconstrained {
  602    715   
         716  +
    /* UnconstrainedMapGenerator.kt:79 */
  603    717   
    #[derive(Debug, Clone)]
  604    718   
    pub(crate) struct MapOfLengthStringUnconstrained(
  605    719   
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
  606    720   
    );
  607    721   
  608    722   
    impl From<MapOfLengthStringUnconstrained>
  609    723   
        for crate::constrained::MaybeConstrained<
  610    724   
            crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained,
  611    725   
        >
  612    726   
    {
  613    727   
        fn from(value: MapOfLengthStringUnconstrained) -> Self {
  614    728   
            Self::Unconstrained(value)
  615    729   
        }
  616    730   
    }
         731  +
    /* UnconstrainedMapGenerator.kt:101 */
  617    732   
    impl std::convert::TryFrom<MapOfLengthStringUnconstrained>
  618    733   
        for crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained
  619    734   
    {
         735  +
        /* UnconstrainedMapGenerator.kt:102 */
  620    736   
        type Error = crate::model::map_of_length_string_internal::ConstraintViolation;
         737  +
        /* UnconstrainedMapGenerator.kt:104 */
  621    738   
        fn try_from(
  622    739   
            value: MapOfLengthStringUnconstrained,
  623    740   
        ) -> std::result::Result<Self, Self::Error> {
         741  +
            /* UnconstrainedMapGenerator.kt:186 */
  624    742   
            let res: ::std::result::Result<
  625    743   
                ::std::collections::HashMap<crate::model::LengthString, crate::model::LengthString>,
  626    744   
                Self::Error,
  627    745   
            > = value
  628    746   
                .0
  629    747   
                .into_iter()
  630    748   
                .map(|(k, v)| {
  631    749   
                    let k: crate::model::LengthString = k.try_into().map_err(Self::Error::Key)?;
  632    750   
  633    751   
                    match crate::model::LengthString::try_from(v) {
  634    752   
                        Ok(v) => Ok((k, v)),
  635    753   
                        Err(inner_constraint_violation) => {
  636    754   
                            Err(Self::Error::Value(k, inner_constraint_violation))
  637    755   
                        }
  638    756   
                    }
  639    757   
                })
  640    758   
                .collect();
  641    759   
            let hm = res?;
         760  +
            /* UnconstrainedMapGenerator.kt:247 */
  642    761   
            Ok(Self(hm))
         762  +
            /* UnconstrainedMapGenerator.kt:104 */
  643    763   
        }
         764  +
        /* UnconstrainedMapGenerator.kt:101 */
  644    765   
    }
         766  +
         767  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  645    768   
}
  646    769   
pub(crate) mod recursive_list_unconstrained {
  647    770   
         771  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  648    772   
    #[derive(Debug, Clone)]
  649    773   
    pub(crate) struct RecursiveListUnconstrained(
  650    774   
        pub(crate) 
  651    775   
            std::vec::Vec<crate::model::recursive_shapes_input_output_nested1_internal::Builder>,
  652    776   
    );
  653    777   
  654    778   
    impl From<RecursiveListUnconstrained>
  655    779   
        for crate::constrained::MaybeConstrained<
  656    780   
            crate::constrained::recursive_list_constrained::RecursiveListConstrained,
  657    781   
        >
  658    782   
    {
  659    783   
        fn from(value: RecursiveListUnconstrained) -> Self {
  660    784   
            Self::Unconstrained(value)
  661    785   
        }
  662    786   
    }
         787  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  663    788   
    impl std::convert::TryFrom<RecursiveListUnconstrained>
  664    789   
        for crate::constrained::recursive_list_constrained::RecursiveListConstrained
  665    790   
    {
         791  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  666    792   
        type Error = crate::model::recursive_list_internal::ConstraintViolation;
         793  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  667    794   
        fn try_from(value: RecursiveListUnconstrained) -> std::result::Result<Self, Self::Error> {
         795  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  668    796   
            let res: ::std::result::Result<::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>, (usize, crate::model::recursive_shapes_input_output_nested1_internal::ConstraintViolation) > = value
  669    797   
                                        .0
  670    798   
                                        .into_iter()
  671    799   
                                        .enumerate()
  672    800   
                                        .map(|(idx, inner)| {
  673    801   
                                            inner.try_into().map_err(|inner_violation| (idx, inner_violation))
  674    802   
                                        })
  675    803   
                                        .collect();
  676    804   
            let inner =
  677    805   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         806  +
            /* UnconstrainedCollectionGenerator.kt:191 */
  678    807   
            Ok(Self(inner))
         808  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  679    809   
        }
         810  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  680    811   
    }
         812  +
         813  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  681    814   
}
  682    815   
pub(crate) mod length_set_of_pattern_string_unconstrained {
  683    816   
         817  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  684    818   
    #[derive(Debug, Clone)]
  685    819   
    pub(crate) struct LengthSetOfPatternStringUnconstrained(
  686    820   
        pub(crate) std::vec::Vec<::std::string::String>,
  687    821   
    );
  688    822   
  689    823   
    impl From<LengthSetOfPatternStringUnconstrained>
  690    824   
        for crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>
  691    825   
    {
  692    826   
        fn from(value: LengthSetOfPatternStringUnconstrained) -> Self {
  693    827   
            Self::Unconstrained(value)
  694    828   
        }
  695    829   
    }
         830  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  696    831   
    impl std::convert::TryFrom<LengthSetOfPatternStringUnconstrained>
  697    832   
        for crate::model::LengthSetOfPatternString
  698    833   
    {
         834  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  699    835   
        type Error = crate::model::length_set_of_pattern_string_internal::ConstraintViolation;
         836  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  700    837   
        fn try_from(
  701    838   
            value: LengthSetOfPatternStringUnconstrained,
  702    839   
        ) -> std::result::Result<Self, Self::Error> {
         840  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  703    841   
            let res: ::std::result::Result<
  704    842   
                ::std::vec::Vec<crate::model::PatternString>,
  705    843   
                (
  706    844   
                    usize,
  707    845   
                    crate::model::pattern_string_internal::ConstraintViolation,
  708    846   
                ),
  709    847   
            > = value
  710    848   
                .0
  711    849   
                .into_iter()
  712    850   
                .enumerate()
  713    851   
                .map(|(idx, inner)| {
  714    852   
                    inner
  715    853   
                        .try_into()
  716    854   
                        .map_err(|inner_violation| (idx, inner_violation))
  717    855   
                })
  718    856   
                .collect();
  719    857   
            let inner =
  720    858   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         859  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  721    860   
            Self::try_from(inner)
         861  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  722    862   
        }
         863  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  723    864   
    }
         865  +
         866  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  724    867   
}
  725    868   
pub(crate) mod set_of_length_pattern_string_unconstrained {
  726    869   
         870  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  727    871   
    #[derive(Debug, Clone)]
  728    872   
    pub(crate) struct SetOfLengthPatternStringUnconstrained(
  729    873   
        pub(crate) std::vec::Vec<::std::string::String>,
  730    874   
    );
  731    875   
  732    876   
    impl From<SetOfLengthPatternStringUnconstrained>
  733    877   
        for crate::constrained::MaybeConstrained<crate::model::SetOfLengthPatternString>
  734    878   
    {
  735    879   
        fn from(value: SetOfLengthPatternStringUnconstrained) -> Self {
  736    880   
            Self::Unconstrained(value)
  737    881   
        }
  738    882   
    }
         883  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  739    884   
    impl std::convert::TryFrom<SetOfLengthPatternStringUnconstrained>
  740    885   
        for crate::model::SetOfLengthPatternString
  741    886   
    {
         887  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  742    888   
        type Error = crate::model::set_of_length_pattern_string_internal::ConstraintViolation;
         889  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  743    890   
        fn try_from(
  744    891   
            value: SetOfLengthPatternStringUnconstrained,
  745    892   
        ) -> std::result::Result<Self, Self::Error> {
         893  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  746    894   
            let res: ::std::result::Result<
  747    895   
                ::std::vec::Vec<crate::model::LengthPatternString>,
  748    896   
                (
  749    897   
                    usize,
  750    898   
                    crate::model::length_pattern_string_internal::ConstraintViolation,
  751    899   
                ),
  752    900   
            > = value
  753    901   
                .0
  754    902   
                .into_iter()
  755    903   
                .enumerate()
  756    904   
                .map(|(idx, inner)| {
  757    905   
                    inner
  758    906   
                        .try_into()
  759    907   
                        .map_err(|inner_violation| (idx, inner_violation))
  760    908   
                })
  761    909   
                .collect();
  762    910   
            let inner =
  763    911   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         912  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  764    913   
            Self::try_from(inner)
         914  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  765    915   
        }
         916  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  766    917   
    }
         918  +
         919  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  767    920   
}
  768    921   
pub(crate) mod set_of_pattern_string_unconstrained {
  769    922   
         923  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  770    924   
    #[derive(Debug, Clone)]
  771    925   
    pub(crate) struct SetOfPatternStringUnconstrained(
  772    926   
        pub(crate) std::vec::Vec<::std::string::String>,
  773    927   
    );
  774    928   
  775    929   
    impl From<SetOfPatternStringUnconstrained>
  776    930   
        for crate::constrained::MaybeConstrained<crate::model::SetOfPatternString>
  777    931   
    {
  778    932   
        fn from(value: SetOfPatternStringUnconstrained) -> Self {
  779    933   
            Self::Unconstrained(value)
  780    934   
        }
  781    935   
    }
         936  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  782    937   
    impl std::convert::TryFrom<SetOfPatternStringUnconstrained> for crate::model::SetOfPatternString {
         938  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  783    939   
        type Error = crate::model::set_of_pattern_string_internal::ConstraintViolation;
         940  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  784    941   
        fn try_from(
  785    942   
            value: SetOfPatternStringUnconstrained,
  786    943   
        ) -> std::result::Result<Self, Self::Error> {
         944  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  787    945   
            let res: ::std::result::Result<
  788    946   
                ::std::vec::Vec<crate::model::PatternString>,
  789    947   
                (
  790    948   
                    usize,
  791    949   
                    crate::model::pattern_string_internal::ConstraintViolation,
  792    950   
                ),
  793    951   
            > = value
  794    952   
                .0
  795    953   
                .into_iter()
  796    954   
                .enumerate()
  797    955   
                .map(|(idx, inner)| {
  798    956   
                    inner
  799    957   
                        .try_into()
  800    958   
                        .map_err(|inner_violation| (idx, inner_violation))
  801    959   
                })
  802    960   
                .collect();
  803    961   
            let inner =
  804    962   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         963  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  805    964   
            Self::try_from(inner)
         965  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  806    966   
        }
         967  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  807    968   
    }
         969  +
         970  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  808    971   
}
  809    972   
pub(crate) mod map_of_range_byte_unconstrained {
  810    973   
         974  +
    /* UnconstrainedMapGenerator.kt:79 */
  811    975   
    #[derive(Debug, Clone)]
  812    976   
    pub(crate) struct MapOfRangeByteUnconstrained(
  813    977   
        pub(crate) std::collections::HashMap<::std::string::String, i8>,
  814    978   
    );
  815    979   
  816    980   
    impl From<MapOfRangeByteUnconstrained>
  817    981   
        for crate::constrained::MaybeConstrained<
  818    982   
            crate::constrained::map_of_range_byte_constrained::MapOfRangeByteConstrained,
  819    983   
        >
  820    984   
    {
  821    985   
        fn from(value: MapOfRangeByteUnconstrained) -> Self {
  822    986   
            Self::Unconstrained(value)
  823    987   
        }
  824    988   
    }
         989  +
    /* UnconstrainedMapGenerator.kt:101 */
  825    990   
    impl std::convert::TryFrom<MapOfRangeByteUnconstrained>
  826    991   
        for crate::constrained::map_of_range_byte_constrained::MapOfRangeByteConstrained
  827    992   
    {
         993  +
        /* UnconstrainedMapGenerator.kt:102 */
  828    994   
        type Error = crate::model::map_of_range_byte_internal::ConstraintViolation;
         995  +
        /* UnconstrainedMapGenerator.kt:104 */
  829    996   
        fn try_from(value: MapOfRangeByteUnconstrained) -> std::result::Result<Self, Self::Error> {
         997  +
            /* UnconstrainedMapGenerator.kt:186 */
  830    998   
            let res: ::std::result::Result<
  831    999   
                ::std::collections::HashMap<::std::string::String, crate::model::RangeByte>,
  832   1000   
                Self::Error,
  833   1001   
            > = value
  834   1002   
                .0
  835   1003   
                .into_iter()
  836   1004   
                .map(|(k, v)| match crate::model::RangeByte::try_from(v) {
  837   1005   
                    Ok(v) => Ok((k, v)),
  838   1006   
                    Err(inner_constraint_violation) => {
  839   1007   
                        Err(Self::Error::Value(k, inner_constraint_violation))
  840   1008   
                    }
  841   1009   
                })
  842   1010   
                .collect();
  843   1011   
            let hm = res?;
        1012  +
            /* UnconstrainedMapGenerator.kt:247 */
  844   1013   
            Ok(Self(hm))
        1014  +
            /* UnconstrainedMapGenerator.kt:104 */
  845   1015   
        }
        1016  +
        /* UnconstrainedMapGenerator.kt:101 */
  846   1017   
    }
        1018  +
        1019  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  847   1020   
}
  848   1021   
pub(crate) mod set_of_range_byte_unconstrained {
  849   1022   
        1023  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  850   1024   
    #[derive(Debug, Clone)]
  851   1025   
    pub(crate) struct SetOfRangeByteUnconstrained(pub(crate) std::vec::Vec<i8>);
  852   1026   
  853   1027   
    impl From<SetOfRangeByteUnconstrained>
  854   1028   
        for crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>
  855   1029   
    {
  856   1030   
        fn from(value: SetOfRangeByteUnconstrained) -> Self {
  857   1031   
            Self::Unconstrained(value)
  858   1032   
        }
  859   1033   
    }
        1034  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  860   1035   
    impl std::convert::TryFrom<SetOfRangeByteUnconstrained> for crate::model::SetOfRangeByte {
        1036  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  861   1037   
        type Error = crate::model::set_of_range_byte_internal::ConstraintViolation;
        1038  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  862   1039   
        fn try_from(value: SetOfRangeByteUnconstrained) -> std::result::Result<Self, Self::Error> {
        1040  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  863   1041   
            let res: ::std::result::Result<
  864   1042   
                ::std::vec::Vec<crate::model::RangeByte>,
  865   1043   
                (
  866   1044   
                    usize,
  867   1045   
                    crate::model::range_byte_internal::ConstraintViolation,
  868   1046   
                ),
  869   1047   
            > = value
  870   1048   
                .0
  871   1049   
                .into_iter()
  872   1050   
                .enumerate()
  873   1051   
                .map(|(idx, inner)| {
  874   1052   
                    inner
  875   1053   
                        .try_into()
  876   1054   
                        .map_err(|inner_violation| (idx, inner_violation))
  877   1055   
                })
  878   1056   
                .collect();
  879   1057   
            let inner =
  880   1058   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1059  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  881   1060   
            Self::try_from(inner)
        1061  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  882   1062   
        }
        1063  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  883   1064   
    }
        1065  +
        1066  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  884   1067   
}
  885   1068   
pub(crate) mod list_of_range_byte_unconstrained {
  886   1069   
        1070  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  887   1071   
    #[derive(Debug, Clone)]
  888   1072   
    pub(crate) struct ListOfRangeByteUnconstrained(pub(crate) std::vec::Vec<i8>);
  889   1073   
  890   1074   
    impl From<ListOfRangeByteUnconstrained>
  891   1075   
        for crate::constrained::MaybeConstrained<
  892   1076   
            crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained,
  893   1077   
        >
  894   1078   
    {
  895   1079   
        fn from(value: ListOfRangeByteUnconstrained) -> Self {
  896   1080   
            Self::Unconstrained(value)
  897   1081   
        }
  898   1082   
    }
        1083  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  899   1084   
    impl std::convert::TryFrom<ListOfRangeByteUnconstrained>
  900   1085   
        for crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained
  901   1086   
    {
        1087  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  902   1088   
        type Error = crate::model::list_of_range_byte_internal::ConstraintViolation;
        1089  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  903   1090   
        fn try_from(value: ListOfRangeByteUnconstrained) -> std::result::Result<Self, Self::Error> {
        1091  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  904   1092   
            let res: ::std::result::Result<
  905   1093   
                ::std::vec::Vec<crate::model::RangeByte>,
  906   1094   
                (
  907   1095   
                    usize,
  908   1096   
                    crate::model::range_byte_internal::ConstraintViolation,
  909   1097   
                ),
  910   1098   
            > = value
  911   1099   
                .0
  912   1100   
                .into_iter()
  913   1101   
                .enumerate()
  914   1102   
                .map(|(idx, inner)| {
  915   1103   
                    inner
  916   1104   
                        .try_into()
  917   1105   
                        .map_err(|inner_violation| (idx, inner_violation))
  918   1106   
                })
  919   1107   
                .collect();
  920   1108   
            let inner =
  921   1109   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1110  +
            /* UnconstrainedCollectionGenerator.kt:191 */
  922   1111   
            Ok(Self(inner))
        1112  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  923   1113   
        }
        1114  +
        /* UnconstrainedCollectionGenerator.kt:97 */
  924   1115   
    }
        1116  +
        1117  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  925   1118   
}
  926   1119   
pub(crate) mod map_of_range_long_unconstrained {
  927   1120   
        1121  +
    /* UnconstrainedMapGenerator.kt:79 */
  928   1122   
    #[derive(Debug, Clone)]
  929   1123   
    pub(crate) struct MapOfRangeLongUnconstrained(
  930   1124   
        pub(crate) std::collections::HashMap<::std::string::String, i64>,
  931   1125   
    );
  932   1126   
  933   1127   
    impl From<MapOfRangeLongUnconstrained>
  934   1128   
        for crate::constrained::MaybeConstrained<
  935   1129   
            crate::constrained::map_of_range_long_constrained::MapOfRangeLongConstrained,
  936   1130   
        >
  937   1131   
    {
  938   1132   
        fn from(value: MapOfRangeLongUnconstrained) -> Self {
  939   1133   
            Self::Unconstrained(value)
  940   1134   
        }
  941   1135   
    }
        1136  +
    /* UnconstrainedMapGenerator.kt:101 */
  942   1137   
    impl std::convert::TryFrom<MapOfRangeLongUnconstrained>
  943   1138   
        for crate::constrained::map_of_range_long_constrained::MapOfRangeLongConstrained
  944   1139   
    {
        1140  +
        /* UnconstrainedMapGenerator.kt:102 */
  945   1141   
        type Error = crate::model::map_of_range_long_internal::ConstraintViolation;
        1142  +
        /* UnconstrainedMapGenerator.kt:104 */
  946   1143   
        fn try_from(value: MapOfRangeLongUnconstrained) -> std::result::Result<Self, Self::Error> {
        1144  +
            /* UnconstrainedMapGenerator.kt:186 */
  947   1145   
            let res: ::std::result::Result<
  948   1146   
                ::std::collections::HashMap<::std::string::String, crate::model::RangeLong>,
  949   1147   
                Self::Error,
  950   1148   
            > = value
  951   1149   
                .0
  952   1150   
                .into_iter()
  953   1151   
                .map(|(k, v)| match crate::model::RangeLong::try_from(v) {
  954   1152   
                    Ok(v) => Ok((k, v)),
  955   1153   
                    Err(inner_constraint_violation) => {
  956   1154   
                        Err(Self::Error::Value(k, inner_constraint_violation))
  957   1155   
                    }
  958   1156   
                })
  959   1157   
                .collect();
  960   1158   
            let hm = res?;
        1159  +
            /* UnconstrainedMapGenerator.kt:247 */
  961   1160   
            Ok(Self(hm))
        1161  +
            /* UnconstrainedMapGenerator.kt:104 */
  962   1162   
        }
        1163  +
        /* UnconstrainedMapGenerator.kt:101 */
  963   1164   
    }
        1165  +
        1166  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
  964   1167   
}
  965   1168   
pub(crate) mod set_of_range_long_unconstrained {
  966   1169   
        1170  +
    /* UnconstrainedCollectionGenerator.kt:77 */
  967   1171   
    #[derive(Debug, Clone)]
  968   1172   
    pub(crate) struct SetOfRangeLongUnconstrained(pub(crate) std::vec::Vec<i64>);
  969   1173   
  970   1174   
    impl From<SetOfRangeLongUnconstrained>
  971   1175   
        for crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>
  972   1176   
    {
  973   1177   
        fn from(value: SetOfRangeLongUnconstrained) -> Self {
  974   1178   
            Self::Unconstrained(value)
  975   1179   
        }
  976   1180   
    }
        1181  +
    /* UnconstrainedCollectionGenerator.kt:97 */
  977   1182   
    impl std::convert::TryFrom<SetOfRangeLongUnconstrained> for crate::model::SetOfRangeLong {
        1183  +
        /* UnconstrainedCollectionGenerator.kt:98 */
  978   1184   
        type Error = crate::model::set_of_range_long_internal::ConstraintViolation;
        1185  +
        /* UnconstrainedCollectionGenerator.kt:100 */
  979   1186   
        fn try_from(value: SetOfRangeLongUnconstrained) -> std::result::Result<Self, Self::Error> {
        1187  +
            /* UnconstrainedCollectionGenerator.kt:127 */
  980   1188   
            let res: ::std::result::Result<
  981   1189   
                ::std::vec::Vec<crate::model::RangeLong>,
  982   1190   
                (
  983   1191   
                    usize,
  984   1192   
                    crate::model::range_long_internal::ConstraintViolation,
  985   1193   
                ),
  986   1194   
            > = value
  987   1195   
                .0
  988   1196   
                .into_iter()
  989   1197   
                .enumerate()
  990   1198   
                .map(|(idx, inner)| {
  991   1199   
                    inner
  992   1200   
                        .try_into()
  993   1201   
                        .map_err(|inner_violation| (idx, inner_violation))
  994   1202   
                })
  995   1203   
                .collect();
  996   1204   
            let inner =
  997   1205   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1206  +
            /* UnconstrainedCollectionGenerator.kt:189 */
  998   1207   
            Self::try_from(inner)
        1208  +
            /* UnconstrainedCollectionGenerator.kt:100 */
  999   1209   
        }
        1210  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1000   1211   
    }
        1212  +
        1213  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1001   1214   
}
 1002   1215   
pub(crate) mod list_of_range_long_unconstrained {
 1003   1216   
        1217  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1004   1218   
    #[derive(Debug, Clone)]
 1005   1219   
    pub(crate) struct ListOfRangeLongUnconstrained(pub(crate) std::vec::Vec<i64>);
 1006   1220   
 1007   1221   
    impl From<ListOfRangeLongUnconstrained>
 1008   1222   
        for crate::constrained::MaybeConstrained<
 1009   1223   
            crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained,
 1010   1224   
        >
 1011   1225   
    {
 1012   1226   
        fn from(value: ListOfRangeLongUnconstrained) -> Self {
 1013   1227   
            Self::Unconstrained(value)
 1014   1228   
        }
 1015   1229   
    }
        1230  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1016   1231   
    impl std::convert::TryFrom<ListOfRangeLongUnconstrained>
 1017   1232   
        for crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained
 1018   1233   
    {
        1234  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1019   1235   
        type Error = crate::model::list_of_range_long_internal::ConstraintViolation;
        1236  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1020   1237   
        fn try_from(value: ListOfRangeLongUnconstrained) -> std::result::Result<Self, Self::Error> {
        1238  +
            /* UnconstrainedCollectionGenerator.kt:127 */
 1021   1239   
            let res: ::std::result::Result<
 1022   1240   
                ::std::vec::Vec<crate::model::RangeLong>,
 1023   1241   
                (
 1024   1242   
                    usize,
 1025   1243   
                    crate::model::range_long_internal::ConstraintViolation,
 1026   1244   
                ),
 1027   1245   
            > = value
 1028   1246   
                .0
 1029   1247   
                .into_iter()
 1030   1248   
                .enumerate()
 1031   1249   
                .map(|(idx, inner)| {
 1032   1250   
                    inner
 1033   1251   
                        .try_into()
 1034   1252   
                        .map_err(|inner_violation| (idx, inner_violation))
 1035   1253   
                })
 1036   1254   
                .collect();
 1037   1255   
            let inner =
 1038   1256   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1257  +
            /* UnconstrainedCollectionGenerator.kt:191 */
 1039   1258   
            Ok(Self(inner))
        1259  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1040   1260   
        }
        1261  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1041   1262   
    }
        1263  +
        1264  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1042   1265   
}
 1043   1266   
pub(crate) mod map_of_range_short_unconstrained {
 1044   1267   
        1268  +
    /* UnconstrainedMapGenerator.kt:79 */
 1045   1269   
    #[derive(Debug, Clone)]
 1046   1270   
    pub(crate) struct MapOfRangeShortUnconstrained(
 1047   1271   
        pub(crate) std::collections::HashMap<::std::string::String, i16>,
 1048   1272   
    );
 1049   1273   
 1050   1274   
    impl From<MapOfRangeShortUnconstrained>
 1051   1275   
        for crate::constrained::MaybeConstrained<
 1052   1276   
            crate::constrained::map_of_range_short_constrained::MapOfRangeShortConstrained,
 1053   1277   
        >
 1054   1278   
    {
 1055   1279   
        fn from(value: MapOfRangeShortUnconstrained) -> Self {
 1056   1280   
            Self::Unconstrained(value)
 1057   1281   
        }
 1058   1282   
    }
        1283  +
    /* UnconstrainedMapGenerator.kt:101 */
 1059   1284   
    impl std::convert::TryFrom<MapOfRangeShortUnconstrained>
 1060   1285   
        for crate::constrained::map_of_range_short_constrained::MapOfRangeShortConstrained
 1061   1286   
    {
        1287  +
        /* UnconstrainedMapGenerator.kt:102 */
 1062   1288   
        type Error = crate::model::map_of_range_short_internal::ConstraintViolation;
        1289  +
        /* UnconstrainedMapGenerator.kt:104 */
 1063   1290   
        fn try_from(value: MapOfRangeShortUnconstrained) -> std::result::Result<Self, Self::Error> {
        1291  +
            /* UnconstrainedMapGenerator.kt:186 */
 1064   1292   
            let res: ::std::result::Result<
 1065   1293   
                ::std::collections::HashMap<::std::string::String, crate::model::RangeShort>,
 1066   1294   
                Self::Error,
 1067   1295   
            > = value
 1068   1296   
                .0
 1069   1297   
                .into_iter()
 1070   1298   
                .map(|(k, v)| match crate::model::RangeShort::try_from(v) {
 1071   1299   
                    Ok(v) => Ok((k, v)),
 1072   1300   
                    Err(inner_constraint_violation) => {
 1073   1301   
                        Err(Self::Error::Value(k, inner_constraint_violation))
 1074   1302   
                    }
 1075   1303   
                })
 1076   1304   
                .collect();
 1077   1305   
            let hm = res?;
        1306  +
            /* UnconstrainedMapGenerator.kt:247 */
 1078   1307   
            Ok(Self(hm))
        1308  +
            /* UnconstrainedMapGenerator.kt:104 */
 1079   1309   
        }
        1310  +
        /* UnconstrainedMapGenerator.kt:101 */
 1080   1311   
    }
        1312  +
        1313  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1081   1314   
}
 1082   1315   
pub(crate) mod set_of_range_short_unconstrained {
 1083   1316   
        1317  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1084   1318   
    #[derive(Debug, Clone)]
 1085   1319   
    pub(crate) struct SetOfRangeShortUnconstrained(pub(crate) std::vec::Vec<i16>);
 1086   1320   
 1087   1321   
    impl From<SetOfRangeShortUnconstrained>
 1088   1322   
        for crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>
 1089   1323   
    {
 1090   1324   
        fn from(value: SetOfRangeShortUnconstrained) -> Self {
 1091   1325   
            Self::Unconstrained(value)
 1092   1326   
        }
 1093   1327   
    }
        1328  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1094   1329   
    impl std::convert::TryFrom<SetOfRangeShortUnconstrained> for crate::model::SetOfRangeShort {
        1330  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1095   1331   
        type Error = crate::model::set_of_range_short_internal::ConstraintViolation;
        1332  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1096   1333   
        fn try_from(value: SetOfRangeShortUnconstrained) -> std::result::Result<Self, Self::Error> {
        1334  +
            /* UnconstrainedCollectionGenerator.kt:127 */
 1097   1335   
            let res: ::std::result::Result<
 1098   1336   
                ::std::vec::Vec<crate::model::RangeShort>,
 1099   1337   
                (
 1100   1338   
                    usize,
 1101   1339   
                    crate::model::range_short_internal::ConstraintViolation,
 1102   1340   
                ),
 1103   1341   
            > = value
 1104   1342   
                .0
 1105   1343   
                .into_iter()
 1106   1344   
                .enumerate()
 1107   1345   
                .map(|(idx, inner)| {
 1108   1346   
                    inner
 1109   1347   
                        .try_into()
 1110   1348   
                        .map_err(|inner_violation| (idx, inner_violation))
 1111   1349   
                })
 1112   1350   
                .collect();
 1113   1351   
            let inner =
 1114   1352   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1353  +
            /* UnconstrainedCollectionGenerator.kt:189 */
 1115   1354   
            Self::try_from(inner)
        1355  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1116   1356   
        }
        1357  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1117   1358   
    }
        1359  +
        1360  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1118   1361   
}
 1119   1362   
pub(crate) mod list_of_range_short_unconstrained {
 1120   1363   
        1364  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1121   1365   
    #[derive(Debug, Clone)]
 1122   1366   
    pub(crate) struct ListOfRangeShortUnconstrained(pub(crate) std::vec::Vec<i16>);
 1123   1367   
 1124   1368   
    impl From<ListOfRangeShortUnconstrained>
 1125   1369   
        for crate::constrained::MaybeConstrained<
 1126   1370   
            crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained,
 1127   1371   
        >
 1128   1372   
    {
 1129   1373   
        fn from(value: ListOfRangeShortUnconstrained) -> Self {
 1130   1374   
            Self::Unconstrained(value)
 1131   1375   
        }
 1132   1376   
    }
        1377  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1133   1378   
    impl std::convert::TryFrom<ListOfRangeShortUnconstrained>
 1134   1379   
        for crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained
 1135   1380   
    {
        1381  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1136   1382   
        type Error = crate::model::list_of_range_short_internal::ConstraintViolation;
        1383  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1137   1384   
        fn try_from(
 1138   1385   
            value: ListOfRangeShortUnconstrained,
 1139   1386   
        ) -> std::result::Result<Self, Self::Error> {
        1387  +
            /* UnconstrainedCollectionGenerator.kt:127 */
 1140   1388   
            let res: ::std::result::Result<
 1141   1389   
                ::std::vec::Vec<crate::model::RangeShort>,
 1142   1390   
                (
 1143   1391   
                    usize,
 1144   1392   
                    crate::model::range_short_internal::ConstraintViolation,
 1145   1393   
                ),
 1146   1394   
            > = value
 1147   1395   
                .0
 1148   1396   
                .into_iter()
 1149   1397   
                .enumerate()
 1150   1398   
                .map(|(idx, inner)| {
 1151   1399   
                    inner
 1152   1400   
                        .try_into()
 1153   1401   
                        .map_err(|inner_violation| (idx, inner_violation))
 1154   1402   
                })
 1155   1403   
                .collect();
 1156   1404   
            let inner =
 1157   1405   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1406  +
            /* UnconstrainedCollectionGenerator.kt:191 */
 1158   1407   
            Ok(Self(inner))
        1408  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1159   1409   
        }
        1410  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1160   1411   
    }
        1412  +
        1413  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1161   1414   
}
 1162   1415   
pub(crate) mod map_of_range_integer_unconstrained {
 1163   1416   
        1417  +
    /* UnconstrainedMapGenerator.kt:79 */
 1164   1418   
    #[derive(Debug, Clone)]
 1165   1419   
    pub(crate) struct MapOfRangeIntegerUnconstrained(
 1166   1420   
        pub(crate) std::collections::HashMap<::std::string::String, i32>,
 1167   1421   
    );
 1168   1422   
 1169   1423   
    impl From<MapOfRangeIntegerUnconstrained>
 1170   1424   
        for crate::constrained::MaybeConstrained<
 1171   1425   
            crate::constrained::map_of_range_integer_constrained::MapOfRangeIntegerConstrained,
 1172   1426   
        >
 1173   1427   
    {
 1174   1428   
        fn from(value: MapOfRangeIntegerUnconstrained) -> Self {
 1175   1429   
            Self::Unconstrained(value)
 1176   1430   
        }
 1177   1431   
    }
        1432  +
    /* UnconstrainedMapGenerator.kt:101 */
 1178   1433   
    impl std::convert::TryFrom<MapOfRangeIntegerUnconstrained>
 1179   1434   
        for crate::constrained::map_of_range_integer_constrained::MapOfRangeIntegerConstrained
 1180   1435   
    {
        1436  +
        /* UnconstrainedMapGenerator.kt:102 */
 1181   1437   
        type Error = crate::model::map_of_range_integer_internal::ConstraintViolation;
        1438  +
        /* UnconstrainedMapGenerator.kt:104 */
 1182   1439   
        fn try_from(
 1183   1440   
            value: MapOfRangeIntegerUnconstrained,
 1184   1441   
        ) -> std::result::Result<Self, Self::Error> {
        1442  +
            /* UnconstrainedMapGenerator.kt:186 */
 1185   1443   
            let res: ::std::result::Result<
 1186   1444   
                ::std::collections::HashMap<::std::string::String, crate::model::RangeInteger>,
 1187   1445   
                Self::Error,
 1188   1446   
            > = value
 1189   1447   
                .0
 1190   1448   
                .into_iter()
 1191   1449   
                .map(|(k, v)| match crate::model::RangeInteger::try_from(v) {
 1192   1450   
                    Ok(v) => Ok((k, v)),
 1193   1451   
                    Err(inner_constraint_violation) => {
 1194   1452   
                        Err(Self::Error::Value(k, inner_constraint_violation))
 1195   1453   
                    }
 1196   1454   
                })
 1197   1455   
                .collect();
 1198   1456   
            let hm = res?;
        1457  +
            /* UnconstrainedMapGenerator.kt:247 */
 1199   1458   
            Ok(Self(hm))
        1459  +
            /* UnconstrainedMapGenerator.kt:104 */
 1200   1460   
        }
        1461  +
        /* UnconstrainedMapGenerator.kt:101 */
 1201   1462   
    }
        1463  +
        1464  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1202   1465   
}
 1203   1466   
pub(crate) mod set_of_range_integer_unconstrained {
 1204   1467   
        1468  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1205   1469   
    #[derive(Debug, Clone)]
 1206   1470   
    pub(crate) struct SetOfRangeIntegerUnconstrained(pub(crate) std::vec::Vec<i32>);
 1207   1471   
 1208   1472   
    impl From<SetOfRangeIntegerUnconstrained>
 1209   1473   
        for crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>
 1210   1474   
    {
 1211   1475   
        fn from(value: SetOfRangeIntegerUnconstrained) -> Self {
 1212   1476   
            Self::Unconstrained(value)
 1213   1477   
        }
 1214   1478   
    }
        1479  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1215   1480   
    impl std::convert::TryFrom<SetOfRangeIntegerUnconstrained> for crate::model::SetOfRangeInteger {
        1481  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1216   1482   
        type Error = crate::model::set_of_range_integer_internal::ConstraintViolation;
        1483  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1217   1484   
        fn try_from(
 1218   1485   
            value: SetOfRangeIntegerUnconstrained,
 1219   1486   
        ) -> std::result::Result<Self, Self::Error> {
        1487  +
            /* UnconstrainedCollectionGenerator.kt:127 */
 1220   1488   
            let res: ::std::result::Result<
 1221   1489   
                ::std::vec::Vec<crate::model::RangeInteger>,
 1222   1490   
                (
 1223   1491   
                    usize,
 1224   1492   
                    crate::model::range_integer_internal::ConstraintViolation,
 1225   1493   
                ),
 1226   1494   
            > = value
 1227   1495   
                .0
 1228   1496   
                .into_iter()
 1229   1497   
                .enumerate()
 1230   1498   
                .map(|(idx, inner)| {
 1231   1499   
                    inner
 1232   1500   
                        .try_into()
 1233   1501   
                        .map_err(|inner_violation| (idx, inner_violation))
 1234   1502   
                })
 1235   1503   
                .collect();
 1236   1504   
            let inner =
 1237   1505   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1506  +
            /* UnconstrainedCollectionGenerator.kt:189 */
 1238   1507   
            Self::try_from(inner)
        1508  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1239   1509   
        }
        1510  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1240   1511   
    }
        1512  +
        1513  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1241   1514   
}
 1242   1515   
pub(crate) mod list_of_range_integer_unconstrained {
 1243   1516   
        1517  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1244   1518   
    #[derive(Debug, Clone)]
 1245   1519   
    pub(crate) struct ListOfRangeIntegerUnconstrained(pub(crate) std::vec::Vec<i32>);
 1246   1520   
 1247   1521   
    impl From<ListOfRangeIntegerUnconstrained>
 1248   1522   
        for crate::constrained::MaybeConstrained<
 1249   1523   
            crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained,
 1250   1524   
        >
 1251   1525   
    {
 1252   1526   
        fn from(value: ListOfRangeIntegerUnconstrained) -> Self {
 1253   1527   
            Self::Unconstrained(value)
 1254   1528   
        }
 1255   1529   
    }
        1530  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1256   1531   
    impl std::convert::TryFrom<ListOfRangeIntegerUnconstrained>
 1257   1532   
        for crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained
 1258   1533   
    {
        1534  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1259   1535   
        type Error = crate::model::list_of_range_integer_internal::ConstraintViolation;
        1536  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1260   1537   
        fn try_from(
 1261   1538   
            value: ListOfRangeIntegerUnconstrained,
 1262   1539   
        ) -> std::result::Result<Self, Self::Error> {
        1540  +
            /* UnconstrainedCollectionGenerator.kt:127 */
 1263   1541   
            let res: ::std::result::Result<
 1264   1542   
                ::std::vec::Vec<crate::model::RangeInteger>,
 1265   1543   
                (
 1266   1544   
                    usize,
 1267   1545   
                    crate::model::range_integer_internal::ConstraintViolation,
 1268   1546   
                ),
 1269   1547   
            > = value
 1270   1548   
                .0
 1271   1549   
                .into_iter()
 1272   1550   
                .enumerate()
 1273   1551   
                .map(|(idx, inner)| {
 1274   1552   
                    inner
 1275   1553   
                        .try_into()
 1276   1554   
                        .map_err(|inner_violation| (idx, inner_violation))
 1277   1555   
                })
 1278   1556   
                .collect();
 1279   1557   
            let inner =
 1280   1558   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1559  +
            /* UnconstrainedCollectionGenerator.kt:191 */
 1281   1560   
            Ok(Self(inner))
        1561  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1282   1562   
        }
        1563  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1283   1564   
    }
        1565  +
        1566  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1284   1567   
}
 1285   1568   
pub(crate) mod map_of_length_blob_unconstrained {
 1286   1569   
        1570  +
    /* UnconstrainedMapGenerator.kt:79 */
 1287   1571   
    #[derive(Debug, Clone)]
 1288   1572   
    pub(crate) struct MapOfLengthBlobUnconstrained(
 1289   1573   
        pub(crate) std::collections::HashMap<::std::string::String, ::aws_smithy_types::Blob>,
 1290   1574   
    );
 1291   1575   
 1292   1576   
    impl From<MapOfLengthBlobUnconstrained>
 1293   1577   
        for crate::constrained::MaybeConstrained<
 1294   1578   
            crate::constrained::map_of_length_blob_constrained::MapOfLengthBlobConstrained,
 1295   1579   
        >
 1296   1580   
    {
 1297   1581   
        fn from(value: MapOfLengthBlobUnconstrained) -> Self {
 1298   1582   
            Self::Unconstrained(value)
 1299   1583   
        }
 1300   1584   
    }
        1585  +
    /* UnconstrainedMapGenerator.kt:101 */
 1301   1586   
    impl std::convert::TryFrom<MapOfLengthBlobUnconstrained>
 1302   1587   
        for crate::constrained::map_of_length_blob_constrained::MapOfLengthBlobConstrained
 1303   1588   
    {
        1589  +
        /* UnconstrainedMapGenerator.kt:102 */
 1304   1590   
        type Error = crate::model::map_of_length_blob_internal::ConstraintViolation;
        1591  +
        /* UnconstrainedMapGenerator.kt:104 */
 1305   1592   
        fn try_from(value: MapOfLengthBlobUnconstrained) -> std::result::Result<Self, Self::Error> {
        1593  +
            /* UnconstrainedMapGenerator.kt:186 */
 1306   1594   
            let res: ::std::result::Result<
 1307   1595   
                ::std::collections::HashMap<::std::string::String, crate::model::LengthBlob>,
 1308   1596   
                Self::Error,
 1309   1597   
            > = value
 1310   1598   
                .0
 1311   1599   
                .into_iter()
 1312   1600   
                .map(|(k, v)| match crate::model::LengthBlob::try_from(v) {
 1313   1601   
                    Ok(v) => Ok((k, v)),
 1314   1602   
                    Err(inner_constraint_violation) => {
 1315   1603   
                        Err(Self::Error::Value(k, inner_constraint_violation))
 1316   1604   
                    }
 1317   1605   
                })
 1318   1606   
                .collect();
 1319   1607   
            let hm = res?;
        1608  +
            /* UnconstrainedMapGenerator.kt:247 */
 1320   1609   
            Ok(Self(hm))
        1610  +
            /* UnconstrainedMapGenerator.kt:104 */
 1321   1611   
        }
        1612  +
        /* UnconstrainedMapGenerator.kt:101 */
 1322   1613   
    }
        1614  +
        1615  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1323   1616   
}
 1324   1617   
pub(crate) mod list_of_length_blob_unconstrained {
 1325   1618   
        1619  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1326   1620   
    #[derive(Debug, Clone)]
 1327   1621   
    pub(crate) struct ListOfLengthBlobUnconstrained(
 1328   1622   
        pub(crate) std::vec::Vec<::aws_smithy_types::Blob>,
 1329   1623   
    );
 1330   1624   
 1331   1625   
    impl From<ListOfLengthBlobUnconstrained>
 1332   1626   
        for crate::constrained::MaybeConstrained<
 1333   1627   
            crate::constrained::list_of_length_blob_constrained::ListOfLengthBlobConstrained,
 1334   1628   
        >
 1335   1629   
    {
 1336   1630   
        fn from(value: ListOfLengthBlobUnconstrained) -> Self {
 1337   1631   
            Self::Unconstrained(value)
 1338   1632   
        }
 1339   1633   
    }
        1634  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1340   1635   
    impl std::convert::TryFrom<ListOfLengthBlobUnconstrained>
 1341   1636   
        for crate::constrained::list_of_length_blob_constrained::ListOfLengthBlobConstrained
 1342   1637   
    {
        1638  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1343   1639   
        type Error = crate::model::list_of_length_blob_internal::ConstraintViolation;
        1640  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1344   1641   
        fn try_from(
 1345   1642   
            value: ListOfLengthBlobUnconstrained,
 1346   1643   
        ) -> std::result::Result<Self, Self::Error> {
        1644  +
            /* UnconstrainedCollectionGenerator.kt:127 */
 1347   1645   
            let res: ::std::result::Result<
 1348   1646   
                ::std::vec::Vec<crate::model::LengthBlob>,
 1349   1647   
                (
 1350   1648   
                    usize,
 1351   1649   
                    crate::model::length_blob_internal::ConstraintViolation,
 1352   1650   
                ),
 1353   1651   
            > = value
 1354   1652   
                .0
 1355   1653   
                .into_iter()
 1356   1654   
                .enumerate()
 1357   1655   
                .map(|(idx, inner)| {
 1358   1656   
                    inner
 1359   1657   
                        .try_into()
 1360   1658   
                        .map_err(|inner_violation| (idx, inner_violation))
 1361   1659   
                })
 1362   1660   
                .collect();
 1363   1661   
            let inner =
 1364   1662   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1663  +
            /* UnconstrainedCollectionGenerator.kt:191 */
 1365   1664   
            Ok(Self(inner))
        1665  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1366   1666   
        }
        1667  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1367   1668   
    }
        1669  +
        1670  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1368   1671   
}
 1369   1672   
pub(crate) mod constrained_union_unconstrained {
 1370   1673   
        1674  +
    /* UnconstrainedUnionGenerator.kt:82 */
 1371   1675   
    #[allow(clippy::enum_variant_names)]
 1372   1676   
    #[derive(Debug, Clone)]
 1373   1677   
    pub(crate) enum ConstrainedUnionUnconstrained {
        1678  +
        /* UnconstrainedUnionGenerator.kt:95 */
 1374   1679   
        ConBList(crate::unconstrained::con_b_list_unconstrained::ConBListUnconstrained),
        1680  +
        /* UnconstrainedUnionGenerator.kt:95 */
 1375   1681   
        ConBMap(crate::unconstrained::con_b_map_unconstrained::ConBMapUnconstrained),
        1682  +
        /* UnconstrainedUnionGenerator.kt:95 */
 1376   1683   
        ConBSet(crate::unconstrained::con_b_set_unconstrained::ConBSetUnconstrained),
        1684  +
        /* UnconstrainedUnionGenerator.kt:95 */
 1377   1685   
        ConstrainedStructure(crate::model::con_b_internal::Builder),
 1378         -
        EnumString(::std::string::String),
        1686  +
        /* UnconstrainedUnionGenerator.kt:95 */ EnumString(::std::string::String),
        1687  +
        /* UnconstrainedUnionGenerator.kt:95 */
 1379   1688   
        LengthString(::std::string::String),
        1689  +
        /* UnconstrainedUnionGenerator.kt:82 */
 1380   1690   
    }
        1691  +
    /* UnconstrainedUnionGenerator.kt:103 */
 1381   1692   
    impl ::std::convert::TryFrom<ConstrainedUnionUnconstrained> for crate::model::ConstrainedUnion {
 1382   1693   
        type Error = crate::model::constrained_union_internal::ConstraintViolation;
 1383   1694   
 1384   1695   
        fn try_from(
 1385   1696   
            value: ConstrainedUnionUnconstrained,
 1386   1697   
        ) -> ::std::result::Result<Self, Self::Error> {
 1387   1698   
            Ok(
 1388   1699   
        match value {
 1389   1700   
            crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::ConBList(unconstrained) => Self::ConBList(
 1390   1701   
                {
 1391   1702   
                                        let constrained: crate::constrained::con_b_list_constrained::ConBListConstrained = unconstrained
 1392   1703   
                                            .try_into()
 1393   1704   
                                            .map_err(Self::Error::ConBList)?;
 1394   1705   
                                        constrained.into()
 1395   1706   
                                    }
 1396   1707   
            ),
 1397   1708   
            crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::ConBMap(unconstrained) => Self::ConBMap(
 1398   1709   
                {
 1399   1710   
                                        let constrained: crate::model::ConBMap = unconstrained
 1400   1711   
                                            .try_into()
 1401   1712   
                                            .map_err(Self::Error::ConBMap)?;
 1402   1713   
                                        constrained.into()
 1403   1714   
                                    }
 1404   1715   
            ),
 1405   1716   
            crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::ConBSet(unconstrained) => Self::ConBSet(
 1406   1717   
                {
 1407   1718   
                                        let constrained: crate::model::ConBSet = unconstrained
 1408   1719   
                                            .try_into()
 1409   1720   
                                            .map_err(Self::Error::ConBSet)?;
 1410   1721   
                                        constrained.into()
 1411   1722   
                                    }
 1412   1723   
            ),
 1413   1724   
            crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::ConstrainedStructure(unconstrained) => Self::ConstrainedStructure(
 1414   1725   
                unconstrained
 1415   1726   
                                        .try_into()
 1416   1727   
                                        
 1417   1728   
                                        
 1418   1729   
                                        .map_err(Self::Error::ConstrainedStructure)?
 1419   1730   
            ),
 1420   1731   
            crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::EnumString(unconstrained) => Self::EnumString(
 1421   1732   
                unconstrained
 1422   1733   
                                        .try_into()
 1423   1734   
                                        
 1424   1735   
                                        
 1425   1736   
                                        .map_err(Self::Error::EnumString)?
 1426   1737   
            ),
 1427   1738   
            crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::LengthString(unconstrained) => Self::LengthString(
 1428   1739   
                {
 1429   1740   
                                        let constrained: crate::model::LengthString = unconstrained
 1430   1741   
                                            .try_into()
 1431   1742   
                                            .map_err(Self::Error::LengthString)?;
 1432   1743   
                                        constrained.into()
 1433   1744   
                                    }
 1434   1745   
            ),
 1435   1746   
        }
 1436   1747   
    )
 1437   1748   
        }
 1438   1749   
    }
        1750  +
        1751  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1439   1752   
}
 1440   1753   
pub(crate) mod con_b_set_unconstrained {
 1441   1754   
        1755  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1442   1756   
    #[derive(Debug, Clone)]
 1443   1757   
    pub(crate) struct ConBSetUnconstrained(
 1444   1758   
        pub(crate)  std::vec::Vec<
 1445   1759   
            crate::unconstrained::con_b_set_inner_unconstrained::ConBSetInnerUnconstrained,
 1446   1760   
        >,
 1447   1761   
    );
 1448   1762   
 1449   1763   
    impl From<ConBSetUnconstrained> for crate::constrained::MaybeConstrained<crate::model::ConBSet> {
 1450   1764   
        fn from(value: ConBSetUnconstrained) -> Self {
 1451   1765   
            Self::Unconstrained(value)
 1452   1766   
        }
 1453   1767   
    }
        1768  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1454   1769   
    impl std::convert::TryFrom<ConBSetUnconstrained> for crate::model::ConBSet {
        1770  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1455   1771   
        type Error = crate::model::con_b_set_internal::ConstraintViolation;
        1772  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1456   1773   
        fn try_from(value: ConBSetUnconstrained) -> std::result::Result<Self, Self::Error> {
        1774  +
            /* UnconstrainedCollectionGenerator.kt:127 */
 1457   1775   
            let res: ::std::result::Result<
 1458   1776   
                ::std::vec::Vec<crate::model::ConBSetInner>,
 1459   1777   
                (
 1460   1778   
                    usize,
 1461   1779   
                    crate::model::con_b_set_inner_internal::ConstraintViolation,
 1462   1780   
                ),
 1463   1781   
            > = value
 1464   1782   
                .0
 1465   1783   
                .into_iter()
 1466   1784   
                .enumerate()
 1467   1785   
                .map(|(idx, inner)| {
 1468   1786   
                    inner
 1469   1787   
                        .try_into()
 1470   1788   
                        .map_err(|inner_violation| (idx, inner_violation))
 1471   1789   
                })
 1472   1790   
                .collect();
 1473   1791   
            let inner =
 1474   1792   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1793  +
            /* UnconstrainedCollectionGenerator.kt:189 */
 1475   1794   
            Self::try_from(inner)
        1795  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1476   1796   
        }
        1797  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1477   1798   
    }
        1799  +
        1800  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1478   1801   
}
 1479   1802   
pub(crate) mod con_b_set_inner_unconstrained {
 1480   1803   
        1804  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1481   1805   
    #[derive(Debug, Clone)]
 1482   1806   
    pub(crate) struct ConBSetInnerUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
 1483   1807   
 1484   1808   
    impl From<ConBSetInnerUnconstrained>
 1485   1809   
        for crate::constrained::MaybeConstrained<crate::model::ConBSetInner>
 1486   1810   
    {
 1487   1811   
        fn from(value: ConBSetInnerUnconstrained) -> Self {
 1488   1812   
            Self::Unconstrained(value)
 1489   1813   
        }
 1490   1814   
    }
        1815  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1491   1816   
    impl std::convert::TryFrom<ConBSetInnerUnconstrained> for crate::model::ConBSetInner {
        1817  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1492   1818   
        type Error = crate::model::con_b_set_inner_internal::ConstraintViolation;
        1819  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1493   1820   
        fn try_from(value: ConBSetInnerUnconstrained) -> std::result::Result<Self, Self::Error> {
        1821  +
            /* UnconstrainedCollectionGenerator.kt:185 */
 1494   1822   
            let inner = value.0;
        1823  +
            /* UnconstrainedCollectionGenerator.kt:189 */
 1495   1824   
            Self::try_from(inner)
        1825  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1496   1826   
        }
        1827  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1497   1828   
    }
        1829  +
        1830  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1498   1831   
}
 1499   1832   
pub(crate) mod con_b_list_unconstrained {
 1500   1833   
        1834  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1501   1835   
    #[derive(Debug, Clone)]
 1502   1836   
    pub(crate) struct ConBListUnconstrained(
 1503   1837   
        pub(crate)  std::vec::Vec<
 1504   1838   
            crate::unconstrained::con_b_list_inner_unconstrained::ConBListInnerUnconstrained,
 1505   1839   
        >,
 1506   1840   
    );
 1507   1841   
 1508   1842   
    impl From<ConBListUnconstrained>
 1509   1843   
        for crate::constrained::MaybeConstrained<
 1510   1844   
            crate::constrained::con_b_list_constrained::ConBListConstrained,
 1511   1845   
        >
 1512   1846   
    {
 1513   1847   
        fn from(value: ConBListUnconstrained) -> Self {
 1514   1848   
            Self::Unconstrained(value)
 1515   1849   
        }
 1516   1850   
    }
        1851  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1517   1852   
    impl std::convert::TryFrom<ConBListUnconstrained>
 1518   1853   
        for crate::constrained::con_b_list_constrained::ConBListConstrained
 1519   1854   
    {
        1855  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1520   1856   
        type Error = crate::model::con_b_list_internal::ConstraintViolation;
        1857  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1521   1858   
        fn try_from(value: ConBListUnconstrained) -> std::result::Result<Self, Self::Error> {
        1859  +
            /* UnconstrainedCollectionGenerator.kt:127 */
 1522   1860   
            let res: ::std::result::Result<
 1523   1861   
                ::std::vec::Vec<
 1524   1862   
                    crate::constrained::con_b_list_inner_constrained::ConBListInnerConstrained,
 1525   1863   
                >,
 1526   1864   
                (
 1527   1865   
                    usize,
 1528   1866   
                    crate::model::con_b_list_inner_internal::ConstraintViolation,
 1529   1867   
                ),
 1530   1868   
            > = value
 1531   1869   
                .0
 1532   1870   
                .into_iter()
 1533   1871   
                .enumerate()
 1534   1872   
                .map(|(idx, inner)| {
 1535   1873   
                    inner
 1536   1874   
                        .try_into()
 1537   1875   
                        .map_err(|inner_violation| (idx, inner_violation))
 1538   1876   
                })
 1539   1877   
                .collect();
 1540   1878   
            let inner =
 1541   1879   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1880  +
            /* UnconstrainedCollectionGenerator.kt:191 */
 1542   1881   
            Ok(Self(inner))
        1882  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1543   1883   
        }
        1884  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1544   1885   
    }
        1886  +
        1887  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1545   1888   
}
 1546   1889   
pub(crate) mod con_b_list_inner_unconstrained {
 1547   1890   
        1891  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1548   1892   
    #[derive(Debug, Clone)]
 1549   1893   
    pub(crate) struct ConBListInnerUnconstrained(
 1550   1894   
        pub(crate) std::vec::Vec<crate::model::con_b_internal::Builder>,
 1551   1895   
    );
 1552   1896   
 1553   1897   
    impl From<ConBListInnerUnconstrained>
 1554   1898   
        for crate::constrained::MaybeConstrained<
 1555   1899   
            crate::constrained::con_b_list_inner_constrained::ConBListInnerConstrained,
 1556   1900   
        >
 1557   1901   
    {
 1558   1902   
        fn from(value: ConBListInnerUnconstrained) -> Self {
 1559   1903   
            Self::Unconstrained(value)
 1560   1904   
        }
 1561   1905   
    }
        1906  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1562   1907   
    impl std::convert::TryFrom<ConBListInnerUnconstrained>
 1563   1908   
        for crate::constrained::con_b_list_inner_constrained::ConBListInnerConstrained
 1564   1909   
    {
        1910  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1565   1911   
        type Error = crate::model::con_b_list_inner_internal::ConstraintViolation;
        1912  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1566   1913   
        fn try_from(value: ConBListInnerUnconstrained) -> std::result::Result<Self, Self::Error> {
        1914  +
            /* UnconstrainedCollectionGenerator.kt:127 */
 1567   1915   
            let res: ::std::result::Result<
 1568   1916   
                ::std::vec::Vec<crate::model::ConB>,
 1569   1917   
                (usize, crate::model::con_b_internal::ConstraintViolation),
 1570   1918   
            > = value
 1571   1919   
                .0
 1572   1920   
                .into_iter()
 1573   1921   
                .enumerate()
 1574   1922   
                .map(|(idx, inner)| {
 1575   1923   
                    inner
 1576   1924   
                        .try_into()
 1577   1925   
                        .map_err(|inner_violation| (idx, inner_violation))
 1578   1926   
                })
 1579   1927   
                .collect();
 1580   1928   
            let inner =
 1581   1929   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1930  +
            /* UnconstrainedCollectionGenerator.kt:191 */
 1582   1931   
            Ok(Self(inner))
        1932  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1583   1933   
        }
        1934  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1584   1935   
    }
        1936  +
        1937  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1585   1938   
}
 1586   1939   
pub(crate) mod sparse_length_list_unconstrained {
 1587   1940   
        1941  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1588   1942   
    #[derive(Debug, Clone)]
 1589   1943   
    pub(crate) struct SparseLengthListUnconstrained(
 1590   1944   
        pub(crate) std::vec::Vec<::std::option::Option<::std::string::String>>,
 1591   1945   
    );
 1592   1946   
 1593   1947   
    impl From<SparseLengthListUnconstrained>
 1594   1948   
        for crate::constrained::MaybeConstrained<crate::model::SparseLengthList>
 1595   1949   
    {
 1596   1950   
        fn from(value: SparseLengthListUnconstrained) -> Self {
 1597   1951   
            Self::Unconstrained(value)
 1598   1952   
        }
 1599   1953   
    }
        1954  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1600   1955   
    impl std::convert::TryFrom<SparseLengthListUnconstrained> for crate::model::SparseLengthList {
        1956  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1601   1957   
        type Error = crate::model::sparse_length_list_internal::ConstraintViolation;
        1958  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1602   1959   
        fn try_from(
 1603   1960   
            value: SparseLengthListUnconstrained,
 1604   1961   
        ) -> std::result::Result<Self, Self::Error> {
        1962  +
            /* UnconstrainedCollectionGenerator.kt:185 */
 1605   1963   
            let inner = value.0;
        1964  +
            /* UnconstrainedCollectionGenerator.kt:189 */
 1606   1965   
            Self::try_from(inner)
        1966  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1607   1967   
        }
        1968  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1608   1969   
    }
        1970  +
        1971  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1609   1972   
}
 1610   1973   
pub(crate) mod sparse_length_map_unconstrained {
 1611   1974   
        1975  +
    /* UnconstrainedMapGenerator.kt:79 */
 1612   1976   
    #[derive(Debug, Clone)]
 1613   1977   
    pub(crate) struct SparseLengthMapUnconstrained(
 1614   1978   
        pub(crate)  std::collections::HashMap<
 1615   1979   
            ::std::string::String,
 1616   1980   
            ::std::option::Option<::std::string::String>,
 1617   1981   
        >,
 1618   1982   
    );
 1619   1983   
 1620   1984   
    impl From<SparseLengthMapUnconstrained>
 1621   1985   
        for crate::constrained::MaybeConstrained<crate::model::SparseLengthMap>
 1622   1986   
    {
 1623   1987   
        fn from(value: SparseLengthMapUnconstrained) -> Self {
 1624   1988   
            Self::Unconstrained(value)
 1625   1989   
        }
 1626   1990   
    }
        1991  +
    /* UnconstrainedMapGenerator.kt:101 */
 1627   1992   
    impl std::convert::TryFrom<SparseLengthMapUnconstrained> for crate::model::SparseLengthMap {
        1993  +
        /* UnconstrainedMapGenerator.kt:102 */
 1628   1994   
        type Error = crate::model::sparse_length_map_internal::ConstraintViolation;
        1995  +
        /* UnconstrainedMapGenerator.kt:104 */
 1629   1996   
        fn try_from(value: SparseLengthMapUnconstrained) -> std::result::Result<Self, Self::Error> {
        1997  +
            /* UnconstrainedMapGenerator.kt:241 */
 1630   1998   
            let hm = value.0;
        1999  +
            /* UnconstrainedMapGenerator.kt:245 */
 1631   2000   
            Self::try_from(hm)
        2001  +
            /* UnconstrainedMapGenerator.kt:104 */
 1632   2002   
        }
        2003  +
        /* UnconstrainedMapGenerator.kt:101 */
 1633   2004   
    }
        2005  +
        2006  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1634   2007   
}
 1635   2008   
pub(crate) mod sparse_list_unconstrained {
 1636   2009   
        2010  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1637   2011   
    #[derive(Debug, Clone)]
 1638   2012   
    pub(crate) struct SparseListUnconstrained(
 1639   2013   
        pub(crate) std::vec::Vec<::std::option::Option<::std::string::String>>,
 1640   2014   
    );
 1641   2015   
 1642   2016   
    impl From<SparseListUnconstrained>
 1643   2017   
        for crate::constrained::MaybeConstrained<
 1644   2018   
            crate::constrained::sparse_list_constrained::SparseListConstrained,
 1645   2019   
        >
 1646   2020   
    {
 1647   2021   
        fn from(value: SparseListUnconstrained) -> Self {
 1648   2022   
            Self::Unconstrained(value)
 1649   2023   
        }
 1650   2024   
    }
        2025  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1651   2026   
    impl std::convert::TryFrom<SparseListUnconstrained>
 1652   2027   
        for crate::constrained::sparse_list_constrained::SparseListConstrained
 1653   2028   
    {
        2029  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1654   2030   
        type Error = crate::model::sparse_list_internal::ConstraintViolation;
        2031  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1655   2032   
        fn try_from(value: SparseListUnconstrained) -> std::result::Result<Self, Self::Error> {
        2033  +
            /* UnconstrainedCollectionGenerator.kt:127 */
 1656   2034   
            let res: ::std::result::Result<
 1657   2035   
                ::std::vec::Vec<::std::option::Option<crate::model::LengthString>>,
 1658   2036   
                (
 1659   2037   
                    usize,
 1660   2038   
                    crate::model::length_string_internal::ConstraintViolation,
 1661   2039   
                ),
 1662   2040   
            > = value
 1663   2041   
                .0
 1664   2042   
                .into_iter()
 1665   2043   
                .enumerate()
 1666   2044   
                .map(|(idx, inner)| {
 1667   2045   
                    inner
 1668   2046   
                        .map(|inner| {
 1669   2047   
                            inner
 1670   2048   
                                .try_into()
 1671   2049   
                                .map_err(|inner_violation| (idx, inner_violation))
 1672   2050   
                        })
 1673   2051   
                        .transpose()
 1674   2052   
                })
 1675   2053   
                .collect();
 1676   2054   
            let inner =
 1677   2055   
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        2056  +
            /* UnconstrainedCollectionGenerator.kt:191 */
 1678   2057   
            Ok(Self(inner))
        2058  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1679   2059   
        }
        2060  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1680   2061   
    }
        2062  +
        2063  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1681   2064   
}
 1682   2065   
pub(crate) mod sparse_map_unconstrained {
 1683   2066   
        2067  +
    /* UnconstrainedMapGenerator.kt:79 */
 1684   2068   
    #[derive(Debug, Clone)]
 1685   2069   
    pub(crate) struct SparseMapUnconstrained(
 1686   2070   
        pub(crate)  std::collections::HashMap<
 1687   2071   
            ::std::string::String,
 1688   2072   
            ::std::option::Option<
 1689   2073   
                crate::unconstrained::unique_items_list_unconstrained::UniqueItemsListUnconstrained,
 1690   2074   
            >,
 1691   2075   
        >,
 1692   2076   
    );
 1693   2077   
 1694   2078   
    impl From<SparseMapUnconstrained>
 1695   2079   
        for crate::constrained::MaybeConstrained<
 1696   2080   
            crate::constrained::sparse_map_constrained::SparseMapConstrained,
 1697   2081   
        >
 1698   2082   
    {
 1699   2083   
        fn from(value: SparseMapUnconstrained) -> Self {
 1700   2084   
            Self::Unconstrained(value)
 1701   2085   
        }
 1702   2086   
    }
        2087  +
    /* UnconstrainedMapGenerator.kt:101 */
 1703   2088   
    impl std::convert::TryFrom<SparseMapUnconstrained>
 1704   2089   
        for crate::constrained::sparse_map_constrained::SparseMapConstrained
 1705   2090   
    {
        2091  +
        /* UnconstrainedMapGenerator.kt:102 */
 1706   2092   
        type Error = crate::model::sparse_map_internal::ConstraintViolation;
        2093  +
        /* UnconstrainedMapGenerator.kt:104 */
 1707   2094   
        fn try_from(value: SparseMapUnconstrained) -> std::result::Result<Self, Self::Error> {
        2095  +
            /* UnconstrainedMapGenerator.kt:186 */
 1708   2096   
            let res: ::std::result::Result<
 1709   2097   
                ::std::collections::HashMap<
 1710   2098   
                    ::std::string::String,
 1711   2099   
                    ::std::option::Option<crate::model::UniqueItemsList>,
 1712   2100   
                >,
 1713   2101   
                Self::Error,
 1714   2102   
            > = value
 1715   2103   
                .0
 1716   2104   
                .into_iter()
 1717   2105   
                .map(|(k, v)| match v {
 1718   2106   
                    None => Ok((k, None)),
 1719   2107   
                    Some(v) => match crate::model::UniqueItemsList::try_from(v) {
 1720   2108   
                        Ok(v) => Ok((k, Some(v))),
 1721   2109   
                        Err(inner_constraint_violation) => {
 1722   2110   
                            Err(Self::Error::Value(k, inner_constraint_violation))
 1723   2111   
                        }
 1724   2112   
                    },
 1725   2113   
                })
 1726   2114   
                .collect();
 1727   2115   
            let hm = res?;
        2116  +
            /* UnconstrainedMapGenerator.kt:247 */
 1728   2117   
            Ok(Self(hm))
        2118  +
            /* UnconstrainedMapGenerator.kt:104 */
 1729   2119   
        }
        2120  +
        /* UnconstrainedMapGenerator.kt:101 */
 1730   2121   
    }
        2122  +
        2123  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1731   2124   
}
 1732   2125   
pub(crate) mod unique_items_list_unconstrained {
 1733   2126   
        2127  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1734   2128   
    #[derive(Debug, Clone)]
 1735   2129   
    pub(crate) struct UniqueItemsListUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
 1736   2130   
 1737   2131   
    impl From<UniqueItemsListUnconstrained>
 1738   2132   
        for crate::constrained::MaybeConstrained<crate::model::UniqueItemsList>
 1739   2133   
    {
 1740   2134   
        fn from(value: UniqueItemsListUnconstrained) -> Self {
 1741   2135   
            Self::Unconstrained(value)
 1742   2136   
        }
 1743   2137   
    }
        2138  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1744   2139   
    impl std::convert::TryFrom<UniqueItemsListUnconstrained> for crate::model::UniqueItemsList {
        2140  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1745   2141   
        type Error = crate::model::unique_items_list_internal::ConstraintViolation;
        2142  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1746   2143   
        fn try_from(value: UniqueItemsListUnconstrained) -> std::result::Result<Self, Self::Error> {
        2144  +
            /* UnconstrainedCollectionGenerator.kt:185 */
 1747   2145   
            let inner = value.0;
        2146  +
            /* UnconstrainedCollectionGenerator.kt:189 */
 1748   2147   
            Self::try_from(inner)
        2148  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1749   2149   
        }
        2150  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1750   2151   
    }
        2152  +
        2153  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1751   2154   
}
 1752   2155   
pub(crate) mod map_of_map_of_list_of_list_of_con_b_unconstrained {
 1753   2156   
        2157  +
    /* UnconstrainedMapGenerator.kt:79 */
 1754   2158   
    #[derive(Debug, Clone)]
 1755   2159   
    pub(crate) struct MapOfMapOfListOfListOfConBUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::map_of_list_of_list_of_con_b_unconstrained::MapOfListOfListOfConBUnconstrained>);
 1756   2160   
 1757   2161   
    impl From<MapOfMapOfListOfListOfConBUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_map_of_list_of_list_of_con_b_constrained::MapOfMapOfListOfListOfConBConstrained> {
 1758   2162   
                        fn from(value: MapOfMapOfListOfListOfConBUnconstrained) -> Self {
 1759   2163   
                            Self::Unconstrained(value)
 1760   2164   
                        }
 1761   2165   
                    }
        2166  +
    /* UnconstrainedMapGenerator.kt:101 */
 1762   2167   
    impl std::convert::TryFrom<MapOfMapOfListOfListOfConBUnconstrained> for crate::constrained::map_of_map_of_list_of_list_of_con_b_constrained::MapOfMapOfListOfListOfConBConstrained {
 1763         -
        type Error = crate::model::map_of_map_of_list_of_list_of_con_b_internal::ConstraintViolation;
 1764         -
        fn try_from(value: MapOfMapOfListOfListOfConBUnconstrained) -> std::result::Result<Self, Self::Error> {
 1765         -
            let res: ::std::result::Result<::std::collections::HashMap<::std::string::String, crate::constrained::map_of_list_of_list_of_con_b_constrained::MapOfListOfListOfConBConstrained>, Self::Error> = value.0
        2168  +
        /* UnconstrainedMapGenerator.kt:102 */type Error = crate::model::map_of_map_of_list_of_list_of_con_b_internal::ConstraintViolation;
        2169  +
        /* UnconstrainedMapGenerator.kt:104 */fn try_from(value: MapOfMapOfListOfListOfConBUnconstrained) -> std::result::Result<Self, Self::Error> {
        2170  +
            /* UnconstrainedMapGenerator.kt:186 */let res: ::std::result::Result<::std::collections::HashMap<::std::string::String, crate::constrained::map_of_list_of_list_of_con_b_constrained::MapOfListOfListOfConBConstrained>, Self::Error> = value.0
 1766   2171   
                                        .into_iter()
 1767   2172   
                                        .map(|(k, v)| {
 1768   2173   
                                            match crate::constrained::map_of_list_of_list_of_con_b_constrained::MapOfListOfListOfConBConstrained::try_from(v) {
 1769   2174   
                                                    Ok(v) => Ok((k, v)),
 1770   2175   
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
 1771   2176   
                                                }
 1772   2177   
                                        })
 1773   2178   
                                        .collect();
 1774   2179   
                                    let hm = res?;
 1775         -
            Ok(Self(hm))
 1776         -
        }
 1777         -
    }
        2180  +
            /* UnconstrainedMapGenerator.kt:247 */Ok(Self(hm))
        2181  +
        /* UnconstrainedMapGenerator.kt:104 */}
        2182  +
    /* UnconstrainedMapGenerator.kt:101 */}
        2183  +
        2184  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1778   2185   
}
 1779   2186   
pub(crate) mod map_of_list_of_list_of_con_b_unconstrained {
 1780   2187   
        2188  +
    /* UnconstrainedMapGenerator.kt:79 */
 1781   2189   
    #[derive(Debug, Clone)]
 1782   2190   
    pub(crate) struct MapOfListOfListOfConBUnconstrained(
 1783   2191   
        pub(crate)  std::collections::HashMap<
 1784   2192   
            ::std::string::String,
 1785   2193   
            crate::unconstrained::con_b_list_unconstrained::ConBListUnconstrained,
 1786   2194   
        >,
 1787   2195   
    );
 1788   2196   
 1789   2197   
    impl From<MapOfListOfListOfConBUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_list_of_con_b_constrained::MapOfListOfListOfConBConstrained> {
 1790   2198   
                        fn from(value: MapOfListOfListOfConBUnconstrained) -> Self {
 1791   2199   
                            Self::Unconstrained(value)
 1792   2200   
                        }
 1793   2201   
                    }
        2202  +
    /* UnconstrainedMapGenerator.kt:101 */
 1794   2203   
    impl std::convert::TryFrom<MapOfListOfListOfConBUnconstrained> for crate::constrained::map_of_list_of_list_of_con_b_constrained::MapOfListOfListOfConBConstrained {
 1795         -
        type Error = crate::model::map_of_list_of_list_of_con_b_internal::ConstraintViolation;
 1796         -
        fn try_from(value: MapOfListOfListOfConBUnconstrained) -> std::result::Result<Self, Self::Error> {
 1797         -
            let res: ::std::result::Result<::std::collections::HashMap<::std::string::String, crate::constrained::con_b_list_constrained::ConBListConstrained>, Self::Error> = value.0
        2204  +
        /* UnconstrainedMapGenerator.kt:102 */type Error = crate::model::map_of_list_of_list_of_con_b_internal::ConstraintViolation;
        2205  +
        /* UnconstrainedMapGenerator.kt:104 */fn try_from(value: MapOfListOfListOfConBUnconstrained) -> std::result::Result<Self, Self::Error> {
        2206  +
            /* UnconstrainedMapGenerator.kt:186 */let res: ::std::result::Result<::std::collections::HashMap<::std::string::String, crate::constrained::con_b_list_constrained::ConBListConstrained>, Self::Error> = value.0
 1798   2207   
                                        .into_iter()
 1799   2208   
                                        .map(|(k, v)| {
 1800   2209   
                                            match crate::constrained::con_b_list_constrained::ConBListConstrained::try_from(v) {
 1801   2210   
                                                    Ok(v) => Ok((k, v)),
 1802   2211   
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
 1803   2212   
                                                }
 1804   2213   
                                        })
 1805   2214   
                                        .collect();
 1806   2215   
                                    let hm = res?;
 1807         -
            Ok(Self(hm))
 1808         -
        }
 1809         -
    }
        2216  +
            /* UnconstrainedMapGenerator.kt:247 */Ok(Self(hm))
        2217  +
        /* UnconstrainedMapGenerator.kt:104 */}
        2218  +
    /* UnconstrainedMapGenerator.kt:101 */}
        2219  +
        2220  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1810   2221   
}
 1811   2222   
pub(crate) mod length_map_unconstrained {
 1812   2223   
        2224  +
    /* UnconstrainedMapGenerator.kt:79 */
 1813   2225   
    #[derive(Debug, Clone)]
 1814   2226   
    pub(crate) struct LengthMapUnconstrained(
 1815   2227   
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
 1816   2228   
    );
 1817   2229   
 1818   2230   
    impl From<LengthMapUnconstrained>
 1819   2231   
        for crate::constrained::MaybeConstrained<crate::model::LengthMap>
 1820   2232   
    {
 1821   2233   
        fn from(value: LengthMapUnconstrained) -> Self {
 1822   2234   
            Self::Unconstrained(value)
 1823   2235   
        }
 1824   2236   
    }
        2237  +
    /* UnconstrainedMapGenerator.kt:101 */
 1825   2238   
    impl std::convert::TryFrom<LengthMapUnconstrained> for crate::model::LengthMap {
        2239  +
        /* UnconstrainedMapGenerator.kt:102 */
 1826   2240   
        type Error = crate::model::length_map_internal::ConstraintViolation;
        2241  +
        /* UnconstrainedMapGenerator.kt:104 */
 1827   2242   
        fn try_from(value: LengthMapUnconstrained) -> std::result::Result<Self, Self::Error> {
        2243  +
            /* UnconstrainedMapGenerator.kt:241 */
 1828   2244   
            let hm = value.0;
        2245  +
            /* UnconstrainedMapGenerator.kt:245 */
 1829   2246   
            Self::try_from(hm)
        2247  +
            /* UnconstrainedMapGenerator.kt:104 */
 1830   2248   
        }
        2249  +
        /* UnconstrainedMapGenerator.kt:101 */
 1831   2250   
    }
        2251  +
        2252  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1832   2253   
}
 1833   2254   
pub(crate) mod sensitive_length_list_unconstrained {
 1834   2255   
        2256  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1835   2257   
    #[derive(Debug, Clone)]
 1836   2258   
    pub(crate) struct SensitiveLengthListUnconstrained(
 1837   2259   
        pub(crate) std::vec::Vec<crate::model::SensitiveStructure>,
 1838   2260   
    );
 1839   2261   
 1840   2262   
    impl From<SensitiveLengthListUnconstrained>
 1841   2263   
        for crate::constrained::MaybeConstrained<crate::model::SensitiveLengthList>
 1842   2264   
    {
 1843   2265   
        fn from(value: SensitiveLengthListUnconstrained) -> Self {
 1844   2266   
            Self::Unconstrained(value)
 1845   2267   
        }
 1846   2268   
    }
        2269  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1847   2270   
    impl std::convert::TryFrom<SensitiveLengthListUnconstrained> for crate::model::SensitiveLengthList {
        2271  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1848   2272   
        type Error = crate::model::sensitive_length_list_internal::ConstraintViolation;
        2273  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1849   2274   
        fn try_from(
 1850   2275   
            value: SensitiveLengthListUnconstrained,
 1851   2276   
        ) -> std::result::Result<Self, Self::Error> {
        2277  +
            /* UnconstrainedCollectionGenerator.kt:185 */
 1852   2278   
            let inner = value.0;
        2279  +
            /* UnconstrainedCollectionGenerator.kt:189 */
 1853   2280   
            Self::try_from(inner)
        2281  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1854   2282   
        }
        2283  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1855   2284   
    }
        2285  +
        2286  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1856   2287   
}
 1857   2288   
pub(crate) mod length_list_unconstrained {
 1858   2289   
        2290  +
    /* UnconstrainedCollectionGenerator.kt:77 */
 1859   2291   
    #[derive(Debug, Clone)]
 1860   2292   
    pub(crate) struct LengthListUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
 1861   2293   
 1862   2294   
    impl From<LengthListUnconstrained>
 1863   2295   
        for crate::constrained::MaybeConstrained<crate::model::LengthList>
 1864   2296   
    {
 1865   2297   
        fn from(value: LengthListUnconstrained) -> Self {
 1866   2298   
            Self::Unconstrained(value)
 1867   2299   
        }
 1868   2300   
    }
        2301  +
    /* UnconstrainedCollectionGenerator.kt:97 */
 1869   2302   
    impl std::convert::TryFrom<LengthListUnconstrained> for crate::model::LengthList {
        2303  +
        /* UnconstrainedCollectionGenerator.kt:98 */
 1870   2304   
        type Error = crate::model::length_list_internal::ConstraintViolation;
        2305  +
        /* UnconstrainedCollectionGenerator.kt:100 */
 1871   2306   
        fn try_from(value: LengthListUnconstrained) -> std::result::Result<Self, Self::Error> {
        2307  +
            /* UnconstrainedCollectionGenerator.kt:185 */
 1872   2308   
            let inner = value.0;
        2309  +
            /* UnconstrainedCollectionGenerator.kt:189 */
 1873   2310   
            Self::try_from(inner)
        2311  +
            /* UnconstrainedCollectionGenerator.kt:100 */
 1874   2312   
        }
        2313  +
        /* UnconstrainedCollectionGenerator.kt:97 */
 1875   2314   
    }
        2315  +
        2316  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1876   2317   
}

tmp-codegen-diff/codegen-server-test/ebs/rust-server-codegen/src/constrained.rs

@@ -1,1 +38,42 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
    3      3   
pub(crate) mod tags_constrained {
    4      4   
           5  +
    /* PubCrateConstrainedCollectionGenerator.kt:79 */
    5      6   
    #[derive(Debug, Clone)]
    6      7   
    pub(crate) struct TagsConstrained(pub(crate) std::vec::Vec<crate::model::Tag>);
    7      8   
    8      9   
    impl crate::constrained::Constrained for TagsConstrained {
    9     10   
        type Unconstrained = crate::unconstrained::tags_unconstrained::TagsUnconstrained;
   10     11   
    }
          12  +
    /* PubCrateConstrainedCollectionGenerator.kt:108 */
   11     13   
    impl ::std::convert::From<::std::vec::Vec<crate::model::Tag>> for TagsConstrained {
   12     14   
        fn from(v: ::std::vec::Vec<crate::model::Tag>) -> Self {
   13     15   
            Self(v)
   14     16   
        }
   15     17   
    }
   16     18   
   17     19   
    impl ::std::convert::From<TagsConstrained> for ::std::vec::Vec<crate::model::Tag> {
   18     20   
        fn from(v: TagsConstrained) -> Self {
   19     21   
            v.0
   20     22   
        }
   21     23   
    }
          24  +
          25  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
   22     26   
}
   23     27   
   24     28   
/*
   25     29   
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
   26     30   
 * SPDX-License-Identifier: Apache-2.0
   27     31   
 */
   28     32   
   29     33   
pub(crate) trait Constrained {
   30     34   
    type Unconstrained;
   31     35   
}

tmp-codegen-diff/codegen-server-test/ebs/rust-server-codegen/src/error.rs

@@ -1,1 +1488,3126 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ServerOperationErrorGenerator.kt:63 */
    2      3   
/// Error type for the `StartSnapshot` operation.
           4  +
/* ServerOperationErrorGenerator.kt:64 */
    3      5   
/// Each variant represents an error that can occur for the `StartSnapshot` operation.
           6  +
/* RustType.kt:516 */
    4      7   
#[derive(::std::fmt::Debug)]
    5         -
pub enum StartSnapshotError {
    6         -
    /// <p>An internal error has occurred.</p>
           8  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum StartSnapshotError {
           9  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>An internal error has occurred.</p>
          10  +
    /* ServerOperationErrorGenerator.kt:71 */
    7     11   
    InternalServerException(crate::error::InternalServerException),
    8         -
    /// <p>The specified resource does not exist.</p>
          12  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>The specified resource does not exist.</p>
          13  +
    /* ServerOperationErrorGenerator.kt:71 */
    9     14   
    ResourceNotFoundException(crate::error::ResourceNotFoundException),
   10         -
    /// <p>You do not have sufficient access to perform this action.</p>
          15  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>You do not have sufficient access to perform this action.</p>
          16  +
    /* ServerOperationErrorGenerator.kt:71 */
   11     17   
    AccessDeniedException(crate::error::AccessDeniedException),
   12         -
    /// <p>The request uses the same client token as a previous, but non-identical request.</p>
          18  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>The request uses the same client token as a previous, but non-identical request.</p>
          19  +
    /* ServerOperationErrorGenerator.kt:71 */
   13     20   
    ConflictException(crate::error::ConflictException),
   14         -
    /// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
          21  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
          22  +
    /* ServerOperationErrorGenerator.kt:71 */
   15     23   
    RequestThrottledException(crate::error::RequestThrottledException),
   16         -
    /// <p>Your current service quotas do not allow you to perform this action.</p>
          24  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>Your current service quotas do not allow you to perform this action.</p>
          25  +
    /* ServerOperationErrorGenerator.kt:71 */
   17     26   
    ServiceQuotaExceededException(crate::error::ServiceQuotaExceededException),
   18         -
    /// <p>You have reached the limit for concurrent API requests. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapi-performance">Optimizing performance of the EBS direct APIs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
          27  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>You have reached the limit for concurrent API requests. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapi-performance">Optimizing performance of the EBS direct APIs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
          28  +
    /* ServerOperationErrorGenerator.kt:71 */
   19     29   
    ConcurrentLimitExceededException(crate::error::ConcurrentLimitExceededException),
   20         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
          30  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
          31  +
    /* ServerOperationErrorGenerator.kt:71 */
   21     32   
    ValidationException(crate::error::ValidationException),
          33  +
    /* ServerOperationErrorGenerator.kt:66 */
   22     34   
}
          35  +
/* ServerOperationErrorGenerator.kt:75 */
   23     36   
impl ::std::fmt::Display for StartSnapshotError {
          37  +
    /* ServerOperationErrorGenerator.kt:76 */
   24     38   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          39  +
        /* ServerOperationErrorGenerator.kt:139 */
   25     40   
        match &self {
   26         -
            StartSnapshotError::InternalServerException(_inner) => _inner.fmt(f),
   27         -
            StartSnapshotError::ResourceNotFoundException(_inner) => _inner.fmt(f),
   28         -
            StartSnapshotError::AccessDeniedException(_inner) => _inner.fmt(f),
   29         -
            StartSnapshotError::ConflictException(_inner) => _inner.fmt(f),
   30         -
            StartSnapshotError::RequestThrottledException(_inner) => _inner.fmt(f),
   31         -
            StartSnapshotError::ServiceQuotaExceededException(_inner) => _inner.fmt(f),
   32         -
            StartSnapshotError::ConcurrentLimitExceededException(_inner) => _inner.fmt(f),
   33         -
            StartSnapshotError::ValidationException(_inner) => _inner.fmt(f),
          41  +
            /* ServerOperationErrorGenerator.kt:142 */
          42  +
            StartSnapshotError::InternalServerException(_inner) =>
          43  +
            /* ServerOperationErrorGenerator.kt:78 */
          44  +
            {
          45  +
                _inner.fmt(f)
          46  +
            }
          47  +
            ,
          48  +
            /* ServerOperationErrorGenerator.kt:142 */
          49  +
            StartSnapshotError::ResourceNotFoundException(_inner) =>
          50  +
            /* ServerOperationErrorGenerator.kt:78 */
          51  +
            {
          52  +
                _inner.fmt(f)
          53  +
            }
          54  +
            ,
          55  +
            /* ServerOperationErrorGenerator.kt:142 */
          56  +
            StartSnapshotError::AccessDeniedException(_inner) =>
          57  +
            /* ServerOperationErrorGenerator.kt:78 */
          58  +
            {
          59  +
                _inner.fmt(f)
          60  +
            }
          61  +
            ,
          62  +
            /* ServerOperationErrorGenerator.kt:142 */
          63  +
            StartSnapshotError::ConflictException(_inner) =>
          64  +
            /* ServerOperationErrorGenerator.kt:78 */
          65  +
            {
          66  +
                _inner.fmt(f)
          67  +
            }
          68  +
            ,
          69  +
            /* ServerOperationErrorGenerator.kt:142 */
          70  +
            StartSnapshotError::RequestThrottledException(_inner) =>
          71  +
            /* ServerOperationErrorGenerator.kt:78 */
          72  +
            {
          73  +
                _inner.fmt(f)
          74  +
            }
          75  +
            ,
          76  +
            /* ServerOperationErrorGenerator.kt:142 */
          77  +
            StartSnapshotError::ServiceQuotaExceededException(_inner) =>
          78  +
            /* ServerOperationErrorGenerator.kt:78 */
          79  +
            {
          80  +
                _inner.fmt(f)
          81  +
            }
          82  +
            ,
          83  +
            /* ServerOperationErrorGenerator.kt:142 */
          84  +
            StartSnapshotError::ConcurrentLimitExceededException(_inner) =>
          85  +
            /* ServerOperationErrorGenerator.kt:78 */
          86  +
            {
          87  +
                _inner.fmt(f)
          88  +
            }
          89  +
            ,
          90  +
            /* ServerOperationErrorGenerator.kt:142 */
          91  +
            StartSnapshotError::ValidationException(_inner) =>
          92  +
            /* ServerOperationErrorGenerator.kt:78 */
          93  +
            {
          94  +
                _inner.fmt(f)
          95  +
            }
          96  +
            /* ServerOperationErrorGenerator.kt:139 */
   34     97   
        }
          98  +
        /* ServerOperationErrorGenerator.kt:76 */
   35     99   
    }
         100  +
    /* ServerOperationErrorGenerator.kt:75 */
   36    101   
}
         102  +
/* ServerOperationErrorGenerator.kt:83 */
   37    103   
impl StartSnapshotError {
         104  +
    /* ServerOperationErrorGenerator.kt:87 */
   38    105   
    /// Returns `true` if the error kind is `StartSnapshotError::InternalServerException`.
         106  +
    /* ServerOperationErrorGenerator.kt:88 */
   39    107   
    pub fn is_internal_server_exception(&self) -> bool {
         108  +
        /* ServerOperationErrorGenerator.kt:89 */
   40    109   
        matches!(&self, StartSnapshotError::InternalServerException(_))
         110  +
        /* ServerOperationErrorGenerator.kt:88 */
   41    111   
    }
         112  +
    /* ServerOperationErrorGenerator.kt:87 */
   42    113   
    /// Returns `true` if the error kind is `StartSnapshotError::ResourceNotFoundException`.
         114  +
    /* ServerOperationErrorGenerator.kt:88 */
   43    115   
    pub fn is_resource_not_found_exception(&self) -> bool {
         116  +
        /* ServerOperationErrorGenerator.kt:89 */
   44    117   
        matches!(&self, StartSnapshotError::ResourceNotFoundException(_))
         118  +
        /* ServerOperationErrorGenerator.kt:88 */
   45    119   
    }
         120  +
    /* ServerOperationErrorGenerator.kt:87 */
   46    121   
    /// Returns `true` if the error kind is `StartSnapshotError::AccessDeniedException`.
         122  +
    /* ServerOperationErrorGenerator.kt:88 */
   47    123   
    pub fn is_access_denied_exception(&self) -> bool {
         124  +
        /* ServerOperationErrorGenerator.kt:89 */
   48    125   
        matches!(&self, StartSnapshotError::AccessDeniedException(_))
         126  +
        /* ServerOperationErrorGenerator.kt:88 */
   49    127   
    }
         128  +
    /* ServerOperationErrorGenerator.kt:87 */
   50    129   
    /// Returns `true` if the error kind is `StartSnapshotError::ConflictException`.
         130  +
    /* ServerOperationErrorGenerator.kt:88 */
   51    131   
    pub fn is_conflict_exception(&self) -> bool {
         132  +
        /* ServerOperationErrorGenerator.kt:89 */
   52    133   
        matches!(&self, StartSnapshotError::ConflictException(_))
         134  +
        /* ServerOperationErrorGenerator.kt:88 */
   53    135   
    }
         136  +
    /* ServerOperationErrorGenerator.kt:87 */
   54    137   
    /// Returns `true` if the error kind is `StartSnapshotError::RequestThrottledException`.
         138  +
    /* ServerOperationErrorGenerator.kt:88 */
   55    139   
    pub fn is_request_throttled_exception(&self) -> bool {
         140  +
        /* ServerOperationErrorGenerator.kt:89 */
   56    141   
        matches!(&self, StartSnapshotError::RequestThrottledException(_))
         142  +
        /* ServerOperationErrorGenerator.kt:88 */
   57    143   
    }
         144  +
    /* ServerOperationErrorGenerator.kt:87 */
   58    145   
    /// Returns `true` if the error kind is `StartSnapshotError::ServiceQuotaExceededException`.
         146  +
    /* ServerOperationErrorGenerator.kt:88 */
   59    147   
    pub fn is_service_quota_exceeded_exception(&self) -> bool {
         148  +
        /* ServerOperationErrorGenerator.kt:89 */
   60    149   
        matches!(&self, StartSnapshotError::ServiceQuotaExceededException(_))
         150  +
        /* ServerOperationErrorGenerator.kt:88 */
   61    151   
    }
         152  +
    /* ServerOperationErrorGenerator.kt:87 */
   62    153   
    /// Returns `true` if the error kind is `StartSnapshotError::ConcurrentLimitExceededException`.
         154  +
    /* ServerOperationErrorGenerator.kt:88 */
   63    155   
    pub fn is_concurrent_limit_exceeded_exception(&self) -> bool {
         156  +
        /* ServerOperationErrorGenerator.kt:89 */
   64    157   
        matches!(
   65    158   
            &self,
   66    159   
            StartSnapshotError::ConcurrentLimitExceededException(_)
   67    160   
        )
         161  +
        /* ServerOperationErrorGenerator.kt:88 */
   68    162   
    }
         163  +
    /* ServerOperationErrorGenerator.kt:87 */
   69    164   
    /// Returns `true` if the error kind is `StartSnapshotError::ValidationException`.
         165  +
    /* ServerOperationErrorGenerator.kt:88 */
   70    166   
    pub fn is_validation_exception(&self) -> bool {
         167  +
        /* ServerOperationErrorGenerator.kt:89 */
   71    168   
        matches!(&self, StartSnapshotError::ValidationException(_))
         169  +
        /* ServerOperationErrorGenerator.kt:88 */
   72    170   
    }
         171  +
    /* ServerOperationErrorGenerator.kt:92 */
   73    172   
    /// Returns the error name string by matching the correct variant.
         173  +
    /* ServerOperationErrorGenerator.kt:93 */
   74    174   
    pub fn name(&self) -> &'static str {
         175  +
        /* ServerOperationErrorGenerator.kt:139 */
   75    176   
        match &self {
   76         -
            StartSnapshotError::InternalServerException(_inner) => _inner.name(),
   77         -
            StartSnapshotError::ResourceNotFoundException(_inner) => _inner.name(),
   78         -
            StartSnapshotError::AccessDeniedException(_inner) => _inner.name(),
   79         -
            StartSnapshotError::ConflictException(_inner) => _inner.name(),
   80         -
            StartSnapshotError::RequestThrottledException(_inner) => _inner.name(),
   81         -
            StartSnapshotError::ServiceQuotaExceededException(_inner) => _inner.name(),
   82         -
            StartSnapshotError::ConcurrentLimitExceededException(_inner) => _inner.name(),
   83         -
            StartSnapshotError::ValidationException(_inner) => _inner.name(),
         177  +
            /* ServerOperationErrorGenerator.kt:142 */
         178  +
            StartSnapshotError::InternalServerException(_inner) =>
         179  +
            /* ServerOperationErrorGenerator.kt:95 */
         180  +
            {
         181  +
                _inner.name()
         182  +
            }
         183  +
            ,
         184  +
            /* ServerOperationErrorGenerator.kt:142 */
         185  +
            StartSnapshotError::ResourceNotFoundException(_inner) =>
         186  +
            /* ServerOperationErrorGenerator.kt:95 */
         187  +
            {
         188  +
                _inner.name()
         189  +
            }
         190  +
            ,
         191  +
            /* ServerOperationErrorGenerator.kt:142 */
         192  +
            StartSnapshotError::AccessDeniedException(_inner) =>
         193  +
            /* ServerOperationErrorGenerator.kt:95 */
         194  +
            {
         195  +
                _inner.name()
         196  +
            }
         197  +
            ,
         198  +
            /* ServerOperationErrorGenerator.kt:142 */
         199  +
            StartSnapshotError::ConflictException(_inner) =>
         200  +
            /* ServerOperationErrorGenerator.kt:95 */
         201  +
            {
         202  +
                _inner.name()
         203  +
            }
         204  +
            ,
         205  +
            /* ServerOperationErrorGenerator.kt:142 */
         206  +
            StartSnapshotError::RequestThrottledException(_inner) =>
         207  +
            /* ServerOperationErrorGenerator.kt:95 */
         208  +
            {
         209  +
                _inner.name()
         210  +
            }
         211  +
            ,
         212  +
            /* ServerOperationErrorGenerator.kt:142 */
         213  +
            StartSnapshotError::ServiceQuotaExceededException(_inner) =>
         214  +
            /* ServerOperationErrorGenerator.kt:95 */
         215  +
            {
         216  +
                _inner.name()
         217  +
            }
         218  +
            ,
         219  +
            /* ServerOperationErrorGenerator.kt:142 */
         220  +
            StartSnapshotError::ConcurrentLimitExceededException(_inner) =>
         221  +
            /* ServerOperationErrorGenerator.kt:95 */
         222  +
            {
         223  +
                _inner.name()
         224  +
            }
         225  +
            ,
         226  +
            /* ServerOperationErrorGenerator.kt:142 */
         227  +
            StartSnapshotError::ValidationException(_inner) =>
         228  +
            /* ServerOperationErrorGenerator.kt:95 */
         229  +
            {
         230  +
                _inner.name()
   84    231   
            }
         232  +
            /* ServerOperationErrorGenerator.kt:139 */
   85    233   
        }
         234  +
        /* ServerOperationErrorGenerator.kt:93 */
         235  +
    }
         236  +
    /* ServerOperationErrorGenerator.kt:83 */
   86    237   
}
         238  +
/* ServerOperationErrorGenerator.kt:100 */
   87    239   
impl ::std::error::Error for StartSnapshotError {
         240  +
    /* ServerOperationErrorGenerator.kt:101 */
   88    241   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         242  +
        /* ServerOperationErrorGenerator.kt:139 */
   89    243   
        match &self {
   90         -
            StartSnapshotError::InternalServerException(_inner) => Some(_inner),
   91         -
            StartSnapshotError::ResourceNotFoundException(_inner) => Some(_inner),
   92         -
            StartSnapshotError::AccessDeniedException(_inner) => Some(_inner),
   93         -
            StartSnapshotError::ConflictException(_inner) => Some(_inner),
   94         -
            StartSnapshotError::RequestThrottledException(_inner) => Some(_inner),
   95         -
            StartSnapshotError::ServiceQuotaExceededException(_inner) => Some(_inner),
   96         -
            StartSnapshotError::ConcurrentLimitExceededException(_inner) => Some(_inner),
   97         -
            StartSnapshotError::ValidationException(_inner) => Some(_inner),
         244  +
            /* ServerOperationErrorGenerator.kt:142 */
         245  +
            StartSnapshotError::InternalServerException(_inner) =>
         246  +
            /* ServerOperationErrorGenerator.kt:103 */
         247  +
            {
         248  +
                Some(_inner)
         249  +
            }
         250  +
            ,
         251  +
            /* ServerOperationErrorGenerator.kt:142 */
         252  +
            StartSnapshotError::ResourceNotFoundException(_inner) =>
         253  +
            /* ServerOperationErrorGenerator.kt:103 */
         254  +
            {
         255  +
                Some(_inner)
         256  +
            }
         257  +
            ,
         258  +
            /* ServerOperationErrorGenerator.kt:142 */
         259  +
            StartSnapshotError::AccessDeniedException(_inner) =>
         260  +
            /* ServerOperationErrorGenerator.kt:103 */
         261  +
            {
         262  +
                Some(_inner)
         263  +
            }
         264  +
            ,
         265  +
            /* ServerOperationErrorGenerator.kt:142 */
         266  +
            StartSnapshotError::ConflictException(_inner) =>
         267  +
            /* ServerOperationErrorGenerator.kt:103 */
         268  +
            {
         269  +
                Some(_inner)
         270  +
            }
         271  +
            ,
         272  +
            /* ServerOperationErrorGenerator.kt:142 */
         273  +
            StartSnapshotError::RequestThrottledException(_inner) =>
         274  +
            /* ServerOperationErrorGenerator.kt:103 */
         275  +
            {
         276  +
                Some(_inner)
         277  +
            }
         278  +
            ,
         279  +
            /* ServerOperationErrorGenerator.kt:142 */
         280  +
            StartSnapshotError::ServiceQuotaExceededException(_inner) =>
         281  +
            /* ServerOperationErrorGenerator.kt:103 */
         282  +
            {
         283  +
                Some(_inner)
         284  +
            }
         285  +
            ,
         286  +
            /* ServerOperationErrorGenerator.kt:142 */
         287  +
            StartSnapshotError::ConcurrentLimitExceededException(_inner) =>
         288  +
            /* ServerOperationErrorGenerator.kt:103 */
         289  +
            {
         290  +
                Some(_inner)
         291  +
            }
         292  +
            ,
         293  +
            /* ServerOperationErrorGenerator.kt:142 */
         294  +
            StartSnapshotError::ValidationException(_inner) =>
         295  +
            /* ServerOperationErrorGenerator.kt:103 */
         296  +
            {
         297  +
                Some(_inner)
         298  +
            }
         299  +
            /* ServerOperationErrorGenerator.kt:139 */
   98    300   
        }
         301  +
        /* ServerOperationErrorGenerator.kt:101 */
   99    302   
    }
         303  +
    /* ServerOperationErrorGenerator.kt:100 */
  100    304   
}
         305  +
/* ServerOperationErrorGenerator.kt:110 */
  101    306   
impl ::std::convert::From<crate::error::InternalServerException>
  102    307   
    for crate::error::StartSnapshotError
  103    308   
{
         309  +
    /* ServerOperationErrorGenerator.kt:111 */
  104    310   
    fn from(variant: crate::error::InternalServerException) -> crate::error::StartSnapshotError {
         311  +
        /* ServerOperationErrorGenerator.kt:112 */
  105    312   
        Self::InternalServerException(variant)
         313  +
        /* ServerOperationErrorGenerator.kt:111 */
  106    314   
    }
         315  +
    /* ServerOperationErrorGenerator.kt:110 */
  107    316   
}
         317  +
/* ServerOperationErrorGenerator.kt:110 */
  108    318   
impl ::std::convert::From<crate::error::ResourceNotFoundException>
  109    319   
    for crate::error::StartSnapshotError
  110    320   
{
         321  +
    /* ServerOperationErrorGenerator.kt:111 */
  111    322   
    fn from(variant: crate::error::ResourceNotFoundException) -> crate::error::StartSnapshotError {
         323  +
        /* ServerOperationErrorGenerator.kt:112 */
  112    324   
        Self::ResourceNotFoundException(variant)
         325  +
        /* ServerOperationErrorGenerator.kt:111 */
  113    326   
    }
         327  +
    /* ServerOperationErrorGenerator.kt:110 */
  114    328   
}
         329  +
/* ServerOperationErrorGenerator.kt:110 */
  115    330   
impl ::std::convert::From<crate::error::AccessDeniedException>
  116    331   
    for crate::error::StartSnapshotError
  117    332   
{
         333  +
    /* ServerOperationErrorGenerator.kt:111 */
  118    334   
    fn from(variant: crate::error::AccessDeniedException) -> crate::error::StartSnapshotError {
         335  +
        /* ServerOperationErrorGenerator.kt:112 */
  119    336   
        Self::AccessDeniedException(variant)
         337  +
        /* ServerOperationErrorGenerator.kt:111 */
  120    338   
    }
         339  +
    /* ServerOperationErrorGenerator.kt:110 */
  121    340   
}
         341  +
/* ServerOperationErrorGenerator.kt:110 */
  122    342   
impl ::std::convert::From<crate::error::ConflictException> for crate::error::StartSnapshotError {
         343  +
    /* ServerOperationErrorGenerator.kt:111 */
  123    344   
    fn from(variant: crate::error::ConflictException) -> crate::error::StartSnapshotError {
         345  +
        /* ServerOperationErrorGenerator.kt:112 */
  124    346   
        Self::ConflictException(variant)
         347  +
        /* ServerOperationErrorGenerator.kt:111 */
  125    348   
    }
         349  +
    /* ServerOperationErrorGenerator.kt:110 */
  126    350   
}
         351  +
/* ServerOperationErrorGenerator.kt:110 */
  127    352   
impl ::std::convert::From<crate::error::RequestThrottledException>
  128    353   
    for crate::error::StartSnapshotError
  129    354   
{
         355  +
    /* ServerOperationErrorGenerator.kt:111 */
  130    356   
    fn from(variant: crate::error::RequestThrottledException) -> crate::error::StartSnapshotError {
         357  +
        /* ServerOperationErrorGenerator.kt:112 */
  131    358   
        Self::RequestThrottledException(variant)
         359  +
        /* ServerOperationErrorGenerator.kt:111 */
  132    360   
    }
         361  +
    /* ServerOperationErrorGenerator.kt:110 */
  133    362   
}
         363  +
/* ServerOperationErrorGenerator.kt:110 */
  134    364   
impl ::std::convert::From<crate::error::ServiceQuotaExceededException>
  135    365   
    for crate::error::StartSnapshotError
  136    366   
{
         367  +
    /* ServerOperationErrorGenerator.kt:111 */
  137    368   
    fn from(
  138    369   
        variant: crate::error::ServiceQuotaExceededException,
  139    370   
    ) -> crate::error::StartSnapshotError {
         371  +
        /* ServerOperationErrorGenerator.kt:112 */
  140    372   
        Self::ServiceQuotaExceededException(variant)
         373  +
        /* ServerOperationErrorGenerator.kt:111 */
  141    374   
    }
         375  +
    /* ServerOperationErrorGenerator.kt:110 */
  142    376   
}
         377  +
/* ServerOperationErrorGenerator.kt:110 */
  143    378   
impl ::std::convert::From<crate::error::ConcurrentLimitExceededException>
  144    379   
    for crate::error::StartSnapshotError
  145    380   
{
         381  +
    /* ServerOperationErrorGenerator.kt:111 */
  146    382   
    fn from(
  147    383   
        variant: crate::error::ConcurrentLimitExceededException,
  148    384   
    ) -> crate::error::StartSnapshotError {
         385  +
        /* ServerOperationErrorGenerator.kt:112 */
  149    386   
        Self::ConcurrentLimitExceededException(variant)
         387  +
        /* ServerOperationErrorGenerator.kt:111 */
  150    388   
    }
         389  +
    /* ServerOperationErrorGenerator.kt:110 */
  151    390   
}
         391  +
/* ServerOperationErrorGenerator.kt:110 */
  152    392   
impl ::std::convert::From<crate::error::ValidationException> for crate::error::StartSnapshotError {
         393  +
    /* ServerOperationErrorGenerator.kt:111 */
  153    394   
    fn from(variant: crate::error::ValidationException) -> crate::error::StartSnapshotError {
         395  +
        /* ServerOperationErrorGenerator.kt:112 */
  154    396   
        Self::ValidationException(variant)
         397  +
        /* ServerOperationErrorGenerator.kt:111 */
  155    398   
    }
         399  +
    /* ServerOperationErrorGenerator.kt:110 */
  156    400   
}
  157    401   
  158         -
/// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         402  +
/// /* StructureGenerator.kt:197 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         403  +
/* RustType.kt:516 */
  159    404   
#[derive(
  160    405   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  161    406   
)]
  162         -
pub struct ValidationException {
  163         -
    /// A summary of the validation failure.
         407  +
pub /* StructureGenerator.kt:201 */ struct ValidationException {
         408  +
    /// /* StructureGenerator.kt:231 */A summary of the validation failure.
  164    409   
    pub message: ::std::string::String,
  165         -
    /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
         410  +
    /// /* StructureGenerator.kt:231 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
  166    411   
    pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
         412  +
    /* StructureGenerator.kt:201 */
  167    413   
}
         414  +
/* StructureGenerator.kt:135 */
  168    415   
impl ValidationException {
  169         -
    /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
         416  +
    /// /* StructureGenerator.kt:231 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
         417  +
    /* StructureGenerator.kt:166 */
  170    418   
    pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
         419  +
        /* StructureGenerator.kt:169 */
  171    420   
        self.field_list.as_deref()
         421  +
        /* StructureGenerator.kt:166 */
  172    422   
    }
         423  +
    /* StructureGenerator.kt:135 */
  173    424   
}
         425  +
/* ErrorImplGenerator.kt:99 */
  174    426   
impl ValidationException {
         427  +
    /* ErrorImplGenerator.kt:128 */
  175    428   
    /// Returns the error message.
  176    429   
    pub fn message(&self) -> &str {
  177    430   
        &self.message
  178    431   
    }
         432  +
    /* ErrorImplGenerator.kt:141 */
  179    433   
    #[doc(hidden)]
  180    434   
    /// Returns the error name.
  181    435   
    pub fn name(&self) -> &'static str {
  182    436   
        "ValidationException"
  183    437   
    }
         438  +
    /* ErrorImplGenerator.kt:99 */
  184    439   
}
         440  +
/* ErrorImplGenerator.kt:153 */
  185    441   
impl ::std::fmt::Display for ValidationException {
         442  +
    /* ErrorImplGenerator.kt:154 */
  186    443   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         444  +
        /* ErrorImplGenerator.kt:161 */
  187    445   
        ::std::write!(f, "ValidationException")?;
         446  +
        /* ErrorImplGenerator.kt:166 */
  188    447   
        {
         448  +
            /* ErrorImplGenerator.kt:167 */
  189    449   
            ::std::write!(f, ": {}", &self.message)?;
         450  +
            /* ErrorImplGenerator.kt:166 */
  190    451   
        }
         452  +
        /* ErrorImplGenerator.kt:171 */
  191    453   
        Ok(())
         454  +
        /* ErrorImplGenerator.kt:154 */
  192    455   
    }
         456  +
    /* ErrorImplGenerator.kt:153 */
  193    457   
}
         458  +
/* ErrorImplGenerator.kt:175 */
  194    459   
impl ::std::error::Error for ValidationException {}
         460  +
/* ServerCodegenVisitor.kt:345 */
  195    461   
impl ValidationException {
  196         -
    /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
         462  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
         463  +
    /* ServerBuilderGenerator.kt:295 */
  197    464   
    pub fn builder() -> crate::error::validation_exception::Builder {
         465  +
        /* ServerBuilderGenerator.kt:296 */
  198    466   
        crate::error::validation_exception::Builder::default()
         467  +
        /* ServerBuilderGenerator.kt:295 */
  199    468   
    }
         469  +
    /* ServerCodegenVisitor.kt:345 */
  200    470   
}
  201    471   
  202         -
/// <p>You have reached the limit for concurrent API requests. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapi-performance">Optimizing performance of the EBS direct APIs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
         472  +
/// /* StructureGenerator.kt:197 */<p>You have reached the limit for concurrent API requests. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapi-performance">Optimizing performance of the EBS direct APIs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
         473  +
/* RustType.kt:516 */
  203    474   
#[derive(
  204    475   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  205    476   
)]
  206         -
pub struct ConcurrentLimitExceededException {
         477  +
pub /* StructureGenerator.kt:201 */ struct ConcurrentLimitExceededException {
         478  +
    /* StructureGenerator.kt:231 */
  207    479   
    #[allow(missing_docs)] // documentation missing in model
  208    480   
    pub message: ::std::option::Option<crate::model::ErrorMessage>,
         481  +
    /* StructureGenerator.kt:201 */
  209    482   
}
         483  +
/* ErrorImplGenerator.kt:99 */
  210    484   
impl ConcurrentLimitExceededException {
         485  +
    /* ErrorImplGenerator.kt:128 */
  211    486   
    /// Returns the error message.
  212    487   
    pub fn message(&self) -> Option<&crate::model::ErrorMessage> {
  213    488   
        self.message.as_ref()
  214    489   
    }
         490  +
    /* ErrorImplGenerator.kt:141 */
  215    491   
    #[doc(hidden)]
  216    492   
    /// Returns the error name.
  217    493   
    pub fn name(&self) -> &'static str {
  218    494   
        "ConcurrentLimitExceededException"
  219    495   
    }
         496  +
    /* ErrorImplGenerator.kt:99 */
  220    497   
}
         498  +
/* ErrorImplGenerator.kt:153 */
  221    499   
impl ::std::fmt::Display for ConcurrentLimitExceededException {
         500  +
    /* ErrorImplGenerator.kt:154 */
  222    501   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         502  +
        /* ErrorImplGenerator.kt:161 */
  223    503   
        ::std::write!(f, "ConcurrentLimitExceededException")?;
         504  +
        /* ErrorImplGenerator.kt:166 */
  224    505   
        if let ::std::option::Option::Some(inner_1) = &self.message {
         506  +
            /* ErrorImplGenerator.kt:166 */
  225    507   
            {
         508  +
                /* ErrorImplGenerator.kt:167 */
  226    509   
                ::std::write!(f, ": {}", inner_1)?;
         510  +
                /* ErrorImplGenerator.kt:166 */
  227    511   
            }
         512  +
            /* ErrorImplGenerator.kt:166 */
  228    513   
        }
         514  +
        /* ErrorImplGenerator.kt:171 */
  229    515   
        Ok(())
         516  +
        /* ErrorImplGenerator.kt:154 */
  230    517   
    }
         518  +
    /* ErrorImplGenerator.kt:153 */
  231    519   
}
         520  +
/* ErrorImplGenerator.kt:175 */
  232    521   
impl ::std::error::Error for ConcurrentLimitExceededException {}
         522  +
/* ServerCodegenVisitor.kt:345 */
  233    523   
impl ConcurrentLimitExceededException {
  234         -
    /// Creates a new builder-style object to manufacture [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
         524  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
         525  +
    /* ServerBuilderGenerator.kt:295 */
  235    526   
    pub fn builder() -> crate::error::concurrent_limit_exceeded_exception::Builder {
         527  +
        /* ServerBuilderGenerator.kt:296 */
  236    528   
        crate::error::concurrent_limit_exceeded_exception::Builder::default()
         529  +
        /* ServerBuilderGenerator.kt:295 */
  237    530   
    }
         531  +
    /* ServerCodegenVisitor.kt:345 */
  238    532   
}
  239    533   
  240         -
/// <p>Your current service quotas do not allow you to perform this action.</p>
         534  +
/// /* StructureGenerator.kt:197 */<p>Your current service quotas do not allow you to perform this action.</p>
         535  +
/* RustType.kt:516 */
  241    536   
#[derive(
  242    537   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  243    538   
)]
  244         -
pub struct ServiceQuotaExceededException {
  245         -
    /// <p>The reason for the exception.</p>
         539  +
pub /* StructureGenerator.kt:201 */ struct ServiceQuotaExceededException {
         540  +
    /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
  246    541   
    pub reason: ::std::option::Option<crate::model::ServiceQuotaExceededExceptionReason>,
         542  +
    /* StructureGenerator.kt:231 */
  247    543   
    #[allow(missing_docs)] // documentation missing in model
  248    544   
    pub message: ::std::option::Option<crate::model::ErrorMessage>,
         545  +
    /* StructureGenerator.kt:201 */
  249    546   
}
         547  +
/* StructureGenerator.kt:135 */
  250    548   
impl ServiceQuotaExceededException {
  251         -
    /// <p>The reason for the exception.</p>
         549  +
    /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
         550  +
    /* StructureGenerator.kt:166 */
  252    551   
    pub fn reason(
  253    552   
        &self,
  254    553   
    ) -> ::std::option::Option<&crate::model::ServiceQuotaExceededExceptionReason> {
         554  +
        /* StructureGenerator.kt:170 */
  255    555   
        self.reason.as_ref()
         556  +
        /* StructureGenerator.kt:166 */
  256    557   
    }
         558  +
    /* StructureGenerator.kt:135 */
  257    559   
}
         560  +
/* ErrorImplGenerator.kt:99 */
  258    561   
impl ServiceQuotaExceededException {
         562  +
    /* ErrorImplGenerator.kt:128 */
  259    563   
    /// Returns the error message.
  260    564   
    pub fn message(&self) -> Option<&crate::model::ErrorMessage> {
  261    565   
        self.message.as_ref()
  262    566   
    }
         567  +
    /* ErrorImplGenerator.kt:141 */
  263    568   
    #[doc(hidden)]
  264    569   
    /// Returns the error name.
  265    570   
    pub fn name(&self) -> &'static str {
  266    571   
        "ServiceQuotaExceededException"
  267    572   
    }
         573  +
    /* ErrorImplGenerator.kt:99 */
  268    574   
}
         575  +
/* ErrorImplGenerator.kt:153 */
  269    576   
impl ::std::fmt::Display for ServiceQuotaExceededException {
         577  +
    /* ErrorImplGenerator.kt:154 */
  270    578   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         579  +
        /* ErrorImplGenerator.kt:161 */
  271    580   
        ::std::write!(f, "ServiceQuotaExceededException")?;
         581  +
        /* ErrorImplGenerator.kt:166 */
  272    582   
        if let ::std::option::Option::Some(inner_2) = &self.message {
         583  +
            /* ErrorImplGenerator.kt:166 */
  273    584   
            {
         585  +
                /* ErrorImplGenerator.kt:167 */
  274    586   
                ::std::write!(f, ": {}", inner_2)?;
         587  +
                /* ErrorImplGenerator.kt:166 */
  275    588   
            }
         589  +
            /* ErrorImplGenerator.kt:166 */
  276    590   
        }
         591  +
        /* ErrorImplGenerator.kt:171 */
  277    592   
        Ok(())
         593  +
        /* ErrorImplGenerator.kt:154 */
  278    594   
    }
         595  +
    /* ErrorImplGenerator.kt:153 */
  279    596   
}
         597  +
/* ErrorImplGenerator.kt:175 */
  280    598   
impl ::std::error::Error for ServiceQuotaExceededException {}
         599  +
/* ServerCodegenVisitor.kt:345 */
  281    600   
impl ServiceQuotaExceededException {
  282         -
    /// Creates a new builder-style object to manufacture [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
         601  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
         602  +
    /* ServerBuilderGenerator.kt:295 */
  283    603   
    pub fn builder() -> crate::error::service_quota_exceeded_exception::Builder {
         604  +
        /* ServerBuilderGenerator.kt:296 */
  284    605   
        crate::error::service_quota_exceeded_exception::Builder::default()
         606  +
        /* ServerBuilderGenerator.kt:295 */
  285    607   
    }
         608  +
    /* ServerCodegenVisitor.kt:345 */
  286    609   
}
  287    610   
  288         -
/// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
         611  +
/// /* StructureGenerator.kt:197 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
         612  +
/* RustType.kt:516 */
  289    613   
#[derive(
  290    614   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  291    615   
)]
  292         -
pub struct RequestThrottledException {
         616  +
pub /* StructureGenerator.kt:201 */ struct RequestThrottledException {
         617  +
    /* StructureGenerator.kt:231 */
  293    618   
    #[allow(missing_docs)] // documentation missing in model
  294    619   
    pub message: ::std::option::Option<crate::model::ErrorMessage>,
  295         -
    /// <p>The reason for the exception.</p>
         620  +
    /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
  296    621   
    pub reason: ::std::option::Option<crate::model::RequestThrottledExceptionReason>,
         622  +
    /* StructureGenerator.kt:201 */
  297    623   
}
         624  +
/* StructureGenerator.kt:135 */
  298    625   
impl RequestThrottledException {
  299         -
    /// <p>The reason for the exception.</p>
         626  +
    /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
         627  +
    /* StructureGenerator.kt:166 */
  300    628   
    pub fn reason(&self) -> ::std::option::Option<&crate::model::RequestThrottledExceptionReason> {
         629  +
        /* StructureGenerator.kt:170 */
  301    630   
        self.reason.as_ref()
         631  +
        /* StructureGenerator.kt:166 */
  302    632   
    }
         633  +
    /* StructureGenerator.kt:135 */
  303    634   
}
         635  +
/* ErrorImplGenerator.kt:99 */
  304    636   
impl RequestThrottledException {
         637  +
    /* ErrorImplGenerator.kt:128 */
  305    638   
    /// Returns the error message.
  306    639   
    pub fn message(&self) -> Option<&crate::model::ErrorMessage> {
  307    640   
        self.message.as_ref()
  308    641   
    }
         642  +
    /* ErrorImplGenerator.kt:141 */
  309    643   
    #[doc(hidden)]
  310    644   
    /// Returns the error name.
  311    645   
    pub fn name(&self) -> &'static str {
  312    646   
        "RequestThrottledException"
  313    647   
    }
         648  +
    /* ErrorImplGenerator.kt:99 */
  314    649   
}
         650  +
/* ErrorImplGenerator.kt:153 */
  315    651   
impl ::std::fmt::Display for RequestThrottledException {
         652  +
    /* ErrorImplGenerator.kt:154 */
  316    653   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         654  +
        /* ErrorImplGenerator.kt:161 */
  317    655   
        ::std::write!(f, "RequestThrottledException")?;
         656  +
        /* ErrorImplGenerator.kt:166 */
  318    657   
        if let ::std::option::Option::Some(inner_3) = &self.message {
         658  +
            /* ErrorImplGenerator.kt:166 */
  319    659   
            {
         660  +
                /* ErrorImplGenerator.kt:167 */
  320    661   
                ::std::write!(f, ": {}", inner_3)?;
         662  +
                /* ErrorImplGenerator.kt:166 */
  321    663   
            }
         664  +
            /* ErrorImplGenerator.kt:166 */
  322    665   
        }
         666  +
        /* ErrorImplGenerator.kt:171 */
  323    667   
        Ok(())
         668  +
        /* ErrorImplGenerator.kt:154 */
  324    669   
    }
         670  +
    /* ErrorImplGenerator.kt:153 */
  325    671   
}
         672  +
/* ErrorImplGenerator.kt:175 */
  326    673   
impl ::std::error::Error for RequestThrottledException {}
         674  +
/* ServerCodegenVisitor.kt:345 */
  327    675   
impl RequestThrottledException {
  328         -
    /// Creates a new builder-style object to manufacture [`RequestThrottledException`](crate::error::RequestThrottledException).
         676  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`RequestThrottledException`](crate::error::RequestThrottledException).
         677  +
    /* ServerBuilderGenerator.kt:295 */
  329    678   
    pub fn builder() -> crate::error::request_throttled_exception::Builder {
         679  +
        /* ServerBuilderGenerator.kt:296 */
  330    680   
        crate::error::request_throttled_exception::Builder::default()
         681  +
        /* ServerBuilderGenerator.kt:295 */
  331    682   
    }
         683  +
    /* ServerCodegenVisitor.kt:345 */
  332    684   
}
  333    685   
  334         -
/// <p>The request uses the same client token as a previous, but non-identical request.</p>
         686  +
/// /* StructureGenerator.kt:197 */<p>The request uses the same client token as a previous, but non-identical request.</p>
         687  +
/* RustType.kt:516 */
  335    688   
#[derive(
  336    689   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  337    690   
)]
  338         -
pub struct ConflictException {
         691  +
pub /* StructureGenerator.kt:201 */ struct ConflictException {
         692  +
    /* StructureGenerator.kt:231 */
  339    693   
    #[allow(missing_docs)] // documentation missing in model
  340    694   
    pub message: ::std::option::Option<crate::model::ErrorMessage>,
         695  +
    /* StructureGenerator.kt:201 */
  341    696   
}
         697  +
/* ErrorImplGenerator.kt:99 */
  342    698   
impl ConflictException {
         699  +
    /* ErrorImplGenerator.kt:128 */
  343    700   
    /// Returns the error message.
  344    701   
    pub fn message(&self) -> Option<&crate::model::ErrorMessage> {
  345    702   
        self.message.as_ref()
  346    703   
    }
         704  +
    /* ErrorImplGenerator.kt:141 */
  347    705   
    #[doc(hidden)]
  348    706   
    /// Returns the error name.
  349    707   
    pub fn name(&self) -> &'static str {
  350    708   
        "ConflictException"
  351    709   
    }
         710  +
    /* ErrorImplGenerator.kt:99 */
  352    711   
}
         712  +
/* ErrorImplGenerator.kt:153 */
  353    713   
impl ::std::fmt::Display for ConflictException {
         714  +
    /* ErrorImplGenerator.kt:154 */
  354    715   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         716  +
        /* ErrorImplGenerator.kt:161 */
  355    717   
        ::std::write!(f, "ConflictException")?;
         718  +
        /* ErrorImplGenerator.kt:166 */
  356    719   
        if let ::std::option::Option::Some(inner_4) = &self.message {
         720  +
            /* ErrorImplGenerator.kt:166 */
  357    721   
            {
         722  +
                /* ErrorImplGenerator.kt:167 */
  358    723   
                ::std::write!(f, ": {}", inner_4)?;
         724  +
                /* ErrorImplGenerator.kt:166 */
  359    725   
            }
         726  +
            /* ErrorImplGenerator.kt:166 */
  360    727   
        }
         728  +
        /* ErrorImplGenerator.kt:171 */
  361    729   
        Ok(())
         730  +
        /* ErrorImplGenerator.kt:154 */
  362    731   
    }
         732  +
    /* ErrorImplGenerator.kt:153 */
  363    733   
}
         734  +
/* ErrorImplGenerator.kt:175 */
  364    735   
impl ::std::error::Error for ConflictException {}
         736  +
/* ServerCodegenVisitor.kt:345 */
  365    737   
impl ConflictException {
  366         -
    /// Creates a new builder-style object to manufacture [`ConflictException`](crate::error::ConflictException).
         738  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ConflictException`](crate::error::ConflictException).
         739  +
    /* ServerBuilderGenerator.kt:295 */
  367    740   
    pub fn builder() -> crate::error::conflict_exception::Builder {
         741  +
        /* ServerBuilderGenerator.kt:296 */
  368    742   
        crate::error::conflict_exception::Builder::default()
         743  +
        /* ServerBuilderGenerator.kt:295 */
  369    744   
    }
         745  +
    /* ServerCodegenVisitor.kt:345 */
  370    746   
}
  371    747   
  372         -
/// <p>You do not have sufficient access to perform this action.</p>
         748  +
/// /* StructureGenerator.kt:197 */<p>You do not have sufficient access to perform this action.</p>
         749  +
/* RustType.kt:516 */
  373    750   
#[derive(
  374    751   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  375    752   
)]
  376         -
pub struct AccessDeniedException {
         753  +
pub /* StructureGenerator.kt:201 */ struct AccessDeniedException {
         754  +
    /* StructureGenerator.kt:231 */
  377    755   
    #[allow(missing_docs)] // documentation missing in model
  378    756   
    pub message: ::std::option::Option<crate::model::ErrorMessage>,
  379         -
    /// <p>The reason for the exception.</p>
         757  +
    /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
  380    758   
    pub reason: crate::model::AccessDeniedExceptionReason,
         759  +
    /* StructureGenerator.kt:201 */
  381    760   
}
         761  +
/* StructureGenerator.kt:135 */
  382    762   
impl AccessDeniedException {
  383         -
    /// <p>The reason for the exception.</p>
         763  +
    /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
         764  +
    /* StructureGenerator.kt:166 */
  384    765   
    pub fn reason(&self) -> &crate::model::AccessDeniedExceptionReason {
         766  +
        /* StructureGenerator.kt:172 */
  385    767   
        &self.reason
         768  +
        /* StructureGenerator.kt:166 */
  386    769   
    }
         770  +
    /* StructureGenerator.kt:135 */
  387    771   
}
         772  +
/* ErrorImplGenerator.kt:99 */
  388    773   
impl AccessDeniedException {
         774  +
    /* ErrorImplGenerator.kt:128 */
  389    775   
    /// Returns the error message.
  390    776   
    pub fn message(&self) -> Option<&crate::model::ErrorMessage> {
  391    777   
        self.message.as_ref()
  392    778   
    }
         779  +
    /* ErrorImplGenerator.kt:141 */
  393    780   
    #[doc(hidden)]
  394    781   
    /// Returns the error name.
  395    782   
    pub fn name(&self) -> &'static str {
  396    783   
        "AccessDeniedException"
  397    784   
    }
         785  +
    /* ErrorImplGenerator.kt:99 */
  398    786   
}
         787  +
/* ErrorImplGenerator.kt:153 */
  399    788   
impl ::std::fmt::Display for AccessDeniedException {
         789  +
    /* ErrorImplGenerator.kt:154 */
  400    790   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         791  +
        /* ErrorImplGenerator.kt:161 */
  401    792   
        ::std::write!(f, "AccessDeniedException")?;
         793  +
        /* ErrorImplGenerator.kt:166 */
  402    794   
        if let ::std::option::Option::Some(inner_5) = &self.message {
         795  +
            /* ErrorImplGenerator.kt:166 */
  403    796   
            {
         797  +
                /* ErrorImplGenerator.kt:167 */
  404    798   
                ::std::write!(f, ": {}", inner_5)?;
         799  +
                /* ErrorImplGenerator.kt:166 */
  405    800   
            }
         801  +
            /* ErrorImplGenerator.kt:166 */
  406    802   
        }
         803  +
        /* ErrorImplGenerator.kt:171 */
  407    804   
        Ok(())
         805  +
        /* ErrorImplGenerator.kt:154 */
  408    806   
    }
         807  +
    /* ErrorImplGenerator.kt:153 */
  409    808   
}
         809  +
/* ErrorImplGenerator.kt:175 */
  410    810   
impl ::std::error::Error for AccessDeniedException {}
         811  +
/* ServerCodegenVisitor.kt:345 */
  411    812   
impl AccessDeniedException {
  412         -
    /// Creates a new builder-style object to manufacture [`AccessDeniedException`](crate::error::AccessDeniedException).
         813  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`AccessDeniedException`](crate::error::AccessDeniedException).
         814  +
    /* ServerBuilderGenerator.kt:295 */
  413    815   
    pub fn builder() -> crate::error::access_denied_exception::Builder {
         816  +
        /* ServerBuilderGenerator.kt:296 */
  414    817   
        crate::error::access_denied_exception::Builder::default()
         818  +
        /* ServerBuilderGenerator.kt:295 */
  415    819   
    }
         820  +
    /* ServerCodegenVisitor.kt:345 */
  416    821   
}
  417    822   
  418         -
/// <p>The specified resource does not exist.</p>
         823  +
/// /* StructureGenerator.kt:197 */<p>The specified resource does not exist.</p>
         824  +
/* RustType.kt:516 */
  419    825   
#[derive(
  420    826   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  421    827   
)]
  422         -
pub struct ResourceNotFoundException {
         828  +
pub /* StructureGenerator.kt:201 */ struct ResourceNotFoundException {
         829  +
    /* StructureGenerator.kt:231 */
  423    830   
    #[allow(missing_docs)] // documentation missing in model
  424    831   
    pub message: ::std::option::Option<crate::model::ErrorMessage>,
  425         -
    /// <p>The reason for the exception.</p>
         832  +
    /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
  426    833   
    pub reason: ::std::option::Option<crate::model::ResourceNotFoundExceptionReason>,
         834  +
    /* StructureGenerator.kt:201 */
  427    835   
}
         836  +
/* StructureGenerator.kt:135 */
  428    837   
impl ResourceNotFoundException {
  429         -
    /// <p>The reason for the exception.</p>
         838  +
    /// /* StructureGenerator.kt:231 */<p>The reason for the exception.</p>
         839  +
    /* StructureGenerator.kt:166 */
  430    840   
    pub fn reason(&self) -> ::std::option::Option<&crate::model::ResourceNotFoundExceptionReason> {
         841  +
        /* StructureGenerator.kt:170 */
  431    842   
        self.reason.as_ref()
         843  +
        /* StructureGenerator.kt:166 */
  432    844   
    }
         845  +
    /* StructureGenerator.kt:135 */
  433    846   
}
         847  +
/* ErrorImplGenerator.kt:99 */
  434    848   
impl ResourceNotFoundException {
         849  +
    /* ErrorImplGenerator.kt:128 */
  435    850   
    /// Returns the error message.
  436    851   
    pub fn message(&self) -> Option<&crate::model::ErrorMessage> {
  437    852   
        self.message.as_ref()
  438    853   
    }
         854  +
    /* ErrorImplGenerator.kt:141 */
  439    855   
    #[doc(hidden)]
  440    856   
    /// Returns the error name.
  441    857   
    pub fn name(&self) -> &'static str {
  442    858   
        "ResourceNotFoundException"
  443    859   
    }
         860  +
    /* ErrorImplGenerator.kt:99 */
  444    861   
}
         862  +
/* ErrorImplGenerator.kt:153 */
  445    863   
impl ::std::fmt::Display for ResourceNotFoundException {
         864  +
    /* ErrorImplGenerator.kt:154 */
  446    865   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         866  +
        /* ErrorImplGenerator.kt:161 */
  447    867   
        ::std::write!(f, "ResourceNotFoundException")?;
         868  +
        /* ErrorImplGenerator.kt:166 */
  448    869   
        if let ::std::option::Option::Some(inner_6) = &self.message {
         870  +
            /* ErrorImplGenerator.kt:166 */
  449    871   
            {
         872  +
                /* ErrorImplGenerator.kt:167 */
  450    873   
                ::std::write!(f, ": {}", inner_6)?;
         874  +
                /* ErrorImplGenerator.kt:166 */
  451    875   
            }
         876  +
            /* ErrorImplGenerator.kt:166 */
  452    877   
        }
         878  +
        /* ErrorImplGenerator.kt:171 */
  453    879   
        Ok(())
         880  +
        /* ErrorImplGenerator.kt:154 */
  454    881   
    }
         882  +
    /* ErrorImplGenerator.kt:153 */
  455    883   
}
         884  +
/* ErrorImplGenerator.kt:175 */
  456    885   
impl ::std::error::Error for ResourceNotFoundException {}
         886  +
/* ServerCodegenVisitor.kt:345 */
  457    887   
impl ResourceNotFoundException {
  458         -
    /// Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
         888  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
         889  +
    /* ServerBuilderGenerator.kt:295 */
  459    890   
    pub fn builder() -> crate::error::resource_not_found_exception::Builder {
         891  +
        /* ServerBuilderGenerator.kt:296 */
  460    892   
        crate::error::resource_not_found_exception::Builder::default()
         893  +
        /* ServerBuilderGenerator.kt:295 */
  461    894   
    }
         895  +
    /* ServerCodegenVisitor.kt:345 */
  462    896   
}
  463    897   
  464         -
/// <p>An internal error has occurred.</p>
         898  +
/// /* StructureGenerator.kt:197 */<p>An internal error has occurred.</p>
         899  +
/* RustType.kt:516 */
  465    900   
#[derive(
  466    901   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  467    902   
)]
  468         -
pub struct InternalServerException {
         903  +
pub /* StructureGenerator.kt:201 */ struct InternalServerException {
         904  +
    /* StructureGenerator.kt:231 */
  469    905   
    #[allow(missing_docs)] // documentation missing in model
  470    906   
    pub message: ::std::option::Option<crate::model::ErrorMessage>,
         907  +
    /* StructureGenerator.kt:201 */
  471    908   
}
         909  +
/* ErrorImplGenerator.kt:99 */
  472    910   
impl InternalServerException {
         911  +
    /* ErrorImplGenerator.kt:128 */
  473    912   
    /// Returns the error message.
  474    913   
    pub fn message(&self) -> Option<&crate::model::ErrorMessage> {
  475    914   
        self.message.as_ref()
  476    915   
    }
         916  +
    /* ErrorImplGenerator.kt:141 */
  477    917   
    #[doc(hidden)]
  478    918   
    /// Returns the error name.
  479    919   
    pub fn name(&self) -> &'static str {
  480    920   
        "InternalServerException"
  481    921   
    }
         922  +
    /* ErrorImplGenerator.kt:99 */
  482    923   
}
         924  +
/* ErrorImplGenerator.kt:153 */
  483    925   
impl ::std::fmt::Display for InternalServerException {
         926  +
    /* ErrorImplGenerator.kt:154 */
  484    927   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         928  +
        /* ErrorImplGenerator.kt:161 */
  485    929   
        ::std::write!(f, "InternalServerException")?;
         930  +
        /* ErrorImplGenerator.kt:166 */
  486    931   
        if let ::std::option::Option::Some(inner_7) = &self.message {
         932  +
            /* ErrorImplGenerator.kt:166 */
  487    933   
            {
         934  +
                /* ErrorImplGenerator.kt:167 */
  488    935   
                ::std::write!(f, ": {}", inner_7)?;
         936  +
                /* ErrorImplGenerator.kt:166 */
  489    937   
            }
         938  +
            /* ErrorImplGenerator.kt:166 */
  490    939   
        }
         940  +
        /* ErrorImplGenerator.kt:171 */
  491    941   
        Ok(())
         942  +
        /* ErrorImplGenerator.kt:154 */
  492    943   
    }
         944  +
    /* ErrorImplGenerator.kt:153 */
  493    945   
}
         946  +
/* ErrorImplGenerator.kt:175 */
  494    947   
impl ::std::error::Error for InternalServerException {}
         948  +
/* ServerCodegenVisitor.kt:345 */
  495    949   
impl InternalServerException {
  496         -
    /// Creates a new builder-style object to manufacture [`InternalServerException`](crate::error::InternalServerException).
         950  +
    /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`InternalServerException`](crate::error::InternalServerException).
         951  +
    /* ServerBuilderGenerator.kt:295 */
  497    952   
    pub fn builder() -> crate::error::internal_server_exception::Builder {
         953  +
        /* ServerBuilderGenerator.kt:296 */
  498    954   
        crate::error::internal_server_exception::Builder::default()
         955  +
        /* ServerBuilderGenerator.kt:295 */
  499    956   
    }
         957  +
    /* ServerCodegenVisitor.kt:345 */
  500    958   
}
  501    959   
         960  +
/* ServerOperationErrorGenerator.kt:63 */
  502    961   
/// Error type for the `PutSnapshotBlock` operation.
         962  +
/* ServerOperationErrorGenerator.kt:64 */
  503    963   
/// Each variant represents an error that can occur for the `PutSnapshotBlock` operation.
         964  +
/* RustType.kt:516 */
  504    965   
#[derive(::std::fmt::Debug)]
  505         -
pub enum PutSnapshotBlockError {
  506         -
    /// <p>An internal error has occurred.</p>
         966  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum PutSnapshotBlockError {
         967  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>An internal error has occurred.</p>
         968  +
    /* ServerOperationErrorGenerator.kt:71 */
  507    969   
    InternalServerException(crate::error::InternalServerException),
  508         -
    /// <p>The specified resource does not exist.</p>
         970  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>The specified resource does not exist.</p>
         971  +
    /* ServerOperationErrorGenerator.kt:71 */
  509    972   
    ResourceNotFoundException(crate::error::ResourceNotFoundException),
  510         -
    /// <p>You do not have sufficient access to perform this action.</p>
         973  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>You do not have sufficient access to perform this action.</p>
         974  +
    /* ServerOperationErrorGenerator.kt:71 */
  511    975   
    AccessDeniedException(crate::error::AccessDeniedException),
  512         -
    /// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
         976  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
         977  +
    /* ServerOperationErrorGenerator.kt:71 */
  513    978   
    RequestThrottledException(crate::error::RequestThrottledException),
  514         -
    /// <p>Your current service quotas do not allow you to perform this action.</p>
         979  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>Your current service quotas do not allow you to perform this action.</p>
         980  +
    /* ServerOperationErrorGenerator.kt:71 */
  515    981   
    ServiceQuotaExceededException(crate::error::ServiceQuotaExceededException),
  516         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         982  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         983  +
    /* ServerOperationErrorGenerator.kt:71 */
  517    984   
    ValidationException(crate::error::ValidationException),
         985  +
    /* ServerOperationErrorGenerator.kt:66 */
  518    986   
}
         987  +
/* ServerOperationErrorGenerator.kt:75 */
  519    988   
impl ::std::fmt::Display for PutSnapshotBlockError {
         989  +
    /* ServerOperationErrorGenerator.kt:76 */
  520    990   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         991  +
        /* ServerOperationErrorGenerator.kt:139 */
  521    992   
        match &self {
  522         -
            PutSnapshotBlockError::InternalServerException(_inner) => _inner.fmt(f),
  523         -
            PutSnapshotBlockError::ResourceNotFoundException(_inner) => _inner.fmt(f),
  524         -
            PutSnapshotBlockError::AccessDeniedException(_inner) => _inner.fmt(f),
  525         -
            PutSnapshotBlockError::RequestThrottledException(_inner) => _inner.fmt(f),
  526         -
            PutSnapshotBlockError::ServiceQuotaExceededException(_inner) => _inner.fmt(f),
  527         -
            PutSnapshotBlockError::ValidationException(_inner) => _inner.fmt(f),
         993  +
            /* ServerOperationErrorGenerator.kt:142 */
         994  +
            PutSnapshotBlockError::InternalServerException(_inner) =>
         995  +
            /* ServerOperationErrorGenerator.kt:78 */
         996  +
            {
         997  +
                _inner.fmt(f)
         998  +
            }
         999  +
            ,
        1000  +
            /* ServerOperationErrorGenerator.kt:142 */
        1001  +
            PutSnapshotBlockError::ResourceNotFoundException(_inner) =>
        1002  +
            /* ServerOperationErrorGenerator.kt:78 */
        1003  +
            {
        1004  +
                _inner.fmt(f)
        1005  +
            }
        1006  +
            ,
        1007  +
            /* ServerOperationErrorGenerator.kt:142 */
        1008  +
            PutSnapshotBlockError::AccessDeniedException(_inner) =>
        1009  +
            /* ServerOperationErrorGenerator.kt:78 */
        1010  +
            {
        1011  +
                _inner.fmt(f)
  528   1012   
            }
        1013  +
            ,
        1014  +
            /* ServerOperationErrorGenerator.kt:142 */
        1015  +
            PutSnapshotBlockError::RequestThrottledException(_inner) =>
        1016  +
            /* ServerOperationErrorGenerator.kt:78 */
        1017  +
            {
        1018  +
                _inner.fmt(f)
  529   1019   
            }
        1020  +
            ,
        1021  +
            /* ServerOperationErrorGenerator.kt:142 */
        1022  +
            PutSnapshotBlockError::ServiceQuotaExceededException(_inner) =>
        1023  +
            /* ServerOperationErrorGenerator.kt:78 */
        1024  +
            {
        1025  +
                _inner.fmt(f)
        1026  +
            }
        1027  +
            ,
        1028  +
            /* ServerOperationErrorGenerator.kt:142 */
        1029  +
            PutSnapshotBlockError::ValidationException(_inner) =>
        1030  +
            /* ServerOperationErrorGenerator.kt:78 */
        1031  +
            {
        1032  +
                _inner.fmt(f)
        1033  +
            }
        1034  +
            /* ServerOperationErrorGenerator.kt:139 */
        1035  +
        }
        1036  +
        /* ServerOperationErrorGenerator.kt:76 */
        1037  +
    }
        1038  +
    /* ServerOperationErrorGenerator.kt:75 */
  530   1039   
}
        1040  +
/* ServerOperationErrorGenerator.kt:83 */
  531   1041   
impl PutSnapshotBlockError {
        1042  +
    /* ServerOperationErrorGenerator.kt:87 */
  532   1043   
    /// Returns `true` if the error kind is `PutSnapshotBlockError::InternalServerException`.
        1044  +
    /* ServerOperationErrorGenerator.kt:88 */
  533   1045   
    pub fn is_internal_server_exception(&self) -> bool {
        1046  +
        /* ServerOperationErrorGenerator.kt:89 */
  534   1047   
        matches!(&self, PutSnapshotBlockError::InternalServerException(_))
        1048  +
        /* ServerOperationErrorGenerator.kt:88 */
  535   1049   
    }
        1050  +
    /* ServerOperationErrorGenerator.kt:87 */
  536   1051   
    /// Returns `true` if the error kind is `PutSnapshotBlockError::ResourceNotFoundException`.
        1052  +
    /* ServerOperationErrorGenerator.kt:88 */
  537   1053   
    pub fn is_resource_not_found_exception(&self) -> bool {
        1054  +
        /* ServerOperationErrorGenerator.kt:89 */
  538   1055   
        matches!(&self, PutSnapshotBlockError::ResourceNotFoundException(_))
        1056  +
        /* ServerOperationErrorGenerator.kt:88 */
  539   1057   
    }
        1058  +
    /* ServerOperationErrorGenerator.kt:87 */
  540   1059   
    /// Returns `true` if the error kind is `PutSnapshotBlockError::AccessDeniedException`.
        1060  +
    /* ServerOperationErrorGenerator.kt:88 */
  541   1061   
    pub fn is_access_denied_exception(&self) -> bool {
        1062  +
        /* ServerOperationErrorGenerator.kt:89 */
  542   1063   
        matches!(&self, PutSnapshotBlockError::AccessDeniedException(_))
        1064  +
        /* ServerOperationErrorGenerator.kt:88 */
  543   1065   
    }
        1066  +
    /* ServerOperationErrorGenerator.kt:87 */
  544   1067   
    /// Returns `true` if the error kind is `PutSnapshotBlockError::RequestThrottledException`.
        1068  +
    /* ServerOperationErrorGenerator.kt:88 */
  545   1069   
    pub fn is_request_throttled_exception(&self) -> bool {
        1070  +
        /* ServerOperationErrorGenerator.kt:89 */
  546   1071   
        matches!(&self, PutSnapshotBlockError::RequestThrottledException(_))
        1072  +
        /* ServerOperationErrorGenerator.kt:88 */
  547   1073   
    }
        1074  +
    /* ServerOperationErrorGenerator.kt:87 */
  548   1075   
    /// Returns `true` if the error kind is `PutSnapshotBlockError::ServiceQuotaExceededException`.
        1076  +
    /* ServerOperationErrorGenerator.kt:88 */
  549   1077   
    pub fn is_service_quota_exceeded_exception(&self) -> bool {
        1078  +
        /* ServerOperationErrorGenerator.kt:89 */
  550   1079   
        matches!(
  551   1080   
            &self,
  552   1081   
            PutSnapshotBlockError::ServiceQuotaExceededException(_)
  553   1082   
        )
        1083  +
        /* ServerOperationErrorGenerator.kt:88 */
  554   1084   
    }
        1085  +
    /* ServerOperationErrorGenerator.kt:87 */
  555   1086   
    /// Returns `true` if the error kind is `PutSnapshotBlockError::ValidationException`.
        1087  +
    /* ServerOperationErrorGenerator.kt:88 */
  556   1088   
    pub fn is_validation_exception(&self) -> bool {
        1089  +
        /* ServerOperationErrorGenerator.kt:89 */
  557   1090   
        matches!(&self, PutSnapshotBlockError::ValidationException(_))
        1091  +
        /* ServerOperationErrorGenerator.kt:88 */
  558   1092   
    }
        1093  +
    /* ServerOperationErrorGenerator.kt:92 */
  559   1094   
    /// Returns the error name string by matching the correct variant.
        1095  +
    /* ServerOperationErrorGenerator.kt:93 */
  560   1096   
    pub fn name(&self) -> &'static str {
        1097  +
        /* ServerOperationErrorGenerator.kt:139 */
  561   1098   
        match &self {
  562         -
            PutSnapshotBlockError::InternalServerException(_inner) => _inner.name(),
  563         -
            PutSnapshotBlockError::ResourceNotFoundException(_inner) => _inner.name(),
  564         -
            PutSnapshotBlockError::AccessDeniedException(_inner) => _inner.name(),
  565         -
            PutSnapshotBlockError::RequestThrottledException(_inner) => _inner.name(),
  566         -
            PutSnapshotBlockError::ServiceQuotaExceededException(_inner) => _inner.name(),
  567         -
            PutSnapshotBlockError::ValidationException(_inner) => _inner.name(),
        1099  +
            /* ServerOperationErrorGenerator.kt:142 */
        1100  +
            PutSnapshotBlockError::InternalServerException(_inner) =>
        1101  +
            /* ServerOperationErrorGenerator.kt:95 */
        1102  +
            {
        1103  +
                _inner.name()
  568   1104   
            }
        1105  +
            ,
        1106  +
            /* ServerOperationErrorGenerator.kt:142 */
        1107  +
            PutSnapshotBlockError::ResourceNotFoundException(_inner) =>
        1108  +
            /* ServerOperationErrorGenerator.kt:95 */
        1109  +
            {
        1110  +
                _inner.name()
        1111  +
            }
        1112  +
            ,
        1113  +
            /* ServerOperationErrorGenerator.kt:142 */
        1114  +
            PutSnapshotBlockError::AccessDeniedException(_inner) =>
        1115  +
            /* ServerOperationErrorGenerator.kt:95 */
        1116  +
            {
        1117  +
                _inner.name()
        1118  +
            }
        1119  +
            ,
        1120  +
            /* ServerOperationErrorGenerator.kt:142 */
        1121  +
            PutSnapshotBlockError::RequestThrottledException(_inner) =>
        1122  +
            /* ServerOperationErrorGenerator.kt:95 */
        1123  +
            {
        1124  +
                _inner.name()
        1125  +
            }
        1126  +
            ,
        1127  +
            /* ServerOperationErrorGenerator.kt:142 */
        1128  +
            PutSnapshotBlockError::ServiceQuotaExceededException(_inner) =>
        1129  +
            /* ServerOperationErrorGenerator.kt:95 */
        1130  +
            {
        1131  +
                _inner.name()
  569   1132   
            }
        1133  +
            ,
        1134  +
            /* ServerOperationErrorGenerator.kt:142 */
        1135  +
            PutSnapshotBlockError::ValidationException(_inner) =>
        1136  +
            /* ServerOperationErrorGenerator.kt:95 */
        1137  +
            {
        1138  +
                _inner.name()
        1139  +
            }
        1140  +
            /* ServerOperationErrorGenerator.kt:139 */
        1141  +
        }
        1142  +
        /* ServerOperationErrorGenerator.kt:93 */
        1143  +
    }
        1144  +
    /* ServerOperationErrorGenerator.kt:83 */
  570   1145   
}
        1146  +
/* ServerOperationErrorGenerator.kt:100 */
  571   1147   
impl ::std::error::Error for PutSnapshotBlockError {
        1148  +
    /* ServerOperationErrorGenerator.kt:101 */
  572   1149   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1150  +
        /* ServerOperationErrorGenerator.kt:139 */
  573   1151   
        match &self {
  574         -
            PutSnapshotBlockError::InternalServerException(_inner) => Some(_inner),
  575         -
            PutSnapshotBlockError::ResourceNotFoundException(_inner) => Some(_inner),
  576         -
            PutSnapshotBlockError::AccessDeniedException(_inner) => Some(_inner),
  577         -
            PutSnapshotBlockError::RequestThrottledException(_inner) => Some(_inner),
  578         -
            PutSnapshotBlockError::ServiceQuotaExceededException(_inner) => Some(_inner),
  579         -
            PutSnapshotBlockError::ValidationException(_inner) => Some(_inner),
        1152  +
            /* ServerOperationErrorGenerator.kt:142 */
        1153  +
            PutSnapshotBlockError::InternalServerException(_inner) =>
        1154  +
            /* ServerOperationErrorGenerator.kt:103 */
        1155  +
            {
        1156  +
                Some(_inner)
        1157  +
            }
        1158  +
            ,
        1159  +
            /* ServerOperationErrorGenerator.kt:142 */
        1160  +
            PutSnapshotBlockError::ResourceNotFoundException(_inner) =>
        1161  +
            /* ServerOperationErrorGenerator.kt:103 */
        1162  +
            {
        1163  +
                Some(_inner)
        1164  +
            }
        1165  +
            ,
        1166  +
            /* ServerOperationErrorGenerator.kt:142 */
        1167  +
            PutSnapshotBlockError::AccessDeniedException(_inner) =>
        1168  +
            /* ServerOperationErrorGenerator.kt:103 */
        1169  +
            {
        1170  +
                Some(_inner)
        1171  +
            }
        1172  +
            ,
        1173  +
            /* ServerOperationErrorGenerator.kt:142 */
        1174  +
            PutSnapshotBlockError::RequestThrottledException(_inner) =>
        1175  +
            /* ServerOperationErrorGenerator.kt:103 */
        1176  +
            {
        1177  +
                Some(_inner)
        1178  +
            }
        1179  +
            ,
        1180  +
            /* ServerOperationErrorGenerator.kt:142 */
        1181  +
            PutSnapshotBlockError::ServiceQuotaExceededException(_inner) =>
        1182  +
            /* ServerOperationErrorGenerator.kt:103 */
        1183  +
            {
        1184  +
                Some(_inner)
        1185  +
            }
        1186  +
            ,
        1187  +
            /* ServerOperationErrorGenerator.kt:142 */
        1188  +
            PutSnapshotBlockError::ValidationException(_inner) =>
        1189  +
            /* ServerOperationErrorGenerator.kt:103 */
        1190  +
            {
        1191  +
                Some(_inner)
        1192  +
            }
        1193  +
            /* ServerOperationErrorGenerator.kt:139 */
  580   1194   
        }
        1195  +
        /* ServerOperationErrorGenerator.kt:101 */
  581   1196   
    }
        1197  +
    /* ServerOperationErrorGenerator.kt:100 */
  582   1198   
}
        1199  +
/* ServerOperationErrorGenerator.kt:110 */
  583   1200   
impl ::std::convert::From<crate::error::InternalServerException>
  584   1201   
    for crate::error::PutSnapshotBlockError
  585   1202   
{
        1203  +
    /* ServerOperationErrorGenerator.kt:111 */
  586   1204   
    fn from(variant: crate::error::InternalServerException) -> crate::error::PutSnapshotBlockError {
        1205  +
        /* ServerOperationErrorGenerator.kt:112 */
  587   1206   
        Self::InternalServerException(variant)
        1207  +
        /* ServerOperationErrorGenerator.kt:111 */
  588   1208   
    }
        1209  +
    /* ServerOperationErrorGenerator.kt:110 */
  589   1210   
}
        1211  +
/* ServerOperationErrorGenerator.kt:110 */
  590   1212   
impl ::std::convert::From<crate::error::ResourceNotFoundException>
  591   1213   
    for crate::error::PutSnapshotBlockError
  592   1214   
{
        1215  +
    /* ServerOperationErrorGenerator.kt:111 */
  593   1216   
    fn from(
  594   1217   
        variant: crate::error::ResourceNotFoundException,
  595   1218   
    ) -> crate::error::PutSnapshotBlockError {
        1219  +
        /* ServerOperationErrorGenerator.kt:112 */
  596   1220   
        Self::ResourceNotFoundException(variant)
        1221  +
        /* ServerOperationErrorGenerator.kt:111 */
  597   1222   
    }
        1223  +
    /* ServerOperationErrorGenerator.kt:110 */
  598   1224   
}
        1225  +
/* ServerOperationErrorGenerator.kt:110 */
  599   1226   
impl ::std::convert::From<crate::error::AccessDeniedException>
  600   1227   
    for crate::error::PutSnapshotBlockError
  601   1228   
{
        1229  +
    /* ServerOperationErrorGenerator.kt:111 */
  602   1230   
    fn from(variant: crate::error::AccessDeniedException) -> crate::error::PutSnapshotBlockError {
        1231  +
        /* ServerOperationErrorGenerator.kt:112 */
  603   1232   
        Self::AccessDeniedException(variant)
        1233  +
        /* ServerOperationErrorGenerator.kt:111 */
  604   1234   
    }
        1235  +
    /* ServerOperationErrorGenerator.kt:110 */
  605   1236   
}
        1237  +
/* ServerOperationErrorGenerator.kt:110 */
  606   1238   
impl ::std::convert::From<crate::error::RequestThrottledException>
  607   1239   
    for crate::error::PutSnapshotBlockError
  608   1240   
{
        1241  +
    /* ServerOperationErrorGenerator.kt:111 */
  609   1242   
    fn from(
  610   1243   
        variant: crate::error::RequestThrottledException,
  611   1244   
    ) -> crate::error::PutSnapshotBlockError {
        1245  +
        /* ServerOperationErrorGenerator.kt:112 */
  612   1246   
        Self::RequestThrottledException(variant)
        1247  +
        /* ServerOperationErrorGenerator.kt:111 */
  613   1248   
    }
        1249  +
    /* ServerOperationErrorGenerator.kt:110 */
  614   1250   
}
        1251  +
/* ServerOperationErrorGenerator.kt:110 */
  615   1252   
impl ::std::convert::From<crate::error::ServiceQuotaExceededException>
  616   1253   
    for crate::error::PutSnapshotBlockError
  617   1254   
{
        1255  +
    /* ServerOperationErrorGenerator.kt:111 */
  618   1256   
    fn from(
  619   1257   
        variant: crate::error::ServiceQuotaExceededException,
  620   1258   
    ) -> crate::error::PutSnapshotBlockError {
        1259  +
        /* ServerOperationErrorGenerator.kt:112 */
  621   1260   
        Self::ServiceQuotaExceededException(variant)
        1261  +
        /* ServerOperationErrorGenerator.kt:111 */
  622   1262   
    }
        1263  +
    /* ServerOperationErrorGenerator.kt:110 */
  623   1264   
}
        1265  +
/* ServerOperationErrorGenerator.kt:110 */
  624   1266   
impl ::std::convert::From<crate::error::ValidationException>
  625   1267   
    for crate::error::PutSnapshotBlockError
  626   1268   
{
        1269  +
    /* ServerOperationErrorGenerator.kt:111 */
  627   1270   
    fn from(variant: crate::error::ValidationException) -> crate::error::PutSnapshotBlockError {
        1271  +
        /* ServerOperationErrorGenerator.kt:112 */
  628   1272   
        Self::ValidationException(variant)
        1273  +
        /* ServerOperationErrorGenerator.kt:111 */
  629   1274   
    }
        1275  +
    /* ServerOperationErrorGenerator.kt:110 */
  630   1276   
}
  631   1277   
        1278  +
/* ServerOperationErrorGenerator.kt:63 */
  632   1279   
/// Error type for the `ListSnapshotBlocks` operation.
        1280  +
/* ServerOperationErrorGenerator.kt:64 */
  633   1281   
/// Each variant represents an error that can occur for the `ListSnapshotBlocks` operation.
        1282  +
/* RustType.kt:516 */
  634   1283   
#[derive(::std::fmt::Debug)]
  635         -
pub enum ListSnapshotBlocksError {
  636         -
    /// <p>An internal error has occurred.</p>
        1284  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum ListSnapshotBlocksError {
        1285  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>An internal error has occurred.</p>
        1286  +
    /* ServerOperationErrorGenerator.kt:71 */
  637   1287   
    InternalServerException(crate::error::InternalServerException),
  638         -
    /// <p>The specified resource does not exist.</p>
        1288  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>The specified resource does not exist.</p>
        1289  +
    /* ServerOperationErrorGenerator.kt:71 */
  639   1290   
    ResourceNotFoundException(crate::error::ResourceNotFoundException),
  640         -
    /// <p>You do not have sufficient access to perform this action.</p>
        1291  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>You do not have sufficient access to perform this action.</p>
        1292  +
    /* ServerOperationErrorGenerator.kt:71 */
  641   1293   
    AccessDeniedException(crate::error::AccessDeniedException),
  642         -
    /// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
        1294  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
        1295  +
    /* ServerOperationErrorGenerator.kt:71 */
  643   1296   
    RequestThrottledException(crate::error::RequestThrottledException),
  644         -
    /// <p>Your current service quotas do not allow you to perform this action.</p>
        1297  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>Your current service quotas do not allow you to perform this action.</p>
        1298  +
    /* ServerOperationErrorGenerator.kt:71 */
  645   1299   
    ServiceQuotaExceededException(crate::error::ServiceQuotaExceededException),
  646         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1300  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1301  +
    /* ServerOperationErrorGenerator.kt:71 */
  647   1302   
    ValidationException(crate::error::ValidationException),
        1303  +
    /* ServerOperationErrorGenerator.kt:66 */
  648   1304   
}
        1305  +
/* ServerOperationErrorGenerator.kt:75 */
  649   1306   
impl ::std::fmt::Display for ListSnapshotBlocksError {
        1307  +
    /* ServerOperationErrorGenerator.kt:76 */
  650   1308   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1309  +
        /* ServerOperationErrorGenerator.kt:139 */
  651   1310   
        match &self {
  652         -
            ListSnapshotBlocksError::InternalServerException(_inner) => _inner.fmt(f),
  653         -
            ListSnapshotBlocksError::ResourceNotFoundException(_inner) => _inner.fmt(f),
  654         -
            ListSnapshotBlocksError::AccessDeniedException(_inner) => _inner.fmt(f),
  655         -
            ListSnapshotBlocksError::RequestThrottledException(_inner) => _inner.fmt(f),
  656         -
            ListSnapshotBlocksError::ServiceQuotaExceededException(_inner) => _inner.fmt(f),
  657         -
            ListSnapshotBlocksError::ValidationException(_inner) => _inner.fmt(f),
        1311  +
            /* ServerOperationErrorGenerator.kt:142 */
        1312  +
            ListSnapshotBlocksError::InternalServerException(_inner) =>
        1313  +
            /* ServerOperationErrorGenerator.kt:78 */
        1314  +
            {
        1315  +
                _inner.fmt(f)
        1316  +
            }
        1317  +
            ,
        1318  +
            /* ServerOperationErrorGenerator.kt:142 */
        1319  +
            ListSnapshotBlocksError::ResourceNotFoundException(_inner) =>
        1320  +
            /* ServerOperationErrorGenerator.kt:78 */
        1321  +
            {
        1322  +
                _inner.fmt(f)
        1323  +
            }
        1324  +
            ,
        1325  +
            /* ServerOperationErrorGenerator.kt:142 */
        1326  +
            ListSnapshotBlocksError::AccessDeniedException(_inner) =>
        1327  +
            /* ServerOperationErrorGenerator.kt:78 */
        1328  +
            {
        1329  +
                _inner.fmt(f)
        1330  +
            }
        1331  +
            ,
        1332  +
            /* ServerOperationErrorGenerator.kt:142 */
        1333  +
            ListSnapshotBlocksError::RequestThrottledException(_inner) =>
        1334  +
            /* ServerOperationErrorGenerator.kt:78 */
        1335  +
            {
        1336  +
                _inner.fmt(f)
  658   1337   
            }
        1338  +
            ,
        1339  +
            /* ServerOperationErrorGenerator.kt:142 */
        1340  +
            ListSnapshotBlocksError::ServiceQuotaExceededException(_inner) =>
        1341  +
            /* ServerOperationErrorGenerator.kt:78 */
        1342  +
            {
        1343  +
                _inner.fmt(f)
        1344  +
            }
        1345  +
            ,
        1346  +
            /* ServerOperationErrorGenerator.kt:142 */
        1347  +
            ListSnapshotBlocksError::ValidationException(_inner) =>
        1348  +
            /* ServerOperationErrorGenerator.kt:78 */
        1349  +
            {
        1350  +
                _inner.fmt(f)
        1351  +
            }
        1352  +
            /* ServerOperationErrorGenerator.kt:139 */
  659   1353   
        }
        1354  +
        /* ServerOperationErrorGenerator.kt:76 */
        1355  +
    }
        1356  +
    /* ServerOperationErrorGenerator.kt:75 */
  660   1357   
}
        1358  +
/* ServerOperationErrorGenerator.kt:83 */
  661   1359   
impl ListSnapshotBlocksError {
        1360  +
    /* ServerOperationErrorGenerator.kt:87 */
  662   1361   
    /// Returns `true` if the error kind is `ListSnapshotBlocksError::InternalServerException`.
        1362  +
    /* ServerOperationErrorGenerator.kt:88 */
  663   1363   
    pub fn is_internal_server_exception(&self) -> bool {
        1364  +
        /* ServerOperationErrorGenerator.kt:89 */
  664   1365   
        matches!(&self, ListSnapshotBlocksError::InternalServerException(_))
        1366  +
        /* ServerOperationErrorGenerator.kt:88 */
  665   1367   
    }
        1368  +
    /* ServerOperationErrorGenerator.kt:87 */
  666   1369   
    /// Returns `true` if the error kind is `ListSnapshotBlocksError::ResourceNotFoundException`.
        1370  +
    /* ServerOperationErrorGenerator.kt:88 */
  667   1371   
    pub fn is_resource_not_found_exception(&self) -> bool {
        1372  +
        /* ServerOperationErrorGenerator.kt:89 */
  668   1373   
        matches!(&self, ListSnapshotBlocksError::ResourceNotFoundException(_))
        1374  +
        /* ServerOperationErrorGenerator.kt:88 */
  669   1375   
    }
        1376  +
    /* ServerOperationErrorGenerator.kt:87 */
  670   1377   
    /// Returns `true` if the error kind is `ListSnapshotBlocksError::AccessDeniedException`.
        1378  +
    /* ServerOperationErrorGenerator.kt:88 */
  671   1379   
    pub fn is_access_denied_exception(&self) -> bool {
        1380  +
        /* ServerOperationErrorGenerator.kt:89 */
  672   1381   
        matches!(&self, ListSnapshotBlocksError::AccessDeniedException(_))
        1382  +
        /* ServerOperationErrorGenerator.kt:88 */
  673   1383   
    }
        1384  +
    /* ServerOperationErrorGenerator.kt:87 */
  674   1385   
    /// Returns `true` if the error kind is `ListSnapshotBlocksError::RequestThrottledException`.
        1386  +
    /* ServerOperationErrorGenerator.kt:88 */
  675   1387   
    pub fn is_request_throttled_exception(&self) -> bool {
        1388  +
        /* ServerOperationErrorGenerator.kt:89 */
  676   1389   
        matches!(&self, ListSnapshotBlocksError::RequestThrottledException(_))
        1390  +
        /* ServerOperationErrorGenerator.kt:88 */
  677   1391   
    }
        1392  +
    /* ServerOperationErrorGenerator.kt:87 */
  678   1393   
    /// Returns `true` if the error kind is `ListSnapshotBlocksError::ServiceQuotaExceededException`.
        1394  +
    /* ServerOperationErrorGenerator.kt:88 */
  679   1395   
    pub fn is_service_quota_exceeded_exception(&self) -> bool {
        1396  +
        /* ServerOperationErrorGenerator.kt:89 */
  680   1397   
        matches!(
  681   1398   
            &self,
  682   1399   
            ListSnapshotBlocksError::ServiceQuotaExceededException(_)
  683   1400   
        )
        1401  +
        /* ServerOperationErrorGenerator.kt:88 */
  684   1402   
    }
        1403  +
    /* ServerOperationErrorGenerator.kt:87 */
  685   1404   
    /// Returns `true` if the error kind is `ListSnapshotBlocksError::ValidationException`.
        1405  +
    /* ServerOperationErrorGenerator.kt:88 */
  686   1406   
    pub fn is_validation_exception(&self) -> bool {
        1407  +
        /* ServerOperationErrorGenerator.kt:89 */
  687   1408   
        matches!(&self, ListSnapshotBlocksError::ValidationException(_))
        1409  +
        /* ServerOperationErrorGenerator.kt:88 */
  688   1410   
    }
        1411  +
    /* ServerOperationErrorGenerator.kt:92 */
  689   1412   
    /// Returns the error name string by matching the correct variant.
        1413  +
    /* ServerOperationErrorGenerator.kt:93 */
  690   1414   
    pub fn name(&self) -> &'static str {
        1415  +
        /* ServerOperationErrorGenerator.kt:139 */
  691   1416   
        match &self {
  692         -
            ListSnapshotBlocksError::InternalServerException(_inner) => _inner.name(),
  693         -
            ListSnapshotBlocksError::ResourceNotFoundException(_inner) => _inner.name(),
  694         -
            ListSnapshotBlocksError::AccessDeniedException(_inner) => _inner.name(),
  695         -
            ListSnapshotBlocksError::RequestThrottledException(_inner) => _inner.name(),
  696         -
            ListSnapshotBlocksError::ServiceQuotaExceededException(_inner) => _inner.name(),
  697         -
            ListSnapshotBlocksError::ValidationException(_inner) => _inner.name(),
        1417  +
            /* ServerOperationErrorGenerator.kt:142 */
        1418  +
            ListSnapshotBlocksError::InternalServerException(_inner) =>
        1419  +
            /* ServerOperationErrorGenerator.kt:95 */
        1420  +
            {
        1421  +
                _inner.name()
        1422  +
            }
        1423  +
            ,
        1424  +
            /* ServerOperationErrorGenerator.kt:142 */
        1425  +
            ListSnapshotBlocksError::ResourceNotFoundException(_inner) =>
        1426  +
            /* ServerOperationErrorGenerator.kt:95 */
        1427  +
            {
        1428  +
                _inner.name()
        1429  +
            }
        1430  +
            ,
        1431  +
            /* ServerOperationErrorGenerator.kt:142 */
        1432  +
            ListSnapshotBlocksError::AccessDeniedException(_inner) =>
        1433  +
            /* ServerOperationErrorGenerator.kt:95 */
        1434  +
            {
        1435  +
                _inner.name()
        1436  +
            }
        1437  +
            ,
        1438  +
            /* ServerOperationErrorGenerator.kt:142 */
        1439  +
            ListSnapshotBlocksError::RequestThrottledException(_inner) =>
        1440  +
            /* ServerOperationErrorGenerator.kt:95 */
        1441  +
            {
        1442  +
                _inner.name()
        1443  +
            }
        1444  +
            ,
        1445  +
            /* ServerOperationErrorGenerator.kt:142 */
        1446  +
            ListSnapshotBlocksError::ServiceQuotaExceededException(_inner) =>
        1447  +
            /* ServerOperationErrorGenerator.kt:95 */
        1448  +
            {
        1449  +
                _inner.name()
        1450  +
            }
        1451  +
            ,
        1452  +
            /* ServerOperationErrorGenerator.kt:142 */
        1453  +
            ListSnapshotBlocksError::ValidationException(_inner) =>
        1454  +
            /* ServerOperationErrorGenerator.kt:95 */
        1455  +
            {
        1456  +
                _inner.name()
        1457  +
            }
        1458  +
            /* ServerOperationErrorGenerator.kt:139 */
  698   1459   
        }
        1460  +
        /* ServerOperationErrorGenerator.kt:93 */
  699   1461   
    }
        1462  +
    /* ServerOperationErrorGenerator.kt:83 */
  700   1463   
}
        1464  +
/* ServerOperationErrorGenerator.kt:100 */
  701   1465   
impl ::std::error::Error for ListSnapshotBlocksError {
        1466  +
    /* ServerOperationErrorGenerator.kt:101 */
  702   1467   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1468  +
        /* ServerOperationErrorGenerator.kt:139 */
  703   1469   
        match &self {
  704         -
            ListSnapshotBlocksError::InternalServerException(_inner) => Some(_inner),
  705         -
            ListSnapshotBlocksError::ResourceNotFoundException(_inner) => Some(_inner),
  706         -
            ListSnapshotBlocksError::AccessDeniedException(_inner) => Some(_inner),
  707         -
            ListSnapshotBlocksError::RequestThrottledException(_inner) => Some(_inner),
  708         -
            ListSnapshotBlocksError::ServiceQuotaExceededException(_inner) => Some(_inner),
  709         -
            ListSnapshotBlocksError::ValidationException(_inner) => Some(_inner),
        1470  +
            /* ServerOperationErrorGenerator.kt:142 */
        1471  +
            ListSnapshotBlocksError::InternalServerException(_inner) =>
        1472  +
            /* ServerOperationErrorGenerator.kt:103 */
        1473  +
            {
        1474  +
                Some(_inner)
        1475  +
            }
        1476  +
            ,
        1477  +
            /* ServerOperationErrorGenerator.kt:142 */
        1478  +
            ListSnapshotBlocksError::ResourceNotFoundException(_inner) =>
        1479  +
            /* ServerOperationErrorGenerator.kt:103 */
        1480  +
            {
        1481  +
                Some(_inner)
        1482  +
            }
        1483  +
            ,
        1484  +
            /* ServerOperationErrorGenerator.kt:142 */
        1485  +
            ListSnapshotBlocksError::AccessDeniedException(_inner) =>
        1486  +
            /* ServerOperationErrorGenerator.kt:103 */
        1487  +
            {
        1488  +
                Some(_inner)
  710   1489   
            }
        1490  +
            ,
        1491  +
            /* ServerOperationErrorGenerator.kt:142 */
        1492  +
            ListSnapshotBlocksError::RequestThrottledException(_inner) =>
        1493  +
            /* ServerOperationErrorGenerator.kt:103 */
        1494  +
            {
        1495  +
                Some(_inner)
  711   1496   
            }
        1497  +
            ,
        1498  +
            /* ServerOperationErrorGenerator.kt:142 */
        1499  +
            ListSnapshotBlocksError::ServiceQuotaExceededException(_inner) =>
        1500  +
            /* ServerOperationErrorGenerator.kt:103 */
        1501  +
            {
        1502  +
                Some(_inner)
        1503  +
            }
        1504  +
            ,
        1505  +
            /* ServerOperationErrorGenerator.kt:142 */
        1506  +
            ListSnapshotBlocksError::ValidationException(_inner) =>
        1507  +
            /* ServerOperationErrorGenerator.kt:103 */
        1508  +
            {
        1509  +
                Some(_inner)
        1510  +
            }
        1511  +
            /* ServerOperationErrorGenerator.kt:139 */
        1512  +
        }
        1513  +
        /* ServerOperationErrorGenerator.kt:101 */
        1514  +
    }
        1515  +
    /* ServerOperationErrorGenerator.kt:100 */
  712   1516   
}
        1517  +
/* ServerOperationErrorGenerator.kt:110 */
  713   1518   
impl ::std::convert::From<crate::error::InternalServerException>
  714   1519   
    for crate::error::ListSnapshotBlocksError
  715   1520   
{
        1521  +
    /* ServerOperationErrorGenerator.kt:111 */
  716   1522   
    fn from(
  717   1523   
        variant: crate::error::InternalServerException,
  718   1524   
    ) -> crate::error::ListSnapshotBlocksError {
        1525  +
        /* ServerOperationErrorGenerator.kt:112 */
  719   1526   
        Self::InternalServerException(variant)
        1527  +
        /* ServerOperationErrorGenerator.kt:111 */
  720   1528   
    }
        1529  +
    /* ServerOperationErrorGenerator.kt:110 */
  721   1530   
}
        1531  +
/* ServerOperationErrorGenerator.kt:110 */
  722   1532   
impl ::std::convert::From<crate::error::ResourceNotFoundException>
  723   1533   
    for crate::error::ListSnapshotBlocksError
  724   1534   
{
        1535  +
    /* ServerOperationErrorGenerator.kt:111 */
  725   1536   
    fn from(
  726   1537   
        variant: crate::error::ResourceNotFoundException,
  727   1538   
    ) -> crate::error::ListSnapshotBlocksError {
        1539  +
        /* ServerOperationErrorGenerator.kt:112 */
  728   1540   
        Self::ResourceNotFoundException(variant)
        1541  +
        /* ServerOperationErrorGenerator.kt:111 */
  729   1542   
    }
        1543  +
    /* ServerOperationErrorGenerator.kt:110 */
  730   1544   
}
        1545  +
/* ServerOperationErrorGenerator.kt:110 */
  731   1546   
impl ::std::convert::From<crate::error::AccessDeniedException>
  732   1547   
    for crate::error::ListSnapshotBlocksError
  733   1548   
{
        1549  +
    /* ServerOperationErrorGenerator.kt:111 */
  734   1550   
    fn from(variant: crate::error::AccessDeniedException) -> crate::error::ListSnapshotBlocksError {
        1551  +
        /* ServerOperationErrorGenerator.kt:112 */
  735   1552   
        Self::AccessDeniedException(variant)
        1553  +
        /* ServerOperationErrorGenerator.kt:111 */
  736   1554   
    }
        1555  +
    /* ServerOperationErrorGenerator.kt:110 */
  737   1556   
}
        1557  +
/* ServerOperationErrorGenerator.kt:110 */
  738   1558   
impl ::std::convert::From<crate::error::RequestThrottledException>
  739   1559   
    for crate::error::ListSnapshotBlocksError
  740   1560   
{
        1561  +
    /* ServerOperationErrorGenerator.kt:111 */
  741   1562   
    fn from(
  742   1563   
        variant: crate::error::RequestThrottledException,
  743   1564   
    ) -> crate::error::ListSnapshotBlocksError {
        1565  +
        /* ServerOperationErrorGenerator.kt:112 */
  744   1566   
        Self::RequestThrottledException(variant)
        1567  +
        /* ServerOperationErrorGenerator.kt:111 */
  745   1568   
    }
        1569  +
    /* ServerOperationErrorGenerator.kt:110 */
  746   1570   
}
        1571  +
/* ServerOperationErrorGenerator.kt:110 */
  747   1572   
impl ::std::convert::From<crate::error::ServiceQuotaExceededException>
  748   1573   
    for crate::error::ListSnapshotBlocksError
  749   1574   
{
        1575  +
    /* ServerOperationErrorGenerator.kt:111 */
  750   1576   
    fn from(
  751   1577   
        variant: crate::error::ServiceQuotaExceededException,
  752   1578   
    ) -> crate::error::ListSnapshotBlocksError {
        1579  +
        /* ServerOperationErrorGenerator.kt:112 */
  753   1580   
        Self::ServiceQuotaExceededException(variant)
        1581  +
        /* ServerOperationErrorGenerator.kt:111 */
  754   1582   
    }
        1583  +
    /* ServerOperationErrorGenerator.kt:110 */
  755   1584   
}
        1585  +
/* ServerOperationErrorGenerator.kt:110 */
  756   1586   
impl ::std::convert::From<crate::error::ValidationException>
  757   1587   
    for crate::error::ListSnapshotBlocksError
  758   1588   
{
        1589  +
    /* ServerOperationErrorGenerator.kt:111 */
  759   1590   
    fn from(variant: crate::error::ValidationException) -> crate::error::ListSnapshotBlocksError {
        1591  +
        /* ServerOperationErrorGenerator.kt:112 */
  760   1592   
        Self::ValidationException(variant)
        1593  +
        /* ServerOperationErrorGenerator.kt:111 */
  761   1594   
    }
        1595  +
    /* ServerOperationErrorGenerator.kt:110 */
  762   1596   
}
  763   1597   
        1598  +
/* ServerOperationErrorGenerator.kt:63 */
  764   1599   
/// Error type for the `ListChangedBlocks` operation.
        1600  +
/* ServerOperationErrorGenerator.kt:64 */
  765   1601   
/// Each variant represents an error that can occur for the `ListChangedBlocks` operation.
        1602  +
/* RustType.kt:516 */
  766   1603   
#[derive(::std::fmt::Debug)]
  767         -
pub enum ListChangedBlocksError {
  768         -
    /// <p>An internal error has occurred.</p>
        1604  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum ListChangedBlocksError {
        1605  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>An internal error has occurred.</p>
        1606  +
    /* ServerOperationErrorGenerator.kt:71 */
  769   1607   
    InternalServerException(crate::error::InternalServerException),
  770         -
    /// <p>The specified resource does not exist.</p>
        1608  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>The specified resource does not exist.</p>
        1609  +
    /* ServerOperationErrorGenerator.kt:71 */
  771   1610   
    ResourceNotFoundException(crate::error::ResourceNotFoundException),
  772         -
    /// <p>You do not have sufficient access to perform this action.</p>
        1611  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>You do not have sufficient access to perform this action.</p>
        1612  +
    /* ServerOperationErrorGenerator.kt:71 */
  773   1613   
    AccessDeniedException(crate::error::AccessDeniedException),
  774         -
    /// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
        1614  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
        1615  +
    /* ServerOperationErrorGenerator.kt:71 */
  775   1616   
    RequestThrottledException(crate::error::RequestThrottledException),
  776         -
    /// <p>Your current service quotas do not allow you to perform this action.</p>
        1617  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>Your current service quotas do not allow you to perform this action.</p>
        1618  +
    /* ServerOperationErrorGenerator.kt:71 */
  777   1619   
    ServiceQuotaExceededException(crate::error::ServiceQuotaExceededException),
  778         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1620  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1621  +
    /* ServerOperationErrorGenerator.kt:71 */
  779   1622   
    ValidationException(crate::error::ValidationException),
        1623  +
    /* ServerOperationErrorGenerator.kt:66 */
  780   1624   
}
        1625  +
/* ServerOperationErrorGenerator.kt:75 */
  781   1626   
impl ::std::fmt::Display for ListChangedBlocksError {
        1627  +
    /* ServerOperationErrorGenerator.kt:76 */
  782   1628   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1629  +
        /* ServerOperationErrorGenerator.kt:139 */
  783   1630   
        match &self {
  784         -
            ListChangedBlocksError::InternalServerException(_inner) => _inner.fmt(f),
  785         -
            ListChangedBlocksError::ResourceNotFoundException(_inner) => _inner.fmt(f),
  786         -
            ListChangedBlocksError::AccessDeniedException(_inner) => _inner.fmt(f),
  787         -
            ListChangedBlocksError::RequestThrottledException(_inner) => _inner.fmt(f),
  788         -
            ListChangedBlocksError::ServiceQuotaExceededException(_inner) => _inner.fmt(f),
  789         -
            ListChangedBlocksError::ValidationException(_inner) => _inner.fmt(f),
        1631  +
            /* ServerOperationErrorGenerator.kt:142 */
        1632  +
            ListChangedBlocksError::InternalServerException(_inner) =>
        1633  +
            /* ServerOperationErrorGenerator.kt:78 */
        1634  +
            {
        1635  +
                _inner.fmt(f)
  790   1636   
            }
        1637  +
            ,
        1638  +
            /* ServerOperationErrorGenerator.kt:142 */
        1639  +
            ListChangedBlocksError::ResourceNotFoundException(_inner) =>
        1640  +
            /* ServerOperationErrorGenerator.kt:78 */
        1641  +
            {
        1642  +
                _inner.fmt(f)
        1643  +
            }
        1644  +
            ,
        1645  +
            /* ServerOperationErrorGenerator.kt:142 */
        1646  +
            ListChangedBlocksError::AccessDeniedException(_inner) =>
        1647  +
            /* ServerOperationErrorGenerator.kt:78 */
        1648  +
            {
        1649  +
                _inner.fmt(f)
        1650  +
            }
        1651  +
            ,
        1652  +
            /* ServerOperationErrorGenerator.kt:142 */
        1653  +
            ListChangedBlocksError::RequestThrottledException(_inner) =>
        1654  +
            /* ServerOperationErrorGenerator.kt:78 */
        1655  +
            {
        1656  +
                _inner.fmt(f)
        1657  +
            }
        1658  +
            ,
        1659  +
            /* ServerOperationErrorGenerator.kt:142 */
        1660  +
            ListChangedBlocksError::ServiceQuotaExceededException(_inner) =>
        1661  +
            /* ServerOperationErrorGenerator.kt:78 */
        1662  +
            {
        1663  +
                _inner.fmt(f)
        1664  +
            }
        1665  +
            ,
        1666  +
            /* ServerOperationErrorGenerator.kt:142 */
        1667  +
            ListChangedBlocksError::ValidationException(_inner) =>
        1668  +
            /* ServerOperationErrorGenerator.kt:78 */
        1669  +
            {
        1670  +
                _inner.fmt(f)
        1671  +
            }
        1672  +
            /* ServerOperationErrorGenerator.kt:139 */
  791   1673   
        }
        1674  +
        /* ServerOperationErrorGenerator.kt:76 */
        1675  +
    }
        1676  +
    /* ServerOperationErrorGenerator.kt:75 */
  792   1677   
}
        1678  +
/* ServerOperationErrorGenerator.kt:83 */
  793   1679   
impl ListChangedBlocksError {
        1680  +
    /* ServerOperationErrorGenerator.kt:87 */
  794   1681   
    /// Returns `true` if the error kind is `ListChangedBlocksError::InternalServerException`.
        1682  +
    /* ServerOperationErrorGenerator.kt:88 */
  795   1683   
    pub fn is_internal_server_exception(&self) -> bool {
        1684  +
        /* ServerOperationErrorGenerator.kt:89 */
  796   1685   
        matches!(&self, ListChangedBlocksError::InternalServerException(_))
        1686  +
        /* ServerOperationErrorGenerator.kt:88 */
  797   1687   
    }
        1688  +
    /* ServerOperationErrorGenerator.kt:87 */
  798   1689   
    /// Returns `true` if the error kind is `ListChangedBlocksError::ResourceNotFoundException`.
        1690  +
    /* ServerOperationErrorGenerator.kt:88 */
  799   1691   
    pub fn is_resource_not_found_exception(&self) -> bool {
        1692  +
        /* ServerOperationErrorGenerator.kt:89 */
  800   1693   
        matches!(&self, ListChangedBlocksError::ResourceNotFoundException(_))
        1694  +
        /* ServerOperationErrorGenerator.kt:88 */
  801   1695   
    }
        1696  +
    /* ServerOperationErrorGenerator.kt:87 */
  802   1697   
    /// Returns `true` if the error kind is `ListChangedBlocksError::AccessDeniedException`.
        1698  +
    /* ServerOperationErrorGenerator.kt:88 */
  803   1699   
    pub fn is_access_denied_exception(&self) -> bool {
        1700  +
        /* ServerOperationErrorGenerator.kt:89 */
  804   1701   
        matches!(&self, ListChangedBlocksError::AccessDeniedException(_))
        1702  +
        /* ServerOperationErrorGenerator.kt:88 */
  805   1703   
    }
        1704  +
    /* ServerOperationErrorGenerator.kt:87 */
  806   1705   
    /// Returns `true` if the error kind is `ListChangedBlocksError::RequestThrottledException`.
        1706  +
    /* ServerOperationErrorGenerator.kt:88 */
  807   1707   
    pub fn is_request_throttled_exception(&self) -> bool {
        1708  +
        /* ServerOperationErrorGenerator.kt:89 */
  808   1709   
        matches!(&self, ListChangedBlocksError::RequestThrottledException(_))
        1710  +
        /* ServerOperationErrorGenerator.kt:88 */
  809   1711   
    }
        1712  +
    /* ServerOperationErrorGenerator.kt:87 */
  810   1713   
    /// Returns `true` if the error kind is `ListChangedBlocksError::ServiceQuotaExceededException`.
        1714  +
    /* ServerOperationErrorGenerator.kt:88 */
  811   1715   
    pub fn is_service_quota_exceeded_exception(&self) -> bool {
        1716  +
        /* ServerOperationErrorGenerator.kt:89 */
  812   1717   
        matches!(
  813   1718   
            &self,
  814   1719   
            ListChangedBlocksError::ServiceQuotaExceededException(_)
  815   1720   
        )
        1721  +
        /* ServerOperationErrorGenerator.kt:88 */
  816   1722   
    }
        1723  +
    /* ServerOperationErrorGenerator.kt:87 */
  817   1724   
    /// Returns `true` if the error kind is `ListChangedBlocksError::ValidationException`.
        1725  +
    /* ServerOperationErrorGenerator.kt:88 */
  818   1726   
    pub fn is_validation_exception(&self) -> bool {
        1727  +
        /* ServerOperationErrorGenerator.kt:89 */
  819   1728   
        matches!(&self, ListChangedBlocksError::ValidationException(_))
        1729  +
        /* ServerOperationErrorGenerator.kt:88 */
  820   1730   
    }
        1731  +
    /* ServerOperationErrorGenerator.kt:92 */
  821   1732   
    /// Returns the error name string by matching the correct variant.
        1733  +
    /* ServerOperationErrorGenerator.kt:93 */
  822   1734   
    pub fn name(&self) -> &'static str {
        1735  +
        /* ServerOperationErrorGenerator.kt:139 */
  823   1736   
        match &self {
  824         -
            ListChangedBlocksError::InternalServerException(_inner) => _inner.name(),
  825         -
            ListChangedBlocksError::ResourceNotFoundException(_inner) => _inner.name(),
  826         -
            ListChangedBlocksError::AccessDeniedException(_inner) => _inner.name(),
  827         -
            ListChangedBlocksError::RequestThrottledException(_inner) => _inner.name(),
  828         -
            ListChangedBlocksError::ServiceQuotaExceededException(_inner) => _inner.name(),
  829         -
            ListChangedBlocksError::ValidationException(_inner) => _inner.name(),
        1737  +
            /* ServerOperationErrorGenerator.kt:142 */
        1738  +
            ListChangedBlocksError::InternalServerException(_inner) =>
        1739  +
            /* ServerOperationErrorGenerator.kt:95 */
        1740  +
            {
        1741  +
                _inner.name()
  830   1742   
            }
        1743  +
            ,
        1744  +
            /* ServerOperationErrorGenerator.kt:142 */
        1745  +
            ListChangedBlocksError::ResourceNotFoundException(_inner) =>
        1746  +
            /* ServerOperationErrorGenerator.kt:95 */
        1747  +
            {
        1748  +
                _inner.name()
        1749  +
            }
        1750  +
            ,
        1751  +
            /* ServerOperationErrorGenerator.kt:142 */
        1752  +
            ListChangedBlocksError::AccessDeniedException(_inner) =>
        1753  +
            /* ServerOperationErrorGenerator.kt:95 */
        1754  +
            {
        1755  +
                _inner.name()
  831   1756   
            }
        1757  +
            ,
        1758  +
            /* ServerOperationErrorGenerator.kt:142 */
        1759  +
            ListChangedBlocksError::RequestThrottledException(_inner) =>
        1760  +
            /* ServerOperationErrorGenerator.kt:95 */
        1761  +
            {
        1762  +
                _inner.name()
        1763  +
            }
        1764  +
            ,
        1765  +
            /* ServerOperationErrorGenerator.kt:142 */
        1766  +
            ListChangedBlocksError::ServiceQuotaExceededException(_inner) =>
        1767  +
            /* ServerOperationErrorGenerator.kt:95 */
        1768  +
            {
        1769  +
                _inner.name()
        1770  +
            }
        1771  +
            ,
        1772  +
            /* ServerOperationErrorGenerator.kt:142 */
        1773  +
            ListChangedBlocksError::ValidationException(_inner) =>
        1774  +
            /* ServerOperationErrorGenerator.kt:95 */
        1775  +
            {
        1776  +
                _inner.name()
        1777  +
            }
        1778  +
            /* ServerOperationErrorGenerator.kt:139 */
        1779  +
        }
        1780  +
        /* ServerOperationErrorGenerator.kt:93 */
        1781  +
    }
        1782  +
    /* ServerOperationErrorGenerator.kt:83 */
  832   1783   
}
        1784  +
/* ServerOperationErrorGenerator.kt:100 */
  833   1785   
impl ::std::error::Error for ListChangedBlocksError {
        1786  +
    /* ServerOperationErrorGenerator.kt:101 */
  834   1787   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1788  +
        /* ServerOperationErrorGenerator.kt:139 */
  835   1789   
        match &self {
  836         -
            ListChangedBlocksError::InternalServerException(_inner) => Some(_inner),
  837         -
            ListChangedBlocksError::ResourceNotFoundException(_inner) => Some(_inner),
  838         -
            ListChangedBlocksError::AccessDeniedException(_inner) => Some(_inner),
  839         -
            ListChangedBlocksError::RequestThrottledException(_inner) => Some(_inner),
  840         -
            ListChangedBlocksError::ServiceQuotaExceededException(_inner) => Some(_inner),
  841         -
            ListChangedBlocksError::ValidationException(_inner) => Some(_inner),
        1790  +
            /* ServerOperationErrorGenerator.kt:142 */
        1791  +
            ListChangedBlocksError::InternalServerException(_inner) =>
        1792  +
            /* ServerOperationErrorGenerator.kt:103 */
        1793  +
            {
        1794  +
                Some(_inner)
  842   1795   
            }
        1796  +
            ,
        1797  +
            /* ServerOperationErrorGenerator.kt:142 */
        1798  +
            ListChangedBlocksError::ResourceNotFoundException(_inner) =>
        1799  +
            /* ServerOperationErrorGenerator.kt:103 */
        1800  +
            {
        1801  +
                Some(_inner)
        1802  +
            }
        1803  +
            ,
        1804  +
            /* ServerOperationErrorGenerator.kt:142 */
        1805  +
            ListChangedBlocksError::AccessDeniedException(_inner) =>
        1806  +
            /* ServerOperationErrorGenerator.kt:103 */
        1807  +
            {
        1808  +
                Some(_inner)
        1809  +
            }
        1810  +
            ,
        1811  +
            /* ServerOperationErrorGenerator.kt:142 */
        1812  +
            ListChangedBlocksError::RequestThrottledException(_inner) =>
        1813  +
            /* ServerOperationErrorGenerator.kt:103 */
        1814  +
            {
        1815  +
                Some(_inner)
        1816  +
            }
        1817  +
            ,
        1818  +
            /* ServerOperationErrorGenerator.kt:142 */
        1819  +
            ListChangedBlocksError::ServiceQuotaExceededException(_inner) =>
        1820  +
            /* ServerOperationErrorGenerator.kt:103 */
        1821  +
            {
        1822  +
                Some(_inner)
  843   1823   
            }
        1824  +
            ,
        1825  +
            /* ServerOperationErrorGenerator.kt:142 */
        1826  +
            ListChangedBlocksError::ValidationException(_inner) =>
        1827  +
            /* ServerOperationErrorGenerator.kt:103 */
        1828  +
            {
        1829  +
                Some(_inner)
        1830  +
            }
        1831  +
            /* ServerOperationErrorGenerator.kt:139 */
        1832  +
        }
        1833  +
        /* ServerOperationErrorGenerator.kt:101 */
        1834  +
    }
        1835  +
    /* ServerOperationErrorGenerator.kt:100 */
  844   1836   
}
        1837  +
/* ServerOperationErrorGenerator.kt:110 */
  845   1838   
impl ::std::convert::From<crate::error::InternalServerException>
  846   1839   
    for crate::error::ListChangedBlocksError
  847   1840   
{
        1841  +
    /* ServerOperationErrorGenerator.kt:111 */
  848   1842   
    fn from(
  849   1843   
        variant: crate::error::InternalServerException,
  850   1844   
    ) -> crate::error::ListChangedBlocksError {
        1845  +
        /* ServerOperationErrorGenerator.kt:112 */
  851   1846   
        Self::InternalServerException(variant)
        1847  +
        /* ServerOperationErrorGenerator.kt:111 */
  852   1848   
    }
        1849  +
    /* ServerOperationErrorGenerator.kt:110 */
  853   1850   
}
        1851  +
/* ServerOperationErrorGenerator.kt:110 */
  854   1852   
impl ::std::convert::From<crate::error::ResourceNotFoundException>
  855   1853   
    for crate::error::ListChangedBlocksError
  856   1854   
{
        1855  +
    /* ServerOperationErrorGenerator.kt:111 */
  857   1856   
    fn from(
  858   1857   
        variant: crate::error::ResourceNotFoundException,
  859   1858   
    ) -> crate::error::ListChangedBlocksError {
        1859  +
        /* ServerOperationErrorGenerator.kt:112 */
  860   1860   
        Self::ResourceNotFoundException(variant)
        1861  +
        /* ServerOperationErrorGenerator.kt:111 */
  861   1862   
    }
        1863  +
    /* ServerOperationErrorGenerator.kt:110 */
  862   1864   
}
        1865  +
/* ServerOperationErrorGenerator.kt:110 */
  863   1866   
impl ::std::convert::From<crate::error::AccessDeniedException>
  864   1867   
    for crate::error::ListChangedBlocksError
  865   1868   
{
        1869  +
    /* ServerOperationErrorGenerator.kt:111 */
  866   1870   
    fn from(variant: crate::error::AccessDeniedException) -> crate::error::ListChangedBlocksError {
        1871  +
        /* ServerOperationErrorGenerator.kt:112 */
  867   1872   
        Self::AccessDeniedException(variant)
        1873  +
        /* ServerOperationErrorGenerator.kt:111 */
  868   1874   
    }
        1875  +
    /* ServerOperationErrorGenerator.kt:110 */
  869   1876   
}
        1877  +
/* ServerOperationErrorGenerator.kt:110 */
  870   1878   
impl ::std::convert::From<crate::error::RequestThrottledException>
  871   1879   
    for crate::error::ListChangedBlocksError
  872   1880   
{
        1881  +
    /* ServerOperationErrorGenerator.kt:111 */
  873   1882   
    fn from(
  874   1883   
        variant: crate::error::RequestThrottledException,
  875   1884   
    ) -> crate::error::ListChangedBlocksError {
        1885  +
        /* ServerOperationErrorGenerator.kt:112 */
  876   1886   
        Self::RequestThrottledException(variant)
        1887  +
        /* ServerOperationErrorGenerator.kt:111 */
  877   1888   
    }
        1889  +
    /* ServerOperationErrorGenerator.kt:110 */
  878   1890   
}
        1891  +
/* ServerOperationErrorGenerator.kt:110 */
  879   1892   
impl ::std::convert::From<crate::error::ServiceQuotaExceededException>
  880   1893   
    for crate::error::ListChangedBlocksError
  881   1894   
{
        1895  +
    /* ServerOperationErrorGenerator.kt:111 */
  882   1896   
    fn from(
  883   1897   
        variant: crate::error::ServiceQuotaExceededException,
  884   1898   
    ) -> crate::error::ListChangedBlocksError {
        1899  +
        /* ServerOperationErrorGenerator.kt:112 */
  885   1900   
        Self::ServiceQuotaExceededException(variant)
        1901  +
        /* ServerOperationErrorGenerator.kt:111 */
  886   1902   
    }
        1903  +
    /* ServerOperationErrorGenerator.kt:110 */
  887   1904   
}
        1905  +
/* ServerOperationErrorGenerator.kt:110 */
  888   1906   
impl ::std::convert::From<crate::error::ValidationException>
  889   1907   
    for crate::error::ListChangedBlocksError
  890   1908   
{
        1909  +
    /* ServerOperationErrorGenerator.kt:111 */
  891   1910   
    fn from(variant: crate::error::ValidationException) -> crate::error::ListChangedBlocksError {
        1911  +
        /* ServerOperationErrorGenerator.kt:112 */
  892   1912   
        Self::ValidationException(variant)
        1913  +
        /* ServerOperationErrorGenerator.kt:111 */
  893   1914   
    }
        1915  +
    /* ServerOperationErrorGenerator.kt:110 */
  894   1916   
}
  895   1917   
        1918  +
/* ServerOperationErrorGenerator.kt:63 */
  896   1919   
/// Error type for the `GetSnapshotBlock` operation.
        1920  +
/* ServerOperationErrorGenerator.kt:64 */
  897   1921   
/// Each variant represents an error that can occur for the `GetSnapshotBlock` operation.
        1922  +
/* RustType.kt:516 */
  898   1923   
#[derive(::std::fmt::Debug)]
  899         -
pub enum GetSnapshotBlockError {
  900         -
    /// <p>An internal error has occurred.</p>
        1924  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum GetSnapshotBlockError {
        1925  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>An internal error has occurred.</p>
        1926  +
    /* ServerOperationErrorGenerator.kt:71 */
  901   1927   
    InternalServerException(crate::error::InternalServerException),
  902         -
    /// <p>The specified resource does not exist.</p>
        1928  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>The specified resource does not exist.</p>
        1929  +
    /* ServerOperationErrorGenerator.kt:71 */
  903   1930   
    ResourceNotFoundException(crate::error::ResourceNotFoundException),
  904         -
    /// <p>You do not have sufficient access to perform this action.</p>
        1931  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>You do not have sufficient access to perform this action.</p>
        1932  +
    /* ServerOperationErrorGenerator.kt:71 */
  905   1933   
    AccessDeniedException(crate::error::AccessDeniedException),
  906         -
    /// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
        1934  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
        1935  +
    /* ServerOperationErrorGenerator.kt:71 */
  907   1936   
    RequestThrottledException(crate::error::RequestThrottledException),
  908         -
    /// <p>Your current service quotas do not allow you to perform this action.</p>
        1937  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>Your current service quotas do not allow you to perform this action.</p>
        1938  +
    /* ServerOperationErrorGenerator.kt:71 */
  909   1939   
    ServiceQuotaExceededException(crate::error::ServiceQuotaExceededException),
  910         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1940  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1941  +
    /* ServerOperationErrorGenerator.kt:71 */
  911   1942   
    ValidationException(crate::error::ValidationException),
        1943  +
    /* ServerOperationErrorGenerator.kt:66 */
  912   1944   
}
        1945  +
/* ServerOperationErrorGenerator.kt:75 */
  913   1946   
impl ::std::fmt::Display for GetSnapshotBlockError {
        1947  +
    /* ServerOperationErrorGenerator.kt:76 */
  914   1948   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1949  +
        /* ServerOperationErrorGenerator.kt:139 */
  915   1950   
        match &self {
  916         -
            GetSnapshotBlockError::InternalServerException(_inner) => _inner.fmt(f),
  917         -
            GetSnapshotBlockError::ResourceNotFoundException(_inner) => _inner.fmt(f),
  918         -
            GetSnapshotBlockError::AccessDeniedException(_inner) => _inner.fmt(f),
  919         -
            GetSnapshotBlockError::RequestThrottledException(_inner) => _inner.fmt(f),
  920         -
            GetSnapshotBlockError::ServiceQuotaExceededException(_inner) => _inner.fmt(f),
  921         -
            GetSnapshotBlockError::ValidationException(_inner) => _inner.fmt(f),
        1951  +
            /* ServerOperationErrorGenerator.kt:142 */
        1952  +
            GetSnapshotBlockError::InternalServerException(_inner) =>
        1953  +
            /* ServerOperationErrorGenerator.kt:78 */
        1954  +
            {
        1955  +
                _inner.fmt(f)
        1956  +
            }
        1957  +
            ,
        1958  +
            /* ServerOperationErrorGenerator.kt:142 */
        1959  +
            GetSnapshotBlockError::ResourceNotFoundException(_inner) =>
        1960  +
            /* ServerOperationErrorGenerator.kt:78 */
        1961  +
            {
        1962  +
                _inner.fmt(f)
        1963  +
            }
        1964  +
            ,
        1965  +
            /* ServerOperationErrorGenerator.kt:142 */
        1966  +
            GetSnapshotBlockError::AccessDeniedException(_inner) =>
        1967  +
            /* ServerOperationErrorGenerator.kt:78 */
        1968  +
            {
        1969  +
                _inner.fmt(f)
        1970  +
            }
        1971  +
            ,
        1972  +
            /* ServerOperationErrorGenerator.kt:142 */
        1973  +
            GetSnapshotBlockError::RequestThrottledException(_inner) =>
        1974  +
            /* ServerOperationErrorGenerator.kt:78 */
        1975  +
            {
        1976  +
                _inner.fmt(f)
        1977  +
            }
        1978  +
            ,
        1979  +
            /* ServerOperationErrorGenerator.kt:142 */
        1980  +
            GetSnapshotBlockError::ServiceQuotaExceededException(_inner) =>
        1981  +
            /* ServerOperationErrorGenerator.kt:78 */
        1982  +
            {
        1983  +
                _inner.fmt(f)
        1984  +
            }
        1985  +
            ,
        1986  +
            /* ServerOperationErrorGenerator.kt:142 */
        1987  +
            GetSnapshotBlockError::ValidationException(_inner) =>
        1988  +
            /* ServerOperationErrorGenerator.kt:78 */
        1989  +
            {
        1990  +
                _inner.fmt(f)
  922   1991   
            }
        1992  +
            /* ServerOperationErrorGenerator.kt:139 */
  923   1993   
        }
        1994  +
        /* ServerOperationErrorGenerator.kt:76 */
        1995  +
    }
        1996  +
    /* ServerOperationErrorGenerator.kt:75 */
  924   1997   
}
        1998  +
/* ServerOperationErrorGenerator.kt:83 */
  925   1999   
impl GetSnapshotBlockError {
        2000  +
    /* ServerOperationErrorGenerator.kt:87 */
  926   2001   
    /// Returns `true` if the error kind is `GetSnapshotBlockError::InternalServerException`.
        2002  +
    /* ServerOperationErrorGenerator.kt:88 */
  927   2003   
    pub fn is_internal_server_exception(&self) -> bool {
        2004  +
        /* ServerOperationErrorGenerator.kt:89 */
  928   2005   
        matches!(&self, GetSnapshotBlockError::InternalServerException(_))
        2006  +
        /* ServerOperationErrorGenerator.kt:88 */
  929   2007   
    }
        2008  +
    /* ServerOperationErrorGenerator.kt:87 */
  930   2009   
    /// Returns `true` if the error kind is `GetSnapshotBlockError::ResourceNotFoundException`.
        2010  +
    /* ServerOperationErrorGenerator.kt:88 */
  931   2011   
    pub fn is_resource_not_found_exception(&self) -> bool {
        2012  +
        /* ServerOperationErrorGenerator.kt:89 */
  932   2013   
        matches!(&self, GetSnapshotBlockError::ResourceNotFoundException(_))
        2014  +
        /* ServerOperationErrorGenerator.kt:88 */
  933   2015   
    }
        2016  +
    /* ServerOperationErrorGenerator.kt:87 */
  934   2017   
    /// Returns `true` if the error kind is `GetSnapshotBlockError::AccessDeniedException`.
        2018  +
    /* ServerOperationErrorGenerator.kt:88 */
  935   2019   
    pub fn is_access_denied_exception(&self) -> bool {
        2020  +
        /* ServerOperationErrorGenerator.kt:89 */
  936   2021   
        matches!(&self, GetSnapshotBlockError::AccessDeniedException(_))
        2022  +
        /* ServerOperationErrorGenerator.kt:88 */
  937   2023   
    }
        2024  +
    /* ServerOperationErrorGenerator.kt:87 */
  938   2025   
    /// Returns `true` if the error kind is `GetSnapshotBlockError::RequestThrottledException`.
        2026  +
    /* ServerOperationErrorGenerator.kt:88 */
  939   2027   
    pub fn is_request_throttled_exception(&self) -> bool {
        2028  +
        /* ServerOperationErrorGenerator.kt:89 */
  940   2029   
        matches!(&self, GetSnapshotBlockError::RequestThrottledException(_))
        2030  +
        /* ServerOperationErrorGenerator.kt:88 */
  941   2031   
    }
        2032  +
    /* ServerOperationErrorGenerator.kt:87 */
  942   2033   
    /// Returns `true` if the error kind is `GetSnapshotBlockError::ServiceQuotaExceededException`.
        2034  +
    /* ServerOperationErrorGenerator.kt:88 */
  943   2035   
    pub fn is_service_quota_exceeded_exception(&self) -> bool {
        2036  +
        /* ServerOperationErrorGenerator.kt:89 */
  944   2037   
        matches!(
  945   2038   
            &self,
  946   2039   
            GetSnapshotBlockError::ServiceQuotaExceededException(_)
  947   2040   
        )
        2041  +
        /* ServerOperationErrorGenerator.kt:88 */
  948   2042   
    }
        2043  +
    /* ServerOperationErrorGenerator.kt:87 */
  949   2044   
    /// Returns `true` if the error kind is `GetSnapshotBlockError::ValidationException`.
        2045  +
    /* ServerOperationErrorGenerator.kt:88 */
  950   2046   
    pub fn is_validation_exception(&self) -> bool {
        2047  +
        /* ServerOperationErrorGenerator.kt:89 */
  951   2048   
        matches!(&self, GetSnapshotBlockError::ValidationException(_))
        2049  +
        /* ServerOperationErrorGenerator.kt:88 */
  952   2050   
    }
        2051  +
    /* ServerOperationErrorGenerator.kt:92 */
  953   2052   
    /// Returns the error name string by matching the correct variant.
        2053  +
    /* ServerOperationErrorGenerator.kt:93 */
  954   2054   
    pub fn name(&self) -> &'static str {
        2055  +
        /* ServerOperationErrorGenerator.kt:139 */
  955   2056   
        match &self {
  956         -
            GetSnapshotBlockError::InternalServerException(_inner) => _inner.name(),
  957         -
            GetSnapshotBlockError::ResourceNotFoundException(_inner) => _inner.name(),
  958         -
            GetSnapshotBlockError::AccessDeniedException(_inner) => _inner.name(),
  959         -
            GetSnapshotBlockError::RequestThrottledException(_inner) => _inner.name(),
  960         -
            GetSnapshotBlockError::ServiceQuotaExceededException(_inner) => _inner.name(),
  961         -
            GetSnapshotBlockError::ValidationException(_inner) => _inner.name(),
        2057  +
            /* ServerOperationErrorGenerator.kt:142 */
        2058  +
            GetSnapshotBlockError::InternalServerException(_inner) =>
        2059  +
            /* ServerOperationErrorGenerator.kt:95 */
        2060  +
            {
        2061  +
                _inner.name()
        2062  +
            }
        2063  +
            ,
        2064  +
            /* ServerOperationErrorGenerator.kt:142 */
        2065  +
            GetSnapshotBlockError::ResourceNotFoundException(_inner) =>
        2066  +
            /* ServerOperationErrorGenerator.kt:95 */
        2067  +
            {
        2068  +
                _inner.name()
  962   2069   
            }
        2070  +
            ,
        2071  +
            /* ServerOperationErrorGenerator.kt:142 */
        2072  +
            GetSnapshotBlockError::AccessDeniedException(_inner) =>
        2073  +
            /* ServerOperationErrorGenerator.kt:95 */
        2074  +
            {
        2075  +
                _inner.name()
        2076  +
            }
        2077  +
            ,
        2078  +
            /* ServerOperationErrorGenerator.kt:142 */
        2079  +
            GetSnapshotBlockError::RequestThrottledException(_inner) =>
        2080  +
            /* ServerOperationErrorGenerator.kt:95 */
        2081  +
            {
        2082  +
                _inner.name()
  963   2083   
            }
        2084  +
            ,
        2085  +
            /* ServerOperationErrorGenerator.kt:142 */
        2086  +
            GetSnapshotBlockError::ServiceQuotaExceededException(_inner) =>
        2087  +
            /* ServerOperationErrorGenerator.kt:95 */
        2088  +
            {
        2089  +
                _inner.name()
        2090  +
            }
        2091  +
            ,
        2092  +
            /* ServerOperationErrorGenerator.kt:142 */
        2093  +
            GetSnapshotBlockError::ValidationException(_inner) =>
        2094  +
            /* ServerOperationErrorGenerator.kt:95 */
        2095  +
            {
        2096  +
                _inner.name()
        2097  +
            }
        2098  +
            /* ServerOperationErrorGenerator.kt:139 */
        2099  +
        }
        2100  +
        /* ServerOperationErrorGenerator.kt:93 */
        2101  +
    }
        2102  +
    /* ServerOperationErrorGenerator.kt:83 */
  964   2103   
}
        2104  +
/* ServerOperationErrorGenerator.kt:100 */
  965   2105   
impl ::std::error::Error for GetSnapshotBlockError {
        2106  +
    /* ServerOperationErrorGenerator.kt:101 */
  966   2107   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        2108  +
        /* ServerOperationErrorGenerator.kt:139 */
  967   2109   
        match &self {
  968         -
            GetSnapshotBlockError::InternalServerException(_inner) => Some(_inner),
  969         -
            GetSnapshotBlockError::ResourceNotFoundException(_inner) => Some(_inner),
  970         -
            GetSnapshotBlockError::AccessDeniedException(_inner) => Some(_inner),
  971         -
            GetSnapshotBlockError::RequestThrottledException(_inner) => Some(_inner),
  972         -
            GetSnapshotBlockError::ServiceQuotaExceededException(_inner) => Some(_inner),
  973         -
            GetSnapshotBlockError::ValidationException(_inner) => Some(_inner),
        2110  +
            /* ServerOperationErrorGenerator.kt:142 */
        2111  +
            GetSnapshotBlockError::InternalServerException(_inner) =>
        2112  +
            /* ServerOperationErrorGenerator.kt:103 */
        2113  +
            {
        2114  +
                Some(_inner)
  974   2115   
            }
        2116  +
            ,
        2117  +
            /* ServerOperationErrorGenerator.kt:142 */
        2118  +
            GetSnapshotBlockError::ResourceNotFoundException(_inner) =>
        2119  +
            /* ServerOperationErrorGenerator.kt:103 */
        2120  +
            {
        2121  +
                Some(_inner)
  975   2122   
            }
        2123  +
            ,
        2124  +
            /* ServerOperationErrorGenerator.kt:142 */
        2125  +
            GetSnapshotBlockError::AccessDeniedException(_inner) =>
        2126  +
            /* ServerOperationErrorGenerator.kt:103 */
        2127  +
            {
        2128  +
                Some(_inner)
        2129  +
            }
        2130  +
            ,
        2131  +
            /* ServerOperationErrorGenerator.kt:142 */
        2132  +
            GetSnapshotBlockError::RequestThrottledException(_inner) =>
        2133  +
            /* ServerOperationErrorGenerator.kt:103 */
        2134  +
            {
        2135  +
                Some(_inner)
        2136  +
            }
        2137  +
            ,
        2138  +
            /* ServerOperationErrorGenerator.kt:142 */
        2139  +
            GetSnapshotBlockError::ServiceQuotaExceededException(_inner) =>
        2140  +
            /* ServerOperationErrorGenerator.kt:103 */
        2141  +
            {
        2142  +
                Some(_inner)
        2143  +
            }
        2144  +
            ,
        2145  +
            /* ServerOperationErrorGenerator.kt:142 */
        2146  +
            GetSnapshotBlockError::ValidationException(_inner) =>
        2147  +
            /* ServerOperationErrorGenerator.kt:103 */
        2148  +
            {
        2149  +
                Some(_inner)
        2150  +
            }
        2151  +
            /* ServerOperationErrorGenerator.kt:139 */
        2152  +
        }
        2153  +
        /* ServerOperationErrorGenerator.kt:101 */
        2154  +
    }
        2155  +
    /* ServerOperationErrorGenerator.kt:100 */
  976   2156   
}
        2157  +
/* ServerOperationErrorGenerator.kt:110 */
  977   2158   
impl ::std::convert::From<crate::error::InternalServerException>
  978   2159   
    for crate::error::GetSnapshotBlockError
  979   2160   
{
        2161  +
    /* ServerOperationErrorGenerator.kt:111 */
  980   2162   
    fn from(variant: crate::error::InternalServerException) -> crate::error::GetSnapshotBlockError {
        2163  +
        /* ServerOperationErrorGenerator.kt:112 */
  981   2164   
        Self::InternalServerException(variant)
        2165  +
        /* ServerOperationErrorGenerator.kt:111 */
  982   2166   
    }
        2167  +
    /* ServerOperationErrorGenerator.kt:110 */
  983   2168   
}
        2169  +
/* ServerOperationErrorGenerator.kt:110 */
  984   2170   
impl ::std::convert::From<crate::error::ResourceNotFoundException>
  985   2171   
    for crate::error::GetSnapshotBlockError
  986   2172   
{
        2173  +
    /* ServerOperationErrorGenerator.kt:111 */
  987   2174   
    fn from(
  988   2175   
        variant: crate::error::ResourceNotFoundException,
  989   2176   
    ) -> crate::error::GetSnapshotBlockError {
        2177  +
        /* ServerOperationErrorGenerator.kt:112 */
  990   2178   
        Self::ResourceNotFoundException(variant)
        2179  +
        /* ServerOperationErrorGenerator.kt:111 */
  991   2180   
    }
        2181  +
    /* ServerOperationErrorGenerator.kt:110 */
  992   2182   
}
        2183  +
/* ServerOperationErrorGenerator.kt:110 */
  993   2184   
impl ::std::convert::From<crate::error::AccessDeniedException>
  994   2185   
    for crate::error::GetSnapshotBlockError
  995   2186   
{
        2187  +
    /* ServerOperationErrorGenerator.kt:111 */
  996   2188   
    fn from(variant: crate::error::AccessDeniedException) -> crate::error::GetSnapshotBlockError {
        2189  +
        /* ServerOperationErrorGenerator.kt:112 */
  997   2190   
        Self::AccessDeniedException(variant)
        2191  +
        /* ServerOperationErrorGenerator.kt:111 */
  998   2192   
    }
        2193  +
    /* ServerOperationErrorGenerator.kt:110 */
  999   2194   
}
        2195  +
/* ServerOperationErrorGenerator.kt:110 */
 1000   2196   
impl ::std::convert::From<crate::error::RequestThrottledException>
 1001   2197   
    for crate::error::GetSnapshotBlockError
 1002   2198   
{
        2199  +
    /* ServerOperationErrorGenerator.kt:111 */
 1003   2200   
    fn from(
 1004   2201   
        variant: crate::error::RequestThrottledException,
 1005   2202   
    ) -> crate::error::GetSnapshotBlockError {
        2203  +
        /* ServerOperationErrorGenerator.kt:112 */
 1006   2204   
        Self::RequestThrottledException(variant)
        2205  +
        /* ServerOperationErrorGenerator.kt:111 */
 1007   2206   
    }
        2207  +
    /* ServerOperationErrorGenerator.kt:110 */
 1008   2208   
}
        2209  +
/* ServerOperationErrorGenerator.kt:110 */
 1009   2210   
impl ::std::convert::From<crate::error::ServiceQuotaExceededException>
 1010   2211   
    for crate::error::GetSnapshotBlockError
 1011   2212   
{
        2213  +
    /* ServerOperationErrorGenerator.kt:111 */
 1012   2214   
    fn from(
 1013   2215   
        variant: crate::error::ServiceQuotaExceededException,
 1014   2216   
    ) -> crate::error::GetSnapshotBlockError {
        2217  +
        /* ServerOperationErrorGenerator.kt:112 */
 1015   2218   
        Self::ServiceQuotaExceededException(variant)
        2219  +
        /* ServerOperationErrorGenerator.kt:111 */
 1016   2220   
    }
        2221  +
    /* ServerOperationErrorGenerator.kt:110 */
 1017   2222   
}
        2223  +
/* ServerOperationErrorGenerator.kt:110 */
 1018   2224   
impl ::std::convert::From<crate::error::ValidationException>
 1019   2225   
    for crate::error::GetSnapshotBlockError
 1020   2226   
{
        2227  +
    /* ServerOperationErrorGenerator.kt:111 */
 1021   2228   
    fn from(variant: crate::error::ValidationException) -> crate::error::GetSnapshotBlockError {
        2229  +
        /* ServerOperationErrorGenerator.kt:112 */
 1022   2230   
        Self::ValidationException(variant)
        2231  +
        /* ServerOperationErrorGenerator.kt:111 */
 1023   2232   
    }
        2233  +
    /* ServerOperationErrorGenerator.kt:110 */
 1024   2234   
}
 1025   2235   
        2236  +
/* ServerOperationErrorGenerator.kt:63 */
 1026   2237   
/// Error type for the `CompleteSnapshot` operation.
        2238  +
/* ServerOperationErrorGenerator.kt:64 */
 1027   2239   
/// Each variant represents an error that can occur for the `CompleteSnapshot` operation.
        2240  +
/* RustType.kt:516 */
 1028   2241   
#[derive(::std::fmt::Debug)]
 1029         -
pub enum CompleteSnapshotError {
 1030         -
    /// <p>An internal error has occurred.</p>
        2242  +
pub /* ServerOperationErrorGenerator.kt:66 */ enum CompleteSnapshotError {
        2243  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>An internal error has occurred.</p>
        2244  +
    /* ServerOperationErrorGenerator.kt:71 */
 1031   2245   
    InternalServerException(crate::error::InternalServerException),
 1032         -
    /// <p>The specified resource does not exist.</p>
        2246  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>The specified resource does not exist.</p>
        2247  +
    /* ServerOperationErrorGenerator.kt:71 */
 1033   2248   
    ResourceNotFoundException(crate::error::ResourceNotFoundException),
 1034         -
    /// <p>You do not have sufficient access to perform this action.</p>
        2249  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>You do not have sufficient access to perform this action.</p>
        2250  +
    /* ServerOperationErrorGenerator.kt:71 */
 1035   2251   
    AccessDeniedException(crate::error::AccessDeniedException),
 1036         -
    /// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
        2252  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
        2253  +
    /* ServerOperationErrorGenerator.kt:71 */
 1037   2254   
    RequestThrottledException(crate::error::RequestThrottledException),
 1038         -
    /// <p>Your current service quotas do not allow you to perform this action.</p>
        2255  +
    /// /* ServerOperationErrorGenerator.kt:68 */<p>Your current service quotas do not allow you to perform this action.</p>
        2256  +
    /* ServerOperationErrorGenerator.kt:71 */
 1039   2257   
    ServiceQuotaExceededException(crate::error::ServiceQuotaExceededException),
 1040         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        2258  +
    /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        2259  +
    /* ServerOperationErrorGenerator.kt:71 */
 1041   2260   
    ValidationException(crate::error::ValidationException),
        2261  +
    /* ServerOperationErrorGenerator.kt:66 */
 1042   2262   
}
        2263  +
/* ServerOperationErrorGenerator.kt:75 */
 1043   2264   
impl ::std::fmt::Display for CompleteSnapshotError {
        2265  +
    /* ServerOperationErrorGenerator.kt:76 */
 1044   2266   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2267  +
        /* ServerOperationErrorGenerator.kt:139 */
 1045   2268   
        match &self {
 1046         -
            CompleteSnapshotError::InternalServerException(_inner) => _inner.fmt(f),
 1047         -
            CompleteSnapshotError::ResourceNotFoundException(_inner) => _inner.fmt(f),
 1048         -
            CompleteSnapshotError::AccessDeniedException(_inner) => _inner.fmt(f),
 1049         -
            CompleteSnapshotError::RequestThrottledException(_inner) => _inner.fmt(f),
 1050         -
            CompleteSnapshotError::ServiceQuotaExceededException(_inner) => _inner.fmt(f),
 1051         -
            CompleteSnapshotError::ValidationException(_inner) => _inner.fmt(f),
        2269  +
            /* ServerOperationErrorGenerator.kt:142 */
        2270  +
            CompleteSnapshotError::InternalServerException(_inner) =>
        2271  +
            /* ServerOperationErrorGenerator.kt:78 */
        2272  +
            {
        2273  +
                _inner.fmt(f)
        2274  +
            }
        2275  +
            ,
        2276  +
            /* ServerOperationErrorGenerator.kt:142 */
        2277  +
            CompleteSnapshotError::ResourceNotFoundException(_inner) =>
        2278  +
            /* ServerOperationErrorGenerator.kt:78 */
        2279  +
            {
        2280  +
                _inner.fmt(f)
        2281  +
            }
        2282  +
            ,
        2283  +
            /* ServerOperationErrorGenerator.kt:142 */
        2284  +
            CompleteSnapshotError::AccessDeniedException(_inner) =>
        2285  +
            /* ServerOperationErrorGenerator.kt:78 */
        2286  +
            {
        2287  +
                _inner.fmt(f)
 1052   2288   
            }
        2289  +
            ,
        2290  +
            /* ServerOperationErrorGenerator.kt:142 */
        2291  +
            CompleteSnapshotError::RequestThrottledException(_inner) =>
        2292  +
            /* ServerOperationErrorGenerator.kt:78 */
        2293  +
            {
        2294  +
                _inner.fmt(f)
        2295  +
            }
        2296  +
            ,
        2297  +
            /* ServerOperationErrorGenerator.kt:142 */
        2298  +
            CompleteSnapshotError::ServiceQuotaExceededException(_inner) =>
        2299  +
            /* ServerOperationErrorGenerator.kt:78 */
        2300  +
            {
        2301  +
                _inner.fmt(f)
        2302  +
            }
        2303  +
            ,
        2304  +
            /* ServerOperationErrorGenerator.kt:142 */
        2305  +
            CompleteSnapshotError::ValidationException(_inner) =>
        2306  +
            /* ServerOperationErrorGenerator.kt:78 */
        2307  +
            {
        2308  +
                _inner.fmt(f)
        2309  +
            }
        2310  +
            /* ServerOperationErrorGenerator.kt:139 */
 1053   2311   
        }
        2312  +
        /* ServerOperationErrorGenerator.kt:76 */
        2313  +
    }
        2314  +
    /* ServerOperationErrorGenerator.kt:75 */
 1054   2315   
}
        2316  +
/* ServerOperationErrorGenerator.kt:83 */
 1055   2317   
impl CompleteSnapshotError {
        2318  +
    /* ServerOperationErrorGenerator.kt:87 */
 1056   2319   
    /// Returns `true` if the error kind is `CompleteSnapshotError::InternalServerException`.
        2320  +
    /* ServerOperationErrorGenerator.kt:88 */
 1057   2321   
    pub fn is_internal_server_exception(&self) -> bool {
        2322  +
        /* ServerOperationErrorGenerator.kt:89 */
 1058   2323   
        matches!(&self, CompleteSnapshotError::InternalServerException(_))
        2324  +
        /* ServerOperationErrorGenerator.kt:88 */
 1059   2325   
    }
        2326  +
    /* ServerOperationErrorGenerator.kt:87 */
 1060   2327   
    /// Returns `true` if the error kind is `CompleteSnapshotError::ResourceNotFoundException`.
        2328  +
    /* ServerOperationErrorGenerator.kt:88 */
 1061   2329   
    pub fn is_resource_not_found_exception(&self) -> bool {
        2330  +
        /* ServerOperationErrorGenerator.kt:89 */
 1062   2331   
        matches!(&self, CompleteSnapshotError::ResourceNotFoundException(_))
        2332  +
        /* ServerOperationErrorGenerator.kt:88 */
 1063   2333   
    }
        2334  +
    /* ServerOperationErrorGenerator.kt:87 */
 1064   2335   
    /// Returns `true` if the error kind is `CompleteSnapshotError::AccessDeniedException`.
        2336  +
    /* ServerOperationErrorGenerator.kt:88 */
 1065   2337   
    pub fn is_access_denied_exception(&self) -> bool {
        2338  +
        /* ServerOperationErrorGenerator.kt:89 */
 1066   2339   
        matches!(&self, CompleteSnapshotError::AccessDeniedException(_))
        2340  +
        /* ServerOperationErrorGenerator.kt:88 */
 1067   2341   
    }
        2342  +
    /* ServerOperationErrorGenerator.kt:87 */
 1068   2343   
    /// Returns `true` if the error kind is `CompleteSnapshotError::RequestThrottledException`.
        2344  +
    /* ServerOperationErrorGenerator.kt:88 */
 1069   2345   
    pub fn is_request_throttled_exception(&self) -> bool {
        2346  +
        /* ServerOperationErrorGenerator.kt:89 */
 1070   2347   
        matches!(&self, CompleteSnapshotError::RequestThrottledException(_))
        2348  +
        /* ServerOperationErrorGenerator.kt:88 */
 1071   2349   
    }
        2350  +
    /* ServerOperationErrorGenerator.kt:87 */
 1072   2351   
    /// Returns `true` if the error kind is `CompleteSnapshotError::ServiceQuotaExceededException`.
        2352  +
    /* ServerOperationErrorGenerator.kt:88 */
 1073   2353   
    pub fn is_service_quota_exceeded_exception(&self) -> bool {
        2354  +
        /* ServerOperationErrorGenerator.kt:89 */
 1074   2355   
        matches!(
 1075   2356   
            &self,
 1076   2357   
            CompleteSnapshotError::ServiceQuotaExceededException(_)
 1077   2358   
        )
        2359  +
        /* ServerOperationErrorGenerator.kt:88 */
 1078   2360   
    }
        2361  +
    /* ServerOperationErrorGenerator.kt:87 */
 1079   2362   
    /// Returns `true` if the error kind is `CompleteSnapshotError::ValidationException`.
        2363  +
    /* ServerOperationErrorGenerator.kt:88 */
 1080   2364   
    pub fn is_validation_exception(&self) -> bool {
        2365  +
        /* ServerOperationErrorGenerator.kt:89 */
 1081   2366   
        matches!(&self, CompleteSnapshotError::ValidationException(_))
        2367  +
        /* ServerOperationErrorGenerator.kt:88 */
 1082   2368   
    }
        2369  +
    /* ServerOperationErrorGenerator.kt:92 */
 1083   2370   
    /// Returns the error name string by matching the correct variant.
        2371  +
    /* ServerOperationErrorGenerator.kt:93 */
 1084   2372   
    pub fn name(&self) -> &'static str {
        2373  +
        /* ServerOperationErrorGenerator.kt:139 */
 1085   2374   
        match &self {
 1086         -
            CompleteSnapshotError::InternalServerException(_inner) => _inner.name(),
 1087         -
            CompleteSnapshotError::ResourceNotFoundException(_inner) => _inner.name(),
 1088         -
            CompleteSnapshotError::AccessDeniedException(_inner) => _inner.name(),
 1089         -
            CompleteSnapshotError::RequestThrottledException(_inner) => _inner.name(),
 1090         -
            CompleteSnapshotError::ServiceQuotaExceededException(_inner) => _inner.name(),
 1091         -
            CompleteSnapshotError::ValidationException(_inner) => _inner.name(),
        2375  +
            /* ServerOperationErrorGenerator.kt:142 */
        2376  +
            CompleteSnapshotError::InternalServerException(_inner) =>
        2377  +
            /* ServerOperationErrorGenerator.kt:95 */
        2378  +
            {
        2379  +
                _inner.name()
        2380  +
            }
        2381  +
            ,
        2382  +
            /* ServerOperationErrorGenerator.kt:142 */
        2383  +
            CompleteSnapshotError::ResourceNotFoundException(_inner) =>
        2384  +
            /* ServerOperationErrorGenerator.kt:95 */
        2385  +
            {
        2386  +
                _inner.name()
        2387  +
            }
        2388  +
            ,
        2389  +
            /* ServerOperationErrorGenerator.kt:142 */
        2390  +
            CompleteSnapshotError::AccessDeniedException(_inner) =>
        2391  +
            /* ServerOperationErrorGenerator.kt:95 */
        2392  +
            {
        2393  +
                _inner.name()
        2394  +
            }
        2395  +
            ,
        2396  +
            /* ServerOperationErrorGenerator.kt:142 */
        2397  +
            CompleteSnapshotError::RequestThrottledException(_inner) =>
        2398  +
            /* ServerOperationErrorGenerator.kt:95 */
        2399  +
            {
        2400  +
                _inner.name()
        2401  +
            }
        2402  +
            ,
        2403  +
            /* ServerOperationErrorGenerator.kt:142 */
        2404  +
            CompleteSnapshotError::ServiceQuotaExceededException(_inner) =>
        2405  +
            /* ServerOperationErrorGenerator.kt:95 */
        2406  +
            {
        2407  +
                _inner.name()
        2408  +
            }
        2409  +
            ,
        2410  +
            /* ServerOperationErrorGenerator.kt:142 */
        2411  +
            CompleteSnapshotError::ValidationException(_inner) =>
        2412  +
            /* ServerOperationErrorGenerator.kt:95 */
        2413  +
            {
        2414  +
                _inner.name()
        2415  +
            }
        2416  +
            /* ServerOperationErrorGenerator.kt:139 */
 1092   2417   
        }
        2418  +
        /* ServerOperationErrorGenerator.kt:93 */
 1093   2419   
    }
        2420  +
    /* ServerOperationErrorGenerator.kt:83 */
 1094   2421   
}
        2422  +
/* ServerOperationErrorGenerator.kt:100 */
 1095   2423   
impl ::std::error::Error for CompleteSnapshotError {
        2424  +
    /* ServerOperationErrorGenerator.kt:101 */
 1096   2425   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        2426  +
        /* ServerOperationErrorGenerator.kt:139 */
 1097   2427   
        match &self {
 1098         -
            CompleteSnapshotError::InternalServerException(_inner) => Some(_inner),
 1099         -
            CompleteSnapshotError::ResourceNotFoundException(_inner) => Some(_inner),
 1100         -
            CompleteSnapshotError::AccessDeniedException(_inner) => Some(_inner),
 1101         -
            CompleteSnapshotError::RequestThrottledException(_inner) => Some(_inner),
 1102         -
            CompleteSnapshotError::ServiceQuotaExceededException(_inner) => Some(_inner),
 1103         -
            CompleteSnapshotError::ValidationException(_inner) => Some(_inner),
        2428  +
            /* ServerOperationErrorGenerator.kt:142 */
        2429  +
            CompleteSnapshotError::InternalServerException(_inner) =>
        2430  +
            /* ServerOperationErrorGenerator.kt:103 */
        2431  +
            {
        2432  +
                Some(_inner)
        2433  +
            }
        2434  +
            ,
        2435  +
            /* ServerOperationErrorGenerator.kt:142 */
        2436  +
            CompleteSnapshotError::ResourceNotFoundException(_inner) =>
        2437  +
            /* ServerOperationErrorGenerator.kt:103 */
        2438  +
            {
        2439  +
                Some(_inner)
        2440  +
            }
        2441  +
            ,
        2442  +
            /* ServerOperationErrorGenerator.kt:142 */
        2443  +
            CompleteSnapshotError::AccessDeniedException(_inner) =>
        2444  +
            /* ServerOperationErrorGenerator.kt:103 */
        2445  +
            {
        2446  +
                Some(_inner)
        2447  +
            }
        2448  +
            ,
        2449  +
            /* ServerOperationErrorGenerator.kt:142 */
        2450  +
            CompleteSnapshotError::RequestThrottledException(_inner) =>
        2451  +
            /* ServerOperationErrorGenerator.kt:103 */
        2452  +
            {
        2453  +
                Some(_inner)
        2454  +
            }
        2455  +
            ,
        2456  +
            /* ServerOperationErrorGenerator.kt:142 */
        2457  +
            CompleteSnapshotError::ServiceQuotaExceededException(_inner) =>
        2458  +
            /* ServerOperationErrorGenerator.kt:103 */
        2459  +
            {
        2460  +
                Some(_inner)
        2461  +
            }
        2462  +
            ,
        2463  +
            /* ServerOperationErrorGenerator.kt:142 */
        2464  +
            CompleteSnapshotError::ValidationException(_inner) =>
        2465  +
            /* ServerOperationErrorGenerator.kt:103 */
        2466  +
            {
        2467  +
                Some(_inner)
 1104   2468   
            }
        2469  +
            /* ServerOperationErrorGenerator.kt:139 */
 1105   2470   
        }
        2471  +
        /* ServerOperationErrorGenerator.kt:101 */
        2472  +
    }
        2473  +
    /* ServerOperationErrorGenerator.kt:100 */
 1106   2474   
}
        2475  +
/* ServerOperationErrorGenerator.kt:110 */
 1107   2476   
impl ::std::convert::From<crate::error::InternalServerException>
 1108   2477   
    for crate::error::CompleteSnapshotError
 1109   2478   
{
        2479  +
    /* ServerOperationErrorGenerator.kt:111 */
 1110   2480   
    fn from(variant: crate::error::InternalServerException) -> crate::error::CompleteSnapshotError {
        2481  +
        /* ServerOperationErrorGenerator.kt:112 */
 1111   2482   
        Self::InternalServerException(variant)
        2483  +
        /* ServerOperationErrorGenerator.kt:111 */
 1112   2484   
    }
        2485  +
    /* ServerOperationErrorGenerator.kt:110 */
 1113   2486   
}
        2487  +
/* ServerOperationErrorGenerator.kt:110 */
 1114   2488   
impl ::std::convert::From<crate::error::ResourceNotFoundException>
 1115   2489   
    for crate::error::CompleteSnapshotError
 1116   2490   
{
        2491  +
    /* ServerOperationErrorGenerator.kt:111 */
 1117   2492   
    fn from(
 1118   2493   
        variant: crate::error::ResourceNotFoundException,
 1119   2494   
    ) -> crate::error::CompleteSnapshotError {
        2495  +
        /* ServerOperationErrorGenerator.kt:112 */
 1120   2496   
        Self::ResourceNotFoundException(variant)
        2497  +
        /* ServerOperationErrorGenerator.kt:111 */
 1121   2498   
    }
        2499  +
    /* ServerOperationErrorGenerator.kt:110 */
 1122   2500   
}
        2501  +
/* ServerOperationErrorGenerator.kt:110 */
 1123   2502   
impl ::std::convert::From<crate::error::AccessDeniedException>
 1124   2503   
    for crate::error::CompleteSnapshotError
 1125   2504   
{
        2505  +
    /* ServerOperationErrorGenerator.kt:111 */
 1126   2506   
    fn from(variant: crate::error::AccessDeniedException) -> crate::error::CompleteSnapshotError {
        2507  +
        /* ServerOperationErrorGenerator.kt:112 */
 1127   2508   
        Self::AccessDeniedException(variant)
        2509  +
        /* ServerOperationErrorGenerator.kt:111 */
 1128   2510   
    }
        2511  +
    /* ServerOperationErrorGenerator.kt:110 */
 1129   2512   
}
        2513  +
/* ServerOperationErrorGenerator.kt:110 */
 1130   2514   
impl ::std::convert::From<crate::error::RequestThrottledException>
 1131   2515   
    for crate::error::CompleteSnapshotError
 1132   2516   
{
        2517  +
    /* ServerOperationErrorGenerator.kt:111 */
 1133   2518   
    fn from(
 1134   2519   
        variant: crate::error::RequestThrottledException,
 1135   2520   
    ) -> crate::error::CompleteSnapshotError {
        2521  +
        /* ServerOperationErrorGenerator.kt:112 */
 1136   2522   
        Self::RequestThrottledException(variant)
        2523  +
        /* ServerOperationErrorGenerator.kt:111 */
 1137   2524   
    }
        2525  +
    /* ServerOperationErrorGenerator.kt:110 */
 1138   2526   
}
        2527  +
/* ServerOperationErrorGenerator.kt:110 */
 1139   2528   
impl ::std::convert::From<crate::error::ServiceQuotaExceededException>
 1140   2529   
    for crate::error::CompleteSnapshotError
 1141   2530   
{
        2531  +
    /* ServerOperationErrorGenerator.kt:111 */
 1142   2532   
    fn from(
 1143   2533   
        variant: crate::error::ServiceQuotaExceededException,
 1144   2534   
    ) -> crate::error::CompleteSnapshotError {
        2535  +
        /* ServerOperationErrorGenerator.kt:112 */
 1145   2536   
        Self::ServiceQuotaExceededException(variant)
        2537  +
        /* ServerOperationErrorGenerator.kt:111 */
 1146   2538   
    }
        2539  +
    /* ServerOperationErrorGenerator.kt:110 */
 1147   2540   
}
        2541  +
/* ServerOperationErrorGenerator.kt:110 */
 1148   2542   
impl ::std::convert::From<crate::error::ValidationException>
 1149   2543   
    for crate::error::CompleteSnapshotError
 1150   2544   
{
        2545  +
    /* ServerOperationErrorGenerator.kt:111 */
 1151   2546   
    fn from(variant: crate::error::ValidationException) -> crate::error::CompleteSnapshotError {
        2547  +
        /* ServerOperationErrorGenerator.kt:112 */
 1152   2548   
        Self::ValidationException(variant)
        2549  +
        /* ServerOperationErrorGenerator.kt:111 */
 1153   2550   
    }
        2551  +
    /* ServerOperationErrorGenerator.kt:110 */
 1154   2552   
}
 1155         -
/// See [`ValidationException`](crate::error::ValidationException).
        2553  +
/// /* ServerBuilderGenerator.kt:171 */See [`ValidationException`](crate::error::ValidationException).
 1156   2554   
pub mod validation_exception {
 1157   2555   
        2556  +
    /* RustType.kt:516 */
 1158   2557   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1159         -
    /// Holds one variant for each of the ways the builder can fail.
        2558  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        2559  +
    /* RustType.kt:516 */
 1160   2560   
    #[non_exhaustive]
        2561  +
    /* ServerBuilderConstraintViolations.kt:75 */
 1161   2562   
    #[allow(clippy::enum_variant_names)]
 1162   2563   
    pub enum ConstraintViolation {
 1163         -
        /// `message` was not provided but it is required when building `ValidationException`.
        2564  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`message` was not provided but it is required when building `ValidationException`.
        2565  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1164   2566   
        MissingMessage,
        2567  +
        /* ServerBuilderConstraintViolations.kt:75 */
 1165   2568   
    }
        2569  +
    /* ServerBuilderConstraintViolations.kt:117 */
 1166   2570   
    impl ::std::fmt::Display for ConstraintViolation {
        2571  +
        /* ServerBuilderConstraintViolations.kt:118 */
 1167   2572   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2573  +
            /* ServerBuilderConstraintViolations.kt:119 */
 1168   2574   
            match self {
 1169         -
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
 1170         -
            }
        2575  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
        2576  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        2577  +
            /* ServerBuilderConstraintViolations.kt:118 */
 1171   2578   
        }
        2579  +
        /* ServerBuilderConstraintViolations.kt:117 */
 1172   2580   
    }
        2581  +
    /* ServerBuilderConstraintViolations.kt:84 */
 1173   2582   
    impl ::std::error::Error for ConstraintViolation {}
        2583  +
    /* ServerBuilderGenerator.kt:446 */
 1174   2584   
    impl ::std::convert::TryFrom<Builder> for crate::error::ValidationException {
 1175   2585   
        type Error = ConstraintViolation;
 1176   2586   
 1177   2587   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1178   2588   
            builder.build()
 1179   2589   
        }
 1180   2590   
    }
 1181         -
    /// A builder for [`ValidationException`](crate::error::ValidationException).
        2591  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`ValidationException`](crate::error::ValidationException).
        2592  +
    /* RustType.kt:516 */
 1182   2593   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2594  +
    /* ServerBuilderGenerator.kt:211 */
 1183   2595   
    pub struct Builder {
        2596  +
        /* ServerBuilderGenerator.kt:308 */
 1184   2597   
        pub(crate) message: ::std::option::Option<::std::string::String>,
        2598  +
        /* ServerBuilderGenerator.kt:308 */
 1185   2599   
        pub(crate) field_list:
 1186   2600   
            ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
        2601  +
        /* ServerBuilderGenerator.kt:211 */
 1187   2602   
    }
        2603  +
    /* ServerBuilderGenerator.kt:215 */
 1188   2604   
    impl Builder {
 1189         -
        /// A summary of the validation failure.
        2605  +
        /// /* ServerBuilderGenerator.kt:331 */A summary of the validation failure.
        2606  +
        /* ServerBuilderGenerator.kt:343 */
 1190   2607   
        pub fn message(mut self, input: ::std::string::String) -> Self {
 1191         -
            self.message = Some(input);
        2608  +
            /* ServerBuilderGenerator.kt:344 */
        2609  +
            self.message =
        2610  +
                /* ServerBuilderGenerator.kt:345 */Some(
        2611  +
                    /* ServerBuilderGenerator.kt:376 */input
        2612  +
                /* ServerBuilderGenerator.kt:345 */)
        2613  +
            /* ServerBuilderGenerator.kt:344 */;
 1192   2614   
            self
        2615  +
            /* ServerBuilderGenerator.kt:343 */
 1193   2616   
        }
 1194         -
        /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
        2617  +
        /// /* ServerBuilderGenerator.kt:331 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
        2618  +
        /* ServerBuilderGenerator.kt:343 */
 1195   2619   
        pub fn field_list(
 1196   2620   
            mut self,
 1197   2621   
            input: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
 1198   2622   
        ) -> Self {
 1199         -
            self.field_list = input;
        2623  +
            /* ServerBuilderGenerator.kt:344 */
        2624  +
            self.field_list =
        2625  +
                /* ServerBuilderGenerator.kt:376 */input
        2626  +
            /* ServerBuilderGenerator.kt:344 */;
 1200   2627   
            self
        2628  +
            /* ServerBuilderGenerator.kt:343 */
 1201   2629   
        }
 1202         -
        /// Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
 1203         -
        ///
        2630  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
        2631  +
        /// /* ServerBuilderGenerator.kt:260 */
 1204   2632   
        /// The builder fails to construct a [`ValidationException`](crate::error::ValidationException) if a [`ConstraintViolation`] occurs.
 1205   2633   
        ///
        2634  +
        /* ServerBuilderGenerator.kt:271 */
 1206   2635   
        pub fn build(self) -> Result<crate::error::ValidationException, ConstraintViolation> {
 1207   2636   
            self.build_enforcing_all_constraints()
 1208   2637   
        }
        2638  +
        /* ServerBuilderGenerator.kt:283 */
 1209   2639   
        fn build_enforcing_all_constraints(
 1210   2640   
            self,
 1211   2641   
        ) -> Result<crate::error::ValidationException, ConstraintViolation> {
 1212         -
            Ok(crate::error::ValidationException {
 1213         -
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
        2642  +
            /* ServerBuilderGenerator.kt:287 */
        2643  +
            Ok(
        2644  +
                /* ServerBuilderGenerator.kt:542 */
        2645  +
                crate::error::ValidationException {
        2646  +
                    /* ServerBuilderGenerator.kt:546 */
        2647  +
                    message: self
        2648  +
                        .message
        2649  +
                        /* ServerBuilderGenerator.kt:569 */
        2650  +
                        .ok_or(ConstraintViolation::MissingMessage)?,
        2651  +
                    /* ServerBuilderGenerator.kt:546 */
 1214   2652   
                    field_list: self.field_list,
 1215         -
            })
        2653  +
                    /* ServerBuilderGenerator.kt:542 */
        2654  +
                }, /* ServerBuilderGenerator.kt:287 */
        2655  +
            )
        2656  +
            /* ServerBuilderGenerator.kt:283 */
 1216   2657   
        }
        2658  +
        /* ServerBuilderGenerator.kt:215 */
 1217   2659   
    }
        2660  +
        2661  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1218   2662   
}
 1219         -
/// See [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
        2663  +
/// /* ServerBuilderGenerator.kt:171 */See [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
 1220   2664   
pub mod concurrent_limit_exceeded_exception {
 1221   2665   
        2666  +
    /* ServerBuilderGenerator.kt:461 */
 1222   2667   
    impl ::std::convert::From<Builder> for crate::error::ConcurrentLimitExceededException {
 1223   2668   
        fn from(builder: Builder) -> Self {
 1224   2669   
            builder.build()
 1225   2670   
        }
 1226   2671   
    }
 1227         -
    /// A builder for [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
        2672  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
        2673  +
    /* RustType.kt:516 */
 1228   2674   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2675  +
    /* ServerBuilderGenerator.kt:211 */
 1229   2676   
    pub struct Builder {
        2677  +
        /* ServerBuilderGenerator.kt:308 */
 1230   2678   
        pub(crate) message: ::std::option::Option<crate::model::ErrorMessage>,
        2679  +
        /* ServerBuilderGenerator.kt:211 */
 1231   2680   
    }
        2681  +
    /* ServerBuilderGenerator.kt:215 */
 1232   2682   
    impl Builder {
        2683  +
        /* ServerBuilderGenerator.kt:331 */
 1233   2684   
        #[allow(missing_docs)] // documentation missing in model
        2685  +
                               /* ServerBuilderGenerator.kt:343 */
 1234   2686   
        pub fn message(mut self, input: ::std::option::Option<crate::model::ErrorMessage>) -> Self {
 1235         -
            self.message = input;
        2687  +
            /* ServerBuilderGenerator.kt:344 */
        2688  +
            self.message =
        2689  +
                /* ServerBuilderGenerator.kt:376 */input
        2690  +
            /* ServerBuilderGenerator.kt:344 */;
 1236   2691   
            self
        2692  +
            /* ServerBuilderGenerator.kt:343 */
 1237   2693   
        }
 1238         -
        /// Consumes the builder and constructs a [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
        2694  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConcurrentLimitExceededException`](crate::error::ConcurrentLimitExceededException).
        2695  +
        /* ServerBuilderGenerator.kt:271 */
 1239   2696   
        pub fn build(self) -> crate::error::ConcurrentLimitExceededException {
 1240   2697   
            self.build_enforcing_all_constraints()
 1241   2698   
        }
        2699  +
        /* ServerBuilderGenerator.kt:283 */
 1242   2700   
        fn build_enforcing_all_constraints(self) -> crate::error::ConcurrentLimitExceededException {
        2701  +
            /* ServerBuilderGenerator.kt:542 */
 1243   2702   
            crate::error::ConcurrentLimitExceededException {
        2703  +
                /* ServerBuilderGenerator.kt:546 */
 1244   2704   
                message: self.message,
        2705  +
                /* ServerBuilderGenerator.kt:542 */
 1245   2706   
            }
        2707  +
            /* ServerBuilderGenerator.kt:283 */
 1246   2708   
        }
        2709  +
        /* ServerBuilderGenerator.kt:215 */
 1247   2710   
    }
        2711  +
        2712  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1248   2713   
}
 1249         -
/// See [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
        2714  +
/// /* ServerBuilderGenerator.kt:171 */See [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
 1250   2715   
pub mod service_quota_exceeded_exception {
 1251   2716   
        2717  +
    /* ServerBuilderGenerator.kt:461 */
 1252   2718   
    impl ::std::convert::From<Builder> for crate::error::ServiceQuotaExceededException {
 1253   2719   
        fn from(builder: Builder) -> Self {
 1254   2720   
            builder.build()
 1255   2721   
        }
 1256   2722   
    }
 1257         -
    /// A builder for [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
        2723  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
        2724  +
    /* RustType.kt:516 */
 1258   2725   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2726  +
    /* ServerBuilderGenerator.kt:211 */
 1259   2727   
    pub struct Builder {
        2728  +
        /* ServerBuilderGenerator.kt:308 */
 1260   2729   
        pub(crate) reason: ::std::option::Option<crate::model::ServiceQuotaExceededExceptionReason>,
        2730  +
        /* ServerBuilderGenerator.kt:308 */
 1261   2731   
        pub(crate) message: ::std::option::Option<crate::model::ErrorMessage>,
        2732  +
        /* ServerBuilderGenerator.kt:211 */
 1262   2733   
    }
        2734  +
    /* ServerBuilderGenerator.kt:215 */
 1263   2735   
    impl Builder {
 1264         -
        /// <p>The reason for the exception.</p>
        2736  +
        /// /* ServerBuilderGenerator.kt:331 */<p>The reason for the exception.</p>
        2737  +
        /* ServerBuilderGenerator.kt:343 */
 1265   2738   
        pub fn reason(
 1266   2739   
            mut self,
 1267   2740   
            input: ::std::option::Option<crate::model::ServiceQuotaExceededExceptionReason>,
 1268   2741   
        ) -> Self {
 1269         -
            self.reason = input;
        2742  +
            /* ServerBuilderGenerator.kt:344 */
        2743  +
            self.reason =
        2744  +
                /* ServerBuilderGenerator.kt:376 */input
        2745  +
            /* ServerBuilderGenerator.kt:344 */;
 1270   2746   
            self
        2747  +
            /* ServerBuilderGenerator.kt:343 */
 1271   2748   
        }
        2749  +
        /* ServerBuilderGenerator.kt:331 */
 1272   2750   
        #[allow(missing_docs)] // documentation missing in model
        2751  +
                               /* ServerBuilderGenerator.kt:343 */
 1273   2752   
        pub fn message(mut self, input: ::std::option::Option<crate::model::ErrorMessage>) -> Self {
 1274         -
            self.message = input;
        2753  +
            /* ServerBuilderGenerator.kt:344 */
        2754  +
            self.message =
        2755  +
                /* ServerBuilderGenerator.kt:376 */input
        2756  +
            /* ServerBuilderGenerator.kt:344 */;
 1275   2757   
            self
        2758  +
            /* ServerBuilderGenerator.kt:343 */
 1276   2759   
        }
 1277         -
        /// Consumes the builder and constructs a [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
        2760  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ServiceQuotaExceededException`](crate::error::ServiceQuotaExceededException).
        2761  +
        /* ServerBuilderGenerator.kt:271 */
 1278   2762   
        pub fn build(self) -> crate::error::ServiceQuotaExceededException {
 1279   2763   
            self.build_enforcing_all_constraints()
 1280   2764   
        }
        2765  +
        /* ServerBuilderGenerator.kt:283 */
 1281   2766   
        fn build_enforcing_all_constraints(self) -> crate::error::ServiceQuotaExceededException {
        2767  +
            /* ServerBuilderGenerator.kt:542 */
 1282   2768   
            crate::error::ServiceQuotaExceededException {
        2769  +
                /* ServerBuilderGenerator.kt:546 */
 1283   2770   
                reason: self.reason,
        2771  +
                /* ServerBuilderGenerator.kt:546 */
 1284   2772   
                message: self.message,
        2773  +
                /* ServerBuilderGenerator.kt:542 */
 1285   2774   
            }
        2775  +
            /* ServerBuilderGenerator.kt:283 */
 1286   2776   
        }
        2777  +
        /* ServerBuilderGenerator.kt:215 */
 1287   2778   
    }
        2779  +
        2780  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1288   2781   
}
 1289         -
/// See [`RequestThrottledException`](crate::error::RequestThrottledException).
        2782  +
/// /* ServerBuilderGenerator.kt:171 */See [`RequestThrottledException`](crate::error::RequestThrottledException).
 1290   2783   
pub mod request_throttled_exception {
 1291   2784   
        2785  +
    /* ServerBuilderGenerator.kt:461 */
 1292   2786   
    impl ::std::convert::From<Builder> for crate::error::RequestThrottledException {
 1293   2787   
        fn from(builder: Builder) -> Self {
 1294   2788   
            builder.build()
 1295   2789   
        }
 1296   2790   
    }
 1297         -
    /// A builder for [`RequestThrottledException`](crate::error::RequestThrottledException).
        2791  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`RequestThrottledException`](crate::error::RequestThrottledException).
        2792  +
    /* RustType.kt:516 */
 1298   2793   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2794  +
    /* ServerBuilderGenerator.kt:211 */
 1299   2795   
    pub struct Builder {
        2796  +
        /* ServerBuilderGenerator.kt:308 */
 1300   2797   
        pub(crate) message: ::std::option::Option<crate::model::ErrorMessage>,
        2798  +
        /* ServerBuilderGenerator.kt:308 */
 1301   2799   
        pub(crate) reason: ::std::option::Option<crate::model::RequestThrottledExceptionReason>,
        2800  +
        /* ServerBuilderGenerator.kt:211 */
 1302   2801   
    }
        2802  +
    /* ServerBuilderGenerator.kt:215 */
 1303   2803   
    impl Builder {
        2804  +
        /* ServerBuilderGenerator.kt:331 */
 1304   2805   
        #[allow(missing_docs)] // documentation missing in model
        2806  +
                               /* ServerBuilderGenerator.kt:343 */
 1305   2807   
        pub fn message(mut self, input: ::std::option::Option<crate::model::ErrorMessage>) -> Self {
 1306         -
            self.message = input;
        2808  +
            /* ServerBuilderGenerator.kt:344 */
        2809  +
            self.message =
        2810  +
                /* ServerBuilderGenerator.kt:376 */input
        2811  +
            /* ServerBuilderGenerator.kt:344 */;
 1307   2812   
            self
        2813  +
            /* ServerBuilderGenerator.kt:343 */
 1308   2814   
        }
 1309         -
        /// <p>The reason for the exception.</p>
        2815  +
        /// /* ServerBuilderGenerator.kt:331 */<p>The reason for the exception.</p>
        2816  +
        /* ServerBuilderGenerator.kt:343 */
 1310   2817   
        pub fn reason(
 1311   2818   
            mut self,
 1312   2819   
            input: ::std::option::Option<crate::model::RequestThrottledExceptionReason>,
 1313   2820   
        ) -> Self {
 1314         -
            self.reason = input;
        2821  +
            /* ServerBuilderGenerator.kt:344 */
        2822  +
            self.reason =
        2823  +
                /* ServerBuilderGenerator.kt:376 */input
        2824  +
            /* ServerBuilderGenerator.kt:344 */;
 1315   2825   
            self
        2826  +
            /* ServerBuilderGenerator.kt:343 */
 1316   2827   
        }
 1317         -
        /// Consumes the builder and constructs a [`RequestThrottledException`](crate::error::RequestThrottledException).
        2828  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`RequestThrottledException`](crate::error::RequestThrottledException).
        2829  +
        /* ServerBuilderGenerator.kt:271 */
 1318   2830   
        pub fn build(self) -> crate::error::RequestThrottledException {
 1319   2831   
            self.build_enforcing_all_constraints()
 1320   2832   
        }
        2833  +
        /* ServerBuilderGenerator.kt:283 */
 1321   2834   
        fn build_enforcing_all_constraints(self) -> crate::error::RequestThrottledException {
        2835  +
            /* ServerBuilderGenerator.kt:542 */
 1322   2836   
            crate::error::RequestThrottledException {
        2837  +
                /* ServerBuilderGenerator.kt:546 */
 1323   2838   
                message: self.message,
        2839  +
                /* ServerBuilderGenerator.kt:546 */
 1324   2840   
                reason: self.reason,
        2841  +
                /* ServerBuilderGenerator.kt:542 */
 1325   2842   
            }
        2843  +
            /* ServerBuilderGenerator.kt:283 */
 1326   2844   
        }
        2845  +
        /* ServerBuilderGenerator.kt:215 */
 1327   2846   
    }
        2847  +
        2848  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1328   2849   
}
 1329         -
/// See [`ConflictException`](crate::error::ConflictException).
        2850  +
/// /* ServerBuilderGenerator.kt:171 */See [`ConflictException`](crate::error::ConflictException).
 1330   2851   
pub mod conflict_exception {
 1331   2852   
        2853  +
    /* ServerBuilderGenerator.kt:461 */
 1332   2854   
    impl ::std::convert::From<Builder> for crate::error::ConflictException {
 1333   2855   
        fn from(builder: Builder) -> Self {
 1334   2856   
            builder.build()
 1335   2857   
        }
 1336   2858   
    }
 1337         -
    /// A builder for [`ConflictException`](crate::error::ConflictException).
        2859  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConflictException`](crate::error::ConflictException).
        2860  +
    /* RustType.kt:516 */
 1338   2861   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2862  +
    /* ServerBuilderGenerator.kt:211 */
 1339   2863   
    pub struct Builder {
        2864  +
        /* ServerBuilderGenerator.kt:308 */
 1340   2865   
        pub(crate) message: ::std::option::Option<crate::model::ErrorMessage>,
        2866  +
        /* ServerBuilderGenerator.kt:211 */
 1341   2867   
    }
        2868  +
    /* ServerBuilderGenerator.kt:215 */
 1342   2869   
    impl Builder {
        2870  +
        /* ServerBuilderGenerator.kt:331 */
 1343   2871   
        #[allow(missing_docs)] // documentation missing in model
        2872  +
                               /* ServerBuilderGenerator.kt:343 */
 1344   2873   
        pub fn message(mut self, input: ::std::option::Option<crate::model::ErrorMessage>) -> Self {
 1345         -
            self.message = input;
        2874  +
            /* ServerBuilderGenerator.kt:344 */
        2875  +
            self.message =
        2876  +
                /* ServerBuilderGenerator.kt:376 */input
        2877  +
            /* ServerBuilderGenerator.kt:344 */;
 1346   2878   
            self
        2879  +
            /* ServerBuilderGenerator.kt:343 */
 1347   2880   
        }
 1348         -
        /// Consumes the builder and constructs a [`ConflictException`](crate::error::ConflictException).
        2881  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConflictException`](crate::error::ConflictException).
        2882  +
        /* ServerBuilderGenerator.kt:271 */
 1349   2883   
        pub fn build(self) -> crate::error::ConflictException {
 1350   2884   
            self.build_enforcing_all_constraints()
 1351   2885   
        }
        2886  +
        /* ServerBuilderGenerator.kt:283 */
 1352   2887   
        fn build_enforcing_all_constraints(self) -> crate::error::ConflictException {
        2888  +
            /* ServerBuilderGenerator.kt:542 */
 1353   2889   
            crate::error::ConflictException {
        2890  +
                /* ServerBuilderGenerator.kt:546 */
 1354   2891   
                message: self.message,
        2892  +
                /* ServerBuilderGenerator.kt:542 */
 1355   2893   
            }
        2894  +
            /* ServerBuilderGenerator.kt:283 */
 1356   2895   
        }
        2896  +
        /* ServerBuilderGenerator.kt:215 */
 1357   2897   
    }
        2898  +
        2899  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1358   2900   
}
 1359         -
/// See [`AccessDeniedException`](crate::error::AccessDeniedException).
        2901  +
/// /* ServerBuilderGenerator.kt:171 */See [`AccessDeniedException`](crate::error::AccessDeniedException).
 1360   2902   
pub mod access_denied_exception {
 1361   2903   
        2904  +
    /* RustType.kt:516 */
 1362   2905   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1363         -
    /// Holds one variant for each of the ways the builder can fail.
        2906  +
    /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
        2907  +
    /* RustType.kt:516 */
 1364   2908   
    #[non_exhaustive]
        2909  +
    /* ServerBuilderConstraintViolations.kt:75 */
 1365   2910   
    #[allow(clippy::enum_variant_names)]
 1366   2911   
    pub enum ConstraintViolation {
 1367         -
        /// `reason` was not provided but it is required when building `AccessDeniedException`.
        2912  +
        /// /* ServerBuilderConstraintViolations.kt:138 */`reason` was not provided but it is required when building `AccessDeniedException`.
        2913  +
        /* ServerBuilderConstraintViolations.kt:143 */
 1368   2914   
        MissingReason,
        2915  +
        /* ServerBuilderConstraintViolations.kt:75 */
 1369   2916   
    }
        2917  +
    /* ServerBuilderConstraintViolations.kt:117 */
 1370   2918   
    impl ::std::fmt::Display for ConstraintViolation {
        2919  +
        /* ServerBuilderConstraintViolations.kt:118 */
 1371   2920   
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        2921  +
            /* ServerBuilderConstraintViolations.kt:119 */
 1372   2922   
            match self {
 1373         -
                ConstraintViolation::MissingReason => write!(f, "`reason` was not provided but it is required when building `AccessDeniedException`"),
 1374         -
            }
        2923  +
                /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingReason => write!(f, "`reason` was not provided but it is required when building `AccessDeniedException`"),
        2924  +
            /* ServerBuilderConstraintViolations.kt:119 */}
        2925  +
            /* ServerBuilderConstraintViolations.kt:118 */
 1375   2926   
        }
        2927  +
        /* ServerBuilderConstraintViolations.kt:117 */
 1376   2928   
    }
        2929  +
    /* ServerBuilderConstraintViolations.kt:84 */
 1377   2930   
    impl ::std::error::Error for ConstraintViolation {}
        2931  +
    /* ServerBuilderGenerator.kt:446 */
 1378   2932   
    impl ::std::convert::TryFrom<Builder> for crate::error::AccessDeniedException {
 1379   2933   
        type Error = ConstraintViolation;
 1380   2934   
 1381   2935   
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
 1382   2936   
            builder.build()
 1383   2937   
        }
 1384   2938   
    }
 1385         -
    /// A builder for [`AccessDeniedException`](crate::error::AccessDeniedException).
        2939  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`AccessDeniedException`](crate::error::AccessDeniedException).
        2940  +
    /* RustType.kt:516 */
 1386   2941   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        2942  +
    /* ServerBuilderGenerator.kt:211 */
 1387   2943   
    pub struct Builder {
        2944  +
        /* ServerBuilderGenerator.kt:308 */
 1388   2945   
        pub(crate) message: ::std::option::Option<crate::model::ErrorMessage>,
        2946  +
        /* ServerBuilderGenerator.kt:308 */
 1389   2947   
        pub(crate) reason: ::std::option::Option<crate::model::AccessDeniedExceptionReason>,
        2948  +
        /* ServerBuilderGenerator.kt:211 */
 1390   2949   
    }
        2950  +
    /* ServerBuilderGenerator.kt:215 */
 1391   2951   
    impl Builder {
        2952  +
        /* ServerBuilderGenerator.kt:331 */
 1392   2953   
        #[allow(missing_docs)] // documentation missing in model
        2954  +
                               /* ServerBuilderGenerator.kt:343 */
 1393   2955   
        pub fn message(mut self, input: ::std::option::Option<crate::model::ErrorMessage>) -> Self {
 1394         -
            self.message = input;
        2956  +
            /* ServerBuilderGenerator.kt:344 */
        2957  +
            self.message =
        2958  +
                /* ServerBuilderGenerator.kt:376 */input
        2959  +
            /* ServerBuilderGenerator.kt:344 */;
 1395   2960   
            self
        2961  +
            /* ServerBuilderGenerator.kt:343 */
 1396   2962   
        }
 1397         -
        /// <p>The reason for the exception.</p>
        2963  +
        /// /* ServerBuilderGenerator.kt:331 */<p>The reason for the exception.</p>
        2964  +
        /* ServerBuilderGenerator.kt:343 */
 1398   2965   
        pub fn reason(mut self, input: crate::model::AccessDeniedExceptionReason) -> Self {
 1399         -
            self.reason = Some(input);
        2966  +
            /* ServerBuilderGenerator.kt:344 */
        2967  +
            self.reason =
        2968  +
                /* ServerBuilderGenerator.kt:345 */Some(
        2969  +
                    /* ServerBuilderGenerator.kt:376 */input
        2970  +
                /* ServerBuilderGenerator.kt:345 */)
        2971  +
            /* ServerBuilderGenerator.kt:344 */;
 1400   2972   
            self
        2973  +
            /* ServerBuilderGenerator.kt:343 */
 1401   2974   
        }
 1402         -
        /// Consumes the builder and constructs a [`AccessDeniedException`](crate::error::AccessDeniedException).
 1403         -
        ///
        2975  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`AccessDeniedException`](crate::error::AccessDeniedException).
        2976  +
        /// /* ServerBuilderGenerator.kt:260 */
 1404   2977   
        /// The builder fails to construct a [`AccessDeniedException`](crate::error::AccessDeniedException) if a [`ConstraintViolation`] occurs.
 1405   2978   
        ///
        2979  +
        /* ServerBuilderGenerator.kt:271 */
 1406   2980   
        pub fn build(self) -> Result<crate::error::AccessDeniedException, ConstraintViolation> {
 1407   2981   
            self.build_enforcing_all_constraints()
 1408   2982   
        }
        2983  +
        /* ServerBuilderGenerator.kt:283 */
 1409   2984   
        fn build_enforcing_all_constraints(
 1410   2985   
            self,
 1411   2986   
        ) -> Result<crate::error::AccessDeniedException, ConstraintViolation> {
 1412         -
            Ok(crate::error::AccessDeniedException {
        2987  +
            /* ServerBuilderGenerator.kt:287 */
        2988  +
            Ok(
        2989  +
                /* ServerBuilderGenerator.kt:542 */
        2990  +
                crate::error::AccessDeniedException {
        2991  +
                    /* ServerBuilderGenerator.kt:546 */
 1413   2992   
                    message: self.message,
 1414         -
                reason: self.reason.ok_or(ConstraintViolation::MissingReason)?,
 1415         -
            })
        2993  +
                    /* ServerBuilderGenerator.kt:546 */
        2994  +
                    reason: self
        2995  +
                        .reason
        2996  +
                        /* ServerBuilderGenerator.kt:569 */
        2997  +
                        .ok_or(ConstraintViolation::MissingReason)?,
        2998  +
                    /* ServerBuilderGenerator.kt:542 */
        2999  +
                }, /* ServerBuilderGenerator.kt:287 */
        3000  +
            )
        3001  +
            /* ServerBuilderGenerator.kt:283 */
 1416   3002   
        }
        3003  +
        /* ServerBuilderGenerator.kt:215 */
 1417   3004   
    }
        3005  +
        3006  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1418   3007   
}
 1419         -
/// See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
        3008  +
/// /* ServerBuilderGenerator.kt:171 */See [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
 1420   3009   
pub mod resource_not_found_exception {
 1421   3010   
        3011  +
    /* ServerBuilderGenerator.kt:461 */
 1422   3012   
    impl ::std::convert::From<Builder> for crate::error::ResourceNotFoundException {
 1423   3013   
        fn from(builder: Builder) -> Self {
 1424   3014   
            builder.build()
 1425   3015   
        }
 1426   3016   
    }
 1427         -
    /// A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
        3017  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
        3018  +
    /* RustType.kt:516 */
 1428   3019   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        3020  +
    /* ServerBuilderGenerator.kt:211 */
 1429   3021   
    pub struct Builder {
        3022  +
        /* ServerBuilderGenerator.kt:308 */
 1430   3023   
        pub(crate) message: ::std::option::Option<crate::model::ErrorMessage>,
        3024  +
        /* ServerBuilderGenerator.kt:308 */
 1431   3025   
        pub(crate) reason: ::std::option::Option<crate::model::ResourceNotFoundExceptionReason>,
        3026  +
        /* ServerBuilderGenerator.kt:211 */
 1432   3027   
    }
        3028  +
    /* ServerBuilderGenerator.kt:215 */
 1433   3029   
    impl Builder {
        3030  +
        /* ServerBuilderGenerator.kt:331 */
 1434   3031   
        #[allow(missing_docs)] // documentation missing in model
        3032  +
                               /* ServerBuilderGenerator.kt:343 */
 1435   3033   
        pub fn message(mut self, input: ::std::option::Option<crate::model::ErrorMessage>) -> Self {
 1436         -
            self.message = input;
        3034  +
            /* ServerBuilderGenerator.kt:344 */
        3035  +
            self.message =
        3036  +
                /* ServerBuilderGenerator.kt:376 */input
        3037  +
            /* ServerBuilderGenerator.kt:344 */;
 1437   3038   
            self
        3039  +
            /* ServerBuilderGenerator.kt:343 */
 1438   3040   
        }
 1439         -
        /// <p>The reason for the exception.</p>
        3041  +
        /// /* ServerBuilderGenerator.kt:331 */<p>The reason for the exception.</p>
        3042  +
        /* ServerBuilderGenerator.kt:343 */
 1440   3043   
        pub fn reason(
 1441   3044   
            mut self,
 1442   3045   
            input: ::std::option::Option<crate::model::ResourceNotFoundExceptionReason>,
 1443   3046   
        ) -> Self {
 1444         -
            self.reason = input;
        3047  +
            /* ServerBuilderGenerator.kt:344 */
        3048  +
            self.reason =
        3049  +
                /* ServerBuilderGenerator.kt:376 */input
        3050  +
            /* ServerBuilderGenerator.kt:344 */;
 1445   3051   
            self
        3052  +
            /* ServerBuilderGenerator.kt:343 */
 1446   3053   
        }
 1447         -
        /// Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
        3054  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ResourceNotFoundException`](crate::error::ResourceNotFoundException).
        3055  +
        /* ServerBuilderGenerator.kt:271 */
 1448   3056   
        pub fn build(self) -> crate::error::ResourceNotFoundException {
 1449   3057   
            self.build_enforcing_all_constraints()
 1450   3058   
        }
        3059  +
        /* ServerBuilderGenerator.kt:283 */
 1451   3060   
        fn build_enforcing_all_constraints(self) -> crate::error::ResourceNotFoundException {
        3061  +
            /* ServerBuilderGenerator.kt:542 */
 1452   3062   
            crate::error::ResourceNotFoundException {
        3063  +
                /* ServerBuilderGenerator.kt:546 */
 1453   3064   
                message: self.message,
        3065  +
                /* ServerBuilderGenerator.kt:546 */
 1454   3066   
                reason: self.reason,
        3067  +
                /* ServerBuilderGenerator.kt:542 */
 1455   3068   
            }
        3069  +
            /* ServerBuilderGenerator.kt:283 */
 1456   3070   
        }
        3071  +
        /* ServerBuilderGenerator.kt:215 */
 1457   3072   
    }
        3073  +
        3074  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1458   3075   
}
 1459         -
/// See [`InternalServerException`](crate::error::InternalServerException).
        3076  +
/// /* ServerBuilderGenerator.kt:171 */See [`InternalServerException`](crate::error::InternalServerException).
 1460   3077   
pub mod internal_server_exception {
 1461   3078   
        3079  +
    /* ServerBuilderGenerator.kt:461 */
 1462   3080   
    impl ::std::convert::From<Builder> for crate::error::InternalServerException {
 1463   3081   
        fn from(builder: Builder) -> Self {
 1464   3082   
            builder.build()
 1465   3083   
        }
 1466   3084   
    }
 1467         -
    /// A builder for [`InternalServerException`](crate::error::InternalServerException).
        3085  +
    /// /* ServerBuilderGenerator.kt:201 */A builder for [`InternalServerException`](crate::error::InternalServerException).
        3086  +
    /* RustType.kt:516 */
 1468   3087   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        3088  +
    /* ServerBuilderGenerator.kt:211 */
 1469   3089   
    pub struct Builder {
        3090  +
        /* ServerBuilderGenerator.kt:308 */
 1470   3091   
        pub(crate) message: ::std::option::Option<crate::model::ErrorMessage>,
        3092  +
        /* ServerBuilderGenerator.kt:211 */
 1471   3093   
    }
        3094  +
    /* ServerBuilderGenerator.kt:215 */
 1472   3095   
    impl Builder {
        3096  +
        /* ServerBuilderGenerator.kt:331 */
 1473   3097   
        #[allow(missing_docs)] // documentation missing in model
        3098  +
                               /* ServerBuilderGenerator.kt:343 */
 1474   3099   
        pub fn message(mut self, input: ::std::option::Option<crate::model::ErrorMessage>) -> Self {
 1475         -
            self.message = input;
        3100  +
            /* ServerBuilderGenerator.kt:344 */
        3101  +
            self.message =
        3102  +
                /* ServerBuilderGenerator.kt:376 */input
        3103  +
            /* ServerBuilderGenerator.kt:344 */;
 1476   3104   
            self
        3105  +
            /* ServerBuilderGenerator.kt:343 */
 1477   3106   
        }
 1478         -
        /// Consumes the builder and constructs a [`InternalServerException`](crate::error::InternalServerException).
        3107  +
        /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`InternalServerException`](crate::error::InternalServerException).
        3108  +
        /* ServerBuilderGenerator.kt:271 */
 1479   3109   
        pub fn build(self) -> crate::error::InternalServerException {
 1480   3110   
            self.build_enforcing_all_constraints()
 1481   3111   
        }
        3112  +
        /* ServerBuilderGenerator.kt:283 */
 1482   3113   
        fn build_enforcing_all_constraints(self) -> crate::error::InternalServerException {
        3114  +
            /* ServerBuilderGenerator.kt:542 */
 1483   3115   
            crate::error::InternalServerException {
        3116  +
                /* ServerBuilderGenerator.kt:546 */
 1484   3117   
                message: self.message,
        3118  +
                /* ServerBuilderGenerator.kt:542 */
 1485   3119   
            }
        3120  +
            /* ServerBuilderGenerator.kt:283 */
 1486   3121   
        }
        3122  +
        /* ServerBuilderGenerator.kt:215 */
 1487   3123   
    }
        3124  +
        3125  +
    /* RustCrateInlineModuleComposingWriter.kt:299 */
 1488   3126   
}