Skip to main content

EpgProgramme

Struct EpgProgramme 

Source
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: String

Channel 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: bool

Broadcast 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

Source§

fn clone(&self) -> EpgProgramme

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EpgProgramme

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EpgProgramme

Source§

fn default() -> EpgProgramme

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for EpgProgramme

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for EpgProgramme

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,