pub struct XMLTV { /* private fields */ }Expand description
Root structure representing a XMLTV document.
Has to be feed with XMLTVChannel and XMLTVProgram elements.
Implementations§
Source§impl XMLTV
impl XMLTV
pub fn new() -> Self
pub fn set_date(&mut self, date: String)
pub fn add_source_info_url(&mut self, source_info_url: String)
pub fn add_source_info_name(&mut self, source_info_name: String)
pub fn add_source_data_url(&mut self, source_data_url: String)
pub fn add_generator_info_name(&mut self, generator_info_name: String)
pub fn add_generator_info_url(&mut self, generator_info_url: String)
pub fn add_channel(&mut self, channel: XMLTVChannel) -> Result<()>
pub fn add_program(&mut self, program: XMLTVProgram) -> Result<()>
pub fn render<W: Write>(self, writer: &mut W) -> Result<()>
pub fn build<W: Write>(self, writer: &mut W) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XMLTV
impl RefUnwindSafe for XMLTV
impl Send for XMLTV
impl Sync for XMLTV
impl Unpin for XMLTV
impl UnwindSafe for XMLTV
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