pub struct CookieParamBuilder { /* private fields */ }Available on crate features
Network and Debugger and Runtime and Security only.Implementations§
Source§impl CookieParamBuilder
impl CookieParamBuilder
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.
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<CookieParam, &'static str>
Trait Implementations§
Source§impl Clone for CookieParamBuilder
impl Clone for CookieParamBuilder
Source§fn clone(&self) -> CookieParamBuilder
fn clone(&self) -> CookieParamBuilder
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 CookieParamBuilder
impl Debug for CookieParamBuilder
Auto Trait Implementations§
impl Freeze for CookieParamBuilder
impl RefUnwindSafe for CookieParamBuilder
impl Send for CookieParamBuilder
impl Sync for CookieParamBuilder
impl Unpin for CookieParamBuilder
impl UnwindSafe for CookieParamBuilder
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