1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 2 |
|
3 - | pub(crate) mod complex_set_unconstrained {
|
3 + | pub(crate) mod simple_set_unconstrained {
|
4 4 |
|
5 5 | #[derive(Debug, Clone)]
|
6 - | pub(crate) struct ComplexSetUnconstrained(
|
7 - | pub(crate) std::vec::Vec<crate::model::ComplexSetStruct>,
|
8 - | );
|
6 + | pub(crate) struct SimpleSetUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
|
9 7 |
|
10 - | impl From<ComplexSetUnconstrained>
|
11 - | for crate::constrained::MaybeConstrained<crate::model::ComplexSet>
|
8 + | impl From<SimpleSetUnconstrained>
|
9 + | for crate::constrained::MaybeConstrained<crate::model::SimpleSet>
|
12 10 | {
|
13 - | fn from(value: ComplexSetUnconstrained) -> Self {
|
11 + | fn from(value: SimpleSetUnconstrained) -> Self {
|
14 12 | Self::Unconstrained(value)
|
15 13 | }
|
16 14 | }
|
17 - | impl std::convert::TryFrom<ComplexSetUnconstrained> for crate::model::ComplexSet {
|
18 - | type Error = crate::model::complex_set::ConstraintViolation;
|
19 - | fn try_from(value: ComplexSetUnconstrained) -> std::result::Result<Self, Self::Error> {
|
15 + | impl std::convert::TryFrom<SimpleSetUnconstrained> for crate::model::SimpleSet {
|
16 + | type Error = crate::model::simple_set::ConstraintViolation;
|
17 + | fn try_from(value: SimpleSetUnconstrained) -> std::result::Result<Self, Self::Error> {
|
20 18 | let inner = value.0;
|
21 19 | Self::try_from(inner)
|
22 20 | }
|
23 21 | }
|
24 22 | }
|
25 - | pub(crate) mod simple_set_unconstrained {
|
23 + | pub(crate) mod complex_set_unconstrained {
|
26 24 |
|
27 25 | #[derive(Debug, Clone)]
|
28 - | pub(crate) struct SimpleSetUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
|
26 + | pub(crate) struct ComplexSetUnconstrained(
|
27 + | pub(crate) std::vec::Vec<crate::model::ComplexSetStruct>,
|
28 + | );
|
29 29 |
|
30 - | impl From<SimpleSetUnconstrained>
|
31 - | for crate::constrained::MaybeConstrained<crate::model::SimpleSet>
|
30 + | impl From<ComplexSetUnconstrained>
|
31 + | for crate::constrained::MaybeConstrained<crate::model::ComplexSet>
|
32 32 | {
|
33 - | fn from(value: SimpleSetUnconstrained) -> Self {
|
33 + | fn from(value: ComplexSetUnconstrained) -> Self {
|
34 34 | Self::Unconstrained(value)
|
35 35 | }
|
36 36 | }
|
37 - | impl std::convert::TryFrom<SimpleSetUnconstrained> for crate::model::SimpleSet {
|
38 - | type Error = crate::model::simple_set::ConstraintViolation;
|
39 - | fn try_from(value: SimpleSetUnconstrained) -> std::result::Result<Self, Self::Error> {
|
37 + | impl std::convert::TryFrom<ComplexSetUnconstrained> for crate::model::ComplexSet {
|
38 + | type Error = crate::model::complex_set::ConstraintViolation;
|
39 + | fn try_from(value: ComplexSetUnconstrained) -> std::result::Result<Self, Self::Error> {
|
40 40 | let inner = value.0;
|
41 41 | Self::try_from(inner)
|
42 42 | }
|
43 43 | }
|
44 44 | }
|