pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn new( client: Client, endpoint: String, credentials: Option<Credentials>, ) -> Self
pub fn builder() -> Builder
pub fn set_endpoint(&mut self, endpoint: String)
pub fn set_credentials(&mut self, credentials: Option<Credentials>)
pub fn inner(&self) -> &Client
Trait Implementations§
Source§impl From<Credentials> for Client
impl From<Credentials> for Client
Source§fn from(credentials: Credentials) -> Self
fn from(credentials: Credentials) -> Self
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
fn get<T>(&self, endpoint: &str) -> impl Future<Output = Result<T, Self::Error>>
fn post<T, U>( &self, endpoint: &str, payload: &T, ) -> impl Future<Output = Result<U, Self::Error>>
fn put<T, U>( &self, endpoint: &str, payload: &T, ) -> impl Future<Output = Result<U, Self::Error>>
fn patch<T, U>( &self, endpoint: &str, payload: &T, ) -> impl Future<Output = Result<U, Self::Error>>
fn delete( &self, endpoint: &str, ) -> impl Future<Output = Result<(), Self::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