Struct novel_api::SfacgClient
source · pub struct SfacgClient { /* private fields */ }Expand description
Sfacg client, use it to access Apis
Implementations§
Trait Implementations§
source§impl Client for SfacgClient
impl Client for SfacgClient
source§fn cert(&mut self, cert_path: PathBuf)
fn cert(&mut self, cert_path: PathBuf)
Set the certificate path for use with packet capture tools
Add cookie
source§async fn log_in(
&self,
username: String,
password: Option<String>
) -> Result<(), Error>
async fn log_in( &self, username: String, password: Option<String> ) -> Result<(), Error>
Login in
source§async fn user_info(&self) -> Result<UserInfo, Error>
async fn user_info(&self) -> Result<UserInfo, Error>
Get the information of the logged-in user
source§async fn bookshelf_infos(&self) -> Result<Vec<u32>, Error>
async fn bookshelf_infos(&self) -> Result<Vec<u32>, Error>
Get the favorite novel of the logged-in user and return the novel id
source§async fn volume_infos(&self, id: u32) -> Result<Option<VolumeInfos>, Error>
async fn volume_infos(&self, id: u32) -> Result<Option<VolumeInfos>, Error>
Get volume Information
source§async fn content_infos(&self, info: &ChapterInfo) -> Result<ContentInfos, Error>
async fn content_infos(&self, info: &ChapterInfo) -> Result<ContentInfos, Error>
Get content Information
source§async fn buy_chapter(&self, info: &ChapterInfo) -> Result<(), Error>
async fn buy_chapter(&self, info: &ChapterInfo) -> Result<(), Error>
Buy chapter
Get all tags
Auto Trait Implementations§
impl !Freeze for SfacgClient
impl !RefUnwindSafe for SfacgClient
impl Send for SfacgClient
impl Sync for SfacgClient
impl Unpin for SfacgClient
impl !UnwindSafe for SfacgClient
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> 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