Struct chrome_remote_interface_model::debugger::SetScriptSourceCommand[][src]

pub struct SetScriptSourceCommand { /* fields omitted */ }
This is supported on crate features Debugger and Runtime only.

Edits JavaScript source live.

Implementations

impl SetScriptSourceCommand[src]

pub fn new(
    script_id: ScriptId,
    script_source: String,
    dry_run: Option<bool>
) -> Self
[src]

pub fn script_id(&self) -> &ScriptId[src]

Id of the script to edit.

pub fn script_source(&self) -> &str[src]

New content of the script.

pub fn dry_run(&self) -> Option<&bool>[src]

If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code.

Trait Implementations

impl Clone for SetScriptSourceCommand[src]

impl Command for SetScriptSourceCommand[src]

type Return = SetScriptSourceReturn

Return type.

impl Debug for SetScriptSourceCommand[src]

impl<'de> Deserialize<'de> for SetScriptSourceCommand[src]

impl Serialize for SetScriptSourceCommand[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.