Struct EpisodeObject

Source
pub struct EpisodeObject {
Show 21 fields pub audio_preview_url: String, pub description: String, pub duration_ms: usize, pub explicit: bool, pub external_urls: ExternalUrlObject, pub href: String, pub html_description: String, pub id: String, pub images: Vec<ImageObject>, pub is_externally_hosted: bool, pub is_playable: bool, pub language: String, pub languages: Vec<String>, pub name: String, pub release_date: String, pub release_date_precision: String, pub restrictions: EpisodeRestrictionObject, pub resume_point: ResumePointObject, pub show: SimplifiedShowObject, pub _type: String, pub uri: String,
}
Expand description

Fields§

§audio_preview_url: String

A URL to a 30 second preview (MP3 format) of the episode. null if not available.

§description: String

A description of the episode. HTML tags are stripped away from this field, use html_description field in case HTML tags are needed.

§duration_ms: usize

The episode length in milliseconds.

§explicit: bool

Whether or not the episode has explicit content (true = yes it does; false = no it does not OR unknown).

§external_urls: ExternalUrlObject

External URLs for this episode.

§href: String

A link to the Web API endpoint providing full details of the episode.

§html_description: String

A description of the episode. This field may contain HTML tags.

§id: String

The Spotify ID for the episode.

§images: Vec<ImageObject>

The cover art for the episode in various sizes, widest first.

§is_externally_hosted: bool

True if the episode is hosted outside of Spotify’s CDN.

§is_playable: bool

True if the episode is playable in the given market. Otherwise false.

§language: String

Note: This field is deprecated and might be removed in the future. Please use the languages field instead. The language used in the episode, identified by a ISO 639 code.

§languages: Vec<String>

A list of the languages used in the episode, identified by their ISO 639 code.

§name: String

The name of the episode.

§release_date: String

The date the episode was first released, for example "1981-12-15". Depending on the precision, it might be shown as "1981" or "1981-12".

§release_date_precision: String

The precision with which release_date value is known: "year", "month", or "day".

§restrictions: EpisodeRestrictionObject

Included in the response when a content restriction is applied. See Restriction Object for more details.

§resume_point: ResumePointObject

The user’s most recent position in the episode. Set if the supplied access token is a user token and has the scope user-read-playback-position.

§show: SimplifiedShowObject

The show on which the episode belongs.

§_type: String

The object type: “episode”.

§uri: String

The Spotify URI for the episode.

Trait Implementations§

Source§

impl Clone for EpisodeObject

Source§

fn clone(&self) -> EpisodeObject

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EpisodeObject

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for EpisodeObject

Source§

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 PartialEq for EpisodeObject

Source§

fn eq(&self, other: &EpisodeObject) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for EpisodeObject

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for EpisodeObject

Source§

impl StructuralPartialEq for EpisodeObject

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,