pub struct TokioPostgresStores {
pub adapter: TokioPostgresAdapter,
pub rate_limit: TokioPostgresRateLimitStore,
}Expand description
Database adapter and matching SQL-backed rate-limit store sharing one client.
Fields§
§adapter: TokioPostgresAdapter§rate_limit: TokioPostgresRateLimitStoreImplementations§
Source§impl TokioPostgresStores
impl TokioPostgresStores
pub fn builder() -> TokioPostgresStoresBuilder
pub async fn connect(database_url: &str) -> Result<Self, RustAuthError>
pub async fn connect_with_schema( database_url: &str, schema: DbSchema, ) -> Result<Self, RustAuthError>
Sourcepub fn apply_to_options(&self, options: RustAuthOptions) -> RustAuthOptions
pub fn apply_to_options(&self, options: RustAuthOptions) -> RustAuthOptions
Wires the SQL-backed rate-limit store into RustAuthOptions.
pub fn adapter(&self) -> Arc<dyn DbAdapter>
pub fn adapter_ref(&self) -> &TokioPostgresAdapter
Trait Implementations§
Source§impl Clone for TokioPostgresStores
impl Clone for TokioPostgresStores
Source§fn clone(&self) -> TokioPostgresStores
fn clone(&self) -> TokioPostgresStores
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 !RefUnwindSafe for TokioPostgresStores
impl !UnwindSafe for TokioPostgresStores
impl Freeze for TokioPostgresStores
impl Send for TokioPostgresStores
impl Sync for TokioPostgresStores
impl Unpin for TokioPostgresStores
impl UnsafeUnpin for TokioPostgresStores
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