pub struct ITunesChannelExtension {
pub author: Option<String>,
pub block: Option<String>,
pub categories: Vec<ITunesCategory>,
pub image: Option<String>,
pub explicit: Option<String>,
pub complete: Option<String>,
pub new_feed_url: Option<String>,
pub owner: Option<ITunesOwner>,
pub subtitle: Option<String>,
pub summary: Option<String>,
pub keywords: Option<String>,
pub type: Option<String>,
}
Expand description
An iTunes channel element extension.
Fields
The author of the podcast.
block: Option<String>
Specifies if the podcast should be prevented 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.
categories: Vec<ITunesCategory>
The iTunes categories the podcast belongs to.
image: Option<String>
The artwork for the podcast.
explicit: Option<String>
Specifies 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.
complete: Option<String>
Specifies whether the podcast is complete and no new episodes will be posted. A value of
Yes
indicates that the podcast is complete.
new_feed_url: Option<String>
The new URL where the podcast is located.
owner: Option<ITunesOwner>
The contact information for the owner of the podcast.
subtitle: Option<String>
A description of the podcast.
summary: Option<String>
A summary of the podcast.
keywords: Option<String>
Keywords for the podcast. The string contains a comma separated list of keywords.
type: Option<String>
The type of the podcast. Usually serial
or episodic
.
Implementations
sourceimpl ITunesChannelExtension
impl ITunesChannelExtension
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"));
Set the author of this podcast.
Examples
use rss::extension::itunes::ITunesChannelExtension;
let mut extension = ITunesChannelExtension::default();
extension.set_author("John Doe".to_string());
sourcepub fn block(&self) -> Option<&str>
pub fn block(&self) -> Option<&str>
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"));
sourcepub fn set_block<V>(&mut self, block: V) where
V: Into<Option<String>>,
pub fn set_block<V>(&mut self, block: V) where
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());
sourcepub fn categories(&self) -> &[ITunesCategory]
pub fn categories(&self) -> &[ITunesCategory]
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);
sourcepub fn categories_mut(&mut self) -> &mut [ITunesCategory]
pub fn categories_mut(&mut self) -> &mut [ITunesCategory]
Return a mutable slice of the iTunes categories that the podcast belongs to.
sourcepub fn set_categories<V>(&mut self, categories: V) where
V: Into<Vec<ITunesCategory>>,
pub fn set_categories<V>(&mut self, categories: V) where
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()]);
sourcepub fn image(&self) -> Option<&str>
pub fn image(&self) -> Option<&str>
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"));
sourcepub fn set_image<V>(&mut self, image: V) where
V: Into<Option<String>>,
pub fn set_image<V>(&mut self, image: V) where
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());
sourcepub fn explicit(&self) -> Option<&str>
pub fn explicit(&self) -> Option<&str>
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"));
sourcepub fn set_explicit<V>(&mut self, explicit: V) where
V: Into<Option<String>>,
pub fn set_explicit<V>(&mut self, explicit: V) where
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());
sourcepub fn complete(&self) -> Option<&str>
pub fn complete(&self) -> Option<&str>
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"));
sourcepub fn set_complete<V>(&mut self, complete: V) where
V: Into<Option<String>>,
pub fn set_complete<V>(&mut self, complete: V) where
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());
sourcepub fn new_feed_url(&self) -> Option<&str>
pub fn new_feed_url(&self) -> Option<&str>
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"));
sourcepub fn set_new_feed_url<V>(&mut self, new_feed_url: V) where
V: Into<Option<String>>,
pub fn set_new_feed_url<V>(&mut self, new_feed_url: V) where
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());
sourcepub fn owner(&self) -> Option<&ITunesOwner>
pub fn owner(&self) -> Option<&ITunesOwner>
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());
sourcepub fn set_owner<V>(&mut self, owner: V) where
V: Into<Option<ITunesOwner>>,
pub fn set_owner<V>(&mut self, owner: V) where
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());
sourcepub fn subtitle(&self) -> Option<&str>
pub fn subtitle(&self) -> Option<&str>
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"));
sourcepub fn set_subtitle<V>(&mut self, subtitle: V) where
V: Into<Option<String>>,
pub fn set_subtitle<V>(&mut self, subtitle: V) where
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());
sourcepub fn summary(&self) -> Option<&str>
pub fn summary(&self) -> Option<&str>
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"));
sourcepub fn set_summary<V>(&mut self, summary: V) where
V: Into<Option<String>>,
pub fn set_summary<V>(&mut self, summary: V) where
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());
sourcepub fn keywords(&self) -> Option<&str>
pub fn keywords(&self) -> Option<&str>
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"));
sourcepub fn set_keywords<V>(&mut self, keywords: V) where
V: Into<Option<String>>,
pub fn set_keywords<V>(&mut self, keywords: V) where
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());
sourcepub fn type(&self) -> Option<&str>
pub fn type(&self) -> Option<&str>
Return the type of this podcast.
A string usually “serial” or “episodic”
Examples
use rss::extension::itunes::ITunesChannelExtension;
let mut extension = ITunesChannelExtension::default();
extension.set_type("episodic".to_string());
assert_eq!(extension.r#type(), Some("episodic"));
sourcepub fn set_type<V>(&mut self, t: V) where
V: Into<Option<String>>,
pub fn set_type<V>(&mut self, t: V) where
V: Into<Option<String>>,
Set the type of this podcast.
A string, usually “serial” or “episodic”
Examples
use rss::extension::itunes::ITunesChannelExtension;
let mut extension = ITunesChannelExtension::default();
extension.set_type("serial".to_string());
Trait Implementations
sourceimpl Clone for ITunesChannelExtension
impl Clone for ITunesChannelExtension
sourcefn clone(&self) -> ITunesChannelExtension
fn clone(&self) -> ITunesChannelExtension
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ITunesChannelExtension
impl Debug for ITunesChannelExtension
sourceimpl Default for ITunesChannelExtension
impl Default for ITunesChannelExtension
sourcefn default() -> ITunesChannelExtension
fn default() -> ITunesChannelExtension
Returns the “default value” for a type. Read more
sourceimpl PartialEq<ITunesChannelExtension> for ITunesChannelExtension
impl PartialEq<ITunesChannelExtension> for ITunesChannelExtension
sourcefn eq(&self, other: &ITunesChannelExtension) -> bool
fn eq(&self, other: &ITunesChannelExtension) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ITunesChannelExtension) -> bool
fn ne(&self, other: &ITunesChannelExtension) -> bool
This method tests for !=
.
impl StructuralPartialEq for ITunesChannelExtension
Auto Trait Implementations
impl RefUnwindSafe for ITunesChannelExtension
impl Send for ITunesChannelExtension
impl Sync for ITunesChannelExtension
impl Unpin for ITunesChannelExtension
impl UnwindSafe for ITunesChannelExtension
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more