Server Test

Server Test

rev. ee474c7509d7728618c23068f3741e8e5b339ef9 (ignoring whitespace)

Files changed:

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

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

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

@@ -0,1 +0,1823 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
impl crate::constrained::Constrained for crate::model::ConstrainedUnion {
           4  +
    type Unconstrained =
           5  +
        crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained;
           6  +
}
           7  +
           8  +
impl From<crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained>
           9  +
    for crate::constrained::MaybeConstrained<crate::model::ConstrainedUnion>
          10  +
{
          11  +
    fn from(
          12  +
        value: crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained,
          13  +
    ) -> Self {
          14  +
        Self::Unconstrained(value)
          15  +
    }
          16  +
}
          17  +
          18  +
pub(crate) mod map_of_enum_string_unconstrained {
          19  +
          20  +
    #[derive(Debug, Clone)]
          21  +
    pub(crate) struct MapOfEnumStringUnconstrained(
          22  +
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
          23  +
    );
          24  +
          25  +
    impl From<MapOfEnumStringUnconstrained>
          26  +
        for crate::constrained::MaybeConstrained<
          27  +
            crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained,
          28  +
        >
          29  +
    {
          30  +
        fn from(value: MapOfEnumStringUnconstrained) -> Self {
          31  +
            Self::Unconstrained(value)
          32  +
        }
          33  +
    }
          34  +
    impl std::convert::TryFrom<MapOfEnumStringUnconstrained>
          35  +
        for crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained
          36  +
    {
          37  +
        type Error = crate::model::map_of_enum_string::ConstraintViolation;
          38  +
        fn try_from(value: MapOfEnumStringUnconstrained) -> std::result::Result<Self, Self::Error> {
          39  +
            let res: ::std::result::Result<
          40  +
                ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
          41  +
                Self::Error,
          42  +
            > = value
          43  +
                .0
          44  +
                .into_iter()
          45  +
                .map(|(k, v)| {
          46  +
                    let k: crate::model::EnumString = k.try_into().map_err(Self::Error::Key)?;
          47  +
          48  +
                    match crate::model::EnumString::try_from(v) {
          49  +
                        Ok(v) => Ok((k, v)),
          50  +
                        Err(inner_constraint_violation) => {
          51  +
                            Err(Self::Error::Value(k, inner_constraint_violation))
          52  +
                        }
          53  +
                    }
          54  +
                })
          55  +
                .collect();
          56  +
            let hm = res?;
          57  +
            Ok(Self(hm))
          58  +
        }
          59  +
    }
          60  +
}
          61  +
pub(crate) mod con_b_map_unconstrained {
          62  +
          63  +
    #[derive(Debug, Clone)]
          64  +
    pub(crate) struct ConBMapUnconstrained(
          65  +
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
          66  +
    );
          67  +
          68  +
    impl From<ConBMapUnconstrained> for crate::constrained::MaybeConstrained<crate::model::ConBMap> {
          69  +
        fn from(value: ConBMapUnconstrained) -> Self {
          70  +
            Self::Unconstrained(value)
          71  +
        }
          72  +
    }
          73  +
    impl std::convert::TryFrom<ConBMapUnconstrained> for crate::model::ConBMap {
          74  +
        type Error = crate::model::con_b_map::ConstraintViolation;
          75  +
        fn try_from(value: ConBMapUnconstrained) -> std::result::Result<Self, Self::Error> {
          76  +
            let res: ::std::result::Result<
          77  +
                ::std::collections::HashMap<::std::string::String, crate::model::LengthString>,
          78  +
                Self::Error,
          79  +
            > = value
          80  +
                .0
          81  +
                .into_iter()
          82  +
                .map(|(k, v)| match crate::model::LengthString::try_from(v) {
          83  +
                    Ok(v) => Ok((k, v)),
          84  +
                    Err(inner_constraint_violation) => {
          85  +
                        Err(Self::Error::Value(k, inner_constraint_violation))
          86  +
                    }
          87  +
                })
          88  +
                .collect();
          89  +
            let hm = res?;
          90  +
            Self::try_from(hm)
          91  +
        }
          92  +
    }
          93  +
}
          94  +
pub(crate) mod map_of_list_of_length_pattern_string_unconstrained {
          95  +
          96  +
    #[derive(Debug, Clone)]
          97  +
    pub(crate) struct MapOfListOfLengthPatternStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::list_of_length_pattern_string_unconstrained::ListOfLengthPatternStringUnconstrained>);
          98  +
          99  +
    impl From<MapOfListOfLengthPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained> {
         100  +
                        fn from(value: MapOfListOfLengthPatternStringUnconstrained) -> Self {
         101  +
                            Self::Unconstrained(value)
         102  +
                        }
         103  +
                    }
         104  +
    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::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
         108  +
                                        .into_iter()
         109  +
                                        .map(|(k, v)| {
         110  +
                                            let k: crate::model::LengthPatternString = k.try_into().map_err(Self::Error::Key)?;
         111  +
            
         112  +
            match crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained::try_from(v) {
         113  +
                                                    Ok(v) => Ok((k, v)),
         114  +
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
         115  +
                                                }
         116  +
                                        })
         117  +
                                        .collect();
         118  +
                                    let hm = res?;
         119  +
            Ok(Self(hm))
         120  +
        }
         121  +
    }
         122  +
}
         123  +
pub(crate) mod list_of_length_pattern_string_unconstrained {
         124  +
         125  +
    #[derive(Debug, Clone)]
         126  +
    pub(crate) struct ListOfLengthPatternStringUnconstrained(
         127  +
        pub(crate) std::vec::Vec<::std::string::String>,
         128  +
    );
         129  +
         130  +
    impl From<ListOfLengthPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained> {
         131  +
                        fn from(value: ListOfLengthPatternStringUnconstrained) -> Self {
         132  +
                            Self::Unconstrained(value)
         133  +
                        }
         134  +
                    }
         135  +
    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::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::ConstraintViolation) > = value
         139  +
                                        .0
         140  +
                                        .into_iter()
         141  +
                                        .enumerate()
         142  +
                                        .map(|(idx, inner)| {
         143  +
                                            inner.try_into().map_err(|inner_violation| (idx, inner_violation))
         144  +
                                        })
         145  +
                                        .collect();
         146  +
                                    let inner = res
         147  +
                                        
         148  +
                                        .map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         149  +
            Ok(Self(inner))
         150  +
        }
         151  +
    }
         152  +
}
         153  +
pub(crate) mod map_of_length_pattern_string_unconstrained {
         154  +
         155  +
    #[derive(Debug, Clone)]
         156  +
    pub(crate) struct MapOfLengthPatternStringUnconstrained(
         157  +
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
         158  +
    );
         159  +
         160  +
    impl From<MapOfLengthPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained> {
         161  +
                        fn from(value: MapOfLengthPatternStringUnconstrained) -> Self {
         162  +
                            Self::Unconstrained(value)
         163  +
                        }
         164  +
                    }
         165  +
    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::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
         169  +
                                        .into_iter()
         170  +
                                        .map(|(k, v)| {
         171  +
                                            let k: crate::model::LengthPatternString = k.try_into().map_err(Self::Error::Key)?;
         172  +
            
         173  +
            match crate::model::LengthPatternString::try_from(v) {
         174  +
                                                    Ok(v) => Ok((k, v)),
         175  +
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
         176  +
                                                }
         177  +
                                        })
         178  +
                                        .collect();
         179  +
                                    let hm = res?;
         180  +
            Ok(Self(hm))
         181  +
        }
         182  +
    }
         183  +
}
         184  +
pub(crate) mod map_of_list_of_pattern_string_unconstrained {
         185  +
         186  +
    #[derive(Debug, Clone)]
         187  +
    pub(crate) struct MapOfListOfPatternStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::list_of_pattern_string_unconstrained::ListOfPatternStringUnconstrained>);
         188  +
         189  +
    impl From<MapOfListOfPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained> {
         190  +
                        fn from(value: MapOfListOfPatternStringUnconstrained) -> Self {
         191  +
                            Self::Unconstrained(value)
         192  +
                        }
         193  +
                    }
         194  +
    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::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
         198  +
                                        .into_iter()
         199  +
                                        .map(|(k, v)| {
         200  +
                                            let k: crate::model::PatternString = k.try_into().map_err(Self::Error::Key)?;
         201  +
            
         202  +
            match crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained::try_from(v) {
         203  +
                                                    Ok(v) => Ok((k, v)),
         204  +
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
         205  +
                                                }
         206  +
                                        })
         207  +
                                        .collect();
         208  +
                                    let hm = res?;
         209  +
            Ok(Self(hm))
         210  +
        }
         211  +
    }
         212  +
}
         213  +
pub(crate) mod list_of_pattern_string_unconstrained {
         214  +
         215  +
    #[derive(Debug, Clone)]
         216  +
    pub(crate) struct ListOfPatternStringUnconstrained(
         217  +
        pub(crate) std::vec::Vec<::std::string::String>,
         218  +
    );
         219  +
         220  +
    impl From<ListOfPatternStringUnconstrained>
         221  +
        for crate::constrained::MaybeConstrained<
         222  +
            crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained,
         223  +
        >
         224  +
    {
         225  +
        fn from(value: ListOfPatternStringUnconstrained) -> Self {
         226  +
            Self::Unconstrained(value)
         227  +
        }
         228  +
    }
         229  +
    impl std::convert::TryFrom<ListOfPatternStringUnconstrained>
         230  +
        for crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained
         231  +
    {
         232  +
        type Error = crate::model::list_of_pattern_string::ConstraintViolation;
         233  +
        fn try_from(
         234  +
            value: ListOfPatternStringUnconstrained,
         235  +
        ) -> std::result::Result<Self, Self::Error> {
         236  +
            let res: ::std::result::Result<
         237  +
                ::std::vec::Vec<crate::model::PatternString>,
         238  +
                (usize, crate::model::pattern_string::ConstraintViolation),
         239  +
            > = value
         240  +
                .0
         241  +
                .into_iter()
         242  +
                .enumerate()
         243  +
                .map(|(idx, inner)| {
         244  +
                    inner
         245  +
                        .try_into()
         246  +
                        .map_err(|inner_violation| (idx, inner_violation))
         247  +
                })
         248  +
                .collect();
         249  +
            let inner =
         250  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         251  +
            Ok(Self(inner))
         252  +
        }
         253  +
    }
         254  +
}
         255  +
pub(crate) mod map_of_pattern_string_unconstrained {
         256  +
         257  +
    #[derive(Debug, Clone)]
         258  +
    pub(crate) struct MapOfPatternStringUnconstrained(
         259  +
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
         260  +
    );
         261  +
         262  +
    impl From<MapOfPatternStringUnconstrained>
         263  +
        for crate::constrained::MaybeConstrained<
         264  +
            crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained,
         265  +
        >
         266  +
    {
         267  +
        fn from(value: MapOfPatternStringUnconstrained) -> Self {
         268  +
            Self::Unconstrained(value)
         269  +
        }
         270  +
    }
         271  +
    impl std::convert::TryFrom<MapOfPatternStringUnconstrained>
         272  +
        for crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained
         273  +
    {
         274  +
        type Error = crate::model::map_of_pattern_string::ConstraintViolation;
         275  +
        fn try_from(
         276  +
            value: MapOfPatternStringUnconstrained,
         277  +
        ) -> std::result::Result<Self, Self::Error> {
         278  +
            let res: ::std::result::Result<
         279  +
                ::std::collections::HashMap<
         280  +
                    crate::model::PatternString,
         281  +
                    crate::model::PatternString,
         282  +
                >,
         283  +
                Self::Error,
         284  +
            > = value
         285  +
                .0
         286  +
                .into_iter()
         287  +
                .map(|(k, v)| {
         288  +
                    let k: crate::model::PatternString = k.try_into().map_err(Self::Error::Key)?;
         289  +
         290  +
                    match crate::model::PatternString::try_from(v) {
         291  +
                        Ok(v) => Ok((k, v)),
         292  +
                        Err(inner_constraint_violation) => {
         293  +
                            Err(Self::Error::Value(k, inner_constraint_violation))
         294  +
                        }
         295  +
                    }
         296  +
                })
         297  +
                .collect();
         298  +
            let hm = res?;
         299  +
            Ok(Self(hm))
         300  +
        }
         301  +
    }
         302  +
}
         303  +
pub(crate) mod map_of_list_of_enum_string_unconstrained {
         304  +
         305  +
    #[derive(Debug, Clone)]
         306  +
    pub(crate) struct MapOfListOfEnumStringUnconstrained(
         307  +
        pub(crate)  std::collections::HashMap<
         308  +
            ::std::string::String,
         309  +
            crate::unconstrained::list_of_enum_string_unconstrained::ListOfEnumStringUnconstrained,
         310  +
        >,
         311  +
    );
         312  +
         313  +
    impl From<MapOfListOfEnumStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained> {
         314  +
                        fn from(value: MapOfListOfEnumStringUnconstrained) -> Self {
         315  +
                            Self::Unconstrained(value)
         316  +
                        }
         317  +
                    }
         318  +
    impl std::convert::TryFrom<MapOfListOfEnumStringUnconstrained> for crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained {
         319  +
        type Error = crate::model::map_of_list_of_enum_string::ConstraintViolation;
         320  +
        fn try_from(value: MapOfListOfEnumStringUnconstrained) -> std::result::Result<Self, Self::Error> {
         321  +
            let res: ::std::result::Result<::std::collections::HashMap<crate::model::EnumString, crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>, Self::Error> = value.0
         322  +
                                        .into_iter()
         323  +
                                        .map(|(k, v)| {
         324  +
                                            let k: crate::model::EnumString = k.try_into().map_err(Self::Error::Key)?;
         325  +
            
         326  +
            match crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained::try_from(v) {
         327  +
                                                    Ok(v) => Ok((k, v)),
         328  +
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
         329  +
                                                }
         330  +
                                        })
         331  +
                                        .collect();
         332  +
                                    let hm = res?;
         333  +
            Ok(Self(hm))
         334  +
        }
         335  +
    }
         336  +
}
         337  +
pub(crate) mod list_of_enum_string_unconstrained {
         338  +
         339  +
    #[derive(Debug, Clone)]
         340  +
    pub(crate) struct ListOfEnumStringUnconstrained(
         341  +
        pub(crate) std::vec::Vec<::std::string::String>,
         342  +
    );
         343  +
         344  +
    impl From<ListOfEnumStringUnconstrained>
         345  +
        for crate::constrained::MaybeConstrained<
         346  +
            crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained,
         347  +
        >
         348  +
    {
         349  +
        fn from(value: ListOfEnumStringUnconstrained) -> Self {
         350  +
            Self::Unconstrained(value)
         351  +
        }
         352  +
    }
         353  +
    impl std::convert::TryFrom<ListOfEnumStringUnconstrained>
         354  +
        for crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained
         355  +
    {
         356  +
        type Error = crate::model::list_of_enum_string::ConstraintViolation;
         357  +
        fn try_from(
         358  +
            value: ListOfEnumStringUnconstrained,
         359  +
        ) -> std::result::Result<Self, Self::Error> {
         360  +
            let res: ::std::result::Result<
         361  +
                ::std::vec::Vec<crate::model::EnumString>,
         362  +
                (usize, crate::model::enum_string::ConstraintViolation),
         363  +
            > = value
         364  +
                .0
         365  +
                .into_iter()
         366  +
                .enumerate()
         367  +
                .map(|(idx, inner)| {
         368  +
                    inner
         369  +
                        .try_into()
         370  +
                        .map_err(|inner_violation| (idx, inner_violation))
         371  +
                })
         372  +
                .collect();
         373  +
            let inner =
         374  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         375  +
            Ok(Self(inner))
         376  +
        }
         377  +
    }
         378  +
}
         379  +
pub(crate) mod map_of_length_list_of_pattern_string_unconstrained {
         380  +
         381  +
    #[derive(Debug, Clone)]
         382  +
    pub(crate) struct MapOfLengthListOfPatternStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::length_list_of_pattern_string_unconstrained::LengthListOfPatternStringUnconstrained>);
         383  +
         384  +
    impl From<MapOfLengthListOfPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained> {
         385  +
                        fn from(value: MapOfLengthListOfPatternStringUnconstrained) -> Self {
         386  +
                            Self::Unconstrained(value)
         387  +
                        }
         388  +
                    }
         389  +
    impl std::convert::TryFrom<MapOfLengthListOfPatternStringUnconstrained> for crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained {
         390  +
        type Error = crate::model::map_of_length_list_of_pattern_string::ConstraintViolation;
         391  +
        fn try_from(value: MapOfLengthListOfPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
         392  +
            let res: ::std::result::Result<::std::collections::HashMap<crate::model::PatternString, crate::model::LengthListOfPatternString>, Self::Error> = value.0
         393  +
                                        .into_iter()
         394  +
                                        .map(|(k, v)| {
         395  +
                                            let k: crate::model::PatternString = k.try_into().map_err(Self::Error::Key)?;
         396  +
            
         397  +
            match crate::model::LengthListOfPatternString::try_from(v) {
         398  +
                                                    Ok(v) => Ok((k, v)),
         399  +
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
         400  +
                                                }
         401  +
                                        })
         402  +
                                        .collect();
         403  +
                                    let hm = res?;
         404  +
            Ok(Self(hm))
         405  +
        }
         406  +
    }
         407  +
}
         408  +
pub(crate) mod length_list_of_pattern_string_unconstrained {
         409  +
         410  +
    #[derive(Debug, Clone)]
         411  +
    pub(crate) struct LengthListOfPatternStringUnconstrained(
         412  +
        pub(crate) std::vec::Vec<::std::string::String>,
         413  +
    );
         414  +
         415  +
    impl From<LengthListOfPatternStringUnconstrained>
         416  +
        for crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>
         417  +
    {
         418  +
        fn from(value: LengthListOfPatternStringUnconstrained) -> Self {
         419  +
            Self::Unconstrained(value)
         420  +
        }
         421  +
    }
         422  +
    impl std::convert::TryFrom<LengthListOfPatternStringUnconstrained>
         423  +
        for crate::model::LengthListOfPatternString
         424  +
    {
         425  +
        type Error = crate::model::length_list_of_pattern_string::ConstraintViolation;
         426  +
        fn try_from(
         427  +
            value: LengthListOfPatternStringUnconstrained,
         428  +
        ) -> std::result::Result<Self, Self::Error> {
         429  +
            let res: ::std::result::Result<
         430  +
                ::std::vec::Vec<crate::model::PatternString>,
         431  +
                (usize, crate::model::pattern_string::ConstraintViolation),
         432  +
            > = value
         433  +
                .0
         434  +
                .into_iter()
         435  +
                .enumerate()
         436  +
                .map(|(idx, inner)| {
         437  +
                    inner
         438  +
                        .try_into()
         439  +
                        .map_err(|inner_violation| (idx, inner_violation))
         440  +
                })
         441  +
                .collect();
         442  +
            let inner =
         443  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         444  +
            Self::try_from(inner)
         445  +
        }
         446  +
    }
         447  +
}
         448  +
pub(crate) mod map_of_set_of_length_string_unconstrained {
         449  +
         450  +
    #[derive(Debug, Clone)]
         451  +
    pub(crate) struct MapOfSetOfLengthStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::set_of_length_string_unconstrained::SetOfLengthStringUnconstrained>);
         452  +
         453  +
    impl From<MapOfSetOfLengthStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained> {
         454  +
                        fn from(value: MapOfSetOfLengthStringUnconstrained) -> Self {
         455  +
                            Self::Unconstrained(value)
         456  +
                        }
         457  +
                    }
         458  +
    impl std::convert::TryFrom<MapOfSetOfLengthStringUnconstrained> for crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained {
         459  +
        type Error = crate::model::map_of_set_of_length_string::ConstraintViolation;
         460  +
        fn try_from(value: MapOfSetOfLengthStringUnconstrained) -> std::result::Result<Self, Self::Error> {
         461  +
            let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthString, crate::model::SetOfLengthString>, Self::Error> = value.0
         462  +
                                        .into_iter()
         463  +
                                        .map(|(k, v)| {
         464  +
                                            let k: crate::model::LengthString = k.try_into().map_err(Self::Error::Key)?;
         465  +
            
         466  +
            match crate::model::SetOfLengthString::try_from(v) {
         467  +
                                                    Ok(v) => Ok((k, v)),
         468  +
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
         469  +
                                                }
         470  +
                                        })
         471  +
                                        .collect();
         472  +
                                    let hm = res?;
         473  +
            Ok(Self(hm))
         474  +
        }
         475  +
    }
         476  +
}
         477  +
pub(crate) mod set_of_length_string_unconstrained {
         478  +
         479  +
    #[derive(Debug, Clone)]
         480  +
    pub(crate) struct SetOfLengthStringUnconstrained(
         481  +
        pub(crate) std::vec::Vec<::std::string::String>,
         482  +
    );
         483  +
         484  +
    impl From<SetOfLengthStringUnconstrained>
         485  +
        for crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>
         486  +
    {
         487  +
        fn from(value: SetOfLengthStringUnconstrained) -> Self {
         488  +
            Self::Unconstrained(value)
         489  +
        }
         490  +
    }
         491  +
    impl std::convert::TryFrom<SetOfLengthStringUnconstrained> for crate::model::SetOfLengthString {
         492  +
        type Error = crate::model::set_of_length_string::ConstraintViolation;
         493  +
        fn try_from(
         494  +
            value: SetOfLengthStringUnconstrained,
         495  +
        ) -> std::result::Result<Self, Self::Error> {
         496  +
            let res: ::std::result::Result<
         497  +
                ::std::vec::Vec<crate::model::LengthString>,
         498  +
                (usize, crate::model::length_string::ConstraintViolation),
         499  +
            > = value
         500  +
                .0
         501  +
                .into_iter()
         502  +
                .enumerate()
         503  +
                .map(|(idx, inner)| {
         504  +
                    inner
         505  +
                        .try_into()
         506  +
                        .map_err(|inner_violation| (idx, inner_violation))
         507  +
                })
         508  +
                .collect();
         509  +
            let inner =
         510  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         511  +
            Self::try_from(inner)
         512  +
        }
         513  +
    }
         514  +
}
         515  +
pub(crate) mod map_of_list_of_length_string_unconstrained {
         516  +
         517  +
    #[derive(Debug, Clone)]
         518  +
    pub(crate) struct MapOfListOfLengthStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::list_of_length_string_unconstrained::ListOfLengthStringUnconstrained>);
         519  +
         520  +
    impl From<MapOfListOfLengthStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained> {
         521  +
                        fn from(value: MapOfListOfLengthStringUnconstrained) -> Self {
         522  +
                            Self::Unconstrained(value)
         523  +
                        }
         524  +
                    }
         525  +
    impl std::convert::TryFrom<MapOfListOfLengthStringUnconstrained> for crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained {
         526  +
        type Error = crate::model::map_of_list_of_length_string::ConstraintViolation;
         527  +
        fn try_from(value: MapOfListOfLengthStringUnconstrained) -> std::result::Result<Self, Self::Error> {
         528  +
            let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthString, crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>, Self::Error> = value.0
         529  +
                                        .into_iter()
         530  +
                                        .map(|(k, v)| {
         531  +
                                            let k: crate::model::LengthString = k.try_into().map_err(Self::Error::Key)?;
         532  +
            
         533  +
            match crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained::try_from(v) {
         534  +
                                                    Ok(v) => Ok((k, v)),
         535  +
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
         536  +
                                                }
         537  +
                                        })
         538  +
                                        .collect();
         539  +
                                    let hm = res?;
         540  +
            Ok(Self(hm))
         541  +
        }
         542  +
    }
         543  +
}
         544  +
pub(crate) mod list_of_length_string_unconstrained {
         545  +
         546  +
    #[derive(Debug, Clone)]
         547  +
    pub(crate) struct ListOfLengthStringUnconstrained(
         548  +
        pub(crate) std::vec::Vec<::std::string::String>,
         549  +
    );
         550  +
         551  +
    impl From<ListOfLengthStringUnconstrained>
         552  +
        for crate::constrained::MaybeConstrained<
         553  +
            crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained,
         554  +
        >
         555  +
    {
         556  +
        fn from(value: ListOfLengthStringUnconstrained) -> Self {
         557  +
            Self::Unconstrained(value)
         558  +
        }
         559  +
    }
         560  +
    impl std::convert::TryFrom<ListOfLengthStringUnconstrained>
         561  +
        for crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained
         562  +
    {
         563  +
        type Error = crate::model::list_of_length_string::ConstraintViolation;
         564  +
        fn try_from(
         565  +
            value: ListOfLengthStringUnconstrained,
         566  +
        ) -> std::result::Result<Self, Self::Error> {
         567  +
            let res: ::std::result::Result<
         568  +
                ::std::vec::Vec<crate::model::LengthString>,
         569  +
                (usize, crate::model::length_string::ConstraintViolation),
         570  +
            > = value
         571  +
                .0
         572  +
                .into_iter()
         573  +
                .enumerate()
         574  +
                .map(|(idx, inner)| {
         575  +
                    inner
         576  +
                        .try_into()
         577  +
                        .map_err(|inner_violation| (idx, inner_violation))
         578  +
                })
         579  +
                .collect();
         580  +
            let inner =
         581  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         582  +
            Ok(Self(inner))
         583  +
        }
         584  +
    }
         585  +
}
         586  +
pub(crate) mod map_of_length_string_unconstrained {
         587  +
         588  +
    #[derive(Debug, Clone)]
         589  +
    pub(crate) struct MapOfLengthStringUnconstrained(
         590  +
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
         591  +
    );
         592  +
         593  +
    impl From<MapOfLengthStringUnconstrained>
         594  +
        for crate::constrained::MaybeConstrained<
         595  +
            crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained,
         596  +
        >
         597  +
    {
         598  +
        fn from(value: MapOfLengthStringUnconstrained) -> Self {
         599  +
            Self::Unconstrained(value)
         600  +
        }
         601  +
    }
         602  +
    impl std::convert::TryFrom<MapOfLengthStringUnconstrained>
         603  +
        for crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained
         604  +
    {
         605  +
        type Error = crate::model::map_of_length_string::ConstraintViolation;
         606  +
        fn try_from(
         607  +
            value: MapOfLengthStringUnconstrained,
         608  +
        ) -> std::result::Result<Self, Self::Error> {
         609  +
            let res: ::std::result::Result<
         610  +
                ::std::collections::HashMap<crate::model::LengthString, crate::model::LengthString>,
         611  +
                Self::Error,
         612  +
            > = value
         613  +
                .0
         614  +
                .into_iter()
         615  +
                .map(|(k, v)| {
         616  +
                    let k: crate::model::LengthString = k.try_into().map_err(Self::Error::Key)?;
         617  +
         618  +
                    match crate::model::LengthString::try_from(v) {
         619  +
                        Ok(v) => Ok((k, v)),
         620  +
                        Err(inner_constraint_violation) => {
         621  +
                            Err(Self::Error::Value(k, inner_constraint_violation))
         622  +
                        }
         623  +
                    }
         624  +
                })
         625  +
                .collect();
         626  +
            let hm = res?;
         627  +
            Ok(Self(hm))
         628  +
        }
         629  +
    }
         630  +
}
         631  +
pub(crate) mod recursive_list_unconstrained {
         632  +
         633  +
    #[derive(Debug, Clone)]
         634  +
    pub(crate) struct RecursiveListUnconstrained(
         635  +
        pub(crate) std::vec::Vec<crate::model::recursive_shapes_input_output_nested1::Builder>,
         636  +
    );
         637  +
         638  +
    impl From<RecursiveListUnconstrained>
         639  +
        for crate::constrained::MaybeConstrained<
         640  +
            crate::constrained::recursive_list_constrained::RecursiveListConstrained,
         641  +
        >
         642  +
    {
         643  +
        fn from(value: RecursiveListUnconstrained) -> Self {
         644  +
            Self::Unconstrained(value)
         645  +
        }
         646  +
    }
         647  +
    impl std::convert::TryFrom<RecursiveListUnconstrained>
         648  +
        for crate::constrained::recursive_list_constrained::RecursiveListConstrained
         649  +
    {
         650  +
        type Error = crate::model::recursive_list::ConstraintViolation;
         651  +
        fn try_from(value: RecursiveListUnconstrained) -> std::result::Result<Self, Self::Error> {
         652  +
            let res: ::std::result::Result<
         653  +
                ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
         654  +
                (
         655  +
                    usize,
         656  +
                    crate::model::recursive_shapes_input_output_nested1::ConstraintViolation,
         657  +
                ),
         658  +
            > = value
         659  +
                .0
         660  +
                .into_iter()
         661  +
                .enumerate()
         662  +
                .map(|(idx, inner)| {
         663  +
                    inner
         664  +
                        .try_into()
         665  +
                        .map_err(|inner_violation| (idx, inner_violation))
         666  +
                })
         667  +
                .collect();
         668  +
            let inner =
         669  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         670  +
            Ok(Self(inner))
         671  +
        }
         672  +
    }
         673  +
}
         674  +
pub(crate) mod length_set_of_pattern_string_unconstrained {
         675  +
         676  +
    #[derive(Debug, Clone)]
         677  +
    pub(crate) struct LengthSetOfPatternStringUnconstrained(
         678  +
        pub(crate) std::vec::Vec<::std::string::String>,
         679  +
    );
         680  +
         681  +
    impl From<LengthSetOfPatternStringUnconstrained>
         682  +
        for crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>
         683  +
    {
         684  +
        fn from(value: LengthSetOfPatternStringUnconstrained) -> Self {
         685  +
            Self::Unconstrained(value)
         686  +
        }
         687  +
    }
         688  +
    impl std::convert::TryFrom<LengthSetOfPatternStringUnconstrained>
         689  +
        for crate::model::LengthSetOfPatternString
         690  +
    {
         691  +
        type Error = crate::model::length_set_of_pattern_string::ConstraintViolation;
         692  +
        fn try_from(
         693  +
            value: LengthSetOfPatternStringUnconstrained,
         694  +
        ) -> std::result::Result<Self, Self::Error> {
         695  +
            let res: ::std::result::Result<
         696  +
                ::std::vec::Vec<crate::model::PatternString>,
         697  +
                (usize, crate::model::pattern_string::ConstraintViolation),
         698  +
            > = value
         699  +
                .0
         700  +
                .into_iter()
         701  +
                .enumerate()
         702  +
                .map(|(idx, inner)| {
         703  +
                    inner
         704  +
                        .try_into()
         705  +
                        .map_err(|inner_violation| (idx, inner_violation))
         706  +
                })
         707  +
                .collect();
         708  +
            let inner =
         709  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         710  +
            Self::try_from(inner)
         711  +
        }
         712  +
    }
         713  +
}
         714  +
pub(crate) mod set_of_length_pattern_string_unconstrained {
         715  +
         716  +
    #[derive(Debug, Clone)]
         717  +
    pub(crate) struct SetOfLengthPatternStringUnconstrained(
         718  +
        pub(crate) std::vec::Vec<::std::string::String>,
         719  +
    );
         720  +
         721  +
    impl From<SetOfLengthPatternStringUnconstrained>
         722  +
        for crate::constrained::MaybeConstrained<crate::model::SetOfLengthPatternString>
         723  +
    {
         724  +
        fn from(value: SetOfLengthPatternStringUnconstrained) -> Self {
         725  +
            Self::Unconstrained(value)
         726  +
        }
         727  +
    }
         728  +
    impl std::convert::TryFrom<SetOfLengthPatternStringUnconstrained>
         729  +
        for crate::model::SetOfLengthPatternString
         730  +
    {
         731  +
        type Error = crate::model::set_of_length_pattern_string::ConstraintViolation;
         732  +
        fn try_from(
         733  +
            value: SetOfLengthPatternStringUnconstrained,
         734  +
        ) -> std::result::Result<Self, Self::Error> {
         735  +
            let res: ::std::result::Result<
         736  +
                ::std::vec::Vec<crate::model::LengthPatternString>,
         737  +
                (
         738  +
                    usize,
         739  +
                    crate::model::length_pattern_string::ConstraintViolation,
         740  +
                ),
         741  +
            > = value
         742  +
                .0
         743  +
                .into_iter()
         744  +
                .enumerate()
         745  +
                .map(|(idx, inner)| {
         746  +
                    inner
         747  +
                        .try_into()
         748  +
                        .map_err(|inner_violation| (idx, inner_violation))
         749  +
                })
         750  +
                .collect();
         751  +
            let inner =
         752  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         753  +
            Self::try_from(inner)
         754  +
        }
         755  +
    }
         756  +
}
         757  +
pub(crate) mod set_of_pattern_string_unconstrained {
         758  +
         759  +
    #[derive(Debug, Clone)]
         760  +
    pub(crate) struct SetOfPatternStringUnconstrained(
         761  +
        pub(crate) std::vec::Vec<::std::string::String>,
         762  +
    );
         763  +
         764  +
    impl From<SetOfPatternStringUnconstrained>
         765  +
        for crate::constrained::MaybeConstrained<crate::model::SetOfPatternString>
         766  +
    {
         767  +
        fn from(value: SetOfPatternStringUnconstrained) -> Self {
         768  +
            Self::Unconstrained(value)
         769  +
        }
         770  +
    }
         771  +
    impl std::convert::TryFrom<SetOfPatternStringUnconstrained> for crate::model::SetOfPatternString {
         772  +
        type Error = crate::model::set_of_pattern_string::ConstraintViolation;
         773  +
        fn try_from(
         774  +
            value: SetOfPatternStringUnconstrained,
         775  +
        ) -> std::result::Result<Self, Self::Error> {
         776  +
            let res: ::std::result::Result<
         777  +
                ::std::vec::Vec<crate::model::PatternString>,
         778  +
                (usize, crate::model::pattern_string::ConstraintViolation),
         779  +
            > = value
         780  +
                .0
         781  +
                .into_iter()
         782  +
                .enumerate()
         783  +
                .map(|(idx, inner)| {
         784  +
                    inner
         785  +
                        .try_into()
         786  +
                        .map_err(|inner_violation| (idx, inner_violation))
         787  +
                })
         788  +
                .collect();
         789  +
            let inner =
         790  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         791  +
            Self::try_from(inner)
         792  +
        }
         793  +
    }
         794  +
}
         795  +
pub(crate) mod map_of_range_byte_unconstrained {
         796  +
         797  +
    #[derive(Debug, Clone)]
         798  +
    pub(crate) struct MapOfRangeByteUnconstrained(
         799  +
        pub(crate) std::collections::HashMap<::std::string::String, i8>,
         800  +
    );
         801  +
         802  +
    impl From<MapOfRangeByteUnconstrained>
         803  +
        for crate::constrained::MaybeConstrained<
         804  +
            crate::constrained::map_of_range_byte_constrained::MapOfRangeByteConstrained,
         805  +
        >
         806  +
    {
         807  +
        fn from(value: MapOfRangeByteUnconstrained) -> Self {
         808  +
            Self::Unconstrained(value)
         809  +
        }
         810  +
    }
         811  +
    impl std::convert::TryFrom<MapOfRangeByteUnconstrained>
         812  +
        for crate::constrained::map_of_range_byte_constrained::MapOfRangeByteConstrained
         813  +
    {
         814  +
        type Error = crate::model::map_of_range_byte::ConstraintViolation;
         815  +
        fn try_from(value: MapOfRangeByteUnconstrained) -> std::result::Result<Self, Self::Error> {
         816  +
            let res: ::std::result::Result<
         817  +
                ::std::collections::HashMap<::std::string::String, crate::model::RangeByte>,
         818  +
                Self::Error,
         819  +
            > = value
         820  +
                .0
         821  +
                .into_iter()
         822  +
                .map(|(k, v)| match crate::model::RangeByte::try_from(v) {
         823  +
                    Ok(v) => Ok((k, v)),
         824  +
                    Err(inner_constraint_violation) => {
         825  +
                        Err(Self::Error::Value(k, inner_constraint_violation))
         826  +
                    }
         827  +
                })
         828  +
                .collect();
         829  +
            let hm = res?;
         830  +
            Ok(Self(hm))
         831  +
        }
         832  +
    }
         833  +
}
         834  +
pub(crate) mod set_of_range_byte_unconstrained {
         835  +
         836  +
    #[derive(Debug, Clone)]
         837  +
    pub(crate) struct SetOfRangeByteUnconstrained(pub(crate) std::vec::Vec<i8>);
         838  +
         839  +
    impl From<SetOfRangeByteUnconstrained>
         840  +
        for crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>
         841  +
    {
         842  +
        fn from(value: SetOfRangeByteUnconstrained) -> Self {
         843  +
            Self::Unconstrained(value)
         844  +
        }
         845  +
    }
         846  +
    impl std::convert::TryFrom<SetOfRangeByteUnconstrained> for crate::model::SetOfRangeByte {
         847  +
        type Error = crate::model::set_of_range_byte::ConstraintViolation;
         848  +
        fn try_from(value: SetOfRangeByteUnconstrained) -> std::result::Result<Self, Self::Error> {
         849  +
            let res: ::std::result::Result<
         850  +
                ::std::vec::Vec<crate::model::RangeByte>,
         851  +
                (usize, crate::model::range_byte::ConstraintViolation),
         852  +
            > = value
         853  +
                .0
         854  +
                .into_iter()
         855  +
                .enumerate()
         856  +
                .map(|(idx, inner)| {
         857  +
                    inner
         858  +
                        .try_into()
         859  +
                        .map_err(|inner_violation| (idx, inner_violation))
         860  +
                })
         861  +
                .collect();
         862  +
            let inner =
         863  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         864  +
            Self::try_from(inner)
         865  +
        }
         866  +
    }
         867  +
}
         868  +
pub(crate) mod list_of_range_byte_unconstrained {
         869  +
         870  +
    #[derive(Debug, Clone)]
         871  +
    pub(crate) struct ListOfRangeByteUnconstrained(pub(crate) std::vec::Vec<i8>);
         872  +
         873  +
    impl From<ListOfRangeByteUnconstrained>
         874  +
        for crate::constrained::MaybeConstrained<
         875  +
            crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained,
         876  +
        >
         877  +
    {
         878  +
        fn from(value: ListOfRangeByteUnconstrained) -> Self {
         879  +
            Self::Unconstrained(value)
         880  +
        }
         881  +
    }
         882  +
    impl std::convert::TryFrom<ListOfRangeByteUnconstrained>
         883  +
        for crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained
         884  +
    {
         885  +
        type Error = crate::model::list_of_range_byte::ConstraintViolation;
         886  +
        fn try_from(value: ListOfRangeByteUnconstrained) -> std::result::Result<Self, Self::Error> {
         887  +
            let res: ::std::result::Result<
         888  +
                ::std::vec::Vec<crate::model::RangeByte>,
         889  +
                (usize, crate::model::range_byte::ConstraintViolation),
         890  +
            > = value
         891  +
                .0
         892  +
                .into_iter()
         893  +
                .enumerate()
         894  +
                .map(|(idx, inner)| {
         895  +
                    inner
         896  +
                        .try_into()
         897  +
                        .map_err(|inner_violation| (idx, inner_violation))
         898  +
                })
         899  +
                .collect();
         900  +
            let inner =
         901  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         902  +
            Ok(Self(inner))
         903  +
        }
         904  +
    }
         905  +
}
         906  +
pub(crate) mod map_of_range_long_unconstrained {
         907  +
         908  +
    #[derive(Debug, Clone)]
         909  +
    pub(crate) struct MapOfRangeLongUnconstrained(
         910  +
        pub(crate) std::collections::HashMap<::std::string::String, i64>,
         911  +
    );
         912  +
         913  +
    impl From<MapOfRangeLongUnconstrained>
         914  +
        for crate::constrained::MaybeConstrained<
         915  +
            crate::constrained::map_of_range_long_constrained::MapOfRangeLongConstrained,
         916  +
        >
         917  +
    {
         918  +
        fn from(value: MapOfRangeLongUnconstrained) -> Self {
         919  +
            Self::Unconstrained(value)
         920  +
        }
         921  +
    }
         922  +
    impl std::convert::TryFrom<MapOfRangeLongUnconstrained>
         923  +
        for crate::constrained::map_of_range_long_constrained::MapOfRangeLongConstrained
         924  +
    {
         925  +
        type Error = crate::model::map_of_range_long::ConstraintViolation;
         926  +
        fn try_from(value: MapOfRangeLongUnconstrained) -> std::result::Result<Self, Self::Error> {
         927  +
            let res: ::std::result::Result<
         928  +
                ::std::collections::HashMap<::std::string::String, crate::model::RangeLong>,
         929  +
                Self::Error,
         930  +
            > = value
         931  +
                .0
         932  +
                .into_iter()
         933  +
                .map(|(k, v)| match crate::model::RangeLong::try_from(v) {
         934  +
                    Ok(v) => Ok((k, v)),
         935  +
                    Err(inner_constraint_violation) => {
         936  +
                        Err(Self::Error::Value(k, inner_constraint_violation))
         937  +
                    }
         938  +
                })
         939  +
                .collect();
         940  +
            let hm = res?;
         941  +
            Ok(Self(hm))
         942  +
        }
         943  +
    }
         944  +
}
         945  +
pub(crate) mod set_of_range_long_unconstrained {
         946  +
         947  +
    #[derive(Debug, Clone)]
         948  +
    pub(crate) struct SetOfRangeLongUnconstrained(pub(crate) std::vec::Vec<i64>);
         949  +
         950  +
    impl From<SetOfRangeLongUnconstrained>
         951  +
        for crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>
         952  +
    {
         953  +
        fn from(value: SetOfRangeLongUnconstrained) -> Self {
         954  +
            Self::Unconstrained(value)
         955  +
        }
         956  +
    }
         957  +
    impl std::convert::TryFrom<SetOfRangeLongUnconstrained> for crate::model::SetOfRangeLong {
         958  +
        type Error = crate::model::set_of_range_long::ConstraintViolation;
         959  +
        fn try_from(value: SetOfRangeLongUnconstrained) -> std::result::Result<Self, Self::Error> {
         960  +
            let res: ::std::result::Result<
         961  +
                ::std::vec::Vec<crate::model::RangeLong>,
         962  +
                (usize, crate::model::range_long::ConstraintViolation),
         963  +
            > = value
         964  +
                .0
         965  +
                .into_iter()
         966  +
                .enumerate()
         967  +
                .map(|(idx, inner)| {
         968  +
                    inner
         969  +
                        .try_into()
         970  +
                        .map_err(|inner_violation| (idx, inner_violation))
         971  +
                })
         972  +
                .collect();
         973  +
            let inner =
         974  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
         975  +
            Self::try_from(inner)
         976  +
        }
         977  +
    }
         978  +
}
         979  +
pub(crate) mod list_of_range_long_unconstrained {
         980  +
         981  +
    #[derive(Debug, Clone)]
         982  +
    pub(crate) struct ListOfRangeLongUnconstrained(pub(crate) std::vec::Vec<i64>);
         983  +
         984  +
    impl From<ListOfRangeLongUnconstrained>
         985  +
        for crate::constrained::MaybeConstrained<
         986  +
            crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained,
         987  +
        >
         988  +
    {
         989  +
        fn from(value: ListOfRangeLongUnconstrained) -> Self {
         990  +
            Self::Unconstrained(value)
         991  +
        }
         992  +
    }
         993  +
    impl std::convert::TryFrom<ListOfRangeLongUnconstrained>
         994  +
        for crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained
         995  +
    {
         996  +
        type Error = crate::model::list_of_range_long::ConstraintViolation;
         997  +
        fn try_from(value: ListOfRangeLongUnconstrained) -> std::result::Result<Self, Self::Error> {
         998  +
            let res: ::std::result::Result<
         999  +
                ::std::vec::Vec<crate::model::RangeLong>,
        1000  +
                (usize, crate::model::range_long::ConstraintViolation),
        1001  +
            > = value
        1002  +
                .0
        1003  +
                .into_iter()
        1004  +
                .enumerate()
        1005  +
                .map(|(idx, inner)| {
        1006  +
                    inner
        1007  +
                        .try_into()
        1008  +
                        .map_err(|inner_violation| (idx, inner_violation))
        1009  +
                })
        1010  +
                .collect();
        1011  +
            let inner =
        1012  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1013  +
            Ok(Self(inner))
        1014  +
        }
        1015  +
    }
        1016  +
}
        1017  +
pub(crate) mod map_of_range_short_unconstrained {
        1018  +
        1019  +
    #[derive(Debug, Clone)]
        1020  +
    pub(crate) struct MapOfRangeShortUnconstrained(
        1021  +
        pub(crate) std::collections::HashMap<::std::string::String, i16>,
        1022  +
    );
        1023  +
        1024  +
    impl From<MapOfRangeShortUnconstrained>
        1025  +
        for crate::constrained::MaybeConstrained<
        1026  +
            crate::constrained::map_of_range_short_constrained::MapOfRangeShortConstrained,
        1027  +
        >
        1028  +
    {
        1029  +
        fn from(value: MapOfRangeShortUnconstrained) -> Self {
        1030  +
            Self::Unconstrained(value)
        1031  +
        }
        1032  +
    }
        1033  +
    impl std::convert::TryFrom<MapOfRangeShortUnconstrained>
        1034  +
        for crate::constrained::map_of_range_short_constrained::MapOfRangeShortConstrained
        1035  +
    {
        1036  +
        type Error = crate::model::map_of_range_short::ConstraintViolation;
        1037  +
        fn try_from(value: MapOfRangeShortUnconstrained) -> std::result::Result<Self, Self::Error> {
        1038  +
            let res: ::std::result::Result<
        1039  +
                ::std::collections::HashMap<::std::string::String, crate::model::RangeShort>,
        1040  +
                Self::Error,
        1041  +
            > = value
        1042  +
                .0
        1043  +
                .into_iter()
        1044  +
                .map(|(k, v)| match crate::model::RangeShort::try_from(v) {
        1045  +
                    Ok(v) => Ok((k, v)),
        1046  +
                    Err(inner_constraint_violation) => {
        1047  +
                        Err(Self::Error::Value(k, inner_constraint_violation))
        1048  +
                    }
        1049  +
                })
        1050  +
                .collect();
        1051  +
            let hm = res?;
        1052  +
            Ok(Self(hm))
        1053  +
        }
        1054  +
    }
        1055  +
}
        1056  +
pub(crate) mod set_of_range_short_unconstrained {
        1057  +
        1058  +
    #[derive(Debug, Clone)]
        1059  +
    pub(crate) struct SetOfRangeShortUnconstrained(pub(crate) std::vec::Vec<i16>);
        1060  +
        1061  +
    impl From<SetOfRangeShortUnconstrained>
        1062  +
        for crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>
        1063  +
    {
        1064  +
        fn from(value: SetOfRangeShortUnconstrained) -> Self {
        1065  +
            Self::Unconstrained(value)
        1066  +
        }
        1067  +
    }
        1068  +
    impl std::convert::TryFrom<SetOfRangeShortUnconstrained> for crate::model::SetOfRangeShort {
        1069  +
        type Error = crate::model::set_of_range_short::ConstraintViolation;
        1070  +
        fn try_from(value: SetOfRangeShortUnconstrained) -> std::result::Result<Self, Self::Error> {
        1071  +
            let res: ::std::result::Result<
        1072  +
                ::std::vec::Vec<crate::model::RangeShort>,
        1073  +
                (usize, crate::model::range_short::ConstraintViolation),
        1074  +
            > = value
        1075  +
                .0
        1076  +
                .into_iter()
        1077  +
                .enumerate()
        1078  +
                .map(|(idx, inner)| {
        1079  +
                    inner
        1080  +
                        .try_into()
        1081  +
                        .map_err(|inner_violation| (idx, inner_violation))
        1082  +
                })
        1083  +
                .collect();
        1084  +
            let inner =
        1085  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1086  +
            Self::try_from(inner)
        1087  +
        }
        1088  +
    }
        1089  +
}
        1090  +
pub(crate) mod list_of_range_short_unconstrained {
        1091  +
        1092  +
    #[derive(Debug, Clone)]
        1093  +
    pub(crate) struct ListOfRangeShortUnconstrained(pub(crate) std::vec::Vec<i16>);
        1094  +
        1095  +
    impl From<ListOfRangeShortUnconstrained>
        1096  +
        for crate::constrained::MaybeConstrained<
        1097  +
            crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained,
        1098  +
        >
        1099  +
    {
        1100  +
        fn from(value: ListOfRangeShortUnconstrained) -> Self {
        1101  +
            Self::Unconstrained(value)
        1102  +
        }
        1103  +
    }
        1104  +
    impl std::convert::TryFrom<ListOfRangeShortUnconstrained>
        1105  +
        for crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained
        1106  +
    {
        1107  +
        type Error = crate::model::list_of_range_short::ConstraintViolation;
        1108  +
        fn try_from(
        1109  +
            value: ListOfRangeShortUnconstrained,
        1110  +
        ) -> std::result::Result<Self, Self::Error> {
        1111  +
            let res: ::std::result::Result<
        1112  +
                ::std::vec::Vec<crate::model::RangeShort>,
        1113  +
                (usize, crate::model::range_short::ConstraintViolation),
        1114  +
            > = value
        1115  +
                .0
        1116  +
                .into_iter()
        1117  +
                .enumerate()
        1118  +
                .map(|(idx, inner)| {
        1119  +
                    inner
        1120  +
                        .try_into()
        1121  +
                        .map_err(|inner_violation| (idx, inner_violation))
        1122  +
                })
        1123  +
                .collect();
        1124  +
            let inner =
        1125  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1126  +
            Ok(Self(inner))
        1127  +
        }
        1128  +
    }
        1129  +
}
        1130  +
pub(crate) mod map_of_range_integer_unconstrained {
        1131  +
        1132  +
    #[derive(Debug, Clone)]
        1133  +
    pub(crate) struct MapOfRangeIntegerUnconstrained(
        1134  +
        pub(crate) std::collections::HashMap<::std::string::String, i32>,
        1135  +
    );
        1136  +
        1137  +
    impl From<MapOfRangeIntegerUnconstrained>
        1138  +
        for crate::constrained::MaybeConstrained<
        1139  +
            crate::constrained::map_of_range_integer_constrained::MapOfRangeIntegerConstrained,
        1140  +
        >
        1141  +
    {
        1142  +
        fn from(value: MapOfRangeIntegerUnconstrained) -> Self {
        1143  +
            Self::Unconstrained(value)
        1144  +
        }
        1145  +
    }
        1146  +
    impl std::convert::TryFrom<MapOfRangeIntegerUnconstrained>
        1147  +
        for crate::constrained::map_of_range_integer_constrained::MapOfRangeIntegerConstrained
        1148  +
    {
        1149  +
        type Error = crate::model::map_of_range_integer::ConstraintViolation;
        1150  +
        fn try_from(
        1151  +
            value: MapOfRangeIntegerUnconstrained,
        1152  +
        ) -> std::result::Result<Self, Self::Error> {
        1153  +
            let res: ::std::result::Result<
        1154  +
                ::std::collections::HashMap<::std::string::String, crate::model::RangeInteger>,
        1155  +
                Self::Error,
        1156  +
            > = value
        1157  +
                .0
        1158  +
                .into_iter()
        1159  +
                .map(|(k, v)| match crate::model::RangeInteger::try_from(v) {
        1160  +
                    Ok(v) => Ok((k, v)),
        1161  +
                    Err(inner_constraint_violation) => {
        1162  +
                        Err(Self::Error::Value(k, inner_constraint_violation))
        1163  +
                    }
        1164  +
                })
        1165  +
                .collect();
        1166  +
            let hm = res?;
        1167  +
            Ok(Self(hm))
        1168  +
        }
        1169  +
    }
        1170  +
}
        1171  +
pub(crate) mod set_of_range_integer_unconstrained {
        1172  +
        1173  +
    #[derive(Debug, Clone)]
        1174  +
    pub(crate) struct SetOfRangeIntegerUnconstrained(pub(crate) std::vec::Vec<i32>);
        1175  +
        1176  +
    impl From<SetOfRangeIntegerUnconstrained>
        1177  +
        for crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>
        1178  +
    {
        1179  +
        fn from(value: SetOfRangeIntegerUnconstrained) -> Self {
        1180  +
            Self::Unconstrained(value)
        1181  +
        }
        1182  +
    }
        1183  +
    impl std::convert::TryFrom<SetOfRangeIntegerUnconstrained> for crate::model::SetOfRangeInteger {
        1184  +
        type Error = crate::model::set_of_range_integer::ConstraintViolation;
        1185  +
        fn try_from(
        1186  +
            value: SetOfRangeIntegerUnconstrained,
        1187  +
        ) -> std::result::Result<Self, Self::Error> {
        1188  +
            let res: ::std::result::Result<
        1189  +
                ::std::vec::Vec<crate::model::RangeInteger>,
        1190  +
                (usize, crate::model::range_integer::ConstraintViolation),
        1191  +
            > = value
        1192  +
                .0
        1193  +
                .into_iter()
        1194  +
                .enumerate()
        1195  +
                .map(|(idx, inner)| {
        1196  +
                    inner
        1197  +
                        .try_into()
        1198  +
                        .map_err(|inner_violation| (idx, inner_violation))
        1199  +
                })
        1200  +
                .collect();
        1201  +
            let inner =
        1202  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1203  +
            Self::try_from(inner)
        1204  +
        }
        1205  +
    }
        1206  +
}
        1207  +
pub(crate) mod list_of_range_integer_unconstrained {
        1208  +
        1209  +
    #[derive(Debug, Clone)]
        1210  +
    pub(crate) struct ListOfRangeIntegerUnconstrained(pub(crate) std::vec::Vec<i32>);
        1211  +
        1212  +
    impl From<ListOfRangeIntegerUnconstrained>
        1213  +
        for crate::constrained::MaybeConstrained<
        1214  +
            crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained,
        1215  +
        >
        1216  +
    {
        1217  +
        fn from(value: ListOfRangeIntegerUnconstrained) -> Self {
        1218  +
            Self::Unconstrained(value)
        1219  +
        }
        1220  +
    }
        1221  +
    impl std::convert::TryFrom<ListOfRangeIntegerUnconstrained>
        1222  +
        for crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained
        1223  +
    {
        1224  +
        type Error = crate::model::list_of_range_integer::ConstraintViolation;
        1225  +
        fn try_from(
        1226  +
            value: ListOfRangeIntegerUnconstrained,
        1227  +
        ) -> std::result::Result<Self, Self::Error> {
        1228  +
            let res: ::std::result::Result<
        1229  +
                ::std::vec::Vec<crate::model::RangeInteger>,
        1230  +
                (usize, crate::model::range_integer::ConstraintViolation),
        1231  +
            > = value
        1232  +
                .0
        1233  +
                .into_iter()
        1234  +
                .enumerate()
        1235  +
                .map(|(idx, inner)| {
        1236  +
                    inner
        1237  +
                        .try_into()
        1238  +
                        .map_err(|inner_violation| (idx, inner_violation))
        1239  +
                })
        1240  +
                .collect();
        1241  +
            let inner =
        1242  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1243  +
            Ok(Self(inner))
        1244  +
        }
        1245  +
    }
        1246  +
}
        1247  +
pub(crate) mod map_of_length_blob_unconstrained {
        1248  +
        1249  +
    #[derive(Debug, Clone)]
        1250  +
    pub(crate) struct MapOfLengthBlobUnconstrained(
        1251  +
        pub(crate) std::collections::HashMap<::std::string::String, ::aws_smithy_types::Blob>,
        1252  +
    );
        1253  +
        1254  +
    impl From<MapOfLengthBlobUnconstrained>
        1255  +
        for crate::constrained::MaybeConstrained<
        1256  +
            crate::constrained::map_of_length_blob_constrained::MapOfLengthBlobConstrained,
        1257  +
        >
        1258  +
    {
        1259  +
        fn from(value: MapOfLengthBlobUnconstrained) -> Self {
        1260  +
            Self::Unconstrained(value)
        1261  +
        }
        1262  +
    }
        1263  +
    impl std::convert::TryFrom<MapOfLengthBlobUnconstrained>
        1264  +
        for crate::constrained::map_of_length_blob_constrained::MapOfLengthBlobConstrained
        1265  +
    {
        1266  +
        type Error = crate::model::map_of_length_blob::ConstraintViolation;
        1267  +
        fn try_from(value: MapOfLengthBlobUnconstrained) -> std::result::Result<Self, Self::Error> {
        1268  +
            let res: ::std::result::Result<
        1269  +
                ::std::collections::HashMap<::std::string::String, crate::model::LengthBlob>,
        1270  +
                Self::Error,
        1271  +
            > = value
        1272  +
                .0
        1273  +
                .into_iter()
        1274  +
                .map(|(k, v)| match crate::model::LengthBlob::try_from(v) {
        1275  +
                    Ok(v) => Ok((k, v)),
        1276  +
                    Err(inner_constraint_violation) => {
        1277  +
                        Err(Self::Error::Value(k, inner_constraint_violation))
        1278  +
                    }
        1279  +
                })
        1280  +
                .collect();
        1281  +
            let hm = res?;
        1282  +
            Ok(Self(hm))
        1283  +
        }
        1284  +
    }
        1285  +
}
        1286  +
pub(crate) mod list_of_length_blob_unconstrained {
        1287  +
        1288  +
    #[derive(Debug, Clone)]
        1289  +
    pub(crate) struct ListOfLengthBlobUnconstrained(
        1290  +
        pub(crate) std::vec::Vec<::aws_smithy_types::Blob>,
        1291  +
    );
        1292  +
        1293  +
    impl From<ListOfLengthBlobUnconstrained>
        1294  +
        for crate::constrained::MaybeConstrained<
        1295  +
            crate::constrained::list_of_length_blob_constrained::ListOfLengthBlobConstrained,
        1296  +
        >
        1297  +
    {
        1298  +
        fn from(value: ListOfLengthBlobUnconstrained) -> Self {
        1299  +
            Self::Unconstrained(value)
        1300  +
        }
        1301  +
    }
        1302  +
    impl std::convert::TryFrom<ListOfLengthBlobUnconstrained>
        1303  +
        for crate::constrained::list_of_length_blob_constrained::ListOfLengthBlobConstrained
        1304  +
    {
        1305  +
        type Error = crate::model::list_of_length_blob::ConstraintViolation;
        1306  +
        fn try_from(
        1307  +
            value: ListOfLengthBlobUnconstrained,
        1308  +
        ) -> std::result::Result<Self, Self::Error> {
        1309  +
            let res: ::std::result::Result<
        1310  +
                ::std::vec::Vec<crate::model::LengthBlob>,
        1311  +
                (usize, crate::model::length_blob::ConstraintViolation),
        1312  +
            > = value
        1313  +
                .0
        1314  +
                .into_iter()
        1315  +
                .enumerate()
        1316  +
                .map(|(idx, inner)| {
        1317  +
                    inner
        1318  +
                        .try_into()
        1319  +
                        .map_err(|inner_violation| (idx, inner_violation))
        1320  +
                })
        1321  +
                .collect();
        1322  +
            let inner =
        1323  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1324  +
            Ok(Self(inner))
        1325  +
        }
        1326  +
    }
        1327  +
}
        1328  +
pub(crate) mod constrained_union_unconstrained {
        1329  +
        1330  +
    #[allow(clippy::enum_variant_names)]
        1331  +
    #[derive(Debug, Clone)]
        1332  +
    pub(crate) enum ConstrainedUnionUnconstrained {
        1333  +
        ConBList(crate::unconstrained::con_b_list_unconstrained::ConBListUnconstrained),
        1334  +
        ConBMap(crate::unconstrained::con_b_map_unconstrained::ConBMapUnconstrained),
        1335  +
        ConBSet(crate::unconstrained::con_b_set_unconstrained::ConBSetUnconstrained),
        1336  +
        ConstrainedStructure(crate::model::con_b::Builder),
        1337  +
        EnumString(::std::string::String),
        1338  +
        LengthString(::std::string::String),
        1339  +
    }
        1340  +
    impl ::std::convert::TryFrom<ConstrainedUnionUnconstrained> for crate::model::ConstrainedUnion {
        1341  +
        type Error = crate::model::constrained_union::ConstraintViolation;
        1342  +
        1343  +
        fn try_from(
        1344  +
            value: ConstrainedUnionUnconstrained,
        1345  +
        ) -> ::std::result::Result<Self, Self::Error> {
        1346  +
            Ok(
        1347  +
        match value {
        1348  +
            crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::ConBList(unconstrained) => Self::ConBList(
        1349  +
                {
        1350  +
                                        let constrained: crate::constrained::con_b_list_constrained::ConBListConstrained = unconstrained
        1351  +
                                            .try_into()
        1352  +
                                            .map_err(Self::Error::ConBList)?;
        1353  +
                                        constrained.into()
        1354  +
                                    }
        1355  +
            ),
        1356  +
            crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::ConBMap(unconstrained) => Self::ConBMap(
        1357  +
                unconstrained
        1358  +
                                        .try_into()
        1359  +
                                        
        1360  +
                                        
        1361  +
                                        .map_err(Self::Error::ConBMap)?
        1362  +
            ),
        1363  +
            crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::ConBSet(unconstrained) => Self::ConBSet(
        1364  +
                unconstrained
        1365  +
                                        .try_into()
        1366  +
                                        
        1367  +
                                        
        1368  +
                                        .map_err(Self::Error::ConBSet)?
        1369  +
            ),
        1370  +
            crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::ConstrainedStructure(unconstrained) => Self::ConstrainedStructure(
        1371  +
                unconstrained
        1372  +
                                        .try_into()
        1373  +
                                        
        1374  +
                                        
        1375  +
                                        .map_err(Self::Error::ConstrainedStructure)?
        1376  +
            ),
        1377  +
            crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::EnumString(unconstrained) => Self::EnumString(
        1378  +
                unconstrained
        1379  +
                                        .try_into()
        1380  +
                                        
        1381  +
                                        
        1382  +
                                        .map_err(Self::Error::EnumString)?
        1383  +
            ),
        1384  +
            crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::LengthString(unconstrained) => Self::LengthString(
        1385  +
                unconstrained
        1386  +
                                        .try_into()
        1387  +
                                        
        1388  +
                                        
        1389  +
                                        .map_err(Self::Error::LengthString)?
        1390  +
            ),
        1391  +
        }
        1392  +
    )
        1393  +
        }
        1394  +
    }
        1395  +
}
        1396  +
pub(crate) mod con_b_set_unconstrained {
        1397  +
        1398  +
    #[derive(Debug, Clone)]
        1399  +
    pub(crate) struct ConBSetUnconstrained(
        1400  +
        pub(crate)  std::vec::Vec<
        1401  +
            crate::unconstrained::con_b_set_inner_unconstrained::ConBSetInnerUnconstrained,
        1402  +
        >,
        1403  +
    );
        1404  +
        1405  +
    impl From<ConBSetUnconstrained> for crate::constrained::MaybeConstrained<crate::model::ConBSet> {
        1406  +
        fn from(value: ConBSetUnconstrained) -> Self {
        1407  +
            Self::Unconstrained(value)
        1408  +
        }
        1409  +
    }
        1410  +
    impl std::convert::TryFrom<ConBSetUnconstrained> for crate::model::ConBSet {
        1411  +
        type Error = crate::model::con_b_set::ConstraintViolation;
        1412  +
        fn try_from(value: ConBSetUnconstrained) -> std::result::Result<Self, Self::Error> {
        1413  +
            let res: ::std::result::Result<
        1414  +
                ::std::vec::Vec<crate::model::ConBSetInner>,
        1415  +
                (usize, crate::model::con_b_set_inner::ConstraintViolation),
        1416  +
            > = value
        1417  +
                .0
        1418  +
                .into_iter()
        1419  +
                .enumerate()
        1420  +
                .map(|(idx, inner)| {
        1421  +
                    inner
        1422  +
                        .try_into()
        1423  +
                        .map_err(|inner_violation| (idx, inner_violation))
        1424  +
                })
        1425  +
                .collect();
        1426  +
            let inner =
        1427  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1428  +
            Self::try_from(inner)
        1429  +
        }
        1430  +
    }
        1431  +
}
        1432  +
pub(crate) mod con_b_set_inner_unconstrained {
        1433  +
        1434  +
    #[derive(Debug, Clone)]
        1435  +
    pub(crate) struct ConBSetInnerUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
        1436  +
        1437  +
    impl From<ConBSetInnerUnconstrained>
        1438  +
        for crate::constrained::MaybeConstrained<crate::model::ConBSetInner>
        1439  +
    {
        1440  +
        fn from(value: ConBSetInnerUnconstrained) -> Self {
        1441  +
            Self::Unconstrained(value)
        1442  +
        }
        1443  +
    }
        1444  +
    impl std::convert::TryFrom<ConBSetInnerUnconstrained> for crate::model::ConBSetInner {
        1445  +
        type Error = crate::model::con_b_set_inner::ConstraintViolation;
        1446  +
        fn try_from(value: ConBSetInnerUnconstrained) -> std::result::Result<Self, Self::Error> {
        1447  +
            let inner = value.0;
        1448  +
            Self::try_from(inner)
        1449  +
        }
        1450  +
    }
        1451  +
}
        1452  +
pub(crate) mod con_b_list_unconstrained {
        1453  +
        1454  +
    #[derive(Debug, Clone)]
        1455  +
    pub(crate) struct ConBListUnconstrained(
        1456  +
        pub(crate)  std::vec::Vec<
        1457  +
            crate::unconstrained::con_b_list_inner_unconstrained::ConBListInnerUnconstrained,
        1458  +
        >,
        1459  +
    );
        1460  +
        1461  +
    impl From<ConBListUnconstrained>
        1462  +
        for crate::constrained::MaybeConstrained<
        1463  +
            crate::constrained::con_b_list_constrained::ConBListConstrained,
        1464  +
        >
        1465  +
    {
        1466  +
        fn from(value: ConBListUnconstrained) -> Self {
        1467  +
            Self::Unconstrained(value)
        1468  +
        }
        1469  +
    }
        1470  +
    impl std::convert::TryFrom<ConBListUnconstrained>
        1471  +
        for crate::constrained::con_b_list_constrained::ConBListConstrained
        1472  +
    {
        1473  +
        type Error = crate::model::con_b_list::ConstraintViolation;
        1474  +
        fn try_from(value: ConBListUnconstrained) -> std::result::Result<Self, Self::Error> {
        1475  +
            let res: ::std::result::Result<
        1476  +
                ::std::vec::Vec<
        1477  +
                    crate::constrained::con_b_list_inner_constrained::ConBListInnerConstrained,
        1478  +
                >,
        1479  +
                (usize, crate::model::con_b_list_inner::ConstraintViolation),
        1480  +
            > = value
        1481  +
                .0
        1482  +
                .into_iter()
        1483  +
                .enumerate()
        1484  +
                .map(|(idx, inner)| {
        1485  +
                    inner
        1486  +
                        .try_into()
        1487  +
                        .map_err(|inner_violation| (idx, inner_violation))
        1488  +
                })
        1489  +
                .collect();
        1490  +
            let inner =
        1491  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1492  +
            Ok(Self(inner))
        1493  +
        }
        1494  +
    }
        1495  +
}
        1496  +
pub(crate) mod con_b_list_inner_unconstrained {
        1497  +
        1498  +
    #[derive(Debug, Clone)]
        1499  +
    pub(crate) struct ConBListInnerUnconstrained(
        1500  +
        pub(crate) std::vec::Vec<crate::model::con_b::Builder>,
        1501  +
    );
        1502  +
        1503  +
    impl From<ConBListInnerUnconstrained>
        1504  +
        for crate::constrained::MaybeConstrained<
        1505  +
            crate::constrained::con_b_list_inner_constrained::ConBListInnerConstrained,
        1506  +
        >
        1507  +
    {
        1508  +
        fn from(value: ConBListInnerUnconstrained) -> Self {
        1509  +
            Self::Unconstrained(value)
        1510  +
        }
        1511  +
    }
        1512  +
    impl std::convert::TryFrom<ConBListInnerUnconstrained>
        1513  +
        for crate::constrained::con_b_list_inner_constrained::ConBListInnerConstrained
        1514  +
    {
        1515  +
        type Error = crate::model::con_b_list_inner::ConstraintViolation;
        1516  +
        fn try_from(value: ConBListInnerUnconstrained) -> std::result::Result<Self, Self::Error> {
        1517  +
            let res: ::std::result::Result<
        1518  +
                ::std::vec::Vec<crate::model::ConB>,
        1519  +
                (usize, crate::model::con_b::ConstraintViolation),
        1520  +
            > = value
        1521  +
                .0
        1522  +
                .into_iter()
        1523  +
                .enumerate()
        1524  +
                .map(|(idx, inner)| {
        1525  +
                    inner
        1526  +
                        .try_into()
        1527  +
                        .map_err(|inner_violation| (idx, inner_violation))
        1528  +
                })
        1529  +
                .collect();
        1530  +
            let inner =
        1531  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1532  +
            Ok(Self(inner))
        1533  +
        }
        1534  +
    }
        1535  +
}
        1536  +
pub(crate) mod sparse_length_list_unconstrained {
        1537  +
        1538  +
    #[derive(Debug, Clone)]
        1539  +
    pub(crate) struct SparseLengthListUnconstrained(
        1540  +
        pub(crate) std::vec::Vec<::std::option::Option<::std::string::String>>,
        1541  +
    );
        1542  +
        1543  +
    impl From<SparseLengthListUnconstrained>
        1544  +
        for crate::constrained::MaybeConstrained<crate::model::SparseLengthList>
        1545  +
    {
        1546  +
        fn from(value: SparseLengthListUnconstrained) -> Self {
        1547  +
            Self::Unconstrained(value)
        1548  +
        }
        1549  +
    }
        1550  +
    impl std::convert::TryFrom<SparseLengthListUnconstrained> for crate::model::SparseLengthList {
        1551  +
        type Error = crate::model::sparse_length_list::ConstraintViolation;
        1552  +
        fn try_from(
        1553  +
            value: SparseLengthListUnconstrained,
        1554  +
        ) -> std::result::Result<Self, Self::Error> {
        1555  +
            let inner = value.0;
        1556  +
            Self::try_from(inner)
        1557  +
        }
        1558  +
    }
        1559  +
}
        1560  +
pub(crate) mod sparse_length_map_unconstrained {
        1561  +
        1562  +
    #[derive(Debug, Clone)]
        1563  +
    pub(crate) struct SparseLengthMapUnconstrained(
        1564  +
        pub(crate)  std::collections::HashMap<
        1565  +
            ::std::string::String,
        1566  +
            ::std::option::Option<::std::string::String>,
        1567  +
        >,
        1568  +
    );
        1569  +
        1570  +
    impl From<SparseLengthMapUnconstrained>
        1571  +
        for crate::constrained::MaybeConstrained<crate::model::SparseLengthMap>
        1572  +
    {
        1573  +
        fn from(value: SparseLengthMapUnconstrained) -> Self {
        1574  +
            Self::Unconstrained(value)
        1575  +
        }
        1576  +
    }
        1577  +
    impl std::convert::TryFrom<SparseLengthMapUnconstrained> for crate::model::SparseLengthMap {
        1578  +
        type Error = crate::model::sparse_length_map::ConstraintViolation;
        1579  +
        fn try_from(value: SparseLengthMapUnconstrained) -> std::result::Result<Self, Self::Error> {
        1580  +
            let hm = value.0;
        1581  +
            Self::try_from(hm)
        1582  +
        }
        1583  +
    }
        1584  +
}
        1585  +
pub(crate) mod sparse_list_unconstrained {
        1586  +
        1587  +
    #[derive(Debug, Clone)]
        1588  +
    pub(crate) struct SparseListUnconstrained(
        1589  +
        pub(crate) std::vec::Vec<::std::option::Option<::std::string::String>>,
        1590  +
    );
        1591  +
        1592  +
    impl From<SparseListUnconstrained>
        1593  +
        for crate::constrained::MaybeConstrained<
        1594  +
            crate::constrained::sparse_list_constrained::SparseListConstrained,
        1595  +
        >
        1596  +
    {
        1597  +
        fn from(value: SparseListUnconstrained) -> Self {
        1598  +
            Self::Unconstrained(value)
        1599  +
        }
        1600  +
    }
        1601  +
    impl std::convert::TryFrom<SparseListUnconstrained>
        1602  +
        for crate::constrained::sparse_list_constrained::SparseListConstrained
        1603  +
    {
        1604  +
        type Error = crate::model::sparse_list::ConstraintViolation;
        1605  +
        fn try_from(value: SparseListUnconstrained) -> std::result::Result<Self, Self::Error> {
        1606  +
            let res: ::std::result::Result<
        1607  +
                ::std::vec::Vec<::std::option::Option<crate::model::LengthString>>,
        1608  +
                (usize, crate::model::length_string::ConstraintViolation),
        1609  +
            > = value
        1610  +
                .0
        1611  +
                .into_iter()
        1612  +
                .enumerate()
        1613  +
                .map(|(idx, inner)| {
        1614  +
                    inner
        1615  +
                        .map(|inner| {
        1616  +
                            inner
        1617  +
                                .try_into()
        1618  +
                                .map_err(|inner_violation| (idx, inner_violation))
        1619  +
                        })
        1620  +
                        .transpose()
        1621  +
                })
        1622  +
                .collect();
        1623  +
            let inner =
        1624  +
                res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
        1625  +
            Ok(Self(inner))
        1626  +
        }
        1627  +
    }
        1628  +
}
        1629  +
pub(crate) mod sparse_map_unconstrained {
        1630  +
        1631  +
    #[derive(Debug, Clone)]
        1632  +
    pub(crate) struct SparseMapUnconstrained(
        1633  +
        pub(crate)  std::collections::HashMap<
        1634  +
            ::std::string::String,
        1635  +
            ::std::option::Option<
        1636  +
                crate::unconstrained::unique_items_list_unconstrained::UniqueItemsListUnconstrained,
        1637  +
            >,
        1638  +
        >,
        1639  +
    );
        1640  +
        1641  +
    impl From<SparseMapUnconstrained>
        1642  +
        for crate::constrained::MaybeConstrained<
        1643  +
            crate::constrained::sparse_map_constrained::SparseMapConstrained,
        1644  +
        >
        1645  +
    {
        1646  +
        fn from(value: SparseMapUnconstrained) -> Self {
        1647  +
            Self::Unconstrained(value)
        1648  +
        }
        1649  +
    }
        1650  +
    impl std::convert::TryFrom<SparseMapUnconstrained>
        1651  +
        for crate::constrained::sparse_map_constrained::SparseMapConstrained
        1652  +
    {
        1653  +
        type Error = crate::model::sparse_map::ConstraintViolation;
        1654  +
        fn try_from(value: SparseMapUnconstrained) -> std::result::Result<Self, Self::Error> {
        1655  +
            let res: ::std::result::Result<
        1656  +
                ::std::collections::HashMap<
        1657  +
                    ::std::string::String,
        1658  +
                    ::std::option::Option<crate::model::UniqueItemsList>,
        1659  +
                >,
        1660  +
                Self::Error,
        1661  +
            > = value
        1662  +
                .0
        1663  +
                .into_iter()
        1664  +
                .map(|(k, v)| match v {
        1665  +
                    None => Ok((k, None)),
        1666  +
                    Some(v) => match crate::model::UniqueItemsList::try_from(v) {
        1667  +
                        Ok(v) => Ok((k, Some(v))),
        1668  +
                        Err(inner_constraint_violation) => {
        1669  +
                            Err(Self::Error::Value(k, inner_constraint_violation))
        1670  +
                        }
        1671  +
                    },
        1672  +
                })
        1673  +
                .collect();
        1674  +
            let hm = res?;
        1675  +
            Ok(Self(hm))
        1676  +
        }
        1677  +
    }
        1678  +
}
        1679  +
pub(crate) mod unique_items_list_unconstrained {
        1680  +
        1681  +
    #[derive(Debug, Clone)]
        1682  +
    pub(crate) struct UniqueItemsListUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
        1683  +
        1684  +
    impl From<UniqueItemsListUnconstrained>
        1685  +
        for crate::constrained::MaybeConstrained<crate::model::UniqueItemsList>
        1686  +
    {
        1687  +
        fn from(value: UniqueItemsListUnconstrained) -> Self {
        1688  +
            Self::Unconstrained(value)
        1689  +
        }
        1690  +
    }
        1691  +
    impl std::convert::TryFrom<UniqueItemsListUnconstrained> for crate::model::UniqueItemsList {
        1692  +
        type Error = crate::model::unique_items_list::ConstraintViolation;
        1693  +
        fn try_from(value: UniqueItemsListUnconstrained) -> std::result::Result<Self, Self::Error> {
        1694  +
            let inner = value.0;
        1695  +
            Self::try_from(inner)
        1696  +
        }
        1697  +
    }
        1698  +
}
        1699  +
pub(crate) mod map_of_map_of_list_of_list_of_con_b_unconstrained {
        1700  +
        1701  +
    #[derive(Debug, Clone)]
        1702  +
    pub(crate) struct MapOfMapOfListOfListOfConBUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::map_of_list_of_list_of_con_b_unconstrained::MapOfListOfListOfConBUnconstrained>);
        1703  +
        1704  +
    impl From<MapOfMapOfListOfListOfConBUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_map_of_list_of_list_of_con_b_constrained::MapOfMapOfListOfListOfConBConstrained> {
        1705  +
                        fn from(value: MapOfMapOfListOfListOfConBUnconstrained) -> Self {
        1706  +
                            Self::Unconstrained(value)
        1707  +
                        }
        1708  +
                    }
        1709  +
    impl std::convert::TryFrom<MapOfMapOfListOfListOfConBUnconstrained> for crate::constrained::map_of_map_of_list_of_list_of_con_b_constrained::MapOfMapOfListOfListOfConBConstrained {
        1710  +
        type Error = crate::model::map_of_map_of_list_of_list_of_con_b::ConstraintViolation;
        1711  +
        fn try_from(value: MapOfMapOfListOfListOfConBUnconstrained) -> std::result::Result<Self, Self::Error> {
        1712  +
            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
        1713  +
                                        .into_iter()
        1714  +
                                        .map(|(k, v)| {
        1715  +
                                            match crate::constrained::map_of_list_of_list_of_con_b_constrained::MapOfListOfListOfConBConstrained::try_from(v) {
        1716  +
                                                    Ok(v) => Ok((k, v)),
        1717  +
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
        1718  +
                                                }
        1719  +
                                        })
        1720  +
                                        .collect();
        1721  +
                                    let hm = res?;
        1722  +
            Ok(Self(hm))
        1723  +
        }
        1724  +
    }
        1725  +
}
        1726  +
pub(crate) mod map_of_list_of_list_of_con_b_unconstrained {
        1727  +
        1728  +
    #[derive(Debug, Clone)]
        1729  +
    pub(crate) struct MapOfListOfListOfConBUnconstrained(
        1730  +
        pub(crate)  std::collections::HashMap<
        1731  +
            ::std::string::String,
        1732  +
            crate::unconstrained::con_b_list_unconstrained::ConBListUnconstrained,
        1733  +
        >,
        1734  +
    );
        1735  +
        1736  +
    impl From<MapOfListOfListOfConBUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_list_of_con_b_constrained::MapOfListOfListOfConBConstrained> {
        1737  +
                        fn from(value: MapOfListOfListOfConBUnconstrained) -> Self {
        1738  +
                            Self::Unconstrained(value)
        1739  +
                        }
        1740  +
                    }
        1741  +
    impl std::convert::TryFrom<MapOfListOfListOfConBUnconstrained> for crate::constrained::map_of_list_of_list_of_con_b_constrained::MapOfListOfListOfConBConstrained {
        1742  +
        type Error = crate::model::map_of_list_of_list_of_con_b::ConstraintViolation;
        1743  +
        fn try_from(value: MapOfListOfListOfConBUnconstrained) -> std::result::Result<Self, Self::Error> {
        1744  +
            let res: ::std::result::Result<::std::collections::HashMap<::std::string::String, crate::constrained::con_b_list_constrained::ConBListConstrained>, Self::Error> = value.0
        1745  +
                                        .into_iter()
        1746  +
                                        .map(|(k, v)| {
        1747  +
                                            match crate::constrained::con_b_list_constrained::ConBListConstrained::try_from(v) {
        1748  +
                                                    Ok(v) => Ok((k, v)),
        1749  +
                                                    Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
        1750  +
                                                }
        1751  +
                                        })
        1752  +
                                        .collect();
        1753  +
                                    let hm = res?;
        1754  +
            Ok(Self(hm))
        1755  +
        }
        1756  +
    }
        1757  +
}
        1758  +
pub(crate) mod length_map_unconstrained {
        1759  +
        1760  +
    #[derive(Debug, Clone)]
        1761  +
    pub(crate) struct LengthMapUnconstrained(
        1762  +
        pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
        1763  +
    );
        1764  +
        1765  +
    impl From<LengthMapUnconstrained>
        1766  +
        for crate::constrained::MaybeConstrained<crate::model::LengthMap>
        1767  +
    {
        1768  +
        fn from(value: LengthMapUnconstrained) -> Self {
        1769  +
            Self::Unconstrained(value)
        1770  +
        }
        1771  +
    }
        1772  +
    impl std::convert::TryFrom<LengthMapUnconstrained> for crate::model::LengthMap {
        1773  +
        type Error = crate::model::length_map::ConstraintViolation;
        1774  +
        fn try_from(value: LengthMapUnconstrained) -> std::result::Result<Self, Self::Error> {
        1775  +
            let hm = value.0;
        1776  +
            Self::try_from(hm)
        1777  +
        }
        1778  +
    }
        1779  +
}
        1780  +
pub(crate) mod sensitive_length_list_unconstrained {
        1781  +
        1782  +
    #[derive(Debug, Clone)]
        1783  +
    pub(crate) struct SensitiveLengthListUnconstrained(
        1784  +
        pub(crate) std::vec::Vec<crate::model::SensitiveStructure>,
        1785  +
    );
        1786  +
        1787  +
    impl From<SensitiveLengthListUnconstrained>
        1788  +
        for crate::constrained::MaybeConstrained<crate::model::SensitiveLengthList>
        1789  +
    {
        1790  +
        fn from(value: SensitiveLengthListUnconstrained) -> Self {
        1791  +
            Self::Unconstrained(value)
        1792  +
        }
        1793  +
    }
        1794  +
    impl std::convert::TryFrom<SensitiveLengthListUnconstrained> for crate::model::SensitiveLengthList {
        1795  +
        type Error = crate::model::sensitive_length_list::ConstraintViolation;
        1796  +
        fn try_from(
        1797  +
            value: SensitiveLengthListUnconstrained,
        1798  +
        ) -> std::result::Result<Self, Self::Error> {
        1799  +
            let inner = value.0;
        1800  +
            Self::try_from(inner)
        1801  +
        }
        1802  +
    }
        1803  +
}
        1804  +
pub(crate) mod length_list_unconstrained {
        1805  +
        1806  +
    #[derive(Debug, Clone)]
        1807  +
    pub(crate) struct LengthListUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
        1808  +
        1809  +
    impl From<LengthListUnconstrained>
        1810  +
        for crate::constrained::MaybeConstrained<crate::model::LengthList>
        1811  +
    {
        1812  +
        fn from(value: LengthListUnconstrained) -> Self {
        1813  +
            Self::Unconstrained(value)
        1814  +
        }
        1815  +
    }
        1816  +
    impl std::convert::TryFrom<LengthListUnconstrained> for crate::model::LengthList {
        1817  +
        type Error = crate::model::length_list::ConstraintViolation;
        1818  +
        fn try_from(value: LengthListUnconstrained) -> std::result::Result<Self, Self::Error> {
        1819  +
            let inner = value.0;
        1820  +
            Self::try_from(inner)
        1821  +
        }
        1822  +
    }
        1823  +
}