pub struct SetCookiesParams {
pub cookies: Vec<CookieParam>,
pub browser_context_id: Option<String>,
}Expand description
Parameters for Storage.setCookies.
Fields§
Cookies to be set.
browser_context_id: Option<String>Browser context to use when called on the browser endpoint.
Implementations§
Source§impl SetCookiesParams
impl SetCookiesParams
Sourcepub fn new(cookies: Vec<CookieParam>) -> Self
pub fn new(cookies: Vec<CookieParam>) -> Self
Create new set cookies params.
Sourcepub fn browser_context_id(self, id: impl Into<String>) -> Self
pub fn browser_context_id(self, id: impl Into<String>) -> Self
Set the browser context ID.
Trait Implementations§
Source§impl Clone for SetCookiesParams
impl Clone for SetCookiesParams
Source§fn clone(&self) -> SetCookiesParams
fn clone(&self) -> SetCookiesParams
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 SetCookiesParams
impl Debug for SetCookiesParams
Auto Trait Implementations§
impl Freeze for SetCookiesParams
impl RefUnwindSafe for SetCookiesParams
impl Send for SetCookiesParams
impl Sync for SetCookiesParams
impl Unpin for SetCookiesParams
impl UnwindSafe for SetCookiesParams
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