pub struct OAuthStore { /* private fields */ }Implementations§
Source§impl OAuthStore
impl OAuthStore
pub fn open(path: impl AsRef<Path>) -> Result<Self>
pub fn register_client( &self, request: RegisterRequest, ) -> Result<RegisteredClient>
pub fn client_allows_redirect( &self, client_id: &str, redirect_uri: &str, ) -> Result<bool>
pub fn create_code(&self, request: AuthorizeRequest) -> Result<String>
pub fn exchange_code(&self, request: TokenRequest) -> Result<TokenResponse>
pub fn validate_access_token(&self, bearer_token: &str) -> Result<bool>
Trait Implementations§
Source§impl Clone for OAuthStore
impl Clone for OAuthStore
Source§fn clone(&self) -> OAuthStore
fn clone(&self) -> OAuthStore
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 Freeze for OAuthStore
impl RefUnwindSafe for OAuthStore
impl Send for OAuthStore
impl Sync for OAuthStore
impl Unpin for OAuthStore
impl UnsafeUnpin for OAuthStore
impl UnwindSafe for OAuthStore
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