pub struct Oauth { /* private fields */ }Implementations§
source§impl Oauth
impl Oauth
pub fn new( api_key_code: &str, api_secret_code: &str, callback_url: &str, scopes: Vec<OAuthScope>, ) -> Result<Self, Error>
pub fn oauth_url(&self, state: Option<String>) -> OAuthUrlResult
pub async fn token( &self, pkce_verifier_str: &str, code: &str, ) -> Result<TokenResult, Error>
Auto Trait Implementations§
impl Freeze for Oauth
impl RefUnwindSafe for Oauth
impl Send for Oauth
impl Sync for Oauth
impl Unpin for Oauth
impl UnwindSafe for Oauth
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