Struct chrome_remote_interface_model::debugger::SetScriptSourceCommand [−][src]
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]
script_id: ScriptId,
script_source: String,
dry_run: Option<bool>
) -> Self
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]
fn clone(&self) -> SetScriptSourceCommand
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Command for SetScriptSourceCommand
[src]
type Return = SetScriptSourceReturn
Return type.
const METHOD: &'static str
[src]
fn into_request(self, session_id: Option<SessionId>, id: u32) -> Request<Self> where
Self: Sized,
[src]
Self: Sized,
impl Debug for SetScriptSourceCommand
[src]
impl<'de> Deserialize<'de> for SetScriptSourceCommand
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for SetScriptSourceCommand
[src]
Auto Trait Implementations
impl RefUnwindSafe for SetScriptSourceCommand
[src]
impl Send for SetScriptSourceCommand
[src]
impl Sync for SetScriptSourceCommand
[src]
impl Unpin for SetScriptSourceCommand
[src]
impl UnwindSafe for SetScriptSourceCommand
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,