Struct rss::Channel 
                   
                       [−]
                   
               [src]
pub struct Channel {
    pub title: String,
    pub link: String,
    pub description: String,
    pub language: Option<String>,
    pub copyright: Option<String>,
    pub managing_editor: Option<String>,
    pub webmaster: Option<String>,
    pub pub_date: Option<String>,
    pub last_build_date: Option<String>,
    pub categories: Vec<Category>,
    pub generator: Option<String>,
    pub docs: Option<String>,
    pub cloud: Option<Cloud>,
    pub ttl: Option<String>,
    pub image: Option<Image>,
    pub text_input: Option<TextInput>,
    pub skip_hours: Vec<String>,
    pub skip_days: Vec<String>,
    pub items: Vec<Item>,
    pub extensions: ExtensionMap,
    pub itunes_ext: Option<ITunesChannelExtension>,
    pub dublin_core_ext: Option<DublinCoreExtension>,
}A representation of the <channel> element.
Fields
title: String
                           The name of the channel.
link: String
                           The URL for the website corresponding to the channel.
description: String
                           A description of the channel.
language: Option<String>
                           The language of the channel.
copyright: Option<String>
                           The copyright notice for the channel.
managing_editor: Option<String>
                           The email address for the managing editor.
webmaster: Option<String>
                           The email address for the webmaster.
pub_date: Option<String>
                           The publication date for the content of the channel.
last_build_date: Option<String>
                           The date that the contents of the channel last changed.
categories: Vec<Category>
                           The categories the channel belongs to.
generator: Option<String>
                           The program used to generate the channel.
docs: Option<String>
                           A URL that points to the documentation for the RSS format.
cloud: Option<Cloud>
                           The cloud to register with to be notified of updates to the channel.
ttl: Option<String>
                           The number of minutes the channel can be cached before refreshing.
image: Option<Image>
                           An image that can be displayed with the channel.
text_input: Option<TextInput>
                           A text input box that can be displayed with the channel.
skip_hours: Vec<String>
                           A hint to tell the aggregator which hours it can skip.
skip_days: Vec<String>
                           A hint to tell the aggregator which days it can skip.
items: Vec<Item>
                           The items in the channel.
extensions: ExtensionMap
                           The extensions for the channel.
itunes_ext: Option<ITunesChannelExtension>
                           The iTunes extension for the channel.
dublin_core_ext: Option<DublinCoreExtension>
                           The Dublin Core extension for the channel.
Methods
impl Channel[src]
fn read_from<R: BufRead>(reader: R) -> Result<Channel, Error>
Attempt to read the RSS channel from the speficied reader.
Example
let reader: BufRead = ...; let channel = Channel::read_from(reader).unwrap();
Trait Implementations
impl PartialEq for Channel[src]
fn eq(&self, __arg_0: &Channel) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Channel) -> bool
This method tests for !=.
impl Clone for Channel[src]
fn clone(&self) -> Channel
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more