[][src]Struct rss::extension::itunes::ITunesItemExtension

pub struct ITunesItemExtension { /* fields omitted */ }

An iTunes item element extension.

Methods

impl ITunesItemExtension[src]

pub fn author(&self) -> Option<&str>[src]

Return the author of this podcast episode.

Examples

use rss::extension::itunes::ITunesItemExtension;

let mut extension = ITunesItemExtension::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]

Set the author of this podcast episode.

Examples

use rss::extension::itunes::ITunesItemExtension;

let mut extension = ITunesItemExtension::default();
extension.set_author("John Doe".to_string());

pub fn block(&self) -> Option<&str>[src]

Return whether this podcast episode 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::ITunesItemExtension;

let mut extension = ITunesItemExtension::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]

Set whether this podcast episode 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::ITunesItemExtension;

let mut extension = ITunesItemExtension::default();
extension.set_block("Yes".to_string());

pub fn image(&self) -> Option<&str>[src]

Return the artwork URL for this podcast episode.

Examples

use rss::extension::itunes::ITunesItemExtension;

let mut extension = ITunesItemExtension::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]

Set the artwork URL for this podcast episode.

Examples

use rss::extension::itunes::ITunesItemExtension;

let mut extension = ITunesItemExtension::default();
extension.set_image("http://example.com/artwork.png".to_string());

pub fn duration(&self) -> Option<&str>[src]

Return the duration of this podcast episode.

The duration should be in one of the following formats: HH:MM:SS, H:MM:SS, MM:SS, M:SS.

Examples

use rss::extension::itunes::ITunesItemExtension;

let mut extension = ITunesItemExtension::default();
extension.set_duration("1:00".to_string());
assert_eq!(extension.duration(), Some("1:00"));

pub fn set_duration<V>(&mut self, duration: V) where
    V: Into<Option<String>>, 
[src]

Set the duration of this podcast episode.

The duration should be in one of the following formats: HH:MM:SS, H:MM:SS, MM:SS, M:SS.

Examples

use rss::extension::itunes::ITunesItemExtension;

let mut extension = ITunesItemExtension::default();
extension.set_duration("1:00".to_string());

pub fn explicit(&self) -> Option<&str>[src]

Return whether this podcast episode contains explicit content.

A value of Yes, Explicit, or True indicates that the episode contains explicit content. A value of Clean, No, False inidicates that episode does not contain explicit content.

Examples

use rss::extension::itunes::ITunesItemExtension;

let mut extension = ITunesItemExtension::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]

Set whether this podcast episode contains explicit content.

A value of Yes, Explicit, or True indicates that the episode contains explicit content. A value of Clean, No, False inidicates that episode does not contain explicit content.

Examples

use rss::extension::itunes::ITunesItemExtension;

let mut extension = ITunesItemExtension::default();
extension.set_explicit("Yes".to_string());

pub fn closed_captioned(&self) -> Option<&str>[src]

Return whether this podcast episode contains embedded closed captioning.

A value of Yes indicates that it does. Any other value indicates that it does not.

Examples

use rss::extension::itunes::ITunesItemExtension;

let mut extension = ITunesItemExtension::default();
extension.set_closed_captioned("Yes".to_string());
assert_eq!(extension.closed_captioned(), Some("Yes"));

pub fn set_closed_captioned<V>(&mut self, closed_captioned: V) where
    V: Into<Option<String>>, 
[src]

Set whether this podcast episode contains embedded closed captioning.

A value of Yes indicates that it does. Any other value indicates that it does not.

Examples

use rss::extension::itunes::ITunesItemExtension;

let mut extension = ITunesItemExtension::default();
extension.set_closed_captioned("Yes".to_string());

pub fn order(&self) -> Option<&str>[src]

Return the value used to override the default sorting order for episodes.

Examples

use rss::extension::itunes::ITunesItemExtension;

let mut extension = ITunesItemExtension::default();
extension.set_order("1".to_string());
assert_eq!(extension.order(), Some("1"));

pub fn set_order<V>(&mut self, order: V) where
    V: Into<Option<String>>, 
[src]

Set the value used to override the default sorting order for episodes.

Examples

use rss::extension::itunes::ITunesItemExtension;

let mut extension = ITunesItemExtension::default();
extension.set_order("1".to_string());

pub fn subtitle(&self) -> Option<&str>[src]

Return the description of this podcast episode.

Examples

use rss::extension::itunes::ITunesItemExtension;

let mut extension = ITunesItemExtension::default();
extension.set_subtitle("An episode".to_string());
assert_eq!(extension.subtitle(), Some("An episode"));

pub fn set_subtitle<V>(&mut self, subtitle: V) where
    V: Into<Option<String>>, 
[src]

Set the description of this podcast episode.

Examples

use rss::extension::itunes::ITunesItemExtension;

let mut extension = ITunesItemExtension::default();
extension.set_subtitle("An episode".to_string());

pub fn summary(&self) -> Option<&str>[src]

Return the summary for this podcast episode.

Examples

use rss::extension::itunes::ITunesItemExtension;

let mut extension = ITunesItemExtension::default();
extension.set_summary("An episode".to_string());
assert_eq!(extension.summary(), Some("An episode"));

pub fn set_summary<V>(&mut self, summary: V) where
    V: Into<Option<String>>, 
[src]

Set the summary for this podcast episode.

Examples

use rss::extension::itunes::ITunesItemExtension;

let mut extension = ITunesItemExtension::default();
extension.set_summary("An episode".to_string());

pub fn keywords(&self) -> Option<&str>[src]

Return the keywords for this podcast episode.

A comma separated list of keywords.

Examples

use rss::extension::itunes::ITunesItemExtension;

let mut extension = ITunesItemExtension::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]

Set the keywords for this podcast episode.

A comma separated list of keywords.

Examples

use rss::extension::itunes::ITunesItemExtension;

let mut extension = ITunesItemExtension::default();
extension.set_keywords("technology".to_string());

impl ITunesItemExtension[src]

pub fn from_map(map: HashMap<String, Vec<Extension>>) -> Self[src]

Create an ITunesChannelExtension from a HashMap.

Trait Implementations

impl Clone for ITunesItemExtension[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<ITunesItemExtension> for ITunesItemExtension[src]

impl Default for ITunesItemExtension[src]

impl Debug for ITunesItemExtension[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]