pub enum SameSite {
Strict,
Lax,
None,
}Expand description
Framework-owned response cookie primitives.
The SameSite attribute applied to a response cookie.
Variants§
Strict
Send only in same-site contexts.
Lax
Send in same-site contexts and top-level safe navigations.
None
Allow cross-site sending; requires Secure in modern browsers.
Trait Implementations§
impl Copy for SameSite
impl Eq for SameSite
impl StructuralPartialEq for SameSite
Auto Trait Implementations§
impl Freeze for SameSite
impl RefUnwindSafe for SameSite
impl Send for SameSite
impl Sync for SameSite
impl Unpin for SameSite
impl UnsafeUnpin for SameSite
impl UnwindSafe for SameSite
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