pub struct HomeScreen {
pub continue_watching: Vec<Item>,
pub next_up: Vec<Item>,
pub recently_added: Vec<Item>,
pub unavailable: Vec<MediaId>,
pub servers: Vec<ServerRow>,
}Expand description
Rows for a home screen. Every item carries the user’s playback state.
Fields§
§continue_watching: Vec<Item>Started and not finished, most recent first.
next_up: Vec<Item>For each recently watched show, its next unwatched episode.
recently_added: Vec<Item>Experimental (federation): the items of these rows that
are no longer available: their paired server unpaired, or stopped
sharing their library. Shown as such, and not played. Only to a
client that named the feature, as every fed: id is; left out when
empty, as experimental fields are.
servers: Vec<ServerRow>Experimental (federation): each paired server’s own row,
what it shared lately, by the server’s name. A row the user turned
off (SetServerRow) is listed with no items, for the setting. Left
out when empty, as experimental fields are.
Implementations§
Source§impl HomeScreen
impl HomeScreen
Sourcepub fn hero(&self) -> Option<&Item>
pub fn hero(&self) -> Option<&Item>
The item Home shows large: the first continued, else the newest added.
Sourcepub fn up_next_merged(&self) -> Vec<Item>
pub fn up_next_merged(&self) -> Vec<Item>
Continue watching, then Up next, as one row: each show once (its first episode listed, the one continued before one up next), each other item once.
Sourcepub fn featured(&self, now: i64, limits: FeaturedLimits) -> Vec<Featured>
pub fn featured(&self, now: i64, limits: FeaturedLimits) -> Vec<Featured>
What a TV’s Top Shelf or Watch Next shows at now (Unix
seconds): Continue watching viewed lately, then Up next of shows
not already continued, then Recently added, films and shows only,
each show once (an episode or a season stands for its show).