pub struct CookieAttributes {
pub secure: Option<bool>,
pub http_only: Option<bool>,
pub same_site: Option<SameSite>,
pub path: Option<String>,
pub max_age: Option<i64>,
pub domain: Option<String>,
}Expand description
Overridable cookie attributes.
Fields§
§secure: Option<bool>Override Secure flag.
http_only: Option<bool>Override HttpOnly flag.
same_site: Option<SameSite>Override SameSite policy.
path: Option<String>Override Path.
max_age: Option<i64>Override Max-Age (seconds).
domain: Option<String>Override cookie Domain.
Trait Implementations§
Source§impl Clone for CookieAttributes
impl Clone for CookieAttributes
Source§fn clone(&self) -> CookieAttributes
fn clone(&self) -> CookieAttributes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CookieAttributes
impl Debug for CookieAttributes
Source§impl Default for CookieAttributes
impl Default for CookieAttributes
Source§fn default() -> CookieAttributes
fn default() -> CookieAttributes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CookieAttributes
impl RefUnwindSafe for CookieAttributes
impl Send for CookieAttributes
impl Sync for CookieAttributes
impl Unpin for CookieAttributes
impl UnsafeUnpin for CookieAttributes
impl UnwindSafe for CookieAttributes
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