pub struct EpisodeSimplified {Show 15 fields
pub audio_preview_url: Option<String>,
pub description: String,
pub duration: Duration,
pub explicit: bool,
pub external_urls: HashMap<String, String>,
pub id: String,
pub images: Vec<Image>,
pub is_externally_hosted: bool,
pub is_playable: bool,
pub languages: Vec<String>,
pub name: String,
pub release_date: NaiveDate,
pub release_date_precision: DatePrecision,
pub resume_point: Option<ResumePoint>,
pub item_type: TypeEpisode,
}Expand description
A simplified episode object.
Fields§
§audio_preview_url: Option<String>The URL of a 30 second MP3 preview of the episode, or None.
description: StringA description of the episode.
duration: DurationThe length of the episode.
explicit: boolWhether the episode is explicit.
external_urls: HashMap<String, String>Externals URLs for this episode.
id: StringThe Spotify ID for this episode.
images: Vec<Image>The cover art for this episode in sizes, widest first.
is_externally_hosted: boolWhether the episode is hosted outside of Spotify’s CDN.
is_playable: boolWhether the episode is playable in the given market.
languages: Vec<String>The list of languages used in this episode.
name: StringThe name of the episode.
release_date: NaiveDateWhen the episode was released.
release_date_precision: DatePrecisionHow precise the release date is: precise to the year, month or day.
resume_point: Option<ResumePoint>The user’s most recent position in the episode. None if there is no user.
item_type: TypeEpisodeThe item type; episode.
Trait Implementations§
Source§impl Clone for EpisodeSimplified
impl Clone for EpisodeSimplified
Source§fn clone(&self) -> EpisodeSimplified
fn clone(&self) -> EpisodeSimplified
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EpisodeSimplified
impl Debug for EpisodeSimplified
Source§impl<'de> Deserialize<'de> for EpisodeSimplified
impl<'de> Deserialize<'de> for EpisodeSimplified
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Episode> for EpisodeSimplified
impl From<Episode> for EpisodeSimplified
Source§impl PartialEq for EpisodeSimplified
impl PartialEq for EpisodeSimplified
Source§fn eq(&self, other: &EpisodeSimplified) -> bool
fn eq(&self, other: &EpisodeSimplified) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EpisodeSimplified
impl Serialize for EpisodeSimplified
impl Eq for EpisodeSimplified
impl StructuralPartialEq for EpisodeSimplified
Auto Trait Implementations§
impl Freeze for EpisodeSimplified
impl RefUnwindSafe for EpisodeSimplified
impl Send for EpisodeSimplified
impl Sync for EpisodeSimplified
impl Unpin for EpisodeSimplified
impl UnsafeUnpin for EpisodeSimplified
impl UnwindSafe for EpisodeSimplified
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more