pub enum CookiePrefix {
Host,
Secure,
}Expand description
Cookie security prefix types.
Modern browsers support cookie prefixes that enforce security requirements:
__Host-: Strongest protection, locks cookie to a single origin__Secure-: Requires HTTPS, but allows subdomain/path configuration
Variants§
Host
The __Host- prefix.
Requires: Secure=true, Path=“/”, no Domain attribute.
Secure
The __Secure- prefix.
Requires: Secure=true only.
Implementations§
Trait Implementations§
Source§impl Clone for CookiePrefix
impl Clone for CookiePrefix
Source§fn clone(&self) -> CookiePrefix
fn clone(&self) -> CookiePrefix
Returns a duplicate of the value. Read more
1.0.0 · 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 CookiePrefix
impl Debug for CookiePrefix
Source§impl PartialEq for CookiePrefix
impl PartialEq for CookiePrefix
impl Copy for CookiePrefix
impl Eq for CookiePrefix
impl StructuralPartialEq for CookiePrefix
Auto Trait Implementations§
impl Freeze for CookiePrefix
impl RefUnwindSafe for CookiePrefix
impl Send for CookiePrefix
impl Sync for CookiePrefix
impl Unpin for CookiePrefix
impl UnwindSafe for CookiePrefix
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).