pub struct SetCookieParams<'a> { /* private fields */ }Expand description
Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.
Implementations§
Source§impl<'a> SetCookieParams<'a>
impl<'a> SetCookieParams<'a>
pub fn builder( name: impl Into<Cow<'a, str>>, value: impl Into<Cow<'a, str>>, ) -> SetCookieParamsBuilder<'a>
pub fn name(&self) -> &str
pub fn value(&self) -> &str
pub fn url(&self) -> Option<&str>
pub fn domain(&self) -> Option<&str>
pub fn path(&self) -> Option<&str>
pub fn secure(&self) -> Option<bool>
pub fn httpOnly(&self) -> Option<bool>
pub fn sameSite(&self) -> Option<&CookieSameSite>
pub fn expires(&self) -> Option<&TimeSinceEpoch>
pub fn priority(&self) -> Option<&CookiePriority>
pub fn sourceScheme(&self) -> Option<&CookieSourceScheme>
pub fn sourcePort(&self) -> Option<i64>
pub fn partitionKey(&self) -> Option<&CookiePartitionKey<'a>>
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for SetCookieParams<'a>
impl<'a> CdpCommand<'a> for SetCookieParams<'a>
Source§impl<'a> Clone for SetCookieParams<'a>
impl<'a> Clone for SetCookieParams<'a>
Source§fn clone(&self) -> SetCookieParams<'a>
fn clone(&self) -> SetCookieParams<'a>
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<'a> Debug for SetCookieParams<'a>
impl<'a> Debug for SetCookieParams<'a>
Source§impl<'a> Default for SetCookieParams<'a>
impl<'a> Default for SetCookieParams<'a>
Source§fn default() -> SetCookieParams<'a>
fn default() -> SetCookieParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for SetCookieParams<'a>
impl<'de, 'a> Deserialize<'de> for SetCookieParams<'a>
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<'a> Freeze for SetCookieParams<'a>
impl<'a> RefUnwindSafe for SetCookieParams<'a>
impl<'a> Send for SetCookieParams<'a>
impl<'a> Sync for SetCookieParams<'a>
impl<'a> Unpin for SetCookieParams<'a>
impl<'a> UnsafeUnpin for SetCookieParams<'a>
impl<'a> UnwindSafe for SetCookieParams<'a>
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