pub struct NetworkNovelCache {
pub book_list_item: BookListItem,
pub book_source_url: String,
pub book_source_name: String,
pub current_chapter: usize,
pub current_chapter_name: String,
pub line_percent: f64,
pub chapter_percent: f64,
}Expand description
历史记录(一个用于展示,一个用于缓存,方便下次快速访问)
Fields§
§book_list_item: BookListItem§book_source_url: String§book_source_name: String§current_chapter: usize§current_chapter_name: String§line_percent: f64§chapter_percent: f64Implementations§
Trait Implementations§
Source§impl Clone for NetworkNovelCache
impl Clone for NetworkNovelCache
Source§fn clone(&self) -> NetworkNovelCache
fn clone(&self) -> NetworkNovelCache
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetworkNovelCache
impl Debug for NetworkNovelCache
Source§impl<'de> Deserialize<'de> for NetworkNovelCache
impl<'de> Deserialize<'de> for NetworkNovelCache
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 From<NetworkNovelCache> for HistoryItem
impl From<NetworkNovelCache> for HistoryItem
Source§fn from(item: NetworkNovelCache) -> Self
fn from(item: NetworkNovelCache) -> Self
Converts to this type from the input type.
Source§impl From<NetworkNovelCache> for NetworkHistoryItem
impl From<NetworkNovelCache> for NetworkHistoryItem
Source§fn from(value: NetworkNovelCache) -> Self
fn from(value: NetworkNovelCache) -> Self
Converts to this type from the input type.
Source§impl Serialize for NetworkNovelCache
impl Serialize for NetworkNovelCache
Source§impl TryFrom<&NetworkNovel> for NetworkNovelCache
impl TryFrom<&NetworkNovel> for NetworkNovelCache
Auto Trait Implementations§
impl Freeze for NetworkNovelCache
impl RefUnwindSafe for NetworkNovelCache
impl Send for NetworkNovelCache
impl Sync for NetworkNovelCache
impl Unpin for NetworkNovelCache
impl UnwindSafe for NetworkNovelCache
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more