pub struct Cookie {
pub name: String,
pub value: String,
pub path: String,
pub domain: String,
pub expires: Option<SystemTime>,
pub max_age: i32,
pub secure: bool,
pub http_only: bool,
pub same_site: SameSite,
}Expand description
An HTTP cookie. Mirrors Go’s http.Cookie.
Fields§
§name: String§value: String§path: String§domain: String§expires: Option<SystemTime>§max_age: i32§secure: bool§http_only: bool§same_site: SameSiteImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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