pub struct DeleteCookiesParams<'a> { /* private fields */ }Expand description
Deletes browser cookies with matching name and url or domain/path/partitionKey pair.
Implementations§
Source§impl<'a> DeleteCookiesParams<'a>
impl<'a> DeleteCookiesParams<'a>
Sourcepub fn builder(name: impl Into<Cow<'a, str>>) -> DeleteCookiesParamsBuilder<'a>
pub fn builder(name: impl Into<Cow<'a, str>>) -> DeleteCookiesParamsBuilder<'a>
Creates a builder for this type with the required parameters:
name: Name of the cookies to remove.
Sourcepub fn url(&self) -> Option<&str>
pub fn url(&self) -> Option<&str>
If specified, deletes all the cookies with the given name where domain and path match provided URL.
Sourcepub fn partition_key(&self) -> Option<&CookiePartitionKey<'a>>
pub fn partition_key(&self) -> Option<&CookiePartitionKey<'a>>
If specified, deletes only cookies with the the given name and partitionKey where all partition key attributes match the cookie partition key attribute.
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for DeleteCookiesParams<'a>
impl<'a> CdpCommand<'a> for DeleteCookiesParams<'a>
Source§impl<'a> Clone for DeleteCookiesParams<'a>
impl<'a> Clone for DeleteCookiesParams<'a>
Source§fn clone(&self) -> DeleteCookiesParams<'a>
fn clone(&self) -> DeleteCookiesParams<'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 DeleteCookiesParams<'a>
impl<'a> Debug for DeleteCookiesParams<'a>
Source§impl<'a> Default for DeleteCookiesParams<'a>
impl<'a> Default for DeleteCookiesParams<'a>
Source§fn default() -> DeleteCookiesParams<'a>
fn default() -> DeleteCookiesParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for DeleteCookiesParams<'a>
impl<'de, 'a> Deserialize<'de> for DeleteCookiesParams<'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 DeleteCookiesParams<'a>
impl<'a> RefUnwindSafe for DeleteCookiesParams<'a>
impl<'a> Send for DeleteCookiesParams<'a>
impl<'a> Sync for DeleteCookiesParams<'a>
impl<'a> Unpin for DeleteCookiesParams<'a>
impl<'a> UnsafeUnpin for DeleteCookiesParams<'a>
impl<'a> UnwindSafe for DeleteCookiesParams<'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