pub struct AuthClient { /* private fields */ }Implementations§
Source§impl AuthClient
impl AuthClient
pub async fn get( &self, url: &str, headers: Option<&Headers>, query: &Query<'_>, ) -> Result<String, AuthError>
pub async fn post( &self, url: &str, headers: Option<&Headers>, query: Option<&Query<'_>>, payload: &Value, ) -> Result<String, AuthError>
pub async fn post_form( &self, url: &str, headers: Option<&Headers>, payload: &Form<'_>, ) -> Result<String, AuthError>
pub async fn put( &self, url: &str, headers: Option<&Headers>, query: Option<&Query<'_>>, payload: &Value, ) -> Result<String, AuthError>
pub async fn delete( &self, url: &str, headers: Option<&Headers>, payload: &Value, ) -> Result<String, AuthError>
Trait Implementations§
Source§impl Clone for AuthClient
impl Clone for AuthClient
Source§fn clone(&self) -> AuthClient
fn clone(&self) -> AuthClient
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 AuthClient
impl Debug for AuthClient
Auto Trait Implementations§
impl Freeze for AuthClient
impl !RefUnwindSafe for AuthClient
impl Send for AuthClient
impl Sync for AuthClient
impl Unpin for AuthClient
impl !UnwindSafe for AuthClient
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