/*
* Chess
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0
*
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Rating {
#[serde(rename = "rating")]
pub rating: i32,
#[serde(rename = "date")]
#[serde(with = "chrono::serde::ts_seconds")]
pub date: chrono::DateTime<chrono::Utc>,
}
impl Rating {
pub fn new(rating: i32, date: chrono::DateTime<chrono::Utc>) -> Rating {
Rating {
rating,
date,
}
}
}