pub enum CookieProfile {
ProductionStrict,
ProductionLax,
LocalDevelopment,
}Expand description
Named cookie profile (RFC-006 §13.2).
Variants§
ProductionStrict
Secure=true; HttpOnly=true; SameSite=Strict. Default.
ProductionLax
Secure=true; HttpOnly=true; SameSite=Lax.
LocalDevelopment
Secure=false; HttpOnly=true; SameSite=Lax. Must be explicitly chosen;
not for production. Secure=false is rejected if the active profile is
a production one.
Trait Implementations§
Source§impl Clone for CookieProfile
impl Clone for CookieProfile
Source§fn clone(&self) -> CookieProfile
fn clone(&self) -> CookieProfile
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 moreimpl Copy for CookieProfile
Source§impl Debug for CookieProfile
impl Debug for CookieProfile
Source§impl Default for CookieProfile
impl Default for CookieProfile
Source§fn default() -> CookieProfile
fn default() -> CookieProfile
Returns the “default value” for a type. Read more
impl Eq for CookieProfile
Source§impl PartialEq for CookieProfile
impl PartialEq for CookieProfile
Source§fn eq(&self, other: &CookieProfile) -> bool
fn eq(&self, other: &CookieProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CookieProfile
Auto Trait Implementations§
impl Freeze for CookieProfile
impl RefUnwindSafe for CookieProfile
impl Send for CookieProfile
impl Sync for CookieProfile
impl Unpin for CookieProfile
impl UnsafeUnpin for CookieProfile
impl UnwindSafe for CookieProfile
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