pub struct SetCookiesCommand { /* private fields */ }Available on crate features
experimental and Storage and Browser and Network only.Expand description
Sets given cookies.
Implementations§
Source§impl SetCookiesCommand
impl SetCookiesCommand
pub fn new( cookies: Vec<CookieParam>, browser_context_id: Option<JsonValue>, ) -> Self
Cookies to be set.
Sourcepub fn browser_context_id(&self) -> Option<&JsonValue>
pub fn browser_context_id(&self) -> Option<&JsonValue>
Browser context to use when called on the browser endpoint.
Trait Implementations§
Source§impl Clone for SetCookiesCommand
impl Clone for SetCookiesCommand
Source§fn clone(&self) -> SetCookiesCommand
fn clone(&self) -> SetCookiesCommand
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 Command for SetCookiesCommand
impl Command for SetCookiesCommand
Source§impl Debug for SetCookiesCommand
impl Debug for SetCookiesCommand
Source§impl<'de> Deserialize<'de> for SetCookiesCommand
impl<'de> Deserialize<'de> for SetCookiesCommand
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 Freeze for SetCookiesCommand
impl RefUnwindSafe for SetCookiesCommand
impl Send for SetCookiesCommand
impl Sync for SetCookiesCommand
impl Unpin for SetCookiesCommand
impl UnwindSafe for SetCookiesCommand
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