pub trait SessionContextConfigSource {
Show 18 methods
// Required methods
fn cookie_name_config(&self) -> &str;
fn session_context_key_config(&self) -> &str;
fn cookie_path_config(&self) -> &str;
fn http_only_config(&self) -> bool;
fn secure_config(&self) -> bool;
fn same_site_config(&self) -> SessionCookieSameSite;
fn ttl_config(&self) -> Option<StdDuration>;
fn post_auth_redirect_config(&self) -> &RedirectTargetConfig;
// Provided methods
fn resolve_cookie_name(&self) -> String { ... }
fn resolve_session_context_key(&self) -> String { ... }
fn resolve_cookie_path(&self) -> String { ... }
fn resolve_http_only(&self) -> bool { ... }
fn resolve_secure(&self) -> bool { ... }
fn resolve_same_site(&self) -> SessionCookieSameSite { ... }
fn resolve_ttl(&self) -> Option<StdDuration> { ... }
fn resolve_post_auth_redirect_config(
&self,
) -> SessionContextResult<RedirectTargetConfig> { ... }
fn resolve_all(
&self,
) -> Result<ResolvedSessionContextConfig, SessionContextConfigValidationFailure> { ... }
fn resolve_all_with_validator<V>(
&self,
validator: &V,
) -> Result<ResolvedSessionContextConfig, SessionContextConfigValidationFailure>
where V: SessionContextConfigValidator { ... }
}Required Methods§
fn session_context_key_config(&self) -> &str
fn http_only_config(&self) -> bool
fn secure_config(&self) -> bool
fn same_site_config(&self) -> SessionCookieSameSite
fn ttl_config(&self) -> Option<StdDuration>
fn post_auth_redirect_config(&self) -> &RedirectTargetConfig
Provided Methods§
fn resolve_session_context_key(&self) -> String
fn resolve_http_only(&self) -> bool
fn resolve_secure(&self) -> bool
fn resolve_same_site(&self) -> SessionCookieSameSite
fn resolve_ttl(&self) -> Option<StdDuration>
fn resolve_post_auth_redirect_config( &self, ) -> SessionContextResult<RedirectTargetConfig>
fn resolve_all( &self, ) -> Result<ResolvedSessionContextConfig, SessionContextConfigValidationFailure>
fn resolve_all_with_validator<V>(
&self,
validator: &V,
) -> Result<ResolvedSessionContextConfig, SessionContextConfigValidationFailure>where
V: SessionContextConfigValidator,
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.