pub struct DeadpoolPostgresStores {
pub adapter: DeadpoolPostgresAdapter,
pub rate_limit: DeadpoolPostgresRateLimitStore,
}Expand description
Database adapter and matching SQL-backed rate-limit store sharing one pool.
Fields§
§adapter: DeadpoolPostgresAdapter§rate_limit: DeadpoolPostgresRateLimitStoreImplementations§
Source§impl DeadpoolPostgresStores
impl DeadpoolPostgresStores
pub fn builder() -> DeadpoolPostgresBuilder
pub async fn connect(database_url: &str) -> Result<Self, RustAuthError>
pub async fn connect_with_schema( database_url: &str, schema: DbSchema, ) -> Result<Self, RustAuthError>
pub async fn connect_checked(database_url: &str) -> Result<Self, RustAuthError>
pub async fn connect_with_schema_checked( 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) -> &DeadpoolPostgresAdapter
pub fn pool(&self) -> &Pool
Trait Implementations§
Source§impl Clone for DeadpoolPostgresStores
impl Clone for DeadpoolPostgresStores
Source§fn clone(&self) -> DeadpoolPostgresStores
fn clone(&self) -> DeadpoolPostgresStores
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 DeadpoolPostgresStores
impl !UnwindSafe for DeadpoolPostgresStores
impl Freeze for DeadpoolPostgresStores
impl Send for DeadpoolPostgresStores
impl Sync for DeadpoolPostgresStores
impl Unpin for DeadpoolPostgresStores
impl UnsafeUnpin for DeadpoolPostgresStores
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