api models

This commit is contained in:
2023-02-14 15:44:56 +01:00
parent b007fb36c7
commit bfcbe1ffa5
79 changed files with 3854 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
/*
* Django Recipes
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.4.5
*
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct RecipeStepsInnerFile {
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<i32>,
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "file_download", skip_serializing_if = "Option::is_none")]
pub file_download: Option<String>,
#[serde(rename = "preview", skip_serializing_if = "Option::is_none")]
pub preview: Option<String>,
}
impl RecipeStepsInnerFile {
pub fn new(name: String) -> RecipeStepsInnerFile {
RecipeStepsInnerFile {
id: None,
name,
file_download: None,
preview: None,
}
}
}