cart_sync/src/models/import_log.rs
2023-02-14 15:44:56 +01:00

53 lines
1.6 KiB
Rust

/*
* 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 ImportLog {
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<i32>,
#[serde(rename = "type")]
pub r#type: String,
#[serde(rename = "msg", skip_serializing_if = "Option::is_none")]
pub msg: Option<String>,
#[serde(rename = "running", skip_serializing_if = "Option::is_none")]
pub running: Option<bool>,
#[serde(rename = "keyword", skip_serializing_if = "Option::is_none")]
pub keyword: Option<Box<crate::models::ImportLogKeyword>>,
#[serde(rename = "total_recipes", skip_serializing_if = "Option::is_none")]
pub total_recipes: Option<i32>,
#[serde(rename = "imported_recipes", skip_serializing_if = "Option::is_none")]
pub imported_recipes: Option<i32>,
#[serde(rename = "created_by", skip_serializing_if = "Option::is_none")]
pub created_by: Option<String>,
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
pub created_at: Option<String>,
}
impl ImportLog {
pub fn new(r#type: String) -> ImportLog {
ImportLog {
id: None,
r#type,
msg: None,
running: None,
keyword: None,
total_recipes: None,
imported_recipes: None,
created_by: None,
created_at: None,
}
}
}