#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct DownloadableLibrary {
#[serde(rename = "download_url")]
pub download_url: String,
#[serde(rename = "bytes")]
pub bytes: i32,
#[serde(rename = "speaker")]
pub speaker: Box<crate::models::Speaker>,
#[serde(rename = "speaker_info")]
pub speaker_info: Box<crate::models::SpeakerInfo>,
}
impl DownloadableLibrary {
pub fn new(
download_url: String,
bytes: i32,
speaker: crate::models::Speaker,
speaker_info: crate::models::SpeakerInfo,
) -> DownloadableLibrary {
DownloadableLibrary {
download_url,
bytes,
speaker: Box::new(speaker),
speaker_info: Box::new(speaker_info),
}
}
}