[−][src]Struct rss::extension::itunes::ITunesOwner
The contact information for the owner of an iTunes podcast.
Fields
name: Option<String>
The name of the owner.
email: Option<String>
The email of the owner.
Implementations
impl ITunesOwner
[src]
pub fn name(&self) -> Option<&str>
[src]
Return the name of this person.
Examples
use rss::extension::itunes::ITunesOwner; let mut owner = ITunesOwner::default(); owner.set_name("John Doe".to_string()); assert_eq!(owner.name(), Some("John Doe"));
pub fn set_name<V>(&mut self, name: V) where
V: Into<Option<String>>,
[src]
V: Into<Option<String>>,
Set the name of this person.
Examples
use rss::extension::itunes::ITunesOwner; let mut owner = ITunesOwner::default(); owner.set_name("John Doe".to_string());
pub fn email(&self) -> Option<&str>
[src]
Return the email of this person.
Examples
use rss::extension::itunes::ITunesOwner; let mut owner = ITunesOwner::default(); owner.set_email("johndoe@example.com".to_string()); assert_eq!(owner.email(), Some("johndoe@example.com"));
pub fn set_email<V>(&mut self, email: V) where
V: Into<Option<String>>,
[src]
V: Into<Option<String>>,
Set the email of this person.
Examples
use rss::extension::itunes::ITunesOwner; let mut owner = ITunesOwner::default(); owner.set_email("johndoe@example.com".to_string());
Trait Implementations
impl Clone for ITunesOwner
[src]
pub fn clone(&self) -> ITunesOwner
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ITunesOwner
[src]
impl Default for ITunesOwner
[src]
pub fn default() -> ITunesOwner
[src]
impl PartialEq<ITunesOwner> for ITunesOwner
[src]
pub fn eq(&self, other: &ITunesOwner) -> bool
[src]
pub fn ne(&self, other: &ITunesOwner) -> bool
[src]
impl StructuralPartialEq for ITunesOwner
[src]
Auto Trait Implementations
impl RefUnwindSafe for ITunesOwner
[src]
impl Send for ITunesOwner
[src]
impl Sync for ITunesOwner
[src]
impl Unpin for ITunesOwner
[src]
impl UnwindSafe for ITunesOwner
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,