Struct cdp::debugger::SetVariableValueCommand
[−]
[src]
pub struct SetVariableValueCommand<'a> { pub scope_number: i32, pub variable_name: Cow<'a, str>, pub new_value: CallArgument<'a>, pub call_frame_id: CallFrameId<'a>, }
Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
Command Debugger.setVariableValue
Domain Module: cdp::debugger
Command Struct: cdp::debugger::SetVariableValueCommand
Response Struct: cdp::debugger::SetVariableValueResponse
Fields
scope_number: i32
0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually.
variable_name: Cow<'a, str>
Variable name.
new_value: CallArgument<'a>
New variable value.
call_frame_id: CallFrameId<'a>
Id of callframe that holds variable.
Trait Implementations
impl<'a> Clone for SetVariableValueCommand<'a>
[src]
fn clone(&self) -> SetVariableValueCommand<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for SetVariableValueCommand<'a>
[src]
impl<'a> PartialEq for SetVariableValueCommand<'a>
[src]
fn eq(&self, __arg_0: &SetVariableValueCommand<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SetVariableValueCommand<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> CdpCommand for SetVariableValueCommand<'a>
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "Debugger.setVariableValue"
impl<'a> SerializeCdpCommand for SetVariableValueCommand<'a>
[src]
fn command_name(&self) -> &str
[src]
fn serialize_command_params<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
impl<'de, 'a> DeserializeCdpCommand<'de> for SetVariableValueCommand<'a>
[src]
fn deserialize_command<D>(
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,
[src]
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,