radarr_api_rs/models/
media_cover.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 MediaCover {
16    #[serde(rename = "coverType", skip_serializing_if = "Option::is_none")]
17    pub cover_type: Option<crate::models::MediaCoverTypes>,
18    #[serde(rename = "url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19    pub url: Option<Option<String>>,
20    #[serde(rename = "remoteUrl", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21    pub remote_url: Option<Option<String>>,
22}
23
24impl MediaCover {
25    pub fn new() -> MediaCover {
26        MediaCover {
27            cover_type: None,
28            url: None,
29            remote_url: None,
30        }
31    }
32}
33
34