[][src]Enum serde_mangadex::APIResponse

pub enum APIResponse {
    Chapter(Chapter),
    Manga(Manga),
}

API response type to be funneled through. Please don't actually use it.

Variants

Chapter(Chapter)
Manga(Manga)

Methods

impl APIResponse[src]

pub fn is_chapter(&self) -> bool[src]

pub fn is_manga(&self) -> bool[src]

pub fn chapter(self) -> Option<Chapter>[src]

pub fn chapter_ok(self) -> Option<OK>[src]

pub fn manga(self) -> Option<Manga>[src]

pub fn manga_ok(self) -> Option<Data>[src]

Trait Implementations

impl Clone for APIResponse[src]

impl Debug for APIResponse[src]

impl<'de> Deserialize<'de> for APIResponse[src]

impl PartialEq<APIResponse> for APIResponse[src]

impl StructuralPartialEq for APIResponse[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.