pub struct PostgresStoreOptions { /* private fields */ }
Available on crate feature
postgres
only.Expand description
Configuration options for PostgreSQL stores
Implementations§
Source§impl PostgresStoreOptions
impl PostgresStoreOptions
Sourcepub fn new<'a, O>(options: O) -> Result<Self, Error>where
O: IntoOptions<'a>,
pub fn new<'a, O>(options: O) -> Result<Self, Error>where
O: IntoOptions<'a>,
Initialize PostgresStoreOptions
from a generic set of options
Sourcepub async fn provision(
self,
method: StoreKeyMethod,
pass_key: PassKey<'_>,
profile: Option<String>,
recreate: bool,
) -> Result<PostgresBackend, Error>
pub async fn provision( self, method: StoreKeyMethod, pass_key: PassKey<'_>, profile: Option<String>, recreate: bool, ) -> Result<PostgresBackend, Error>
Provision a Postgres store from this set of configuration options
Sourcepub async fn open(
self,
method: Option<StoreKeyMethod>,
pass_key: PassKey<'_>,
profile: Option<String>,
) -> Result<PostgresBackend, Error>
pub async fn open( self, method: Option<StoreKeyMethod>, pass_key: PassKey<'_>, profile: Option<String>, ) -> Result<PostgresBackend, Error>
Open an existing Postgres store from this set of configuration options
Trait Implementations§
Source§impl Debug for PostgresStoreOptions
impl Debug for PostgresStoreOptions
Source§impl<'a> ManageBackend<'a> for PostgresStoreOptions
impl<'a> ManageBackend<'a> for PostgresStoreOptions
Source§type Backend = PostgresBackend
type Backend = PostgresBackend
The type of backend being managed
Source§fn open_backend(
self,
method: Option<StoreKeyMethod>,
pass_key: PassKey<'_>,
profile: Option<String>,
) -> BoxFuture<'a, Result<PostgresBackend, Error>>
fn open_backend( self, method: Option<StoreKeyMethod>, pass_key: PassKey<'_>, profile: Option<String>, ) -> BoxFuture<'a, Result<PostgresBackend, Error>>
Open an existing store
Source§fn provision_backend(
self,
method: StoreKeyMethod,
pass_key: PassKey<'_>,
profile: Option<String>,
recreate: bool,
) -> BoxFuture<'a, Result<PostgresBackend, Error>>
fn provision_backend( self, method: StoreKeyMethod, pass_key: PassKey<'_>, profile: Option<String>, recreate: bool, ) -> BoxFuture<'a, Result<PostgresBackend, Error>>
Provision a new store
Auto Trait Implementations§
impl Freeze for PostgresStoreOptions
impl RefUnwindSafe for PostgresStoreOptions
impl Send for PostgresStoreOptions
impl Sync for PostgresStoreOptions
impl Unpin for PostgresStoreOptions
impl UnwindSafe for PostgresStoreOptions
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more