pub struct AdvancedOptions {
pub use_secure_cookies: Option<bool>,
pub cookie_prefix: Option<String>,
pub cross_subdomain_cookies: Option<CookieConfig>,
pub default_cookie_attributes: CookieAttributesOverride,
pub disable_csrf_check: bool,
pub disable_origin_check: bool,
pub skip_trailing_slashes: bool,
pub ip_address: IpAddressOptions,
}Expand description
Advanced configuration.
Fields§
§disable_csrf_check: bool§disable_origin_check: bool§skip_trailing_slashes: bool§ip_address: IpAddressOptionsImplementations§
Source§impl AdvancedOptions
impl AdvancedOptions
pub fn new() -> Self
pub fn builder() -> Self
pub fn disable_csrf_check(self, disabled: bool) -> Self
pub fn disable_origin_check(self, disabled: bool) -> Self
pub fn skip_trailing_slashes(self, enabled: bool) -> Self
pub fn ip_address(self, ip_address: IpAddressOptions) -> Self
Trait Implementations§
Source§impl Clone for AdvancedOptions
impl Clone for AdvancedOptions
Source§fn clone(&self) -> AdvancedOptions
fn clone(&self) -> AdvancedOptions
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 AdvancedOptions
impl Debug for AdvancedOptions
Source§impl Default for AdvancedOptions
impl Default for AdvancedOptions
Source§fn default() -> AdvancedOptions
fn default() -> AdvancedOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for AdvancedOptions
impl PartialEq for AdvancedOptions
Source§fn eq(&self, other: &AdvancedOptions) -> bool
fn eq(&self, other: &AdvancedOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AdvancedOptions
impl StructuralPartialEq for AdvancedOptions
Auto Trait Implementations§
impl Freeze for AdvancedOptions
impl RefUnwindSafe for AdvancedOptions
impl Send for AdvancedOptions
impl Sync for AdvancedOptions
impl Unpin for AdvancedOptions
impl UnsafeUnpin for AdvancedOptions
impl UnwindSafe for AdvancedOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.