Struct viz_core::middleware::helper::CookieOptions
source · 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
Converts self into a Cookie.