pub struct Cookie {
pub domain: String,
pub include_subdomains: bool,
pub path: String,
pub https_only: bool,
pub http_only: bool,
pub expires: u64,
pub name: String,
pub value: String,
}Expand description
Cookie representation
Fields§
§domain: Stringthe domain the cookie is valid for
include_subdomains: boolwhether or not the cookie is also valid for subdomains
path: Stringa subpath the cookie is valid for
https_only: boolshould it only be valid in https contexts
http_only: boolshould it only be valid in http contexts
expires: u64unix timestamp for when the cookie expires
name: Stringthe cookie name
value: Stringthe value of the cookie
Trait Implementations§
impl StructuralPartialEq for Cookie
Auto Trait Implementations§
impl Freeze for Cookie
impl RefUnwindSafe for Cookie
impl Send for Cookie
impl Sync for Cookie
impl Unpin for Cookie
impl UnwindSafe for Cookie
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