pub struct AdvancedDatabaseConfig {
pub default_find_many_limit: usize,
pub schema_name: Option<String>,
pub two_factor: Option<TwoFactorDatabaseConfig>,
pub use_number_id: bool,
pub generate_id: Option<DatabaseIdStrategy>,
}Expand description
Database-related advanced options.
Fields§
§default_find_many_limit: usizeDefault LIMIT for “find many” queries.
schema_name: Option<String>PostgreSQL namespace for every auth relation; does not change search_path.
two_factor: Option<TwoFactorDatabaseConfig>Optional physical table and column mapping for two-factor credentials.
use_number_id: boolUse persistent serial identifiers when no explicit generation strategy is set. Numeric invitation IDs require email verification by default.
generate_id: Option<DatabaseIdStrategy>Override the model default for every adapter-created identifier.
Implementations§
Source§impl AdvancedDatabaseConfig
impl AdvancedDatabaseConfig
pub fn serial_ids(&self) -> bool
Trait Implementations§
Source§impl Clone for AdvancedDatabaseConfig
impl Clone for AdvancedDatabaseConfig
Source§fn clone(&self) -> AdvancedDatabaseConfig
fn clone(&self) -> AdvancedDatabaseConfig
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 moreSource§impl Debug for AdvancedDatabaseConfig
impl Debug for AdvancedDatabaseConfig
Source§impl Default for AdvancedDatabaseConfig
impl Default for AdvancedDatabaseConfig
Source§fn default() -> AdvancedDatabaseConfig
fn default() -> AdvancedDatabaseConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for AdvancedDatabaseConfig
impl !UnwindSafe for AdvancedDatabaseConfig
impl Freeze for AdvancedDatabaseConfig
impl Send for AdvancedDatabaseConfig
impl Sync for AdvancedDatabaseConfig
impl Unpin for AdvancedDatabaseConfig
impl UnsafeUnpin for AdvancedDatabaseConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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