Struct clevercloud_sdk::oauth10a::Client [−][src]
pub struct Client { /* fields omitted */ }Implementations
Trait Implementations
Performs the conversion.
type Error = ClientError
pub fn request<'life0, 'life1, 'life2, 'life3, 'async_trait, T, U>(
&'life0 self,
method: &'life1 Method,
endpoint: &'life2 str,
payload: &'life3 T
) -> Pin<Box<dyn Future<Output = Result<U, <Client as Request>::Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
T: Serialize + Debug + Send + Sync + 'async_trait,
U: DeserializeOwned + Debug + Send + Sync + 'async_trait,
Client: 'async_trait,
type Error = ClientError
pub fn get<'life0, 'life1, 'async_trait, T>(
&'life0 self,
endpoint: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<T, <Client as RestClient>::Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
T: DeserializeOwned + Debug + Send + Sync + 'async_trait,
Client: 'async_trait,
pub fn post<'life0, 'life1, 'life2, 'async_trait, T, U>(
&'life0 self,
endpoint: &'life1 str,
payload: &'life2 T
) -> Pin<Box<dyn Future<Output = Result<U, <Client as RestClient>::Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: Serialize + Debug + Send + Sync + 'async_trait,
U: DeserializeOwned + Debug + Send + Sync + 'async_trait,
Client: 'async_trait,
pub fn put<'life0, 'life1, 'life2, 'async_trait, T, U>(
&'life0 self,
endpoint: &'life1 str,
payload: &'life2 T
) -> Pin<Box<dyn Future<Output = Result<U, <Client as RestClient>::Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: Serialize + Debug + Send + Sync + 'async_trait,
U: DeserializeOwned + Debug + Send + Sync + 'async_trait,
Client: 'async_trait,
pub fn patch<'life0, 'life1, 'life2, 'async_trait, T, U>(
&'life0 self,
endpoint: &'life1 str,
payload: &'life2 T
) -> Pin<Box<dyn Future<Output = Result<U, <Client as RestClient>::Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: Serialize + Debug + Send + Sync + 'async_trait,
U: DeserializeOwned + Debug + Send + Sync + 'async_trait,
Client: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
