pub struct JsonSource {
pub book_source_url: String,
pub variables: Variables,
pub source_name: String,
pub source_group: String,
pub client: HttpClient,
pub search: Search,
pub explores: Option<Explores>,
pub rule: JsonRule,
}Fields§
§book_source_url: String§variables: Variables§source_name: String§source_group: String§client: HttpClient§search: Search§explores: Option<Explores>§rule: JsonRuleImplementations§
Source§impl JsonSource
impl JsonSource
pub async fn search_books(&mut self, params: Params) -> Result<BookList>
pub async fn explore_books( &mut self, explore: &ExploreItem, params: Params, ) -> Result<BookList>
pub async fn book_info( &mut self, book_list_item: &BookListItem, ) -> Result<BookInfo>
pub async fn chapter_list( &mut self, book_info: &BookInfo, ) -> Result<ChapterList>
pub async fn chapter_content(&mut self, chapter: &Chapter) -> Result<String>
Trait Implementations§
Source§impl Clone for JsonSource
impl Clone for JsonSource
Source§fn clone(&self) -> JsonSource
fn clone(&self) -> JsonSource
Returns a copy 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 JsonSource
impl Debug for JsonSource
Source§impl TryFrom<BookSource> for JsonSource
impl TryFrom<BookSource> for JsonSource
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for JsonSource
impl !RefUnwindSafe for JsonSource
impl Send for JsonSource
impl Sync for JsonSource
impl Unpin for JsonSource
impl !UnwindSafe for JsonSource
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