pub struct SessionCookie {
pub name: String,
pub value: String,
pub domain: String,
pub path: String,
pub expires: f64,
pub http_only: bool,
pub secure: bool,
pub same_site: String,
}Expand description
A serialisable browser cookie.
Fields§
§name: StringCookie name.
value: StringCookie value.
domain: StringDomain (e.g. .example.com).
path: StringURL path (e.g. /).
expires: f64Expiry as Unix timestamp seconds (-1 = session cookie).
http_only: boolHTTP-only flag.
secure: boolSecure flag.
same_site: StringSameSite attribute ("Strict", "Lax", "None", or empty).
Trait Implementations§
Source§impl Clone for SessionCookie
impl Clone for SessionCookie
Source§fn clone(&self) -> SessionCookie
fn clone(&self) -> SessionCookie
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 SessionCookie
impl Debug for SessionCookie
Source§impl<'de> Deserialize<'de> for SessionCookie
impl<'de> Deserialize<'de> for SessionCookie
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SessionCookie
impl RefUnwindSafe for SessionCookie
impl Send for SessionCookie
impl Sync for SessionCookie
impl Unpin for SessionCookie
impl UnwindSafe for SessionCookie
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