pub struct CookieOptions {
pub name: &'static str,
pub path: &'static str,
pub secure: bool,
pub http_only: bool,
pub max_age: Option<Duration>,
pub domain: Option<&'static str>,
pub same_site: Option<SameSite>,
}Available on crate feature
cookie only.Expand description
Cookie’s Options
Fields§
§name: &'static strCookie’s name, viz.sid by defaults
path: &'static strCookie’s path, / by defaults
secure: boolCookie’s secure, true by defaults
http_only: boolCookie’s http_only, true by defaults
max_age: Option<Duration>Cookie’s maximum age, 24H by defaults
domain: Option<&'static str>Cookie’s domain
same_site: Option<SameSite>Cookie’s same_site, Lax by defaults
Implementations§
Source§impl CookieOptions
impl CookieOptions
Trait Implementations§
Source§impl Debug for CookieOptions
impl Debug for CookieOptions
Auto Trait Implementations§
impl Freeze for CookieOptions
impl RefUnwindSafe for CookieOptions
impl Send for CookieOptions
impl Sync for CookieOptions
impl Unpin for CookieOptions
impl UnwindSafe for CookieOptions
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