Struct dim_extern_api::ExternalMedia
source · pub struct ExternalMedia {
pub external_id: String,
pub title: String,
pub description: Option<String>,
pub release_date: Option<DateTime<Utc>>,
pub posters: Vec<String>,
pub backdrops: Vec<String>,
pub genres: Vec<String>,
pub rating: Option<f64>,
pub duration: Option<Duration>,
}
Fields§
§external_id: String
String representation of the id for this media object.
title: String
The title of this media object.
description: Option<String>
The description or overview of this media object.
release_date: Option<DateTime<Utc>>
The release date or first air date of this media object.
posters: Vec<String>
A list of posters for this media object.
backdrops: Vec<String>
A list of backdrops for this media object.
genres: Vec<String>
A list of genres for this media object.
rating: Option<f64>
The rating for this media object normalized in the range 0 to 1.
duration: Option<Duration>
The duration for this media object.
Trait Implementations§
source§impl Clone for ExternalMedia
impl Clone for ExternalMedia
source§fn clone(&self) -> ExternalMedia
fn clone(&self) -> ExternalMedia
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 ExternalMedia
impl Debug for ExternalMedia
source§impl Default for ExternalMedia
impl Default for ExternalMedia
source§fn default() -> ExternalMedia
fn default() -> ExternalMedia
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ExternalMedia
impl<'de> Deserialize<'de> for ExternalMedia
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<ExternalMedia> for ExternalMedia
impl PartialEq<ExternalMedia> for ExternalMedia
source§fn eq(&self, other: &ExternalMedia) -> bool
fn eq(&self, other: &ExternalMedia) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ExternalMedia> for ExternalMedia
impl PartialOrd<ExternalMedia> for ExternalMedia
source§fn partial_cmp(&self, other: &ExternalMedia) -> Option<Ordering>
fn partial_cmp(&self, other: &ExternalMedia) -> 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 more