pub struct RunScript {
pub method: RunScriptMethod,
pub params: RunScriptParams,
}Expand description
Runs script with given id in a given context. runScript
Fields§
§method: RunScriptMethod§params: RunScriptParamsImplementations§
Source§impl RunScript
impl RunScript
pub const IDENTIFIER: &'static str = "Runtime.runScript"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl CommandResult for RunScript
impl CommandResult for RunScript
type Result = RunScriptResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl<'de> Deserialize<'de> for RunScript
impl<'de> Deserialize<'de> for RunScript
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
Source§impl From<RunScript> for JsProtocolCommands
impl From<RunScript> for JsProtocolCommands
Source§impl From<RunScript> for RuntimeCommands
impl From<RunScript> for RuntimeCommands
Source§impl TryFrom<JsProtocolCommands> for RunScript
impl TryFrom<JsProtocolCommands> for RunScript
Source§type Error = JsProtocolCommands
type Error = JsProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: JsProtocolCommands,
) -> Result<Self, <RunScript as TryFrom<JsProtocolCommands>>::Error>
fn try_from( e: JsProtocolCommands, ) -> Result<Self, <RunScript as TryFrom<JsProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<RuntimeCommands> for RunScript
impl TryFrom<RuntimeCommands> for RunScript
Source§type Error = RuntimeCommands
type Error = RuntimeCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: RuntimeCommands,
) -> Result<Self, <RunScript as TryFrom<RuntimeCommands>>::Error>
fn try_from( e: RuntimeCommands, ) -> Result<Self, <RunScript as TryFrom<RuntimeCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for RunScript
Auto Trait Implementations§
impl Freeze for RunScript
impl RefUnwindSafe for RunScript
impl Send for RunScript
impl Sync for RunScript
impl Unpin for RunScript
impl UnsafeUnpin for RunScript
impl UnwindSafe for RunScript
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