Struct atom_syndication::Source [] [src]

pub struct Source { /* fields omitted */ }

Represents the source of an Atom entry

Methods

impl Source
[src]

Return the title of the source feed.

Examples

use atom_syndication::Source;

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

Set the title of the source feed.

Examples

use atom_syndication::Source;

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

Return the unique URI of the source feed.

Examples

use atom_syndication::Source;

let mut source = Source::default();
source.set_id("urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6");
assert_eq!(source.id(), "urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6");

Set the unique URI of the source feed.

Examples

use atom_syndication::Source;

let mut source = Source::default();
source.set_id("urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6");

Return the last time that the source feed was modified.

Examples

use atom_syndication::Source;

let mut source = Source::default();
source.set_updated("2017-06-03T15:15:44-05:00");
assert_eq!(source.updated(), "2017-06-03T15:15:44-05:00");

Set the last time that the source feed was modified.

Examples

use atom_syndication::Source;

let mut source = Source::default();
source.set_updated("2017-06-03T15:15:44-05:00");

Return the authors of the source feed.

Examples

use atom_syndication::{Source, Person};

let mut source = Source::default();
source.set_authors(vec![Person::default()]);
assert_eq!(source.authors().len(), 1);

Set the authors of the source feed.

Examples

use atom_syndication::{Source, Person};

let mut source = Source::default();
source.set_authors(vec![Person::default()]);

Return the categories the source feed belongs to.

Examples

use atom_syndication::{Source, Category};

let mut source = Source::default();
source.set_categories(vec![Category::default()]);
assert_eq!(source.categories().len(), 1);

Set the categories the source feed belongs to.

Examples

use atom_syndication::{Source, Category};

let mut source = Source::default();
source.set_categories(vec![Category::default()]);

Return the contributors to the source feed.

Examples

use atom_syndication::{Source, Person};

let mut source = Source::default();
source.set_contributors(vec![Person::default()]);
assert_eq!(source.contributors().len(), 1);

Set the contributors to the source feed.

Examples

use atom_syndication::{Source, Person};

let mut source = Source::default();
source.set_contributors(vec![Person::default()]);

Return the name of the software used to generate the source feed.

Examples

use atom_syndication::{Source, Generator};

let mut source = Source::default();
source.set_generator(Generator::default());
assert!(source.generator().is_some());

Set the name of the software used to generate the source feed.

Examples

use atom_syndication::{Source, Generator};

let mut source = Source::default();
source.set_generator(Generator::default());

Return the icon for the source feed.

Examples

use atom_syndication::Source;

let mut source = Source::default();
source.set_icon("http://example.com/icon.png".to_string());
assert_eq!(source.icon(), Some("http://example.com/icon.png"));

Set the icon for the source feed.

Examples

use atom_syndication::Source;

let mut source = Source::default();
source.set_icon("http://example.com/icon.png".to_string());

Return the Web pages related to the source feed.

Examples

use atom_syndication::{Source, Link};

let mut source = Source::default();
source.set_links(vec![Link::default()]);
assert_eq!(source.links().len(), 1);

Set the Web pages related to the source feed.

Examples

use atom_syndication::{Source, Link};

let mut source = Source::default();
source.set_links(vec![Link::default()]);

Return the logo for the source feed.

Examples

use atom_syndication::Source;

let mut source = Source::default();
source.set_logo("http://example.com/logo.png".to_string());
assert_eq!(source.logo(), Some("http://example.com/logo.png"));

Set the logo for the source feed.

Examples

use atom_syndication::Source;

let mut source = Source::default();
source.set_logo("http://example.com/logo.png".to_string());

Return the information about the rights held in and over the source feed.

Examples

use atom_syndication::Source;

let mut source = Source::default();
source.set_rights("© 2017 John Doe".to_string());
assert_eq!(source.rights(), Some("© 2017 John Doe"));

Set the information about the rights held in and over the source feed.

Examples

use atom_syndication::Source;

let mut source = Source::default();
source.set_rights("© 2017 John Doe".to_string());

Return the description or subtitle of the source feed.

Examples

use atom_syndication::Source;

let mut source = Source::default();
source.set_subtitle("Feed subtitle".to_string());
assert_eq!(source.subtitle(), Some("Feed subtitle"));

Set the description or subtitle of the source feed.

Examples

use atom_syndication::Source;

let mut source = Source::default();
source.set_subtitle("Feed subtitle".to_string());

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 !=.