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
impl Copy for CookieProfile
Source§impl Debug for CookieProfile
impl Debug for CookieProfile
Source§impl Default for CookieProfile
impl Default for CookieProfile
impl Eq for CookieProfile
Source§impl PartialEq for CookieProfile
impl PartialEq for CookieProfile
impl StructuralPartialEq for CookieProfile
Auto Trait Implementations§
impl Forget for CookieProfile
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