Skip to main content

MaterialData

Struct MaterialData 

Source
pub struct MaterialData {
Show 53 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<String>, pub mydramalist_tags: Option<Vec<String>>, pub all_status: Option<String>, pub anime_status: Option<String>, pub drama_status: Option<String>, pub year: Option<i32>, pub tagline: Option<String>, pub description: Option<String>, pub anime_description: Option<String>, pub poster_url: Option<String>, pub anime_poster_url: Option<String>, pub drama_poster_url: Option<String>, pub screenshots: Option<Vec<String>>, pub duration: Option<u32>, 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<u64>, pub imdb_rating: Option<f64>, pub imdb_votes: Option<u64>, pub shikimori_rating: Option<f64>, pub shikimori_votes: Option<u64>, pub mydramalist_rating: Option<f64>, pub mydramalist_votes: Option<u64>, 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<String>, pub minimal_age: Option<u32>, pub episodes_total: Option<u32>, pub episodes_aired: Option<u32>, 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

Дополнительные сведения о материале из КиноПоиска, Shikimori и MyDramaList.

Каждый член необязателен: Kodik не возвращает данные, которых нет в источниках.

Fields§

§title: Option<String>§anime_title: Option<String>§title_en: Option<String>§other_titles: Option<Vec<String>>§other_titles_en: Option<Vec<String>>§other_titles_jp: Option<Vec<String>>§anime_license_name: Option<String>§anime_licensed_by: Option<Vec<String>>§anime_kind: Option<String>§mydramalist_tags: Option<Vec<String>>§all_status: Option<String>§anime_status: Option<String>§drama_status: Option<String>§year: Option<i32>§tagline: Option<String>§description: Option<String>§anime_description: Option<String>§poster_url: Option<String>§anime_poster_url: Option<String>§drama_poster_url: Option<String>§screenshots: Option<Vec<String>>§duration: Option<u32>§countries: Option<Vec<String>>§all_genres: Option<Vec<String>>§genres: Option<Vec<String>>§anime_genres: Option<Vec<String>>§drama_genres: Option<Vec<String>>§anime_studios: Option<Vec<String>>§kinopoisk_rating: Option<f64>§kinopoisk_votes: Option<u64>§imdb_rating: Option<f64>§imdb_votes: Option<u64>§shikimori_rating: Option<f64>§shikimori_votes: Option<u64>§mydramalist_rating: Option<f64>§mydramalist_votes: Option<u64>§premiere_ru: Option<String>§premiere_world: Option<String>§aired_at: Option<String>§released_at: Option<String>§next_episode_at: Option<String>§rating_mpaa: Option<String>§minimal_age: Option<u32>§episodes_total: Option<u32>§episodes_aired: Option<u32>§actors: Option<Vec<String>>§directors: Option<Vec<String>>§producers: Option<Vec<String>>§writers: Option<Vec<String>>§composers: Option<Vec<String>>§editors: Option<Vec<String>>§designers: Option<Vec<String>>§operators: Option<Vec<String>>

Trait Implementations§

Source§

impl Clone for MaterialData

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Default for MaterialData

Source§

fn default() -> Self

Returns the “default value” for a type. 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 PartialEq for MaterialData

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. 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
Source§

impl StructuralPartialEq for MaterialData

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

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

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

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

Source§

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

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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