pub trait Request {
// Required methods
fn new(access_token: String) -> Self;
fn post<T: Serialize + Send, A: Serialize + Send + Sized>(
&self,
url: &str,
method: &str,
query: A,
body: T
) -> impl Future<Output = Result<Value, Error>> + Send;
fn get<T: Serialize + Send, A: Serialize + Send + Sized>(
&self,
url: &str,
method: &str,
query: A,
body: T
) -> impl Future<Output = Result<Value, Error>> + Send;
}Required Methods§
fn new(access_token: String) -> Self
fn post<T: Serialize + Send, A: Serialize + Send + Sized>( &self, url: &str, method: &str, query: A, body: T ) -> impl Future<Output = Result<Value, Error>> + Send
fn get<T: Serialize + Send, A: Serialize + Send + Sized>( &self, url: &str, method: &str, query: A, body: T ) -> impl Future<Output = Result<Value, Error>> + Send
Object Safety§
This trait is not object safe.