Entry

Enum Entry 

Source
pub enum Entry {
    Anime {
Show 14 fields id: u64, titles: Titles, anime_type: AnimeType, total_episodes: Option<u32>, aired_episodes: u32, description: String, source: Source, characters: Vec<Character>, openings: Vec<EntrySong>, endings: Vec<EntrySong>, staff: Vec<Staff>, studios: Vec<Studio>, links: Vec<Link>, pv_yt_id: String,
}, Manga { id: u64, titles: Titles, total_chapters: Option<u32>, published_chapters: u32, description: String, characters: Vec<Character>, staff: Vec<Staff>, links: Vec<Link>, }, }

Variants§

§

Anime

Fields

§id: u64

The numeric ID of the entry. Must be unique within the set of entries

§titles: Titles

The title(s) of the anime

§anime_type: AnimeType

The format of the anime

§total_episodes: Option<u32>

The total number of episodes that will air

§aired_episodes: u32

The number of episodes that have aired

§description: String

The description/summary of the anime

§source: Source

What type of source material the anime is based on

§characters: Vec<Character>

List of characters in the anime

§openings: Vec<EntrySong>

List of opening theme songs

§endings: Vec<EntrySong>

List of ending theme songs

§staff: Vec<Staff>

List of staff who worked on the anime

§studios: Vec<Studio>

List of studios which worked on the anime

§links: Vec<Link>

List of related links, e.g. licensed streaming services, youtube channels, official websites, etc.

§pv_yt_id: String

The YouTube ID of the anime’s PV

§

Manga

Fields

§id: u64

The numeric ID of the entry. Must be unique within the set of entries

§titles: Titles
§total_chapters: Option<u32>
§published_chapters: u32
§description: String
§characters: Vec<Character>
§staff: Vec<Staff>
§links: Vec<Link>

Trait Implementations§

Source§

impl Debug for Entry

Source§

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

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

impl<'de> Deserialize<'de> for Entry

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 Entry

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§

§

impl Freeze for Entry

§

impl RefUnwindSafe for Entry

§

impl Send for Entry

§

impl Sync for Entry

§

impl Unpin for Entry

§

impl UnwindSafe for Entry

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, 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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,