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

The name of the channel.

The URL for the website corresponding to the channel.

A description of the channel.

The language of the channel.

The copyright notice for the channel.

The email address for the managing editor.

The email address for the webmaster.

The publication date for the content of the channel.

The date that the contents of the channel last changed.

The categories the channel belongs to.

The program used to generate the channel.

A URL that points to the documentation for the RSS format.

The cloud to register with to be notified of updates to the channel.

The number of minutes the channel can be cached before refreshing.

An image that can be displayed with the channel.

A text input box that can be displayed with the channel.

A hint to tell the aggregator which hours it can skip.

A hint to tell the aggregator which days it can skip.

The items in the channel.

The extensions for the channel.

The iTunes extension for the channel.

The Dublin Core extension for the channel.

Methods

impl Channel
[src]

Attempt to read the RSS channel from the speficied reader.

Example

let reader: BufRead = ...;
let channel = Channel::read_from(reader).unwrap();

Trait Implementations

impl Debug for Channel
[src]

Formats the value using the given formatter.

impl Default for Channel
[src]

Returns the "default value" for a type. Read more

impl Clone for Channel
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Channel
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl FromStr for Channel
[src]

The associated error which can be returned from parsing.

Attempt to read the RSS channel from the speficied str.