Server Test

Server Test

rev. 3c756f73b1f83a0eed4275d9d1e22df0b10b66fb

Files changed:

tmp-codegen-diff/codegen-server-test/constraints_without_public_constrained_types-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_without_public_constrained_types-http0x/rust-server-codegen/src/unconstrained.rs

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