pub enum SameSite {
None,
Lax,
Strict,
}Expand description
The SameSite policy of a Cookie, controlling whether it is sent with
cross-site requests.
Variants§
None
Sent with all requests, including cross-site (requires
is_secure).
Lax
Sent with same-site requests and top-level cross-site navigations.
Strict
Sent only with same-site requests.
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