pub struct SqliteExternalConnectionStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl ExternalConnectionStore for SqliteExternalConnectionStore
impl ExternalConnectionStore for SqliteExternalConnectionStore
fn create_connection<'life0, 'async_trait>(
&'life0 self,
x: NewExternalConnection,
) -> Pin<Box<dyn Future<Output = Result<ExternalConnection, ExternalConnectionStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_connection<'life0, 'async_trait>(
&'life0 self,
o: UserId,
id: ExternalConnectionId,
) -> Pin<Box<dyn Future<Output = Result<Option<ExternalConnection>, ExternalConnectionStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn refresh_token<'life0, 'async_trait>(
&'life0 self,
owner: UserId,
id: ExternalConnectionId,
) -> Pin<Box<dyn Future<Output = Result<String, ExternalConnectionStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn refresh_token<'life0, 'async_trait>(
&'life0 self,
owner: UserId,
id: ExternalConnectionId,
) -> Pin<Box<dyn Future<Output = Result<String, ExternalConnectionStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Decrypt a refresh token for a trusted server-side provider operation.
This must never be exposed through an HTTP response or agent tool.
fn list_connections<'life0, 'async_trait>(
&'life0 self,
o: UserId,
) -> Pin<Box<dyn Future<Output = Result<Vec<ExternalConnection>, ExternalConnectionStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn update_credentials<'life0, 'async_trait>(
&'life0 self,
o: UserId,
id: ExternalConnectionId,
token: Option<String>,
s: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<ExternalConnection, ExternalConnectionStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_credentials<'life0, 'async_trait>(
&'life0 self,
o: UserId,
id: ExternalConnectionId,
token: Option<String>,
s: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<ExternalConnection, ExternalConnectionStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
None preserves the existing encrypted refresh token.
fn revoke_connection<'life0, 'async_trait>(
&'life0 self,
o: UserId,
id: ExternalConnectionId,
) -> Pin<Box<dyn Future<Output = Result<(), ExternalConnectionStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Atomically consumes state and decrypts its PKCE verifier; a state succeeds once.
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteExternalConnectionStore
impl !UnwindSafe for SqliteExternalConnectionStore
impl Freeze for SqliteExternalConnectionStore
impl Send for SqliteExternalConnectionStore
impl Sync for SqliteExternalConnectionStore
impl Unpin for SqliteExternalConnectionStore
impl UnsafeUnpin for SqliteExternalConnectionStore
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