pub struct Cookie { /* private fields */ }Available on crate features
Network and Debugger and Runtime and Security only.Expand description
Cookie object
Implementations§
Source§impl Cookie
impl Cookie
pub fn builder() -> CookieBuilder
Sourcepub fn expires(&self) -> f64
pub fn expires(&self) -> f64
Cookie expiration date as the number of seconds since the UNIX epoch.
Sourcepub fn same_site(&self) -> Option<&CookieSameSite>
pub fn same_site(&self) -> Option<&CookieSameSite>
Cookie SameSite type.
Sourcepub fn priority(&self) -> &JsonValue
Available on crate feature experimental only.
pub fn priority(&self) -> &JsonValue
experimental only.Cookie Priority
Sourcepub fn same_party(&self) -> bool
Available on crate feature experimental only.
pub fn same_party(&self) -> bool
experimental only.True if cookie is SameParty.
Sourcepub fn source_scheme(&self) -> &JsonValue
Available on crate feature experimental only.
pub fn source_scheme(&self) -> &JsonValue
experimental only.Cookie source scheme type.
Sourcepub fn source_port(&self) -> u32
Available on crate feature experimental only.
pub fn source_port(&self) -> u32
experimental only.Cookie 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.
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