5 5 | pub struct ComplexNestedErrorData {
|
6 6 | #[allow(missing_docs)] // documentation missing in model
|
7 7 | pub foo: ::std::option::Option<::std::string::String>,
|
8 8 | }
|
9 9 | impl ComplexNestedErrorData {
|
10 10 | #[allow(missing_docs)] // documentation missing in model
|
11 11 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
12 12 | self.foo.as_deref()
|
13 13 | }
|
14 14 | }
|
15 + | impl ::std::fmt::Display for ComplexNestedErrorData {
|
16 + | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
17 + | ::std::write!(f, "ComplexNestedErrorData {{")?;
|
18 + | if let ::std::option::Option::Some(inner) = &self.foo {
|
19 + | ::std::write!(f, "foo=Some({})", inner)?;
|
20 + | } else {
|
21 + | ::std::write!(f, "foo=None")?;
|
22 + | }
|
23 + | ::std::write!(f, "}}")
|
24 + | }
|
25 + | }
|
15 26 | impl ComplexNestedErrorData {
|
16 27 | /// Creates a new builder-style object to manufacture [`ComplexNestedErrorData`](crate::types::ComplexNestedErrorData).
|
17 28 | pub fn builder() -> crate::types::builders::ComplexNestedErrorDataBuilder {
|
18 29 | crate::types::builders::ComplexNestedErrorDataBuilder::default()
|
19 30 | }
|
20 31 | }
|
21 32 |
|
22 33 | /// A builder for [`ComplexNestedErrorData`](crate::types::ComplexNestedErrorData).
|
23 34 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
24 35 | #[non_exhaustive]
|
25 36 | pub struct ComplexNestedErrorDataBuilder {
|
26 37 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
27 38 | }
|
28 39 | impl ComplexNestedErrorDataBuilder {
|
29 40 | #[allow(missing_docs)] // documentation missing in model
|
30 41 | pub fn foo(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
31 42 | self.foo = ::std::option::Option::Some(input.into());
|
32 43 | self
|
33 44 | }
|
34 45 | #[allow(missing_docs)] // documentation missing in model
|
35 46 | pub fn set_foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
36 47 | self.foo = input;
|
37 48 | self
|
38 49 | }
|
39 50 | #[allow(missing_docs)] // documentation missing in model
|
40 51 | pub fn get_foo(&self) -> &::std::option::Option<::std::string::String> {
|
41 52 | &self.foo
|
42 53 | }
|
43 54 | /// Consumes the builder and constructs a [`ComplexNestedErrorData`](crate::types::ComplexNestedErrorData).
|
44 55 | pub fn build(self) -> crate::types::ComplexNestedErrorData {
|