pub struct Show {
pub id: MediaId,
pub title: String,
pub year: Option<u16>,
pub summary: Option<String>,
pub content_rating: Option<String>,
pub season_count: Option<u32>,
pub genres: Vec<String>,
pub last_aired: Option<CalendarDate>,
pub cast: Vec<CastMember>,
pub merge: MergeFacts,
pub artwork: Vec<Artwork>,
}Fields§
§id: MediaId§title: String§year: Option<u16>§summary: Option<String>§content_rating: Option<String>The age rating as the catalog has it (“R”, “TV-MA”), shown as
is; None when it has none.
season_count: Option<u32>How many seasons it has, specials counted as one, as the catalog
counts them; None when it does not say.
genres: Vec<String>Its genres, by the catalog’s names and in its order. A listing may hold only the first few: Plex gives two in listings and search, and all of them on the show itself.
last_aired: Option<CalendarDate>The day its latest episode in the library first aired, for the
end of “2015–2018”. Only the show’s own item has it; None in
listings and search, and where no episode has a date.
A catalog that does not know whether a show has ended (Plex does not) still sets it on a running show: a client that shows a run from it may show one that has not ended.
This and cast are read as None and no one when left out, as
Movie::release_date is.
cast: Vec<CastMember>Who is in it and who directed it (see CastMember).
merge: MergeFactsWhat an app merging several servers’ libraries sorts by and
matches copies by (MergeFacts). Left out of the wire when it
holds nothing, and read as nothing from an older server.
artwork: Vec<Artwork>Implementations§
Source§impl Show
impl Show
Sourcepub fn year_range(&self, today: CalendarDate) -> Option<YearsAired>
pub fn year_range(&self, today: CalendarDate) -> Option<YearsAired>
The years it ran, from its first year and the day its latest
episode aired: one year when that was the same year, running when
it aired in the twelve months up to today, else both years. With
no first year, the latest episode’s year alone; None with
neither.
Sourcepub fn years_label(&self, today: CalendarDate) -> Option<String>
pub fn years_label(&self, today: CalendarDate) -> Option<String>
Show::year_range as text: “2019”, “2019–”, “2019–2023”.