pub struct OAuthHttpClient { /* private fields */ }Implementations§
Source§impl OAuthHttpClient
impl OAuthHttpClient
pub fn new(client: Client) -> OAuthHttpClient
pub fn default_client() -> Result<OAuthHttpClient, OAuthError>
pub fn from_config( config: OAuthHttpClientConfig, ) -> Result<OAuthHttpClient, OAuthError>
pub async fn get_bytes(&self, url: &str) -> Result<Vec<u8>, OAuthError>
pub async fn post_form( &self, token_endpoint: &str, request: OAuthFormRequest, ) -> Result<Value, OAuthError>
Trait Implementations§
Source§impl Clone for OAuthHttpClient
impl Clone for OAuthHttpClient
Source§fn clone(&self) -> OAuthHttpClient
fn clone(&self) -> OAuthHttpClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for OAuthHttpClient
impl !UnwindSafe for OAuthHttpClient
impl Freeze for OAuthHttpClient
impl Send for OAuthHttpClient
impl Sync for OAuthHttpClient
impl Unpin for OAuthHttpClient
impl UnsafeUnpin for OAuthHttpClient
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