Struct cdp::debugger::SetScriptSourceCommand [] [src]

pub struct SetScriptSourceCommand<'a> {
    pub script_id: ScriptId<'a>,
    pub script_source: Cow<'a, str>,
    pub dry_run: Option<bool>,
}

Edits JavaScript source live.

Command Debugger.setScriptSource

Domain Module: cdp::debugger
Command Struct: cdp::debugger::SetScriptSourceCommand
Response Struct: cdp::debugger::SetScriptSourceResponse

Fields

Id of the script to edit.

New content of the script.

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<'a> Clone for SetScriptSourceCommand<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for SetScriptSourceCommand<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for SetScriptSourceCommand<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a> CdpCommand for SetScriptSourceCommand<'a>
[src]

COMMAND_NAME: &'static str = "Debugger.setScriptSource"

impl<'a> SerializeCdpCommand for SetScriptSourceCommand<'a>
[src]

[src]

[src]

impl<'de, 'a> DeserializeCdpCommand<'de> for SetScriptSourceCommand<'a>
[src]

[src]

impl<'b, 'a> HasCdpResponse<'b> for SetScriptSourceCommand<'a>
[src]