pub struct Cookie {
pub name: String,
pub value: String,
pub domain: String,
pub path: String,
pub expires: Option<SystemTime>,
pub secure: bool,
pub http_only: bool,
pub host_only: bool,
}Expand description
A cookie, as a jar or the platform’s store holds it.
Fields§
§name: String§value: String§domain: String§path: String§expires: Option<SystemTime>None for a session cookie.
secure: bool§http_only: bool§host_only: boolSent only to the host that set it, which named no Domain.
Trait Implementations§
impl Eq for Cookie
impl StructuralPartialEq for Cookie
Auto Trait Implementations§
impl Forget for Cookie
impl Freeze for Cookie
impl Move for Cookie
impl RefUnwindSafe for Cookie
impl Send for Cookie
impl Sync for Cookie
impl Unpin for Cookie
impl UnsafeUnpin 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