Struct letterboxd::Film

source ·
pub struct Film {
Show 15 fields pub id: String, pub name: String, pub original_name: Option<String>, pub alternative_names: Vec<String>, pub release_year: u16, pub tagline: String, pub description: String, pub run_time: u16, pub poster: Image, pub backdrop: Image, pub backdrop_focal_point: f32, pub trailer: FilmTrailer, pub genres: Vec<Genre>, pub contributions: Vec<FilmContributions>, pub links: Vec<Link>,
}

Fields§

§id: String

The LID of the film.

§name: String

The title of the film.

§original_name: Option<String>

The original title of the film, if it was first released with a non-English title.

§alternative_names: Vec<String>

The other names by which the film is known (including alternative titles and/or foreign translations).

§release_year: u16

The year in which the film was first released.

§tagline: String

The tagline for the film.

§description: String

A synopsis of the film.

§run_time: u16

The film’s duration (in minutes).

§poster: Image

The film’s poster image (2:3 ratio in multiple sizes).

§backdrop: Image

The film’s backdrop image (16:9 ratio in multiple sizes).

§backdrop_focal_point: f32

The backdrop’s vertical focal point, expressed as a proportion of the image’s height, using values between 0.0 and 1.0. Use when cropping the image into a shorter space, such as in the page for a film on the Letterboxd site.

§trailer: FilmTrailer

The film’s trailer.

§genres: Vec<Genre>

The film’s genres.

§contributions: Vec<FilmContributions>

The film’s contributors (director, cast and crew) grouped by discipline.

§links: Vec<Link>

A list of relevant URLs to this entity, on Letterboxd and external sites.

Trait Implementations§

source§

impl Clone for Film

source§

fn clone(&self) -> Film

Returns a copy 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 Film

source§

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

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

impl<'de> Deserialize<'de> for Film

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§

§

impl Freeze for Film

§

impl RefUnwindSafe for Film

§

impl Send for Film

§

impl Sync for Film

§

impl Unpin for Film

§

impl UnwindSafe for Film

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, 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> Same for T

§

type Output = T

Should always be Self
source§

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

§

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

§

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

§

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