pub struct Cookie {
pub name: String,
pub value: String,
pub expires: Option<SystemTime>,
pub max_age: Option<Duration>,
pub domain: Option<String>,
pub path: Option<String>,
pub secure: Option<bool>,
pub http_only: Option<bool>,
pub same_site: Option<SameSite>,
}
Fields
name: String
value: String
expires: Option<SystemTime>
max_age: Option<Duration>
domain: Option<String>
path: Option<String>
secure: Option<bool>
http_only: Option<bool>
same_site: Option<SameSite>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Cookie
impl Send for Cookie
impl Sync for Cookie
impl Unpin for Cookie
impl UnwindSafe for Cookie
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more