pub struct AdvancedConfig {
pub ip_address: IpAddressConfig,
pub disable_csrf_check: bool,
pub disable_origin_check: bool,
pub cross_sub_domain_cookies: Option<CrossSubDomainConfig>,
pub cookies: HashMap<String, CookieOverride>,
pub default_cookie_attributes: CookieAttributes,
pub cookie_prefix: Option<String>,
pub database: AdvancedDatabaseConfig,
pub trusted_proxy_headers: Vec<String>,
}Expand description
Advanced configuration options (mirrors TS advanced block).
Fields§
§ip_address: IpAddressConfigIP address extraction configuration.
disable_csrf_check: boolIf true, the CSRF-check middleware is disabled.
disable_origin_check: boolIf true, the Origin header check is skipped.
Cross-subdomain cookie sharing configuration.
Per-cookie-name overrides (name, attributes, prefix).
Keys are the logical cookie names (e.g. "session_token",
"csrf_token"). Values specify the attributes to override.
Default cookie attributes applied to every cookie the library sets
(individual overrides in cookies take precedence).
Optional prefix prepended to every cookie name (e.g. "myapp" →
"myapp.session_token").
database: AdvancedDatabaseConfigDatabase-related advanced options.
trusted_proxy_headers: Vec<String>List of header names the framework trusts for extracting the
client’s real IP when behind a proxy (e.g. X-Forwarded-For).
Trait Implementations§
Source§impl Clone for AdvancedConfig
impl Clone for AdvancedConfig
Source§fn clone(&self) -> AdvancedConfig
fn clone(&self) -> AdvancedConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more