Struct rss::Source [] [src]

pub struct Source { /* fields omitted */ }

A representation of the <source> element.

Methods

impl Source
[src]

Return the URL for this Source.

Examples

use rss::SourceBuilder;

let url = "http://www.tomalak.org/links2.xml";

let source = SourceBuilder::default()
    .url(url)
    .finalize();

assert_eq!(url, source.url());

Return the title of this Source.

Examples

use rss::SourceBuilder;

let title = "Tomalak's Realm";

let source = SourceBuilder::default()
    .title(title.to_string())
    .finalize();

assert_eq!(Some(title), source.title());

Trait Implementations

impl Debug for Source
[src]

Formats the value using the given formatter.

impl Default for Source
[src]

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

impl Clone for Source
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Source
[src]

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

This method tests for !=.