pub trait CoreConfig:
Global
+ SignalConfig
+ TelemetryConfig
+ Sync
+ Send
+ 'static {
Show 22 methods
// Required methods
fn service_name(&self) -> &str;
fn bind(&self) -> SocketAddr;
fn db(
&self,
) -> impl Future<Output = Result<PooledConnection<'_, AsyncPgConnection>>> + Send;
fn authorizer(&self) -> &Authorizer;
fn http_client(&self) -> &Client;
fn webauthn(&self) -> &Webauthn;
fn redis(&self) -> &Pool;
fn email_service(&self) -> EmailServiceClient<Channel>;
fn user_loader(&self) -> &DataLoader<UserLoader>;
fn dashboard_origin(&self) -> &Url;
fn google_client_id(&self) -> &str;
fn google_client_secret(&self) -> &str;
fn email_from_address(&self) -> &str;
// Provided methods
fn swagger_ui_enabled(&self) -> bool { ... }
fn turnstile_secret_key(&self) -> &str { ... }
fn max_request_lifetime(&self) -> Duration { ... }
fn user_session_timeout(&self) -> Duration { ... }
fn mfa_timeout(&self) -> Duration { ... }
fn user_session_token_timeout(&self) -> Duration { ... }
fn email_registration_request_timeout(&self) -> Duration { ... }
fn user_session_request_timeout(&self) -> Duration { ... }
fn magic_link_user_session_request_timeout(&self) -> Duration { ... }
}
Required Methods§
fn service_name(&self) -> &str
fn bind(&self) -> SocketAddr
fn db( &self, ) -> impl Future<Output = Result<PooledConnection<'_, AsyncPgConnection>>> + Send
fn http_client(&self) -> &Client
fn webauthn(&self) -> &Webauthn
fn redis(&self) -> &Pool
fn email_service(&self) -> EmailServiceClient<Channel>
fn user_loader(&self) -> &DataLoader<UserLoader>
fn dashboard_origin(&self) -> &Url
fn google_client_id(&self) -> &str
fn google_client_secret(&self) -> &str
fn email_from_address(&self) -> &str
Provided Methods§
fn swagger_ui_enabled(&self) -> bool
fn turnstile_secret_key(&self) -> &str
fn max_request_lifetime(&self) -> Duration
fn user_session_timeout(&self) -> Duration
fn mfa_timeout(&self) -> Duration
fn user_session_token_timeout(&self) -> Duration
fn email_registration_request_timeout(&self) -> Duration
fn user_session_request_timeout(&self) -> Duration
fn magic_link_user_session_request_timeout(&self) -> Duration
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.