pub struct DeleteCookiesBuilder { /* private fields */ }Expand description
Builder for DeleteCookies.
Implementations§
Source§impl DeleteCookiesBuilder
impl DeleteCookiesBuilder
Sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Name of the cookies to remove.
Sourcepub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
If specified, deletes all the cookies with the given name where domain and path match provided URL.
Sourcepub fn domain<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn domain<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
If specified, deletes only cookies with the exact domain.
Sourcepub fn path<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn path<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
If specified, deletes only cookies with the exact path.
Sourcepub fn partition_key<VALUE: Into<CookiePartitionKey>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn partition_key<VALUE: Into<CookiePartitionKey>>( &mut self, value: VALUE, ) -> &mut Self
If specified, deletes only cookies with the the given name and partitionKey where all partition key attributes match the cookie partition key attribute.
Sourcepub fn build(&self) -> Result<DeleteCookies, DeleteCookiesBuilderError>
pub fn build(&self) -> Result<DeleteCookies, DeleteCookiesBuilderError>
Trait Implementations§
Source§impl Clone for DeleteCookiesBuilder
impl Clone for DeleteCookiesBuilder
Source§fn clone(&self) -> DeleteCookiesBuilder
fn clone(&self) -> DeleteCookiesBuilder
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 moreAuto Trait Implementations§
impl Freeze for DeleteCookiesBuilder
impl RefUnwindSafe for DeleteCookiesBuilder
impl Send for DeleteCookiesBuilder
impl Sync for DeleteCookiesBuilder
impl Unpin for DeleteCookiesBuilder
impl UnsafeUnpin for DeleteCookiesBuilder
impl UnwindSafe for DeleteCookiesBuilder
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