pub struct CookieCacheOptions {
pub enabled: bool,
pub max_age: Option<u64>,
pub strategy: CookieCacheStrategy,
pub refresh_cache: bool,
pub version: Option<String>,
}Expand description
Session cookie cache configuration.
Fields§
§enabled: bool§max_age: Option<u64>§strategy: CookieCacheStrategy§refresh_cache: bool§version: Option<String>Implementations§
Source§impl CookieCacheOptions
impl CookieCacheOptions
pub fn new() -> CookieCacheOptions
pub fn builder() -> CookieCacheOptions
pub fn enabled(self, enabled: bool) -> CookieCacheOptions
pub fn max_age(self, max_age: u64) -> CookieCacheOptions
pub fn strategy(self, strategy: CookieCacheStrategy) -> CookieCacheOptions
pub fn refresh_cache(self, refresh_cache: bool) -> CookieCacheOptions
pub fn version(self, version: impl Into<String>) -> CookieCacheOptions
Trait Implementations§
Source§impl Clone for CookieCacheOptions
impl Clone for CookieCacheOptions
Source§fn clone(&self) -> CookieCacheOptions
fn clone(&self) -> CookieCacheOptions
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 CookieCacheOptions
impl Debug for CookieCacheOptions
Source§impl Default for CookieCacheOptions
impl Default for CookieCacheOptions
Source§fn default() -> CookieCacheOptions
fn default() -> CookieCacheOptions
Returns the “default value” for a type. Read more
impl Eq for CookieCacheOptions
Source§impl PartialEq for CookieCacheOptions
impl PartialEq for CookieCacheOptions
impl StructuralPartialEq for CookieCacheOptions
Auto Trait Implementations§
impl Freeze for CookieCacheOptions
impl RefUnwindSafe for CookieCacheOptions
impl Send for CookieCacheOptions
impl Sync for CookieCacheOptions
impl Unpin for CookieCacheOptions
impl UnsafeUnpin for CookieCacheOptions
impl UnwindSafe for CookieCacheOptions
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.