Struct atom_syndication::Person
[−]
[src]
pub struct Person { /* fields omitted */ }
Represents a person in an Atom feed
Methods
impl Person
[src]
fn name(&self) -> &str
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");
fn set_name<V>(&mut self, name: V) where
V: Into<String>,
V: Into<String>,
Return the name of this person.
Examples
use atom_syndication::Person; let mut person = Person::default(); person.set_name("John Doe");
fn email(&self) -> Option<&str>
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"));
fn set_email<V>(&mut self, email: V) where
V: Into<Option<String>>,
V: Into<Option<String>>,
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());
fn uri(&self) -> Option<&str>
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"));
fn set_uri<V>(&mut self, uri: V) where
V: Into<Option<String>>,
V: Into<Option<String>>,
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]
impl Default for Person
[src]
impl Clone for Person
[src]
fn clone(&self) -> Person
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more