MovieDetails

Struct MovieDetails 

Source
pub struct MovieDetails {
Show 25 fields pub adult: bool, pub backdrop_path: Option<String>, pub belongs_to_collection: Option<bool>, pub budget: i64, pub genres: Vec<Genre>, pub homepage: Option<String>, pub id: i64, pub imdb_id: Option<String>, pub original_language: String, pub original_title: String, pub overview: Option<String>, pub popularity: f64, pub poster_path: Option<String>, pub production_companies: Vec<ProductionCompany>, pub production_countries: Vec<ProductionCountry>, pub release_date: NaiveDate, pub revenue: i64, pub runtime: Option<i64>, pub spoken_languages: Vec<Language>, pub status: String, pub tagline: Option<String>, pub title: String, pub video: bool, pub vote_average: f64, pub vote_count: i64,
}
Expand description

Details on a Movies

Fields§

§adult: bool

Whether this movie is an adult movie or not

§backdrop_path: Option<String>

The path the backdrop for this movie can be found at

§belongs_to_collection: Option<bool>

Whether this movie belongs to a collection or not

§budget: i64

The budget for this movie

§genres: Vec<Genre>§homepage: Option<String>

The homepage for this Movie

§id: i64

The id for this movie

§imdb_id: Option<String>

The imdb ID for this movie

§original_language: String

The Original language this was in

§original_title: String

The original title fo this movie

§overview: Option<String>

An overview for this movie

§popularity: f64

The popularity of this movie

§poster_path: Option<String>

The path to the poster for this movie

§production_companies: Vec<ProductionCompany>

The production companies involved in making this movie

§production_countries: Vec<ProductionCountry>

The countries this movie was produced in

§release_date: NaiveDate

When this movie was released

§revenue: i64

How much this movie made in revenue

§runtime: Option<i64>

The total runtime of this movie in minutes

§spoken_languages: Vec<Language>

The languages spoken in this movie

§status: String

The current status of this movie

§tagline: Option<String>

The tag line or slogan for this movie

§title: String

The title of this movie

§video: bool

Whether this is not a movie but another type of longer video

§vote_average: f64

The average vote for this movie

§vote_count: i64

The number of votes for this movie

Trait Implementations§

Source§

impl Debug for MovieDetails

Source§

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

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

impl<'de> Deserialize<'de> for MovieDetails

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

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> 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> 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, 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,