pub struct ITunesItemExtension { /* private fields */ }
Expand description

An iTunes item element extension.

Implementations

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"));

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());

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"));

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());

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"));

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());

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"));

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());

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"));

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());

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"));

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());

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"));

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());

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"));

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());

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"));

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());

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"));

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());

Create an ITunesChannelExtension from a HashMap.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.