pub struct MaterialData {
Show 50 fields pub title: Option<String>, pub anime_title: Option<String>, pub title_en: Option<String>, pub other_titles: Option<Vec<String>>, pub other_titles_en: Option<Vec<String>>, pub other_titles_jp: Option<Vec<String>>, pub anime_license_name: Option<String>, pub anime_licensed_by: Option<Vec<String>>, pub anime_kind: Option<AnimeKind>, pub all_status: Option<AllStatus>, pub anime_status: Option<AnimeStatus>, pub drama_status: Option<DramaStatus>, pub year: Option<i32>, pub tagline: Option<String>, pub description: Option<String>, pub anime_description: Option<String>, pub poster_url: Option<String>, pub screenshots: Option<Vec<String>>, pub duration: Option<i32>, pub countries: Option<Vec<String>>, pub all_genres: Option<Vec<String>>, pub genres: Option<Vec<String>>, pub anime_genres: Option<Vec<String>>, pub drama_genres: Option<Vec<String>>, pub anime_studios: Option<Vec<String>>, pub kinopoisk_rating: Option<f64>, pub kinopoisk_votes: Option<i32>, pub imdb_rating: Option<f64>, pub imdb_votes: Option<i32>, pub shikimori_rating: Option<f32>, pub shikimori_votes: Option<i32>, pub mydramalist_rating: Option<f32>, pub mydramalist_votes: Option<i32>, pub premiere_ru: Option<String>, pub premiere_world: Option<String>, pub aired_at: Option<String>, pub released_at: Option<String>, pub next_episode_at: Option<String>, pub rating_mpaa: Option<MppaRating>, pub minimal_age: Option<i32>, pub episodes_total: Option<i32>, pub episodes_aired: Option<i32>, pub actors: Option<Vec<String>>, pub directors: Option<Vec<String>>, pub producers: Option<Vec<String>>, pub writers: Option<Vec<String>>, pub composers: Option<Vec<String>>, pub editors: Option<Vec<String>>, pub designers: Option<Vec<String>>, pub operators: Option<Vec<String>>,
}
Expand description

Represents various data related to a material, such as title, description, ratings, etc.

Fields§

§title: Option<String>

"Аватар"

Source: KinoPoisk, Shikimori

§anime_title: Option<String>

"Аватар"

Source: Shikimori

§title_en: Option<String>

Original title

"Avatar"

Source: KinoPoisk, Shikimori, MyDramaList

§other_titles: Option<Vec<String>>

["Аватар", "Аватар 2", "Аватар 3"]

Source: Shikimori, MyDramaList

§other_titles_en: Option<Vec<String>>

["Avatar", "Avatar 2", "Avatar 3"]

Source: Shikimori

§other_titles_jp: Option<Vec<String>>

["アバター", "アバター 2", "アバター 3"]

Source: Shikimori

§anime_license_name: Option<String>

"Avatar"

Source: Shikimori

§anime_licensed_by: Option<Vec<String>>

License holders

["Wakanim", "Русский Репортаж"]

Source: Shikimori

§anime_kind: Option<AnimeKind>

Source: Shikimori

§all_status: Option<AllStatus>

Material status from all sources

Source: Shikimori, MyDramaList

§anime_status: Option<AnimeStatus>

Source: Shikimori

§drama_status: Option<DramaStatus>

Source: MyDramaList

§year: Option<i32>

Year of release of the title

2016

Source: KinoPoisk

§tagline: Option<String>

"«An entire universe. Once and for all»"

Source: KinoPoisk

§description: Option<String>

"Пока Мстители и их союзники продо..."

Source: KinoPoisk, Shikimori

§anime_description: Option<String>

"Пока Мстители и их союзники продо..."

Source: Shikimori

§poster_url: Option<String>

"https://st.kp.yandex.net/images/film_iphone/iphone360_840471.jpg"

Source: KinoPoisk, Shikimori, MyDramaList

§screenshots: Option<Vec<String>>

["https://site.com/image1.png", "https://site.com/image2.png"]

Source: Shikimori

§duration: Option<i32>

Duration in minutes

160

Source: KinoPoisk, Shikimori, MyDramaList

§countries: Option<Vec<String>>

["США", "Великобритания"]

Source: KinoPoisk, MyDramaList

§all_genres: Option<Vec<String>>

Genres from all available sources

["комедия", "боевик"]

Source: KinoPoisk, Shikimori, MyDramaList

§genres: Option<Vec<String>>

["комедия", "боевик"]

Source: KinoPoisk

§anime_genres: Option<Vec<String>>

["приключения","комедия"]

Source: Shikimori

§drama_genres: Option<Vec<String>>

["приключения","комедия"]

Source: MyDramaList

§anime_studios: Option<Vec<String>>

["Studio Deen"]

Source: Shikimori

§kinopoisk_rating: Option<f64>

7.2

Source: KinoPoisk

§kinopoisk_votes: Option<i32>

Number of votes on Kinopoisk

723856

Source: KinoPoisk

§imdb_rating: Option<f64>

7.2

Source: KinoPoisk

§imdb_votes: Option<i32>

Number of votes on IMDb

723856

Source: KinoPoisk

§shikimori_rating: Option<f32>

7.2

Source: Shikimori

§shikimori_votes: Option<i32>

Number of votes on Shikimori

Source: Shikimori

§mydramalist_rating: Option<f32>

7.2

Source: MyDramaList

§mydramalist_votes: Option<i32>

Number of votes on MyDramaList

Source: MyDramaList

§premiere_ru: Option<String>

Premiere date in Russia

"2018-04-16"

Source: KinoPoisk

§premiere_world: Option<String>

Worldwide premiere date

"2018-04-16"

Source: KinoPoisk

§aired_at: Option<String>

Airing start date

"2018-04-16"

Source: Shikimori, MyDramaList

§released_at: Option<String>

Airing end date

"2018-04-16"

Source: Shikimori, MyDramaList

§next_episode_at: Option<String>

Next episode release time

"2021-04-06T14:19:27Z"

Source: Shikimori, MyDramaList

§rating_mpaa: Option<MppaRating>

MPAA rating Source: KinoPoisk, Shikimori

§minimal_age: Option<i32>

Minimum age to watch

16

Source: KinoPoisk, MyDramaList

§episodes_total: Option<i32>

Total number of episodes

14

Source: Shikimori, MyDramaList

§episodes_aired: Option<i32>

Number of aired episodes

14

Source: Shikimori, MyDramaList

§actors: Option<Vec<String>>

["Роберт Дауни мл.", "Крис Хемсворт", "Марк Руффало"]

Source: KinoPoisk, MyDramaList

§directors: Option<Vec<String>>

["Роберт Дауни мл.", "Крис Хемсворт", "Марк Руффало"]

Source: KinoPoisk, MyDramaList

§producers: Option<Vec<String>>

["Роберт Дауни мл.", "Крис Хемсворт", "Марк Руффало"]

Source: KinoPoisk, MyDramaList

§writers: Option<Vec<String>>

["Роберт Дауни мл.", "Крис Хемсворт", "Марк Руффало"]

Source: KinoPoisk, MyDramaList

§composers: Option<Vec<String>>

["Роберт Дауни мл.", "Крис Хемсворт", "Марк Руффало"]

Source: KinoPoisk, MyDramaList

§editors: Option<Vec<String>>

["Роберт Дауни мл.", "Крис Хемсворт", "Марк Руффало"]

Source: KinoPoisk, MyDramaList

§designers: Option<Vec<String>>

["Роберт Дауни мл.", "Крис Хемсворт", "Марк Руффало"]

Source: KinoPoisk, MyDramaList

§operators: Option<Vec<String>>

["Роберт Дауни мл.", "Крис Хемсворт", "Марк Руффало"]

Source: KinoPoisk, MyDramaList

Trait Implementations§

source§

impl Clone for MaterialData

source§

fn clone(&self) -> MaterialData

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 MaterialData

source§

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

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

impl<'de> Deserialize<'de> for MaterialData

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 Serialize for MaterialData

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

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.

§

impl<T> Instrument for T

§

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

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

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,

§

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.
§

impl<T> WithSubscriber for T

§

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
§

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