XMLTVProgram

Struct XMLTVProgram 

Source
pub struct XMLTVProgram { /* private fields */ }
Expand description

Structure representing a XMLTV program element.

Two fields are mandatory :

  • start
  • channel

Implementations§

Source§

impl XMLTVProgram

Source

pub fn new(channel: String, start: String, title: XMLTVProgramTitle) -> Self

Source

pub fn set_start(&mut self, start: String)

Source

pub fn add_stop_date(&mut self, stop: String)

Source

pub fn add_pdc_start(&mut self, pdc_start: String)

Source

pub fn add_vps_start(&mut self, vps_start: String)

Source

pub fn add_showview(&mut self, showview: String)

Source

pub fn add_videoplus(&mut self, videoplus: String)

Source

pub fn set_channel(&mut self, channel: String)

Source

pub fn set_clumpidx(&mut self, clumpidx: String)

Source

pub fn add_title(&mut self, title: XMLTVProgramTitle)

Source

pub fn add_sub_title(&mut self, sub_title: XMLTVProgramSubTitle)

Source

pub fn add_desc(&mut self, desc: XMLTVProgramDescription)

Source

pub fn add_credits(&mut self, credits: XMLTVProgramCredits)

Source

pub fn add_date(&mut self, date: String)

Source

pub fn add_category(&mut self, category: XMLTVProgramCategory)

Source

pub fn add_keyword(&mut self, keyword: XMLTVProgramKeyword)

Source

pub fn set_language(&mut self, language: XMLTVProgramLanguage)

Source

pub fn set_orig_language(&mut self, orig_language: XMLTVProgramOrigLanguage)

Source

pub fn set_length(&mut self, length: XMLTVProgramLength)

Source

pub fn add_icon(&mut self, icon: XMLTVProgramIcon)

Source

pub fn to_xmlelement(self) -> Result<XMLElement>

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> 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, 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.