pub struct CookieParam { /* private fields */ }Available on crate features
Network and Debugger and Runtime and Security only.Expand description
Cookie parameter object
Implementations§
Source§impl CookieParam
impl CookieParam
pub fn builder() -> CookieParamBuilder
Sourcepub fn url(&self) -> Option<&String>
pub fn url(&self) -> Option<&String>
The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie.
Sourcepub fn same_site(&self) -> Option<&CookieSameSite>
pub fn same_site(&self) -> Option<&CookieSameSite>
Cookie SameSite type.
Sourcepub fn expires(&self) -> Option<&TimeSinceEpoch>
pub fn expires(&self) -> Option<&TimeSinceEpoch>
Cookie expiration date, session cookie if not set
Sourcepub fn priority(&self) -> Option<&JsonValue>
Available on crate feature experimental only.
pub fn priority(&self) -> Option<&JsonValue>
experimental only.Cookie Priority.
Sourcepub fn same_party(&self) -> Option<&bool>
Available on crate feature experimental only.
pub fn same_party(&self) -> Option<&bool>
experimental only.True if cookie is SameParty.
Sourcepub fn source_scheme(&self) -> Option<&JsonValue>
Available on crate feature experimental only.
pub fn source_scheme(&self) -> Option<&JsonValue>
experimental only.Cookie source scheme type.
Sourcepub fn source_port(&self) -> Option<&u32>
Available on crate feature experimental only.
pub fn source_port(&self) -> Option<&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 Clone for CookieParam
impl Clone for CookieParam
Source§fn clone(&self) -> CookieParam
fn clone(&self) -> CookieParam
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CookieParam
impl Debug for CookieParam
Source§impl<'de> Deserialize<'de> for CookieParam
impl<'de> Deserialize<'de> for CookieParam
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 CookieParam
impl RefUnwindSafe for CookieParam
impl Send for CookieParam
impl Sync for CookieParam
impl Unpin for CookieParam
impl UnwindSafe for CookieParam
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