Skip to main content

OAuthTokenConversionStore

Trait OAuthTokenConversionStore 

Source
pub trait OAuthTokenConversionStore<S>: Send + Sync
where S: AuthSchema,
{ // Required method fn compare_and_swap_oauth_tokens<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, observed: &'life1 OAuthTokenSnapshot, replacement: &'life2 OAuthTokenValues, ) -> Pin<Box<dyn Future<Output = Result<bool, AuthError>> + Send + 'async_trait>> where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait; }
Expand description

Administrative storage capability, separate from live account operations. Use a physical adapter, without output transforms or account-update hooks.

Required Methods§

Source

fn compare_and_swap_oauth_tokens<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, observed: &'life1 OAuthTokenSnapshot, replacement: &'life2 OAuthTokenValues, ) -> Pin<Box<dyn Future<Output = Result<bool, AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Replace all three token columns in one atomic statement only if the row identity, owner and every nullable token equal observed exactly. Return false for a missing/changed row; leave all other columns untouched.

§Errors

Returns a storage error without committing a partial token replacement.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§