[−][src]Enum serde_mangadex::chapter_api::Chapter
Information from the mangadex chapter api (/api/chapter/2; .)
Variants
When the chapter is deleted by the user or a moderator
Fields of Deleted
id: u32
When the chapter has a group delay
When the chapter is unavailable
When the chapter is available
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,