Struct dynasty_api::DynastyApi
source · [−]pub struct DynastyApi { /* private fields */ }Expand description
A Dynasty Reader’s client
DynastyApi only has one struct field, a reqwest::Client that will be used to send requests
Implementations
sourceimpl DynastyApi
impl DynastyApi
sourcepub fn new() -> DynastyApi
pub fn new() -> DynastyApi
Creates a Dynasty Reader’s client with default reqwest::Client
The default reqwest::Client has user agent set to concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION"),)
sourcepub fn with_client(client: Client) -> DynastyApi
pub fn with_client(client: Client) -> DynastyApi
Creates a Dynasty Reader’s client
sourcepub fn clone_reqwest_client(&self) -> Client
pub fn clone_reqwest_client(&self) -> Client
Clones this Dynasty Reader’s reqwest::Client
sourcepub async fn directory_list(
&self,
config: DirectoryListConfig
) -> Result<DirectoryList>
pub async fn directory_list(
&self,
config: DirectoryListConfig
) -> Result<DirectoryList>
Gets a DirectoryList
sourcepub async fn recent(&self, config: RecentChapterConfig) -> Result<RecentChapter>
pub async fn recent(&self, config: RecentChapterConfig) -> Result<RecentChapter>
Gets a RecentChapter
Trait Implementations
sourceimpl Clone for DynastyApi
impl Clone for DynastyApi
sourcefn clone(&self) -> DynastyApi
fn clone(&self) -> DynastyApi
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for DynastyApi
impl Debug for DynastyApi
Auto Trait Implementations
impl !RefUnwindSafe for DynastyApi
impl Send for DynastyApi
impl Sync for DynastyApi
impl Unpin for DynastyApi
impl !UnwindSafe for DynastyApi
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more