pub struct FakeOAuthCredentialStore { /* private fields */ }Implementations§
Source§impl FakeOAuthCredentialStore
impl FakeOAuthCredentialStore
pub fn new() -> Self
pub fn with_credential(self, key: &str, credential: OAuthCredential) -> Self
Trait Implementations§
Source§impl Default for FakeOAuthCredentialStore
impl Default for FakeOAuthCredentialStore
Source§fn default() -> FakeOAuthCredentialStore
fn default() -> FakeOAuthCredentialStore
Returns the “default value” for a type. Read more
Source§impl OAuthCredentialStorage for FakeOAuthCredentialStore
impl OAuthCredentialStorage for FakeOAuthCredentialStore
fn load_credential<'life0, 'life1, 'async_trait>(
&'life0 self,
server_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<OAuthCredential>, OAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_credential<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
credential: OAuthCredential,
) -> Pin<Box<dyn Future<Output = Result<(), OAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_credential<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), OAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn has_credential(&self, key: &str) -> bool
Auto Trait Implementations§
impl !Freeze for FakeOAuthCredentialStore
impl RefUnwindSafe for FakeOAuthCredentialStore
impl Send for FakeOAuthCredentialStore
impl Sync for FakeOAuthCredentialStore
impl Unpin for FakeOAuthCredentialStore
impl UnsafeUnpin for FakeOAuthCredentialStore
impl UnwindSafe for FakeOAuthCredentialStore
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