47 47 | type Unconstrained = crate::input::operation_with_nested_structure_input_internal::Builder;
|
48 48 | }
|
49 49 | impl OperationWithNestedStructureInput {
|
50 50 | /// Creates a new builder-style object to manufacture [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
51 51 | pub fn builder() -> crate::input::operation_with_nested_structure_input::Builder {
|
52 52 | crate::input::operation_with_nested_structure_input::Builder::default()
|
53 53 | }
|
54 54 | }
|
55 55 |
|
56 56 | #[::pyo3::pyclass]
|
57 - | /// :param defaults typing.Optional\[rest_json.model.Defaults\]:
|
58 - | /// :param client_optional_defaults typing.Optional\[rest_json.model.ClientOptionalDefaults\]:
|
59 57 | /// :param top_level_default str:
|
60 58 | /// :param other_top_level_default int:
|
59 + | /// :param defaults typing.Optional\[rest_json.model.Defaults\]:
|
60 + | /// :param client_optional_defaults typing.Optional\[rest_json.model.ClientOptionalDefaults\]:
|
61 61 | /// :rtype None:
|
62 62 | #[allow(missing_docs)] // documentation missing in model
|
63 63 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
64 64 | pub struct OperationWithDefaultsInput {
|
65 65 | #[pyo3(get, set)]
|
66 66 | /// :type typing.Optional\[rest_json.model.Defaults\]:
|
67 67 | #[allow(missing_docs)] // documentation missing in model
|
68 68 | pub defaults: ::std::option::Option<crate::model::Defaults>,
|
69 69 | #[pyo3(get, set)]
|
70 70 | /// :type typing.Optional\[rest_json.model.ClientOptionalDefaults\]:
|
71 71 | #[allow(missing_docs)] // documentation missing in model
|
72 72 | pub client_optional_defaults: ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
73 73 | #[pyo3(get, set)]
|
74 74 | /// :type str:
|
75 75 | #[allow(missing_docs)] // documentation missing in model
|
76 76 | pub top_level_default: ::std::string::String,
|
77 77 | #[pyo3(get, set)]
|
78 78 | /// :type int:
|
79 79 | #[allow(missing_docs)] // documentation missing in model
|
80 80 | pub other_top_level_default: i32,
|
81 81 | }
|
82 82 | impl OperationWithDefaultsInput {
|
83 83 | #[allow(missing_docs)] // documentation missing in model
|
84 84 | pub fn defaults(&self) -> ::std::option::Option<&crate::model::Defaults> {
|
85 85 | self.defaults.as_ref()
|
86 86 | }
|
87 87 | #[allow(missing_docs)] // documentation missing in model
|
88 88 | pub fn client_optional_defaults(
|
89 89 | &self,
|
90 90 | ) -> ::std::option::Option<&crate::model::ClientOptionalDefaults> {
|
91 91 | self.client_optional_defaults.as_ref()
|
92 92 | }
|
93 93 | #[allow(missing_docs)] // documentation missing in model
|
94 94 | pub fn top_level_default(&self) -> &str {
|
95 95 | use std::ops::Deref;
|
96 96 | self.top_level_default.deref()
|
97 97 | }
|
98 98 | #[allow(missing_docs)] // documentation missing in model
|
99 99 | pub fn other_top_level_default(&self) -> i32 {
|
100 100 | self.other_top_level_default
|
101 101 | }
|
102 102 | }
|
103 103 | #[allow(clippy::new_without_default)]
|
104 104 | #[allow(clippy::too_many_arguments)]
|
105 105 | #[::pyo3::pymethods]
|
106 106 | impl OperationWithDefaultsInput {
|
107 107 | #[new]
|
108 108 | pub fn new(
|
109 - | defaults: ::std::option::Option<crate::model::Defaults>,
|
110 - | client_optional_defaults: ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
111 109 | top_level_default: ::std::string::String,
|
112 110 | other_top_level_default: i32,
|
111 + | defaults: ::std::option::Option<crate::model::Defaults>,
|
112 + | client_optional_defaults: ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
113 113 | ) -> Self {
|
114 114 | Self {
|
115 - | defaults,
|
116 - | client_optional_defaults,
|
117 115 | top_level_default,
|
118 116 | other_top_level_default,
|
117 + | defaults,
|
118 + | client_optional_defaults,
|
119 119 | }
|
120 120 | }
|
121 121 | fn __repr__(&self) -> String {
|
122 122 | format!("{self:?}")
|
123 123 | }
|
124 124 | fn __str__(&self) -> String {
|
125 125 | format!("{self:?}")
|
126 126 | }
|
127 127 | }
|
128 128 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<OperationWithDefaultsInput> {
|
1854 1854 | type Unconstrained = crate::input::malformed_string_input_internal::Builder;
|
1855 1855 | }
|
1856 1856 | impl MalformedStringInput {
|
1857 1857 | /// Creates a new builder-style object to manufacture [`MalformedStringInput`](crate::input::MalformedStringInput).
|
1858 1858 | pub fn builder() -> crate::input::malformed_string_input::Builder {
|
1859 1859 | crate::input::malformed_string_input::Builder::default()
|
1860 1860 | }
|
1861 1861 | }
|
1862 1862 |
|
1863 1863 | #[::pyo3::pyclass]
|
1864 - | /// :param double_in_body typing.Optional\[float\]:
|
1865 1864 | /// :param double_in_path float:
|
1865 + | /// :param double_in_body typing.Optional\[float\]:
|
1866 1866 | /// :param double_in_query typing.Optional\[float\]:
|
1867 1867 | /// :param double_in_header typing.Optional\[float\]:
|
1868 1868 | /// :rtype None:
|
1869 1869 | #[allow(missing_docs)] // documentation missing in model
|
1870 1870 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1871 1871 | pub struct MalformedDoubleInput {
|
1872 1872 | #[pyo3(get, set)]
|
1873 1873 | /// :type typing.Optional\[float\]:
|
1874 1874 | #[allow(missing_docs)] // documentation missing in model
|
1875 1875 | pub double_in_body: ::std::option::Option<f64>,
|
1876 1876 | #[pyo3(get, set)]
|
1877 1877 | /// :type float:
|
1878 1878 | #[allow(missing_docs)] // documentation missing in model
|
1879 1879 | pub double_in_path: f64,
|
1880 1880 | #[pyo3(get, set)]
|
1881 1881 | /// :type typing.Optional\[float\]:
|
1882 1882 | #[allow(missing_docs)] // documentation missing in model
|
1883 1883 | pub double_in_query: ::std::option::Option<f64>,
|
1884 1884 | #[pyo3(get, set)]
|
1885 1885 | /// :type typing.Optional\[float\]:
|
1886 1886 | #[allow(missing_docs)] // documentation missing in model
|
1887 1887 | pub double_in_header: ::std::option::Option<f64>,
|
1888 1888 | }
|
1889 1889 | impl MalformedDoubleInput {
|
1890 1890 | #[allow(missing_docs)] // documentation missing in model
|
1891 1891 | pub fn double_in_body(&self) -> ::std::option::Option<f64> {
|
1892 1892 | self.double_in_body
|
1893 1893 | }
|
1894 1894 | #[allow(missing_docs)] // documentation missing in model
|
1895 1895 | pub fn double_in_path(&self) -> f64 {
|
1896 1896 | self.double_in_path
|
1897 1897 | }
|
1898 1898 | #[allow(missing_docs)] // documentation missing in model
|
1899 1899 | pub fn double_in_query(&self) -> ::std::option::Option<f64> {
|
1900 1900 | self.double_in_query
|
1901 1901 | }
|
1902 1902 | #[allow(missing_docs)] // documentation missing in model
|
1903 1903 | pub fn double_in_header(&self) -> ::std::option::Option<f64> {
|
1904 1904 | self.double_in_header
|
1905 1905 | }
|
1906 1906 | }
|
1907 1907 | #[allow(clippy::new_without_default)]
|
1908 1908 | #[allow(clippy::too_many_arguments)]
|
1909 1909 | #[::pyo3::pymethods]
|
1910 1910 | impl MalformedDoubleInput {
|
1911 1911 | #[new]
|
1912 1912 | pub fn new(
|
1913 - | double_in_body: ::std::option::Option<f64>,
|
1914 1913 | double_in_path: f64,
|
1914 + | double_in_body: ::std::option::Option<f64>,
|
1915 1915 | double_in_query: ::std::option::Option<f64>,
|
1916 1916 | double_in_header: ::std::option::Option<f64>,
|
1917 1917 | ) -> Self {
|
1918 1918 | Self {
|
1919 - | double_in_body,
|
1920 1919 | double_in_path,
|
1920 + | double_in_body,
|
1921 1921 | double_in_query,
|
1922 1922 | double_in_header,
|
1923 1923 | }
|
1924 1924 | }
|
1925 1925 | fn __repr__(&self) -> String {
|
1926 1926 | format!("{self:?}")
|
1927 1927 | }
|
1928 1928 | fn __str__(&self) -> String {
|
1929 1929 | format!("{self:?}")
|
1930 1930 | }
|
1931 1931 | }
|
1932 1932 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedDoubleInput> {
|
1933 1933 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1934 1934 | ob.extract::<MalformedDoubleInput>().map(Box::new)
|
1935 1935 | }
|
1936 1936 | }
|
1937 1937 |
|
1938 1938 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedDoubleInput> {
|
1939 1939 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1940 1940 | (*self).into_py(py)
|
1941 1941 | }
|
1942 1942 | }
|
1943 1943 | impl crate::constrained::Constrained for crate::input::MalformedDoubleInput {
|
1944 1944 | type Unconstrained = crate::input::malformed_double_input_internal::Builder;
|
1945 1945 | }
|
1946 1946 | impl MalformedDoubleInput {
|
1947 1947 | /// Creates a new builder-style object to manufacture [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
1948 1948 | pub fn builder() -> crate::input::malformed_double_input::Builder {
|
1949 1949 | crate::input::malformed_double_input::Builder::default()
|
1950 1950 | }
|
1951 1951 | }
|
1952 1952 |
|
1953 1953 | #[::pyo3::pyclass]
|
1954 - | /// :param float_in_body typing.Optional\[float\]:
|
1955 1954 | /// :param float_in_path float:
|
1955 + | /// :param float_in_body typing.Optional\[float\]:
|
1956 1956 | /// :param float_in_query typing.Optional\[float\]:
|
1957 1957 | /// :param float_in_header typing.Optional\[float\]:
|
1958 1958 | /// :rtype None:
|
1959 1959 | #[allow(missing_docs)] // documentation missing in model
|
1960 1960 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1961 1961 | pub struct MalformedFloatInput {
|
1962 1962 | #[pyo3(get, set)]
|
1963 1963 | /// :type typing.Optional\[float\]:
|
1964 1964 | #[allow(missing_docs)] // documentation missing in model
|
1965 1965 | pub float_in_body: ::std::option::Option<f32>,
|
1966 1966 | #[pyo3(get, set)]
|
1967 1967 | /// :type float:
|
1968 1968 | #[allow(missing_docs)] // documentation missing in model
|
1969 1969 | pub float_in_path: f32,
|
1970 1970 | #[pyo3(get, set)]
|
1971 1971 | /// :type typing.Optional\[float\]:
|
1972 1972 | #[allow(missing_docs)] // documentation missing in model
|
1973 1973 | pub float_in_query: ::std::option::Option<f32>,
|
1974 1974 | #[pyo3(get, set)]
|
1975 1975 | /// :type typing.Optional\[float\]:
|
1976 1976 | #[allow(missing_docs)] // documentation missing in model
|
1977 1977 | pub float_in_header: ::std::option::Option<f32>,
|
1978 1978 | }
|
1979 1979 | impl MalformedFloatInput {
|
1980 1980 | #[allow(missing_docs)] // documentation missing in model
|
1981 1981 | pub fn float_in_body(&self) -> ::std::option::Option<f32> {
|
1982 1982 | self.float_in_body
|
1983 1983 | }
|
1984 1984 | #[allow(missing_docs)] // documentation missing in model
|
1985 1985 | pub fn float_in_path(&self) -> f32 {
|
1986 1986 | self.float_in_path
|
1987 1987 | }
|
1988 1988 | #[allow(missing_docs)] // documentation missing in model
|
1989 1989 | pub fn float_in_query(&self) -> ::std::option::Option<f32> {
|
1990 1990 | self.float_in_query
|
1991 1991 | }
|
1992 1992 | #[allow(missing_docs)] // documentation missing in model
|
1993 1993 | pub fn float_in_header(&self) -> ::std::option::Option<f32> {
|
1994 1994 | self.float_in_header
|
1995 1995 | }
|
1996 1996 | }
|
1997 1997 | #[allow(clippy::new_without_default)]
|
1998 1998 | #[allow(clippy::too_many_arguments)]
|
1999 1999 | #[::pyo3::pymethods]
|
2000 2000 | impl MalformedFloatInput {
|
2001 2001 | #[new]
|
2002 2002 | pub fn new(
|
2003 - | float_in_body: ::std::option::Option<f32>,
|
2004 2003 | float_in_path: f32,
|
2004 + | float_in_body: ::std::option::Option<f32>,
|
2005 2005 | float_in_query: ::std::option::Option<f32>,
|
2006 2006 | float_in_header: ::std::option::Option<f32>,
|
2007 2007 | ) -> Self {
|
2008 2008 | Self {
|
2009 - | float_in_body,
|
2010 2009 | float_in_path,
|
2010 + | float_in_body,
|
2011 2011 | float_in_query,
|
2012 2012 | float_in_header,
|
2013 2013 | }
|
2014 2014 | }
|
2015 2015 | fn __repr__(&self) -> String {
|
2016 2016 | format!("{self:?}")
|
2017 2017 | }
|
2018 2018 | fn __str__(&self) -> String {
|
2019 2019 | format!("{self:?}")
|
2020 2020 | }
|
2021 2021 | }
|
2022 2022 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedFloatInput> {
|
2023 2023 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
2024 2024 | ob.extract::<MalformedFloatInput>().map(Box::new)
|
2025 2025 | }
|
2026 2026 | }
|
2027 2027 |
|
2028 2028 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedFloatInput> {
|
2029 2029 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
2030 2030 | (*self).into_py(py)
|
2031 2031 | }
|
2032 2032 | }
|
2033 2033 | impl crate::constrained::Constrained for crate::input::MalformedFloatInput {
|
2034 2034 | type Unconstrained = crate::input::malformed_float_input_internal::Builder;
|
2035 2035 | }
|
2036 2036 | impl MalformedFloatInput {
|
2037 2037 | /// Creates a new builder-style object to manufacture [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
2038 2038 | pub fn builder() -> crate::input::malformed_float_input::Builder {
|
2039 2039 | crate::input::malformed_float_input::Builder::default()
|
2040 2040 | }
|
2041 2041 | }
|
2042 2042 |
|
2043 2043 | #[::pyo3::pyclass]
|
2044 - | /// :param long_in_body typing.Optional\[int\]:
|
2045 2044 | /// :param long_in_path int:
|
2045 + | /// :param long_in_body typing.Optional\[int\]:
|
2046 2046 | /// :param long_in_query typing.Optional\[int\]:
|
2047 2047 | /// :param long_in_header typing.Optional\[int\]:
|
2048 2048 | /// :rtype None:
|
2049 2049 | #[allow(missing_docs)] // documentation missing in model
|
2050 2050 | #[derive(
|
2051 2051 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2052 2052 | )]
|
2053 2053 | pub struct MalformedLongInput {
|
2054 2054 | #[pyo3(get, set)]
|
2055 2055 | /// :type typing.Optional\[int\]:
|
2056 2056 | #[allow(missing_docs)] // documentation missing in model
|
2057 2057 | pub long_in_body: ::std::option::Option<i64>,
|
2058 2058 | #[pyo3(get, set)]
|
2059 2059 | /// :type int:
|
2060 2060 | #[allow(missing_docs)] // documentation missing in model
|
2061 2061 | pub long_in_path: i64,
|
2062 2062 | #[pyo3(get, set)]
|
2063 2063 | /// :type typing.Optional\[int\]:
|
2064 2064 | #[allow(missing_docs)] // documentation missing in model
|
2065 2065 | pub long_in_query: ::std::option::Option<i64>,
|
2066 2066 | #[pyo3(get, set)]
|
2067 2067 | /// :type typing.Optional\[int\]:
|
2068 2068 | #[allow(missing_docs)] // documentation missing in model
|
2069 2069 | pub long_in_header: ::std::option::Option<i64>,
|
2070 2070 | }
|
2071 2071 | impl MalformedLongInput {
|
2072 2072 | #[allow(missing_docs)] // documentation missing in model
|
2073 2073 | pub fn long_in_body(&self) -> ::std::option::Option<i64> {
|
2074 2074 | self.long_in_body
|
2075 2075 | }
|
2076 2076 | #[allow(missing_docs)] // documentation missing in model
|
2077 2077 | pub fn long_in_path(&self) -> i64 {
|
2078 2078 | self.long_in_path
|
2079 2079 | }
|
2080 2080 | #[allow(missing_docs)] // documentation missing in model
|
2081 2081 | pub fn long_in_query(&self) -> ::std::option::Option<i64> {
|
2082 2082 | self.long_in_query
|
2083 2083 | }
|
2084 2084 | #[allow(missing_docs)] // documentation missing in model
|
2085 2085 | pub fn long_in_header(&self) -> ::std::option::Option<i64> {
|
2086 2086 | self.long_in_header
|
2087 2087 | }
|
2088 2088 | }
|
2089 2089 | #[allow(clippy::new_without_default)]
|
2090 2090 | #[allow(clippy::too_many_arguments)]
|
2091 2091 | #[::pyo3::pymethods]
|
2092 2092 | impl MalformedLongInput {
|
2093 2093 | #[new]
|
2094 2094 | pub fn new(
|
2095 - | long_in_body: ::std::option::Option<i64>,
|
2096 2095 | long_in_path: i64,
|
2096 + | long_in_body: ::std::option::Option<i64>,
|
2097 2097 | long_in_query: ::std::option::Option<i64>,
|
2098 2098 | long_in_header: ::std::option::Option<i64>,
|
2099 2099 | ) -> Self {
|
2100 2100 | Self {
|
2101 - | long_in_body,
|
2102 2101 | long_in_path,
|
2102 + | long_in_body,
|
2103 2103 | long_in_query,
|
2104 2104 | long_in_header,
|
2105 2105 | }
|
2106 2106 | }
|
2107 2107 | fn __repr__(&self) -> String {
|
2108 2108 | format!("{self:?}")
|
2109 2109 | }
|
2110 2110 | fn __str__(&self) -> String {
|
2111 2111 | format!("{self:?}")
|
2112 2112 | }
|
2113 2113 | }
|
2114 2114 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedLongInput> {
|
2115 2115 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
2116 2116 | ob.extract::<MalformedLongInput>().map(Box::new)
|
2117 2117 | }
|
2118 2118 | }
|
2119 2119 |
|
2120 2120 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedLongInput> {
|
2121 2121 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
2122 2122 | (*self).into_py(py)
|
2123 2123 | }
|
2124 2124 | }
|
2125 2125 | impl crate::constrained::Constrained for crate::input::MalformedLongInput {
|
2126 2126 | type Unconstrained = crate::input::malformed_long_input_internal::Builder;
|
2127 2127 | }
|
2128 2128 | impl MalformedLongInput {
|
2129 2129 | /// Creates a new builder-style object to manufacture [`MalformedLongInput`](crate::input::MalformedLongInput).
|
2130 2130 | pub fn builder() -> crate::input::malformed_long_input::Builder {
|
2131 2131 | crate::input::malformed_long_input::Builder::default()
|
2132 2132 | }
|
2133 2133 | }
|
2134 2134 |
|
2135 2135 | #[::pyo3::pyclass]
|
2136 - | /// :param short_in_body typing.Optional\[int\]:
|
2137 2136 | /// :param short_in_path int:
|
2137 + | /// :param short_in_body typing.Optional\[int\]:
|
2138 2138 | /// :param short_in_query typing.Optional\[int\]:
|
2139 2139 | /// :param short_in_header typing.Optional\[int\]:
|
2140 2140 | /// :rtype None:
|
2141 2141 | #[allow(missing_docs)] // documentation missing in model
|
2142 2142 | #[derive(
|
2143 2143 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2144 2144 | )]
|
2145 2145 | pub struct MalformedShortInput {
|
2146 2146 | #[pyo3(get, set)]
|
2147 2147 | /// :type typing.Optional\[int\]:
|
2148 2148 | #[allow(missing_docs)] // documentation missing in model
|
2149 2149 | pub short_in_body: ::std::option::Option<i16>,
|
2150 2150 | #[pyo3(get, set)]
|
2151 2151 | /// :type int:
|
2152 2152 | #[allow(missing_docs)] // documentation missing in model
|
2153 2153 | pub short_in_path: i16,
|
2154 2154 | #[pyo3(get, set)]
|
2155 2155 | /// :type typing.Optional\[int\]:
|
2156 2156 | #[allow(missing_docs)] // documentation missing in model
|
2157 2157 | pub short_in_query: ::std::option::Option<i16>,
|
2158 2158 | #[pyo3(get, set)]
|
2159 2159 | /// :type typing.Optional\[int\]:
|
2160 2160 | #[allow(missing_docs)] // documentation missing in model
|
2161 2161 | pub short_in_header: ::std::option::Option<i16>,
|
2162 2162 | }
|
2163 2163 | impl MalformedShortInput {
|
2164 2164 | #[allow(missing_docs)] // documentation missing in model
|
2165 2165 | pub fn short_in_body(&self) -> ::std::option::Option<i16> {
|
2166 2166 | self.short_in_body
|
2167 2167 | }
|
2168 2168 | #[allow(missing_docs)] // documentation missing in model
|
2169 2169 | pub fn short_in_path(&self) -> i16 {
|
2170 2170 | self.short_in_path
|
2171 2171 | }
|
2172 2172 | #[allow(missing_docs)] // documentation missing in model
|
2173 2173 | pub fn short_in_query(&self) -> ::std::option::Option<i16> {
|
2174 2174 | self.short_in_query
|
2175 2175 | }
|
2176 2176 | #[allow(missing_docs)] // documentation missing in model
|
2177 2177 | pub fn short_in_header(&self) -> ::std::option::Option<i16> {
|
2178 2178 | self.short_in_header
|
2179 2179 | }
|
2180 2180 | }
|
2181 2181 | #[allow(clippy::new_without_default)]
|
2182 2182 | #[allow(clippy::too_many_arguments)]
|
2183 2183 | #[::pyo3::pymethods]
|
2184 2184 | impl MalformedShortInput {
|
2185 2185 | #[new]
|
2186 2186 | pub fn new(
|
2187 - | short_in_body: ::std::option::Option<i16>,
|
2188 2187 | short_in_path: i16,
|
2188 + | short_in_body: ::std::option::Option<i16>,
|
2189 2189 | short_in_query: ::std::option::Option<i16>,
|
2190 2190 | short_in_header: ::std::option::Option<i16>,
|
2191 2191 | ) -> Self {
|
2192 2192 | Self {
|
2193 - | short_in_body,
|
2194 2193 | short_in_path,
|
2194 + | short_in_body,
|
2195 2195 | short_in_query,
|
2196 2196 | short_in_header,
|
2197 2197 | }
|
2198 2198 | }
|
2199 2199 | fn __repr__(&self) -> String {
|
2200 2200 | format!("{self:?}")
|
2201 2201 | }
|
2202 2202 | fn __str__(&self) -> String {
|
2203 2203 | format!("{self:?}")
|
2204 2204 | }
|
2205 2205 | }
|
2206 2206 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedShortInput> {
|
2207 2207 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
2208 2208 | ob.extract::<MalformedShortInput>().map(Box::new)
|
2209 2209 | }
|
2210 2210 | }
|
2211 2211 |
|
2212 2212 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedShortInput> {
|
2213 2213 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
2214 2214 | (*self).into_py(py)
|
2215 2215 | }
|
2216 2216 | }
|
2217 2217 | impl crate::constrained::Constrained for crate::input::MalformedShortInput {
|
2218 2218 | type Unconstrained = crate::input::malformed_short_input_internal::Builder;
|
2219 2219 | }
|
2220 2220 | impl MalformedShortInput {
|
2221 2221 | /// Creates a new builder-style object to manufacture [`MalformedShortInput`](crate::input::MalformedShortInput).
|
2222 2222 | pub fn builder() -> crate::input::malformed_short_input::Builder {
|
2223 2223 | crate::input::malformed_short_input::Builder::default()
|
2224 2224 | }
|
2225 2225 | }
|
2226 2226 |
|
2227 2227 | #[::pyo3::pyclass]
|
2228 - | /// :param byte_in_body typing.Optional\[int\]:
|
2229 2228 | /// :param byte_in_path int:
|
2229 + | /// :param byte_in_body typing.Optional\[int\]:
|
2230 2230 | /// :param byte_in_query typing.Optional\[int\]:
|
2231 2231 | /// :param byte_in_header typing.Optional\[int\]:
|
2232 2232 | /// :rtype None:
|
2233 2233 | #[allow(missing_docs)] // documentation missing in model
|
2234 2234 | #[derive(
|
2235 2235 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2236 2236 | )]
|
2237 2237 | pub struct MalformedByteInput {
|
2238 2238 | #[pyo3(get, set)]
|
2239 2239 | /// :type typing.Optional\[int\]:
|
2240 2240 | #[allow(missing_docs)] // documentation missing in model
|
2241 2241 | pub byte_in_body: ::std::option::Option<i8>,
|
2242 2242 | #[pyo3(get, set)]
|
2243 2243 | /// :type int:
|
2244 2244 | #[allow(missing_docs)] // documentation missing in model
|
2245 2245 | pub byte_in_path: i8,
|
2246 2246 | #[pyo3(get, set)]
|
2247 2247 | /// :type typing.Optional\[int\]:
|
2248 2248 | #[allow(missing_docs)] // documentation missing in model
|
2249 2249 | pub byte_in_query: ::std::option::Option<i8>,
|
2250 2250 | #[pyo3(get, set)]
|
2251 2251 | /// :type typing.Optional\[int\]:
|
2252 2252 | #[allow(missing_docs)] // documentation missing in model
|
2253 2253 | pub byte_in_header: ::std::option::Option<i8>,
|
2254 2254 | }
|
2255 2255 | impl MalformedByteInput {
|
2256 2256 | #[allow(missing_docs)] // documentation missing in model
|
2257 2257 | pub fn byte_in_body(&self) -> ::std::option::Option<i8> {
|
2258 2258 | self.byte_in_body
|
2259 2259 | }
|
2260 2260 | #[allow(missing_docs)] // documentation missing in model
|
2261 2261 | pub fn byte_in_path(&self) -> i8 {
|
2262 2262 | self.byte_in_path
|
2263 2263 | }
|
2264 2264 | #[allow(missing_docs)] // documentation missing in model
|
2265 2265 | pub fn byte_in_query(&self) -> ::std::option::Option<i8> {
|
2266 2266 | self.byte_in_query
|
2267 2267 | }
|
2268 2268 | #[allow(missing_docs)] // documentation missing in model
|
2269 2269 | pub fn byte_in_header(&self) -> ::std::option::Option<i8> {
|
2270 2270 | self.byte_in_header
|
2271 2271 | }
|
2272 2272 | }
|
2273 2273 | #[allow(clippy::new_without_default)]
|
2274 2274 | #[allow(clippy::too_many_arguments)]
|
2275 2275 | #[::pyo3::pymethods]
|
2276 2276 | impl MalformedByteInput {
|
2277 2277 | #[new]
|
2278 2278 | pub fn new(
|
2279 - | byte_in_body: ::std::option::Option<i8>,
|
2280 2279 | byte_in_path: i8,
|
2280 + | byte_in_body: ::std::option::Option<i8>,
|
2281 2281 | byte_in_query: ::std::option::Option<i8>,
|
2282 2282 | byte_in_header: ::std::option::Option<i8>,
|
2283 2283 | ) -> Self {
|
2284 2284 | Self {
|
2285 - | byte_in_body,
|
2286 2285 | byte_in_path,
|
2286 + | byte_in_body,
|
2287 2287 | byte_in_query,
|
2288 2288 | byte_in_header,
|
2289 2289 | }
|
2290 2290 | }
|
2291 2291 | fn __repr__(&self) -> String {
|
2292 2292 | format!("{self:?}")
|
2293 2293 | }
|
2294 2294 | fn __str__(&self) -> String {
|
2295 2295 | format!("{self:?}")
|
2296 2296 | }
|
4582 4582 | type Unconstrained = crate::input::greeting_with_errors_input_internal::Builder;
|
4583 4583 | }
|
4584 4584 | impl GreetingWithErrorsInput {
|
4585 4585 | /// Creates a new builder-style object to manufacture [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
4586 4586 | pub fn builder() -> crate::input::greeting_with_errors_input::Builder {
|
4587 4587 | crate::input::greeting_with_errors_input::Builder::default()
|
4588 4588 | }
|
4589 4589 | }
|
4590 4590 |
|
4591 4591 | #[::pyo3::pyclass]
|
4592 - | /// :param foo typing.Optional\[str\]:
|
4593 4592 | /// :param blob rest_json.types.ByteStream:
|
4593 + | /// :param foo typing.Optional\[str\]:
|
4594 4594 | /// :rtype None:
|
4595 4595 | #[allow(missing_docs)] // documentation missing in model
|
4596 4596 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
4597 4597 | pub struct StreamingTraitsWithMediaTypeInput {
|
4598 4598 | #[pyo3(get, set)]
|
4599 4599 | /// :type typing.Optional\[str\]:
|
4600 4600 | #[allow(missing_docs)] // documentation missing in model
|
4601 4601 | pub foo: ::std::option::Option<::std::string::String>,
|
4602 4602 | #[pyo3(get, set)]
|
4603 4603 | /// :type rest_json.types.ByteStream:
|
4604 4604 | #[allow(missing_docs)] // documentation missing in model
|
4605 4605 | pub blob: ::aws_smithy_http_server_python::types::ByteStream,
|
4606 4606 | }
|
4607 4607 | impl StreamingTraitsWithMediaTypeInput {
|
4608 4608 | #[allow(missing_docs)] // documentation missing in model
|
4609 4609 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
4610 4610 | self.foo.as_deref()
|
4611 4611 | }
|
4612 4612 | #[allow(missing_docs)] // documentation missing in model
|
4613 4613 | pub fn blob(&self) -> &::aws_smithy_http_server_python::types::ByteStream {
|
4614 4614 | &self.blob
|
4615 4615 | }
|
4616 4616 | }
|
4617 4617 | #[allow(clippy::new_without_default)]
|
4618 4618 | #[allow(clippy::too_many_arguments)]
|
4619 4619 | #[::pyo3::pymethods]
|
4620 4620 | impl StreamingTraitsWithMediaTypeInput {
|
4621 4621 | #[new]
|
4622 4622 | pub fn new(
|
4623 - | foo: ::std::option::Option<::std::string::String>,
|
4624 4623 | blob: ::aws_smithy_http_server_python::types::ByteStream,
|
4624 + | foo: ::std::option::Option<::std::string::String>,
|
4625 4625 | ) -> Self {
|
4626 - | Self { foo, blob }
|
4626 + | Self { blob, foo }
|
4627 4627 | }
|
4628 4628 | fn __repr__(&self) -> String {
|
4629 4629 | format!("{self:?}")
|
4630 4630 | }
|
4631 4631 | fn __str__(&self) -> String {
|
4632 4632 | format!("{self:?}")
|
4633 4633 | }
|
4634 4634 | }
|
4635 4635 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<StreamingTraitsWithMediaTypeInput> {
|
4636 4636 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
4637 4637 | ob.extract::<StreamingTraitsWithMediaTypeInput>()
|
4638 4638 | .map(Box::new)
|
4639 4639 | }
|
4640 4640 | }
|
4641 4641 |
|
4642 4642 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<StreamingTraitsWithMediaTypeInput> {
|
4643 4643 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
4644 4644 | (*self).into_py(py)
|
4645 4645 | }
|
4646 4646 | }
|
4647 4647 | impl crate::constrained::Constrained for crate::input::StreamingTraitsWithMediaTypeInput {
|
4648 4648 | type Unconstrained = crate::input::streaming_traits_with_media_type_input_internal::Builder;
|
4649 4649 | }
|
4650 4650 | impl StreamingTraitsWithMediaTypeInput {
|
4651 4651 | /// Creates a new builder-style object to manufacture [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
4652 4652 | pub fn builder() -> crate::input::streaming_traits_with_media_type_input::Builder {
|
4653 4653 | crate::input::streaming_traits_with_media_type_input::Builder::default()
|
4654 4654 | }
|
4655 4655 | }
|
4656 4656 |
|
4657 4657 | #[::pyo3::pyclass]
|
4658 - | /// :param foo typing.Optional\[str\]:
|
4659 4658 | /// :param blob rest_json.types.ByteStream:
|
4659 + | /// :param foo typing.Optional\[str\]:
|
4660 4660 | /// :rtype None:
|
4661 4661 | #[allow(missing_docs)] // documentation missing in model
|
4662 4662 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
4663 4663 | pub struct StreamingTraitsRequireLengthInput {
|
4664 4664 | #[pyo3(get, set)]
|
4665 4665 | /// :type typing.Optional\[str\]:
|
4666 4666 | #[allow(missing_docs)] // documentation missing in model
|
4667 4667 | pub foo: ::std::option::Option<::std::string::String>,
|
4668 4668 | #[pyo3(get, set)]
|
4669 4669 | /// :type rest_json.types.ByteStream:
|
4670 4670 | #[allow(missing_docs)] // documentation missing in model
|
4671 4671 | pub blob: ::aws_smithy_http_server_python::types::ByteStream,
|
4672 4672 | }
|
4673 4673 | impl StreamingTraitsRequireLengthInput {
|
4674 4674 | #[allow(missing_docs)] // documentation missing in model
|
4675 4675 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
4676 4676 | self.foo.as_deref()
|
4677 4677 | }
|
4678 4678 | #[allow(missing_docs)] // documentation missing in model
|
4679 4679 | pub fn blob(&self) -> &::aws_smithy_http_server_python::types::ByteStream {
|
4680 4680 | &self.blob
|
4681 4681 | }
|
4682 4682 | }
|
4683 4683 | #[allow(clippy::new_without_default)]
|
4684 4684 | #[allow(clippy::too_many_arguments)]
|
4685 4685 | #[::pyo3::pymethods]
|
4686 4686 | impl StreamingTraitsRequireLengthInput {
|
4687 4687 | #[new]
|
4688 4688 | pub fn new(
|
4689 - | foo: ::std::option::Option<::std::string::String>,
|
4690 4689 | blob: ::aws_smithy_http_server_python::types::ByteStream,
|
4690 + | foo: ::std::option::Option<::std::string::String>,
|
4691 4691 | ) -> Self {
|
4692 - | Self { foo, blob }
|
4692 + | Self { blob, foo }
|
4693 4693 | }
|
4694 4694 | fn __repr__(&self) -> String {
|
4695 4695 | format!("{self:?}")
|
4696 4696 | }
|
4697 4697 | fn __str__(&self) -> String {
|
4698 4698 | format!("{self:?}")
|
4699 4699 | }
|
4700 4700 | }
|
4701 4701 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<StreamingTraitsRequireLengthInput> {
|
4702 4702 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
4703 4703 | ob.extract::<StreamingTraitsRequireLengthInput>()
|
4704 4704 | .map(Box::new)
|
4705 4705 | }
|
4706 4706 | }
|
4707 4707 |
|
4708 4708 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<StreamingTraitsRequireLengthInput> {
|
4709 4709 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
4710 4710 | (*self).into_py(py)
|
4711 4711 | }
|
4712 4712 | }
|
4713 4713 | impl crate::constrained::Constrained for crate::input::StreamingTraitsRequireLengthInput {
|
4714 4714 | type Unconstrained = crate::input::streaming_traits_require_length_input_internal::Builder;
|
4715 4715 | }
|
4716 4716 | impl StreamingTraitsRequireLengthInput {
|
4717 4717 | /// Creates a new builder-style object to manufacture [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
4718 4718 | pub fn builder() -> crate::input::streaming_traits_require_length_input::Builder {
|
4719 4719 | crate::input::streaming_traits_require_length_input::Builder::default()
|
4720 4720 | }
|
4721 4721 | }
|
4722 4722 |
|
4723 4723 | #[::pyo3::pyclass]
|
4724 - | /// :param foo typing.Optional\[str\]:
|
4725 4724 | /// :param blob rest_json.types.ByteStream:
|
4725 + | /// :param foo typing.Optional\[str\]:
|
4726 4726 | /// :rtype None:
|
4727 4727 | #[allow(missing_docs)] // documentation missing in model
|
4728 4728 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
4729 4729 | pub struct StreamingTraitsInput {
|
4730 4730 | #[pyo3(get, set)]
|
4731 4731 | /// :type typing.Optional\[str\]:
|
4732 4732 | #[allow(missing_docs)] // documentation missing in model
|
4733 4733 | pub foo: ::std::option::Option<::std::string::String>,
|
4734 4734 | #[pyo3(get, set)]
|
4735 4735 | /// :type rest_json.types.ByteStream:
|
4736 4736 | #[allow(missing_docs)] // documentation missing in model
|
4737 4737 | pub blob: ::aws_smithy_http_server_python::types::ByteStream,
|
4738 4738 | }
|
4739 4739 | impl StreamingTraitsInput {
|
4740 4740 | #[allow(missing_docs)] // documentation missing in model
|
4741 4741 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
4742 4742 | self.foo.as_deref()
|
4743 4743 | }
|
4744 4744 | #[allow(missing_docs)] // documentation missing in model
|
4745 4745 | pub fn blob(&self) -> &::aws_smithy_http_server_python::types::ByteStream {
|
4746 4746 | &self.blob
|
4747 4747 | }
|
4748 4748 | }
|
4749 4749 | #[allow(clippy::new_without_default)]
|
4750 4750 | #[allow(clippy::too_many_arguments)]
|
4751 4751 | #[::pyo3::pymethods]
|
4752 4752 | impl StreamingTraitsInput {
|
4753 4753 | #[new]
|
4754 4754 | pub fn new(
|
4755 - | foo: ::std::option::Option<::std::string::String>,
|
4756 4755 | blob: ::aws_smithy_http_server_python::types::ByteStream,
|
4756 + | foo: ::std::option::Option<::std::string::String>,
|
4757 4757 | ) -> Self {
|
4758 - | Self { foo, blob }
|
4758 + | Self { blob, foo }
|
4759 4759 | }
|
4760 4760 | fn __repr__(&self) -> String {
|
4761 4761 | format!("{self:?}")
|
4762 4762 | }
|
4763 4763 | fn __str__(&self) -> String {
|
4764 4764 | format!("{self:?}")
|
4765 4765 | }
|
4766 4766 | }
|
4767 4767 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<StreamingTraitsInput> {
|
4768 4768 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|