Struct atom_syndication::Person [−][src]
Expand description
Represents a person in an Atom feed
Fields
name: StringA human-readable name for the person.
email: Option<String>An email address for the person.
uri: Option<String>A Web page for the person.
Implementations
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"));
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Personimpl UnwindSafe for PersonBlanket Implementations
Mutably borrows from an owned value. Read more