[−][src]Struct rss::extension::itunes::ITunesChannelExtension
An iTunes channel element extension.
Methods
impl ITunesChannelExtension
[src]
pub fn author(&self) -> Option<&str>
[src]
Return the author of this podcast.
Examples
use rss::extension::itunes::ITunesChannelExtension; let mut extension = ITunesChannelExtension::default(); extension.set_author("John Doe".to_string()); assert_eq!(extension.author(), Some("John Doe"));
pub fn set_author<V>(&mut self, author: V) where
V: Into<Option<String>>,
[src]
V: Into<Option<String>>,
Set the author of this podcast.
Examples
use rss::extension::itunes::ITunesChannelExtension; let mut extension = ITunesChannelExtension::default(); extension.set_author("John Doe".to_string());
pub fn block(&self) -> Option<&str>
[src]
Return whether the podcast should be blocked from appearing in the iTunes Store.
A value of Yes
indicates that the podcast should not show up in the iTunes Store. All
other values are ignored.
Examples
use rss::extension::itunes::ITunesChannelExtension; let mut extension = ITunesChannelExtension::default(); extension.set_block("Yes".to_string()); assert_eq!(extension.block(), Some("Yes"));
pub fn set_block<V>(&mut self, block: V) where
V: Into<Option<String>>,
[src]
V: Into<Option<String>>,
Set whether the podcast should be blocked from appearing in the iTunes Store.
A value of Yes
indicates that the podcast should not show up in the iTunes Store. All
other values are ignored.
Examples
use rss::extension::itunes::ITunesChannelExtension; let mut extension = ITunesChannelExtension::default(); extension.set_block("Yes".to_string());
pub fn categories(&self) -> &[ITunesCategory]
[src]
Return the iTunes categories that the podcast belongs to.
Examples
use rss::extension::itunes::{ITunesCategory, ITunesChannelExtension}; let mut extension = ITunesChannelExtension::default(); extension.set_categories(vec![ITunesCategory::default()]); assert_eq!(extension.categories().len(), 1);
pub fn categories_mut(&mut self) -> &mut [ITunesCategory]
[src]
Return a mutable slice of the iTunes categories that the podcast belongs to.
pub fn set_categories<V>(&mut self, categories: V) where
V: Into<Vec<ITunesCategory>>,
[src]
V: Into<Vec<ITunesCategory>>,
Set the iTunes categories that the podcast belongs to.
Examples
use rss::extension::itunes::{ITunesCategory, ITunesChannelExtension}; let mut extension = ITunesChannelExtension::default(); extension.set_categories(vec![ITunesCategory::default()]);
pub fn image(&self) -> Option<&str>
[src]
Return the artwork URL for the podcast.
Examples
use rss::extension::itunes::ITunesChannelExtension; let mut extension = ITunesChannelExtension::default(); extension.set_image("http://example.com/artwork.png".to_string()); assert_eq!(extension.image(), Some("http://example.com/artwork.png"));
pub fn set_image<V>(&mut self, image: V) where
V: Into<Option<String>>,
[src]
V: Into<Option<String>>,
Set the artwork URL for the podcast.
Examples
use rss::extension::itunes::ITunesChannelExtension; let mut extension = ITunesChannelExtension::default(); extension.set_image("http://example.com/artwork.png".to_string());
pub fn explicit(&self) -> Option<&str>
[src]
Return whether the podcast contains explicit content.
A value of Yes
, Explicit
, or True
indicates that the podcast contains explicit
content. A value of Clean
, No
, False
inidicates that none of the episodes contain
explicit content.
Examples
use rss::extension::itunes::ITunesChannelExtension; let mut extension = ITunesChannelExtension::default(); extension.set_explicit("Yes".to_string()); assert_eq!(extension.explicit(), Some("Yes"));
pub fn set_explicit<V>(&mut self, explicit: V) where
V: Into<Option<String>>,
[src]
V: Into<Option<String>>,
Set whether the podcast contains explicit content.
A value of Yes
, Explicit
, or True
indicates that the podcast contains explicit
content. A value of Clean
, No
, False
inidicates that none of the episodes contain
explicit content.
Examples
use rss::extension::itunes::ITunesChannelExtension; let mut extension = ITunesChannelExtension::default(); extension.set_explicit("Yes".to_string());
pub fn complete(&self) -> Option<&str>
[src]
Return whether the podcast is complete and no new episodes will be posted.
A value of Yes
indicates that the podcast is complete.
Examples
use rss::extension::itunes::ITunesChannelExtension; let mut extension = ITunesChannelExtension::default(); extension.set_complete("Yes".to_string()); assert_eq!(extension.complete(), Some("Yes"));
pub fn set_complete<V>(&mut self, complete: V) where
V: Into<Option<String>>,
[src]
V: Into<Option<String>>,
Set whether the podcast is complete and no new episodes will be posted.
A value of Yes
indicates that the podcast is complete.
Examples
use rss::extension::itunes::ITunesChannelExtension; let mut extension = ITunesChannelExtension::default(); extension.set_complete("Yes".to_string());
pub fn new_feed_url(&self) -> Option<&str>
[src]
Return the new feed URL for this podcast.
Examples
use rss::extension::itunes::ITunesChannelExtension; let mut extension = ITunesChannelExtension::default(); extension.set_new_feed_url("http://example.com/feed".to_string()); assert_eq!(extension.new_feed_url(), Some("http://example.com/feed"));
pub fn set_new_feed_url<V>(&mut self, new_feed_url: V) where
V: Into<Option<String>>,
[src]
V: Into<Option<String>>,
Set the new feed URL for this podcast.
Examples
use rss::extension::itunes::ITunesChannelExtension; let mut extension = ITunesChannelExtension::default(); extension.set_new_feed_url("http://example.com/feed".to_string());
pub fn owner(&self) -> Option<&ITunesOwner>
[src]
Return the contact information for the owner of this podcast.
Examples
use rss::extension::itunes::{ITunesChannelExtension, ITunesOwner}; let mut extension = ITunesChannelExtension::default(); extension.set_owner(ITunesOwner::default()); assert!(extension.owner().is_some());
pub fn set_owner<V>(&mut self, owner: V) where
V: Into<Option<ITunesOwner>>,
[src]
V: Into<Option<ITunesOwner>>,
Set the contact information for the owner of this podcast.
Examples
use rss::extension::itunes::{ITunesChannelExtension, ITunesOwner}; let mut extension = ITunesChannelExtension::default(); extension.set_owner(ITunesOwner::default());
pub fn subtitle(&self) -> Option<&str>
[src]
Return the description of this podcast.
Examples
use rss::extension::itunes::ITunesChannelExtension; let mut extension = ITunesChannelExtension::default(); extension.set_subtitle("A podcast".to_string()); assert_eq!(extension.subtitle(), Some("A podcast"));
pub fn set_subtitle<V>(&mut self, subtitle: V) where
V: Into<Option<String>>,
[src]
V: Into<Option<String>>,
Set the description of this podcast.
Examples
use rss::extension::itunes::ITunesChannelExtension; let mut extension = ITunesChannelExtension::default(); extension.set_subtitle("A podcast".to_string());
pub fn summary(&self) -> Option<&str>
[src]
Return the summary for this podcast.
Examples
use rss::extension::itunes::ITunesChannelExtension; let mut extension = ITunesChannelExtension::default(); extension.set_summary("A podcast".to_string()); assert_eq!(extension.summary(), Some("A podcast"));
pub fn set_summary<V>(&mut self, summary: V) where
V: Into<Option<String>>,
[src]
V: Into<Option<String>>,
Set the summary for this podcast.
Examples
use rss::extension::itunes::ITunesChannelExtension; let mut extension = ITunesChannelExtension::default(); extension.set_summary("A podcast about technology".to_string());
pub fn keywords(&self) -> Option<&str>
[src]
Return the keywords for this podcast.
A comma separated list of keywords.
Examples
use rss::extension::itunes::ITunesChannelExtension; let mut extension = ITunesChannelExtension::default(); extension.set_keywords("technology".to_string()); assert_eq!(extension.keywords(), Some("technology"));
pub fn set_keywords<V>(&mut self, keywords: V) where
V: Into<Option<String>>,
[src]
V: Into<Option<String>>,
Set the keywords for this podcast.
A comma separated list of keywords.
Examples
use rss::extension::itunes::ITunesChannelExtension; let mut extension = ITunesChannelExtension::default(); extension.set_keywords("technology".to_string());
impl ITunesChannelExtension
[src]
pub fn from_map(map: HashMap<String, Vec<Extension>>) -> Self
[src]
Create an ITunesChannelExtension
from a HashMap
.
Trait Implementations
impl PartialEq<ITunesChannelExtension> for ITunesChannelExtension
[src]
fn eq(&self, other: &ITunesChannelExtension) -> bool
[src]
fn ne(&self, other: &ITunesChannelExtension) -> bool
[src]
impl Clone for ITunesChannelExtension
[src]
fn clone(&self) -> ITunesChannelExtension
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for ITunesChannelExtension
[src]
fn default() -> ITunesChannelExtension
[src]
impl Debug for ITunesChannelExtension
[src]
Auto Trait Implementations
impl Send for ITunesChannelExtension
impl Sync for ITunesChannelExtension
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,