pub enum SameSite {
Lax,
Strict,
None,
}Expand description
A cookie’s cross-site policy.
Variants§
Lax
Sent on same-site requests and top-level cross-site navigations. The default, and the right choice for a session cookie.
Strict
Never sent cross-site.
None
Always sent. Browsers reject this unless Secure is also set, so
Cookie::same_site turns Secure on with it.
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