Struct rss::extension::itunes::ITunesOwner
source · pub struct ITunesOwner {
pub name: Option<String>,
pub email: Option<String>,
}
Expand description
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§
source§impl ITunesOwner
impl ITunesOwner
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
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"));
sourcepub fn set_name<V>(&mut self, name: V)
pub fn set_name<V>(&mut self, name: V)
Set the name of this person.
§Examples
use rss::extension::itunes::ITunesOwner;
let mut owner = ITunesOwner::default();
owner.set_name("John Doe".to_string());
Trait Implementations§
source§impl Clone for ITunesOwner
impl Clone for ITunesOwner
source§fn clone(&self) -> ITunesOwner
fn clone(&self) -> ITunesOwner
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ITunesOwner
impl Debug for ITunesOwner
source§impl Default for ITunesOwner
impl Default for ITunesOwner
source§fn default() -> ITunesOwner
fn default() -> ITunesOwner
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ITunesOwner
impl<'de> Deserialize<'de> for ITunesOwner
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ITunesOwner
impl PartialEq for ITunesOwner
source§fn eq(&self, other: &ITunesOwner) -> bool
fn eq(&self, other: &ITunesOwner) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ITunesOwner
impl Serialize for ITunesOwner
impl StructuralPartialEq for ITunesOwner
Auto Trait Implementations§
impl Freeze for ITunesOwner
impl RefUnwindSafe for ITunesOwner
impl Send for ITunesOwner
impl Sync for ITunesOwner
impl Unpin for ITunesOwner
impl UnwindSafe for ITunesOwner
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more