pub struct Client { /* private fields */ }Implementations§
Trait Implementations§
Source§impl From<Credentials> for Client
impl From<Credentials> for Client
Source§fn from(credentials: Credentials) -> Client
fn from(credentials: Credentials) -> Client
Converts to this type from the input type.
Source§impl Request for Client
impl Request for Client
Source§impl RestClient for Client
impl RestClient for Client
type Error = ClientError
async fn get<T>( &self, endpoint: &str, ) -> Result<T, <Client as RestClient>::Error>
async fn post<T, U>( &self, endpoint: &str, payload: &T, ) -> Result<U, <Client as RestClient>::Error>
async fn put<T, U>( &self, endpoint: &str, payload: &T, ) -> Result<U, <Client as RestClient>::Error>
async fn patch<T, U>( &self, endpoint: &str, payload: &T, ) -> Result<U, <Client as RestClient>::Error>
async fn delete( &self, endpoint: &str, ) -> Result<(), <Client as RestClient>::Error>
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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