1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 2 |
|
3 3 | /// Describes one specific validation failure for an input member.
|
4 4 | #[derive(
|
5 5 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
6 6 | )]
|
7 7 | pub struct ValidationExceptionField {
|
8 8 | /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
|
9 9 | pub path: ::std::string::String,
|
10 10 | /// A detailed description of the validation failure.
|
11 11 | pub message: ::std::string::String,
|
12 12 | }
|
13 13 | impl ValidationExceptionField {
|
14 14 | /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
|
15 15 | pub fn path(&self) -> &str {
|
16 16 | use std::ops::Deref;
|
17 17 | self.path.deref()
|
18 18 | }
|
19 19 | /// A detailed description of the validation failure.
|
20 20 | pub fn message(&self) -> &str {
|
21 21 | use std::ops::Deref;
|
22 22 | self.message.deref()
|
23 23 | }
|
24 24 | }
|
25 + | impl ::std::fmt::Display for ValidationExceptionField {
|
26 + | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
27 + | ::std::write!(f, "ValidationExceptionField {{")?;
|
28 + | ::std::write!(f, "path={}", &self.path)?;
|
29 + | ::std::write!(f, ", message={}", &self.message)?;
|
30 + | ::std::write!(f, "}}")
|
31 + | }
|
32 + | }
|
25 33 | impl ValidationExceptionField {
|
26 34 | /// Creates a new builder-style object to manufacture [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
27 35 | pub fn builder() -> crate::model::validation_exception_field::Builder {
|
28 36 | crate::model::validation_exception_field::Builder::default()
|
29 37 | }
|
30 38 | }
|
31 39 |
|
32 40 | #[allow(missing_docs)] // documentation missing in model
|
33 41 | ///
|
34 42 | /// This is a constrained type because its corresponding modeled Smithy shape has one or more
|
35 43 | /// [constraint traits]. Use [`ComplexSet::try_from`] to construct values of this type.
|
36 44 | ///
|
37 45 | /// [constraint traits]: https://smithy.io/2.0/spec/constraint-traits.html
|
38 46 | ///
|
39 47 | #[derive(
|
40 48 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
41 49 | )]
|
42 50 | pub struct ComplexSet(pub(crate) ::std::vec::Vec<crate::model::ComplexSetStruct>);
|
43 51 | impl ComplexSet {
|
44 52 | /// Returns an immutable reference to the underlying [`::std::vec::Vec<crate::model::ComplexSetStruct>`].
|
45 53 | pub fn inner(&self) -> &::std::vec::Vec<crate::model::ComplexSetStruct> {
|
46 54 | &self.0
|
47 55 | }
|
48 56 | /// Consumes the value, returning the underlying [`::std::vec::Vec<crate::model::ComplexSetStruct>`].
|
49 57 | pub fn into_inner(self) -> ::std::vec::Vec<crate::model::ComplexSetStruct> {
|
50 58 | self.0
|
51 59 | }
|
52 60 |
|
53 61 | fn check_unique_items(
|
54 62 | items: ::std::vec::Vec<crate::model::ComplexSetStruct>,
|