pub struct Cookie {Show 15 fields
pub name: String,
pub value: String,
pub domain: String,
pub path: String,
pub expires: f64,
pub size: i64,
pub http_only: bool,
pub secure: bool,
pub session: bool,
pub same_site: Option<CookieSameSite>,
pub priority: CookiePriority,
pub source_scheme: CookieSourceScheme,
pub source_port: i64,
pub partition_key: Option<CookiePartitionKey>,
pub partition_key_opaque: Option<bool>,
}Expand description
Cookie object
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. The value is set to -1 if the expiry date is not set. The value can be null for values that cannot be represented in JSON (±Inf).
size: i64Cookie 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: CookiePriorityCookie Priority
Experimental: may change without notice.
source_scheme: CookieSourceSchemeCookie source scheme type.
Experimental: may change without notice.
source_port: i64Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.
Experimental: may change without notice.
partition_key: Option<CookiePartitionKey>Cookie partition key.
Experimental: may change without notice.
partition_key_opaque: Option<bool>True if cookie partition key is opaque.
Experimental: may change without notice.