pub struct Cookie {
pub name: String,
pub value: String,
pub domain: String,
pub path: String,
pub is_secure: bool,
pub is_http_only: bool,
pub same_site: SameSite,
pub expires: Option<f64>,
}Expand description
A browser cookie. Read cookies with CookieManager::get_cookies and write
them with CookieManager::add_or_update_cookie.
Fields§
§name: String§value: String§domain: String§path: String§is_secure: boolWhether the cookie is sent only over HTTPS.
is_http_only: boolWhether the cookie is hidden from script (HttpOnly).
same_site: SameSite§expires: Option<f64>When the cookie expires, as seconds since the Unix epoch, or None for a
session cookie that is cleared when the browser closes.
Implementations§
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 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