[Improvement] [Rust-Axum] Fix clippy warning (#19920)

This commit is contained in:
Linh Tran Tuan 2024-10-20 13:09:25 +07:00 committed by GitHub
parent 8c8f2f3521
commit cfdb00a14c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
41 changed files with 377 additions and 50 deletions

View File

@ -6,4 +6,6 @@ generateAliasAsModel: true
additionalProperties:
hideGenerationTimestamp: "true"
packageName: rust-axum-header-uui
globalProperties:
skipFormModel: "false"
enablePostProcessFile: true

View File

@ -7,4 +7,6 @@ additionalProperties:
hideGenerationTimestamp: "true"
allowBlockingResponseSerialize: "true"
packageName: multipart-v3
globalProperties:
skipFormModel: false
enablePostProcessFile: true

View File

@ -7,4 +7,6 @@ additionalProperties:
hideGenerationTimestamp: "true"
allowBlockingValidator: "true"
packageName: openapi-v3
globalProperties:
skipFormModel: false
enablePostProcessFile: true

View File

@ -6,4 +6,6 @@ generateAliasAsModel: true
additionalProperties:
hideGenerationTimestamp: "true"
packageName: ops-v3
globalProperties:
skipFormModel: false
enablePostProcessFile: true

View File

@ -6,4 +6,6 @@ generateAliasAsModel: true
additionalProperties:
hideGenerationTimestamp: "true"
packageName: ping-bearer-auth
globalProperties:
skipFormModel: false
enablePostProcessFile: true

View File

@ -6,4 +6,6 @@ generateAliasAsModel: true
additionalProperties:
hideGenerationTimestamp: "true"
packageName: rust-server-test
globalProperties:
skipFormModel: false
enablePostProcessFile: true

View File

@ -7,4 +7,6 @@ additionalProperties:
hideGenerationTimestamp: "true"
packageName: rust-axum-validation-test
disableValidator: "true"
globalProperties:
skipFormModel: false
enablePostProcessFile: true

View File

@ -542,7 +542,6 @@ impl std::str::FromStr for {{{classname}}} {
{{/arrayModelType}}
{{^arrayModelType}}
{{! general struct}}
{{#anyOf.size}}
/// Any of:
{{#anyOf}}
@ -575,7 +574,6 @@ impl PartialEq for {{{classname}}} {
}
}
{{/anyOf.size}}
{{#oneOf.size}}
/// One of:
{{#oneOf}}
@ -608,7 +606,6 @@ impl PartialEq for {{{classname}}} {
}
}
{{/oneOf.size}}
{{^anyOf.size}}
{{^oneOf.size}}
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, validator::Validate)]

View File

@ -530,7 +530,7 @@ impl<T> Nullable<T> {
}
}
impl<'a, T: Clone> Nullable<&'a T> {
impl<T: Clone> Nullable<&T> {
/// Maps an `Nullable<&T>` to an `Nullable<T>` by cloning the contents of the
/// Nullable.
///

View File

@ -1 +1 @@
7.9.0-SNAPSHOT
7.10.0-SNAPSHOT

View File

@ -12,7 +12,7 @@ server, you can easily generate a server stub.
To see how to make this your own, look here: [README]((https://openapi-generator.tech))
- API version: 1.0.7
- Generator version: 7.9.0-SNAPSHOT
- Generator version: 7.10.0-SNAPSHOT

View File

@ -164,6 +164,195 @@ impl std::convert::TryFrom<HeaderValue> for header::IntoHeaderValue<MultipartRel
}
}
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, validator::Validate)]
#[cfg_attr(feature = "conversion", derive(frunk::LabelledGeneric))]
pub struct MultipartRequest {
#[serde(rename = "string_field")]
pub string_field: String,
#[serde(rename = "optional_string_field")]
#[serde(skip_serializing_if = "Option::is_none")]
pub optional_string_field: Option<String>,
#[serde(rename = "object_field")]
#[serde(skip_serializing_if = "Option::is_none")]
pub object_field: Option<models::MultipartRequestObjectField>,
#[serde(rename = "binary_field")]
pub binary_field: ByteArray,
}
impl MultipartRequest {
#[allow(clippy::new_without_default, clippy::too_many_arguments)]
pub fn new(string_field: String, binary_field: ByteArray) -> MultipartRequest {
MultipartRequest {
string_field,
optional_string_field: None,
object_field: None,
binary_field,
}
}
}
/// Converts the MultipartRequest value to the Query Parameters representation (style=form, explode=false)
/// specified in https://swagger.io/docs/specification/serialization/
/// Should be implemented in a serde serializer
impl std::fmt::Display for MultipartRequest {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let params: Vec<Option<String>> = vec![
Some("string_field".to_string()),
Some(self.string_field.to_string()),
self.optional_string_field
.as_ref()
.map(|optional_string_field| {
[
"optional_string_field".to_string(),
optional_string_field.to_string(),
]
.join(",")
}),
// Skipping object_field in query parameter serialization
// Skipping binary_field in query parameter serialization
// Skipping binary_field in query parameter serialization
];
write!(
f,
"{}",
params.into_iter().flatten().collect::<Vec<_>>().join(",")
)
}
}
/// Converts Query Parameters representation (style=form, explode=false) to a MultipartRequest value
/// as specified in https://swagger.io/docs/specification/serialization/
/// Should be implemented in a serde deserializer
impl std::str::FromStr for MultipartRequest {
type Err = String;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
/// An intermediate representation of the struct to use for parsing.
#[derive(Default)]
#[allow(dead_code)]
struct IntermediateRep {
pub string_field: Vec<String>,
pub optional_string_field: Vec<String>,
pub object_field: Vec<models::MultipartRequestObjectField>,
pub binary_field: Vec<ByteArray>,
}
let mut intermediate_rep = IntermediateRep::default();
// Parse into intermediate representation
let mut string_iter = s.split(',');
let mut key_result = string_iter.next();
while key_result.is_some() {
let val = match string_iter.next() {
Some(x) => x,
None => {
return std::result::Result::Err(
"Missing value while parsing MultipartRequest".to_string(),
)
}
};
if let Some(key) = key_result {
#[allow(clippy::match_single_binding)]
match key {
#[allow(clippy::redundant_clone)]
"string_field" => intermediate_rep.string_field.push(
<String as std::str::FromStr>::from_str(val).map_err(|x| x.to_string())?,
),
#[allow(clippy::redundant_clone)]
"optional_string_field" => intermediate_rep.optional_string_field.push(
<String as std::str::FromStr>::from_str(val).map_err(|x| x.to_string())?,
),
#[allow(clippy::redundant_clone)]
"object_field" => intermediate_rep.object_field.push(
<models::MultipartRequestObjectField as std::str::FromStr>::from_str(val)
.map_err(|x| x.to_string())?,
),
"binary_field" => return std::result::Result::Err(
"Parsing binary data in this style is not supported in MultipartRequest"
.to_string(),
),
_ => {
return std::result::Result::Err(
"Unexpected key while parsing MultipartRequest".to_string(),
)
}
}
}
// Get the next key
key_result = string_iter.next();
}
// Use the intermediate representation to return the struct
std::result::Result::Ok(MultipartRequest {
string_field: intermediate_rep
.string_field
.into_iter()
.next()
.ok_or_else(|| "string_field missing in MultipartRequest".to_string())?,
optional_string_field: intermediate_rep.optional_string_field.into_iter().next(),
object_field: intermediate_rep.object_field.into_iter().next(),
binary_field: intermediate_rep
.binary_field
.into_iter()
.next()
.ok_or_else(|| "binary_field missing in MultipartRequest".to_string())?,
})
}
}
// Methods for converting between header::IntoHeaderValue<MultipartRequest> and HeaderValue
#[cfg(feature = "server")]
impl std::convert::TryFrom<header::IntoHeaderValue<MultipartRequest>> for HeaderValue {
type Error = String;
fn try_from(
hdr_value: header::IntoHeaderValue<MultipartRequest>,
) -> std::result::Result<Self, Self::Error> {
let hdr_value = hdr_value.to_string();
match HeaderValue::from_str(&hdr_value) {
std::result::Result::Ok(value) => std::result::Result::Ok(value),
std::result::Result::Err(e) => std::result::Result::Err(format!(
"Invalid header value for MultipartRequest - value: {} is invalid {}",
hdr_value, e
)),
}
}
}
#[cfg(feature = "server")]
impl std::convert::TryFrom<HeaderValue> for header::IntoHeaderValue<MultipartRequest> {
type Error = String;
fn try_from(hdr_value: HeaderValue) -> std::result::Result<Self, Self::Error> {
match hdr_value.to_str() {
std::result::Result::Ok(value) => {
match <MultipartRequest as std::str::FromStr>::from_str(value) {
std::result::Result::Ok(value) => {
std::result::Result::Ok(header::IntoHeaderValue(value))
}
std::result::Result::Err(err) => std::result::Result::Err(format!(
"Unable to convert header value '{}' into MultipartRequest - {}",
value, err
)),
}
}
std::result::Result::Err(e) => std::result::Result::Err(format!(
"Unable to convert header: {:?} to string: {}",
hdr_value, e
)),
}
}
}
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, validator::Validate)]
#[cfg_attr(feature = "conversion", derive(frunk::LabelledGeneric))]
pub struct MultipartRequestObjectField {

View File

@ -530,7 +530,7 @@ impl<T> Nullable<T> {
}
}
impl<'a, T: Clone> Nullable<&'a T> {
impl<T: Clone> Nullable<&T> {
/// Maps an `Nullable<&T>` to an `Nullable<T>` by cloning the contents of the
/// Nullable.
///

View File

@ -1 +1 @@
7.9.0-SNAPSHOT
7.10.0-SNAPSHOT

View File

@ -12,7 +12,7 @@ server, you can easily generate a server stub.
To see how to make this your own, look here: [README]((https://openapi-generator.tech))
- API version: 1.0.7
- Generator version: 7.9.0-SNAPSHOT
- Generator version: 7.10.0-SNAPSHOT

View File

@ -570,7 +570,6 @@ impl std::ops::DerefMut for AnotherXmlInner {
}
/// An XML object
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, validator::Validate)]
#[cfg_attr(feature = "conversion", derive(frunk::LabelledGeneric))]
pub struct AnotherXmlObject {
@ -735,7 +734,6 @@ impl PartialEq for AnyOfGet202Response {
}
/// Test a model containing an anyOf of a hash map
/// Any of:
/// - String
/// - std::collections::HashMap<String, String>
@ -766,7 +764,6 @@ impl PartialEq for AnyOfHashMapObject {
}
/// Test a model containing an anyOf
/// Any of:
/// - String
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
@ -796,7 +793,6 @@ impl PartialEq for AnyOfObject {
}
/// Test containing an anyOf object
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, validator::Validate)]
#[cfg_attr(feature = "conversion", derive(frunk::LabelledGeneric))]
pub struct AnyOfProperty {
@ -952,7 +948,6 @@ impl std::convert::TryFrom<HeaderValue> for header::IntoHeaderValue<AnyOfPropert
}
/// An XML object
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, validator::Validate)]
#[cfg_attr(feature = "conversion", derive(frunk::LabelledGeneric))]
pub struct DuplicateXmlObject {
@ -1244,8 +1239,153 @@ impl std::ops::DerefMut for Error {
}
}
/// Test a model containing an anyOf that starts with a number
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, validator::Validate)]
#[cfg_attr(feature = "conversion", derive(frunk::LabelledGeneric))]
pub struct FormTestRequest {
#[serde(rename = "requiredArray")]
#[serde(skip_serializing_if = "Option::is_none")]
pub required_array: Option<Vec<String>>,
}
impl FormTestRequest {
#[allow(clippy::new_without_default, clippy::too_many_arguments)]
pub fn new() -> FormTestRequest {
FormTestRequest {
required_array: None,
}
}
}
/// Converts the FormTestRequest value to the Query Parameters representation (style=form, explode=false)
/// specified in https://swagger.io/docs/specification/serialization/
/// Should be implemented in a serde serializer
impl std::fmt::Display for FormTestRequest {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let params: Vec<Option<String>> =
vec![self.required_array.as_ref().map(|required_array| {
[
"requiredArray".to_string(),
required_array
.iter()
.map(|x| x.to_string())
.collect::<Vec<_>>()
.join(","),
]
.join(",")
})];
write!(
f,
"{}",
params.into_iter().flatten().collect::<Vec<_>>().join(",")
)
}
}
/// Converts Query Parameters representation (style=form, explode=false) to a FormTestRequest value
/// as specified in https://swagger.io/docs/specification/serialization/
/// Should be implemented in a serde deserializer
impl std::str::FromStr for FormTestRequest {
type Err = String;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
/// An intermediate representation of the struct to use for parsing.
#[derive(Default)]
#[allow(dead_code)]
struct IntermediateRep {
pub required_array: Vec<Vec<String>>,
}
let mut intermediate_rep = IntermediateRep::default();
// Parse into intermediate representation
let mut string_iter = s.split(',');
let mut key_result = string_iter.next();
while key_result.is_some() {
let val = match string_iter.next() {
Some(x) => x,
None => {
return std::result::Result::Err(
"Missing value while parsing FormTestRequest".to_string(),
)
}
};
if let Some(key) = key_result {
#[allow(clippy::match_single_binding)]
match key {
"requiredArray" => {
return std::result::Result::Err(
"Parsing a container in this style is not supported in FormTestRequest"
.to_string(),
)
}
_ => {
return std::result::Result::Err(
"Unexpected key while parsing FormTestRequest".to_string(),
)
}
}
}
// Get the next key
key_result = string_iter.next();
}
// Use the intermediate representation to return the struct
std::result::Result::Ok(FormTestRequest {
required_array: intermediate_rep.required_array.into_iter().next(),
})
}
}
// Methods for converting between header::IntoHeaderValue<FormTestRequest> and HeaderValue
#[cfg(feature = "server")]
impl std::convert::TryFrom<header::IntoHeaderValue<FormTestRequest>> for HeaderValue {
type Error = String;
fn try_from(
hdr_value: header::IntoHeaderValue<FormTestRequest>,
) -> std::result::Result<Self, Self::Error> {
let hdr_value = hdr_value.to_string();
match HeaderValue::from_str(&hdr_value) {
std::result::Result::Ok(value) => std::result::Result::Ok(value),
std::result::Result::Err(e) => std::result::Result::Err(format!(
"Invalid header value for FormTestRequest - value: {} is invalid {}",
hdr_value, e
)),
}
}
}
#[cfg(feature = "server")]
impl std::convert::TryFrom<HeaderValue> for header::IntoHeaderValue<FormTestRequest> {
type Error = String;
fn try_from(hdr_value: HeaderValue) -> std::result::Result<Self, Self::Error> {
match hdr_value.to_str() {
std::result::Result::Ok(value) => {
match <FormTestRequest as std::str::FromStr>::from_str(value) {
std::result::Result::Ok(value) => {
std::result::Result::Ok(header::IntoHeaderValue(value))
}
std::result::Result::Err(err) => std::result::Result::Err(format!(
"Unable to convert header value '{}' into FormTestRequest - {}",
value, err
)),
}
}
std::result::Result::Err(e) => std::result::Result::Err(format!(
"Unable to convert header: {:?} to string: {}",
hdr_value, e
)),
}
}
}
/// Test a model containing an anyOf that starts with a number
/// Any of:
/// - String
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
@ -3085,7 +3225,6 @@ impl std::ops::DerefMut for XmlInner {
}
/// An XML object
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, validator::Validate)]
#[cfg_attr(feature = "conversion", derive(frunk::LabelledGeneric))]
pub struct XmlObject {

View File

@ -530,7 +530,7 @@ impl<T> Nullable<T> {
}
}
impl<'a, T: Clone> Nullable<&'a T> {
impl<T: Clone> Nullable<&T> {
/// Maps an `Nullable<&T>` to an `Nullable<T>` by cloning the contents of the
/// Nullable.
///

View File

@ -1 +1 @@
7.9.0-SNAPSHOT
7.10.0-SNAPSHOT

View File

@ -12,7 +12,7 @@ server, you can easily generate a server stub.
To see how to make this your own, look here: [README]((https://openapi-generator.tech))
- API version: 0.0.1
- Generator version: 7.9.0-SNAPSHOT
- Generator version: 7.10.0-SNAPSHOT

View File

@ -530,7 +530,7 @@ impl<T> Nullable<T> {
}
}
impl<'a, T: Clone> Nullable<&'a T> {
impl<T: Clone> Nullable<&T> {
/// Maps an `Nullable<&T>` to an `Nullable<T>` by cloning the contents of the
/// Nullable.
///

View File

@ -12,7 +12,7 @@ server, you can easily generate a server stub.
To see how to make this your own, look here: [README]((https://openapi-generator.tech))
- API version: 1.0.0
- Generator version: 7.9.0-SNAPSHOT
- Generator version: 7.10.0-SNAPSHOT

View File

@ -1753,7 +1753,6 @@ impl std::convert::TryFrom<HeaderValue> for header::IntoHeaderValue<Category> {
}
/// Model for testing model with \"_class\" property
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, validator::Validate)]
#[cfg_attr(feature = "conversion", derive(frunk::LabelledGeneric))]
pub struct ClassModel {
@ -3695,7 +3694,6 @@ impl std::convert::TryFrom<HeaderValue>
}
/// Model for testing model name starting with number
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, validator::Validate)]
#[cfg_attr(feature = "conversion", derive(frunk::LabelledGeneric))]
pub struct Model200Response {
@ -3848,7 +3846,6 @@ impl std::convert::TryFrom<HeaderValue> for header::IntoHeaderValue<Model200Resp
}
/// Model for testing model name same as property name
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, validator::Validate)]
#[cfg_attr(feature = "conversion", derive(frunk::LabelledGeneric))]
pub struct Name {
@ -5241,7 +5238,6 @@ impl std::convert::TryFrom<HeaderValue> for header::IntoHeaderValue<ReadOnlyFirs
}
/// Model for testing reserved words
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, validator::Validate)]
#[cfg_attr(feature = "conversion", derive(frunk::LabelledGeneric))]
pub struct Return {

View File

@ -530,7 +530,7 @@ impl<T> Nullable<T> {
}
}
impl<'a, T: Clone> Nullable<&'a T> {
impl<T: Clone> Nullable<&T> {
/// Maps an `Nullable<&T>` to an `Nullable<T>` by cloning the contents of the
/// Nullable.
///

View File

@ -1 +1 @@
7.9.0-SNAPSHOT
7.10.0-SNAPSHOT

View File

@ -12,7 +12,7 @@ server, you can easily generate a server stub.
To see how to make this your own, look here: [README]((https://openapi-generator.tech))
- API version: 1.0.0
- Generator version: 7.9.0-SNAPSHOT
- Generator version: 7.10.0-SNAPSHOT

View File

@ -113,7 +113,6 @@ pub struct UpdateUserPathParams {
}
/// Describes the result of uploading an image resource
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, validator::Validate)]
#[cfg_attr(feature = "conversion", derive(frunk::LabelledGeneric))]
pub struct ApiResponse {
@ -280,7 +279,6 @@ impl std::convert::TryFrom<HeaderValue> for header::IntoHeaderValue<ApiResponse>
}
/// A category for a pet
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, validator::Validate)]
#[cfg_attr(feature = "conversion", derive(frunk::LabelledGeneric))]
pub struct Category {
@ -440,7 +438,6 @@ impl std::convert::TryFrom<HeaderValue> for header::IntoHeaderValue<Category> {
}
/// An order for a pets from the pet store
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, validator::Validate)]
#[cfg_attr(feature = "conversion", derive(frunk::LabelledGeneric))]
pub struct Order {
@ -648,7 +645,6 @@ impl std::convert::TryFrom<HeaderValue> for header::IntoHeaderValue<Order> {
}
/// A pet for sale in the pet store
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, validator::Validate)]
#[cfg_attr(feature = "conversion", derive(frunk::LabelledGeneric))]
pub struct Pet {
@ -862,7 +858,6 @@ impl std::convert::TryFrom<HeaderValue> for header::IntoHeaderValue<Pet> {
}
/// A tag for a pet
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, validator::Validate)]
#[cfg_attr(feature = "conversion", derive(frunk::LabelledGeneric))]
pub struct Tag {
@ -1320,7 +1315,6 @@ impl std::convert::TryFrom<HeaderValue> for header::IntoHeaderValue<UploadFileRe
}
/// A User who is purchasing from the pet store
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, validator::Validate)]
#[cfg_attr(feature = "conversion", derive(frunk::LabelledGeneric))]
pub struct User {

View File

@ -530,7 +530,7 @@ impl<T> Nullable<T> {
}
}
impl<'a, T: Clone> Nullable<&'a T> {
impl<T: Clone> Nullable<&T> {
/// Maps an `Nullable<&T>` to an `Nullable<T>` by cloning the contents of the
/// Nullable.
///

View File

@ -1 +1 @@
7.9.0-SNAPSHOT
7.10.0-SNAPSHOT

View File

@ -12,7 +12,7 @@ server, you can easily generate a server stub.
To see how to make this your own, look here: [README]((https://openapi-generator.tech))
- API version: 1.0
- Generator version: 7.9.0-SNAPSHOT
- Generator version: 7.10.0-SNAPSHOT

View File

@ -530,7 +530,7 @@ impl<T> Nullable<T> {
}
}
impl<'a, T: Clone> Nullable<&'a T> {
impl<T: Clone> Nullable<&T> {
/// Maps an `Nullable<&T>` to an `Nullable<T>` by cloning the contents of the
/// Nullable.
///

View File

@ -12,7 +12,7 @@ server, you can easily generate a server stub.
To see how to make this your own, look here: [README]((https://openapi-generator.tech))
- API version: 0.1.9
- Generator version: 7.9.0-SNAPSHOT
- Generator version: 7.10.0-SNAPSHOT

View File

@ -530,7 +530,7 @@ impl<T> Nullable<T> {
}
}
impl<'a, T: Clone> Nullable<&'a T> {
impl<T: Clone> Nullable<&T> {
/// Maps an `Nullable<&T>` to an `Nullable<T>` by cloning the contents of the
/// Nullable.
///

View File

@ -1 +1 @@
7.9.0-SNAPSHOT
7.10.0-SNAPSHOT

View File

@ -12,7 +12,7 @@ server, you can easily generate a server stub.
To see how to make this your own, look here: [README]((https://openapi-generator.tech))
- API version: 2.3.4
- Generator version: 7.9.0-SNAPSHOT
- Generator version: 7.10.0-SNAPSHOT

View File

@ -672,7 +672,6 @@ impl std::convert::TryFrom<HeaderValue> for header::IntoHeaderValue<DummyPutRequ
}
/// structured response
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, validator::Validate)]
#[cfg_attr(feature = "conversion", derive(frunk::LabelledGeneric))]
pub struct GetYamlResponse {
@ -809,7 +808,6 @@ impl std::convert::TryFrom<HeaderValue> for header::IntoHeaderValue<GetYamlRespo
}
/// An object of objects
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, validator::Validate)]
#[cfg_attr(feature = "conversion", derive(frunk::LabelledGeneric))]
pub struct ObjectOfObjects {

View File

@ -530,7 +530,7 @@ impl<T> Nullable<T> {
}
}
impl<'a, T: Clone> Nullable<&'a T> {
impl<T: Clone> Nullable<&T> {
/// Maps an `Nullable<&T>` to an `Nullable<T>` by cloning the contents of the
/// Nullable.
///

View File

@ -12,7 +12,7 @@ server, you can easily generate a server stub.
To see how to make this your own, look here: [README]((https://openapi-generator.tech))
- API version: 0.0.1
- Generator version: 7.9.0-SNAPSHOT
- Generator version: 7.10.0-SNAPSHOT

View File

@ -530,7 +530,7 @@ impl<T> Nullable<T> {
}
}
impl<'a, T: Clone> Nullable<&'a T> {
impl<T: Clone> Nullable<&T> {
/// Maps an `Nullable<&T>` to an `Nullable<T>` by cloning the contents of the
/// Nullable.
///