Struct atom_syndication::Person [] [src]

pub struct Person { /* fields omitted */ }

Represents a person in an Atom feed

Methods

impl Person
[src]

Return the name of this person.

Examples

use atom_syndication::Person;

let mut person = Person::default();
person.set_name("John Doe");
assert_eq!(person.name(), "John Doe");

Return the name of this person.

Examples

use atom_syndication::Person;

let mut person = Person::default();
person.set_name("John Doe");

Return the email address for this person.

Examples

use atom_syndication::Person;

let mut person = Person::default();
person.set_email("johndoe@example.com".to_string());
assert_eq!(person.email(), Some("johndoe@example.com"));

Set the email address for this person.

Examples

use atom_syndication::Person;

let mut person = Person::default();
person.set_email("johndoe@example.com".to_string());

Return the Web page for this person.

Examples

use atom_syndication::Person;

let mut person = Person::default();
person.set_uri("http://example.com".to_string());
assert_eq!(person.uri(), Some("http://example.com"));

Set the Web page for this person.

Examples

use atom_syndication::Person;

let mut person = Person::default();
person.set_uri("http://example.com".to_string());

Trait Implementations

impl Debug for Person
[src]

Formats the value using the given formatter.

impl Default for Person
[src]

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

impl Clone for Person
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Person
[src]

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

This method tests for !=.