Struct rss::Source [] [src]

pub struct Source { /* fields omitted */ }

Represents the source of an RSS item.

Methods

impl Source
[src]

[src]

Return the URL of this source.

Examples

use rss::Source;

let mut source = Source::default();
source.set_url("http://example.com");
assert_eq!(source.url(), "http://example.com");

[src]

Set the URL of this source.

Examples

use rss::Source;

let mut source = Source::default();
source.set_url("http://example.com");

[src]

Return the title of this source.

Examples

use rss::Source;

let mut source = Source::default();
source.set_title("Source Title".to_string());
assert_eq!(source.title(), Some("Source Title"));

[src]

Set the title of this source.

Examples

use rss::Source;

let mut source = Source::default();
source.set_title("Source Title".to_string());

Trait Implementations

impl Debug for Source
[src]

[src]

Formats the value using the given formatter.

impl Default for Source
[src]

[src]

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

impl Clone for Source
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Source
[src]

[src]

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

[src]

This method tests for !=.