pub struct CookieBuilder { /* private fields */ }Available on crate features
Network and Debugger and Runtime and Security only.Implementations§
Source§impl CookieBuilder
impl CookieBuilder
Sourcepub fn expires(&mut self, v: f64) -> &mut Self
pub fn expires(&mut self, v: f64) -> &mut Self
Cookie expiration date as the number of seconds since the UNIX epoch.
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 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<Cookie, &'static str>
Trait Implementations§
Source§impl Clone for CookieBuilder
impl Clone for CookieBuilder
Source§fn clone(&self) -> CookieBuilder
fn clone(&self) -> CookieBuilder
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 CookieBuilder
impl Debug for CookieBuilder
Auto Trait Implementations§
impl Freeze for CookieBuilder
impl RefUnwindSafe for CookieBuilder
impl Send for CookieBuilder
impl Sync for CookieBuilder
impl Unpin for CookieBuilder
impl UnwindSafe for CookieBuilder
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