pub trait OAuthHttp: Sync {
// Required methods
fn post_form(
&self,
url: &str,
params: &[(&str, String)],
) -> impl Future<Output = Result<HttpReply, String>> + Send;
fn get_bearer(
&self,
url: &str,
token: &str,
) -> impl Future<Output = Result<HttpReply, String>> + Send;
}Expand description
The calls srv makes to a provider’s OAuth endpoints.
Required Methods§
fn post_form( &self, url: &str, params: &[(&str, String)], ) -> impl Future<Output = Result<HttpReply, String>> + Send
fn get_bearer( &self, url: &str, token: &str, ) -> impl Future<Output = Result<HttpReply, String>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".