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

pub struct ITunesChannelExtension { /* fields omitted */ }

An iTunes channel element extension.

Methods

impl ITunesChannelExtension
[src]

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

[src]

Set the author of this podcast.

Examples

use rss::extension::itunes::ITunesChannelExtension;

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

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

[src]

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

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

[src]

Return a mutable slice of the iTunes categories that the podcast belongs to.

[src]

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

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

[src]

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

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

[src]

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

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

[src]

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

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

[src]

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

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

[src]

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

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

[src]

Set the description of this podcast.

Examples

use rss::extension::itunes::ITunesChannelExtension;

let mut extension = ITunesChannelExtension::default();
extension.set_subtitle("A podcast".to_string());

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

[src]

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

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

[src]

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]

[src]

Create an ITunesChannelExtension from a HashMap.

Trait Implementations

impl Debug for ITunesChannelExtension
[src]

[src]

Formats the value using the given formatter.

impl Default for ITunesChannelExtension
[src]

[src]

Returns the "default value" for a type. Read more

impl Clone for ITunesChannelExtension
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for ITunesChannelExtension
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.