pub struct SetCookieCommandBuilder { /* private fields */ }Available on crate features
Network and Debugger and Runtime and Security only.Implementations§
Source§impl SetCookieCommandBuilder
impl SetCookieCommandBuilder
Sourcepub fn url(&mut self, v: String) -> &mut Self
pub fn url(&mut self, v: String) -> &mut Self
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(&mut self, v: CookieSameSite) -> &mut Self
pub fn same_site(&mut self, v: CookieSameSite) -> &mut Self
Cookie SameSite type.
Sourcepub fn expires(&mut self, v: TimeSinceEpoch) -> &mut Self
pub fn expires(&mut self, v: TimeSinceEpoch) -> &mut Self
Cookie expiration date, session cookie if not set
Sourcepub fn priority(&mut self, v: JsonValue) -> &mut Self
Available on crate feature experimental only.
pub fn priority(&mut self, v: JsonValue) -> &mut Self
experimental only.Cookie Priority type.
Sourcepub fn same_party(&mut self, v: bool) -> &mut Self
Available on crate feature experimental only.
pub fn same_party(&mut self, v: bool) -> &mut Self
experimental only.True if cookie is SameParty.
Sourcepub fn source_scheme(&mut self, v: JsonValue) -> &mut Self
Available on crate feature experimental only.
pub fn source_scheme(&mut self, v: JsonValue) -> &mut Self
experimental only.Cookie source scheme type.
Sourcepub fn source_port(&mut self, v: u32) -> &mut Self
Available on crate feature experimental only.
pub fn source_port(&mut self, v: u32) -> &mut Self
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.
pub fn build(&mut self) -> Result<SetCookieCommand, &'static str>
Trait Implementations§
Source§impl Clone for SetCookieCommandBuilder
impl Clone for SetCookieCommandBuilder
Source§fn clone(&self) -> SetCookieCommandBuilder
fn clone(&self) -> SetCookieCommandBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SetCookieCommandBuilder
impl Debug for SetCookieCommandBuilder
Auto Trait Implementations§
impl Freeze for SetCookieCommandBuilder
impl RefUnwindSafe for SetCookieCommandBuilder
impl Send for SetCookieCommandBuilder
impl Sync for SetCookieCommandBuilder
impl Unpin for SetCookieCommandBuilder
impl UnsafeUnpin for SetCookieCommandBuilder
impl UnwindSafe for SetCookieCommandBuilder
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