pub struct EpgProgramme {Show 24 fields
pub channel: String,
pub start: Option<i64>,
pub stop: Option<i64>,
pub title: SmallVec<[EpgStringWithLang; 1]>,
pub sub_title: SmallVec<[EpgStringWithLang; 1]>,
pub desc: SmallVec<[EpgStringWithLang; 1]>,
pub category: SmallVec<[EpgStringWithLang; 2]>,
pub credits: Option<EpgCredits>,
pub date: Option<String>,
pub length: Option<u32>,
pub episode_num: SmallVec<[EpgEpisodeNumber; 1]>,
pub image: SmallVec<[EpgImage; 1]>,
pub icon: Option<EpgIcon>,
pub rating: SmallVec<[EpgRating; 1]>,
pub star_rating: SmallVec<[EpgRating; 1]>,
pub is_new: bool,
pub is_premiere: bool,
pub is_rerun: bool,
pub is_last_chance: bool,
pub keyword: SmallVec<[EpgStringWithLang; 2]>,
pub orig_language: Option<EpgStringWithLang>,
pub video: Option<EpgVideo>,
pub audio: SmallVec<[EpgAudio; 1]>,
pub review: SmallVec<[EpgReview; 1]>,
}Expand description
A single EPG programme entry.
Fields§
§channel: StringChannel ID this programme belongs to (XMLTV channel@id).
start: Option<i64>Programme start time (UTC timestamp).
stop: Option<i64>Programme stop time (UTC timestamp).
title: SmallVec<[EpgStringWithLang; 1]>Programme title(s), potentially multilingual.
sub_title: SmallVec<[EpgStringWithLang; 1]>Subtitle(s).
desc: SmallVec<[EpgStringWithLang; 1]>Description(s).
category: SmallVec<[EpgStringWithLang; 2]>Category / genre tags.
credits: Option<EpgCredits>Credits (directors, actors, writers, etc.).
date: Option<String>Original air date.
length: Option<u32>Programme length in minutes.
episode_num: SmallVec<[EpgEpisodeNumber; 1]>Episode numbering (xmltv_ns, onscreen, etc.).
image: SmallVec<[EpgImage; 1]>Programme images (poster, backdrop, still).
icon: Option<EpgIcon>Programme icon.
rating: SmallVec<[EpgRating; 1]>Content ratings.
star_rating: SmallVec<[EpgRating; 1]>Star ratings (critic scores).
is_new: boolBroadcast flags.
is_premiere: bool§is_rerun: bool§is_last_chance: bool§keyword: SmallVec<[EpgStringWithLang; 2]>Keyword(s) for the programme.
orig_language: Option<EpgStringWithLang>Original language of the programme.
video: Option<EpgVideo>Video properties (aspect ratio, colour, quality).
audio: SmallVec<[EpgAudio; 1]>Audio properties (stereo mode, presence).
review: SmallVec<[EpgReview; 1]>Reviews / critiques.
Trait Implementations§
Source§impl Clone for EpgProgramme
impl Clone for EpgProgramme
Source§fn clone(&self) -> EpgProgramme
fn clone(&self) -> EpgProgramme
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EpgProgramme
impl Debug for EpgProgramme
Source§impl Default for EpgProgramme
impl Default for EpgProgramme
Source§fn default() -> EpgProgramme
fn default() -> EpgProgramme
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EpgProgramme
impl<'de> Deserialize<'de> for EpgProgramme
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EpgProgramme
impl RefUnwindSafe for EpgProgramme
impl Send for EpgProgramme
impl Sync for EpgProgramme
impl Unpin for EpgProgramme
impl UnsafeUnpin for EpgProgramme
impl UnwindSafe for EpgProgramme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more