pub struct SetCookieCommand { /* private fields */ }Available on crate features
Network and Debugger and Runtime and Security only.Expand description
Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.
Implementations§
Source§impl SetCookieCommand
impl SetCookieCommand
pub fn builder() -> SetCookieCommandBuilder
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 type.
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 SetCookieCommand
impl Clone for SetCookieCommand
Source§fn clone(&self) -> SetCookieCommand
fn clone(&self) -> SetCookieCommand
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 Command for SetCookieCommand
impl Command for SetCookieCommand
Source§impl Debug for SetCookieCommand
impl Debug for SetCookieCommand
Source§impl<'de> Deserialize<'de> for SetCookieCommand
impl<'de> Deserialize<'de> for SetCookieCommand
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 SetCookieCommand
impl RefUnwindSafe for SetCookieCommand
impl Send for SetCookieCommand
impl Sync for SetCookieCommand
impl Unpin for SetCookieCommand
impl UnwindSafe for SetCookieCommand
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