pub struct OpenAuthOptions {Show 20 fields
pub base_url: Option<String>,
pub base_path: Option<String>,
pub secret: Option<String>,
pub secrets: Vec<SecretEntry>,
pub trusted_origins: TrustedOriginOptions,
pub disabled_paths: Vec<String>,
pub session: SessionOptions,
pub user: UserOptions,
pub email_password: EmailPasswordOptions,
pub email_verification: EmailVerificationOptions,
pub password: PasswordOptions,
pub account: AccountOptions,
pub advanced: AdvancedOptions,
pub rate_limit: RateLimitOptions,
pub secondary_storage: Option<Arc<dyn SecondaryStorage>>,
pub plugins: Vec<AuthPlugin>,
pub social_providers: Vec<Arc<dyn SocialOAuthProvider>>,
pub production: bool,
pub telemetry: TelemetryOptions,
pub experimental: ExperimentalOptions,
}Expand description
Top-level OpenAuth configuration.
Fields§
§base_url: Option<String>§base_path: Option<String>§secret: Option<String>§secrets: Vec<SecretEntry>§trusted_origins: TrustedOriginOptions§disabled_paths: Vec<String>§session: SessionOptions§user: UserOptions§email_password: EmailPasswordOptions§email_verification: EmailVerificationOptions§password: PasswordOptions§account: AccountOptions§advanced: AdvancedOptions§rate_limit: RateLimitOptions§secondary_storage: Option<Arc<dyn SecondaryStorage>>§plugins: Vec<AuthPlugin>§production: bool§telemetry: TelemetryOptions§experimental: ExperimentalOptionsImplementations§
Source§impl OpenAuthOptions
impl OpenAuthOptions
pub fn new() -> OpenAuthOptions
pub fn builder() -> OpenAuthOptions
pub fn base_url(self, base_url: impl Into<String>) -> OpenAuthOptions
pub fn base_path(self, base_path: impl Into<String>) -> OpenAuthOptions
pub fn secret(self, secret: impl Into<String>) -> OpenAuthOptions
pub fn secrets(self, secrets: Vec<SecretEntry>) -> OpenAuthOptions
pub fn trusted_origins( self, trusted_origins: TrustedOriginOptions, ) -> OpenAuthOptions
pub fn disabled_path(self, path: impl Into<String>) -> OpenAuthOptions
pub fn disabled_paths<I, S>(self, paths: I) -> OpenAuthOptions
pub fn session(self, session: SessionOptions) -> OpenAuthOptions
pub fn user(self, user: UserOptions) -> OpenAuthOptions
pub fn email_password( self, email_password: EmailPasswordOptions, ) -> OpenAuthOptions
pub fn email_verification( self, email_verification: EmailVerificationOptions, ) -> OpenAuthOptions
pub fn password(self, password: PasswordOptions) -> OpenAuthOptions
pub fn account(self, account: AccountOptions) -> OpenAuthOptions
pub fn advanced(self, advanced: AdvancedOptions) -> OpenAuthOptions
pub fn rate_limit(self, rate_limit: RateLimitOptions) -> OpenAuthOptions
pub fn secondary_storage( self, storage: Arc<dyn SecondaryStorage>, ) -> OpenAuthOptions
pub fn plugin(self, plugin: AuthPlugin) -> OpenAuthOptions
pub fn plugins(self, plugins: Vec<AuthPlugin>) -> OpenAuthOptions
pub fn production(self, production: bool) -> OpenAuthOptions
pub fn telemetry(self, telemetry: TelemetryOptions) -> OpenAuthOptions
pub fn experimental(self, experimental: ExperimentalOptions) -> OpenAuthOptions
Trait Implementations§
Source§impl Clone for OpenAuthOptions
impl Clone for OpenAuthOptions
Source§fn clone(&self) -> OpenAuthOptions
fn clone(&self) -> OpenAuthOptions
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 OpenAuthOptions
impl Debug for OpenAuthOptions
Source§impl Default for OpenAuthOptions
impl Default for OpenAuthOptions
Source§fn default() -> OpenAuthOptions
fn default() -> OpenAuthOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for OpenAuthOptions
impl !UnwindSafe for OpenAuthOptions
impl Freeze for OpenAuthOptions
impl Send for OpenAuthOptions
impl Sync for OpenAuthOptions
impl Unpin for OpenAuthOptions
impl UnsafeUnpin for OpenAuthOptions
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