radarr_api_rs/models/
rating_child.rs

1/*
2 * Radarr
3 *
4 * Radarr API docs
5 *
6 * The version of the OpenAPI document: 3.0.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct RatingChild {
16    #[serde(rename = "votes", skip_serializing_if = "Option::is_none")]
17    pub votes: Option<i32>,
18    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
19    pub value: Option<f64>,
20    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
21    pub r#type: Option<crate::models::RatingType>,
22}
23
24impl RatingChild {
25    pub fn new() -> RatingChild {
26        RatingChild {
27            votes: None,
28            value: None,
29            r#type: None,
30        }
31    }
32}
33
34