pub struct ScriptArgs { /* private fields */ }
Expand description
Re-export common types.
Helper struct for constructing arguments for WebDriver::execute_script()
and WebDriver::execute_async_script()
.
See the examples for those methods for more info.
Implementations§
Source§impl ScriptArgs
impl ScriptArgs
Sourcepub fn new() -> ScriptArgs
pub fn new() -> ScriptArgs
Create a new, empty ScriptArgs struct.
Sourcepub fn push_value(&mut self, value: Value) -> &mut ScriptArgs
pub fn push_value(&mut self, value: Value) -> &mut ScriptArgs
Push a JSON value onto the vec.
Sourcepub fn push<T>(&mut self, value: T) -> Result<&mut ScriptArgs, WebDriverError>where
T: Serialize,
pub fn push<T>(&mut self, value: T) -> Result<&mut ScriptArgs, WebDriverError>where
T: Serialize,
Push any Serialize-able object onto the vec. This includes WebElement.
Trait Implementations§
Source§impl Clone for ScriptArgs
impl Clone for ScriptArgs
Source§fn clone(&self) -> ScriptArgs
fn clone(&self) -> ScriptArgs
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 ScriptArgs
impl Debug for ScriptArgs
Source§impl Default for ScriptArgs
impl Default for ScriptArgs
Source§fn default() -> ScriptArgs
fn default() -> ScriptArgs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScriptArgs
impl RefUnwindSafe for ScriptArgs
impl Send for ScriptArgs
impl Sync for ScriptArgs
impl Unpin for ScriptArgs
impl UnwindSafe for ScriptArgs
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