pub struct Cookie {Show 16 fields
pub name: String,
pub value: String,
pub domain: String,
pub path: String,
pub expires: f64,
pub size: i32,
pub http_only: bool,
pub secure: bool,
pub session: bool,
pub same_site: Option<CookieSameSite>,
pub priority: Option<CookiePriority>,
pub same_party: Option<bool>,
pub source_scheme: Option<CookieSourceScheme>,
pub source_port: Option<i32>,
pub partition_key: Option<String>,
pub partition_key_opaque: Option<bool>,
}Expand description
Represents a cookie.
Fields§
§name: StringCookie name.
value: StringCookie value.
domain: StringCookie domain.
path: StringCookie path.
expires: f64Cookie expiration date as the number of seconds since the UNIX epoch.
size: i32Cookie size.
http_only: boolTrue if cookie is http-only.
secure: boolTrue if cookie is secure.
session: boolTrue in case of session cookie.
same_site: Option<CookieSameSite>Cookie SameSite type.
priority: Option<CookiePriority>Cookie Priority.
same_party: Option<bool>True if cookie is same-party.
source_scheme: Option<CookieSourceScheme>Cookie source scheme type.
source_port: Option<i32>Cookie source port.
partition_key: Option<String>Cookie partition key.
partition_key_opaque: Option<bool>True if cookie partition key is opaque.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cookie
impl<'de> Deserialize<'de> for Cookie
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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