#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct PodcastEpisodeIndex {
#[serde(rename = "type_of")]
pub type_of: String,
#[serde(rename = "id")]
pub id: i32,
#[serde(rename = "class_name")]
pub class_name: String,
#[serde(rename = "path")]
pub path: String,
#[serde(rename = "title")]
pub title: String,
#[serde(rename = "image_url")]
pub image_url: String,
#[serde(rename = "podcast")]
pub podcast: Box<crate::models::SharedPodcast>,
}
impl PodcastEpisodeIndex {
pub fn new(
type_of: String,
id: i32,
class_name: String,
path: String,
title: String,
image_url: String,
podcast: crate::models::SharedPodcast,
) -> PodcastEpisodeIndex {
PodcastEpisodeIndex {
type_of,
id,
class_name,
path,
title,
image_url,
podcast: Box::new(podcast),
}
}
}