Struct novel_api::ChapterInfo
source · pub struct ChapterInfo {
pub identifier: Identifier,
pub title: String,
pub is_vip: Option<bool>,
pub is_accessible: Option<bool>,
pub is_valid: Option<bool>,
pub word_count: Option<u16>,
pub update_time: Option<NaiveDateTime>,
}Expand description
Chapter information
Fields§
§identifier: IdentifierChapter identifier
title: StringChapter title
is_vip: Option<bool>Whether this chapter can only be read by VIP users
is_accessible: Option<bool>Is the chapter accessible
is_valid: Option<bool>Is the chapter valid
word_count: Option<u16>Word count
update_time: Option<NaiveDateTime>last update time
Implementations§
source§impl ChapterInfo
impl ChapterInfo
sourcepub fn is_accessible(&self) -> bool
pub fn is_accessible(&self) -> bool
Is this chapter available
sourcepub fn can_download(&self) -> bool
pub fn can_download(&self) -> bool
Is this chapter available for download
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ChapterInfo
impl Send for ChapterInfo
impl Sync for ChapterInfo
impl Unpin for ChapterInfo
impl UnwindSafe for ChapterInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more