[][src]Enum serde_mangadex::chapter_api::Chapter

pub enum Chapter {
    Deleted {
        id: u32,
    },
    Delayed(Box<Delayed>),
    Unavailable(Box<Unavailable>),
    Ok(Box<OK>),
    External(Box<External>),
    Error(Error),
}

Information from the mangadex chapter api (/api/chapter/2; .)

Variants

Deleted

When the chapter is deleted by the user or a moderator

Fields of Deleted

id: u32
Delayed(Box<Delayed>)

When the chapter has a group delay

Unavailable(Box<Unavailable>)

When the chapter is unavailable

Ok(Box<OK>)

When the chapter is available

External(Box<External>)

When the chapter is an external chapter

Error(Error)

When some other error happens (eg not created yet)

Methods

impl Chapter[src]

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

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

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

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

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

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

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

Converts a mangadexchapterapi into an Option for information.

pub fn delayed(self) -> Option<Delayed>[src]

pub fn err(self) -> Option<Error>[src]

pub fn external(self) -> Option<External>[src]

Trait Implementations

impl Clone for Chapter[src]

impl PartialEq<Chapter> for Chapter[src]

impl Debug for Chapter[src]

impl StructuralPartialEq for Chapter[src]

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

Auto Trait Implementations

impl Send for Chapter

impl Sync for Chapter

impl Unpin for Chapter

impl UnwindSafe for Chapter

impl RefUnwindSafe for Chapter

Blanket Implementations

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 = !

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.

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

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

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

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