Struct dim_extern_api::ExternalEpisode
source · pub struct ExternalEpisode {
pub external_id: String,
pub title: Option<String>,
pub description: Option<String>,
pub episode_number: u64,
pub stills: Vec<String>,
pub duration: Option<Duration>,
}
Fields§
§external_id: String
§title: Option<String>
§description: Option<String>
§episode_number: u64
§stills: Vec<String>
§duration: Option<Duration>
Implementations§
source§impl ExternalEpisode
impl ExternalEpisode
pub fn title_or_episode(&self) -> String
Trait Implementations§
source§impl Clone for ExternalEpisode
impl Clone for ExternalEpisode
source§fn clone(&self) -> ExternalEpisode
fn clone(&self) -> ExternalEpisode
Returns a copy of the value. Read more
1.0.0 · 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 ExternalEpisode
impl Debug for ExternalEpisode
source§impl Default for ExternalEpisode
impl Default for ExternalEpisode
source§fn default() -> ExternalEpisode
fn default() -> ExternalEpisode
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ExternalEpisode
impl<'de> Deserialize<'de> for ExternalEpisode
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 PartialEq<ExternalEpisode> for ExternalEpisode
impl PartialEq<ExternalEpisode> for ExternalEpisode
source§fn eq(&self, other: &ExternalEpisode) -> bool
fn eq(&self, other: &ExternalEpisode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ExternalEpisode> for ExternalEpisode
impl PartialOrd<ExternalEpisode> for ExternalEpisode
source§fn partial_cmp(&self, other: &ExternalEpisode) -> Option<Ordering>
fn partial_cmp(&self, other: &ExternalEpisode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ExternalEpisode
impl Serialize for ExternalEpisode
impl Eq for ExternalEpisode
impl StructuralEq for ExternalEpisode
impl StructuralPartialEq for ExternalEpisode
Auto Trait Implementations§
impl RefUnwindSafe for ExternalEpisode
impl Send for ExternalEpisode
impl Sync for ExternalEpisode
impl Unpin for ExternalEpisode
impl UnwindSafe for ExternalEpisode
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.