1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 2 | #[::napi_derive::napi(object)]
|
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 | #[::napi_derive::napi(object)]
|
33 41 | #[allow(missing_docs)] // documentation missing in model
|
34 42 | #[derive(
|
35 43 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
36 44 | )]
|
37 45 | pub struct FlavorText {
|
38 46 | /// The localized flavor text for an API resource in a specific language.
|
39 47 | pub flavor_text: ::std::string::String,
|
40 48 | /// The language this name is in.
|
41 49 | pub language: crate::model::Language,
|
42 50 | }
|
43 51 | impl FlavorText {
|
44 52 | /// The localized flavor text for an API resource in a specific language.
|
45 53 | pub fn flavor_text(&self) -> &str {
|
46 54 | use std::ops::Deref;
|
47 55 | self.flavor_text.deref()
|
48 56 | }
|
49 57 | /// The language this name is in.
|
50 58 | pub fn language(&self) -> &crate::model::Language {
|
51 59 | &self.language
|
52 60 | }
|
53 61 | }
|
54 62 | impl FlavorText {
|