pub struct SetVariableValue {
pub scope_number: JsUInt,
pub variable_name: String,
pub new_value: CallArgument,
pub call_frame_id: CallFrameId,
}Expand description
Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
Fields§
§scope_number: JsUInt0-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: StringVariable name.
new_value: CallArgumentNew variable value.
call_frame_id: CallFrameIdId of callframe that holds variable.
Trait Implementations§
Source§impl Clone for SetVariableValue
impl Clone for SetVariableValue
Source§fn clone(&self) -> SetVariableValue
fn clone(&self) -> SetVariableValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SetVariableValue
impl Debug for SetVariableValue
Source§impl<'de> Deserialize<'de> for SetVariableValue
impl<'de> Deserialize<'de> for SetVariableValue
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 Method for SetVariableValue
impl Method for SetVariableValue
const NAME: &'static str = "Debugger.setVariableValue"
type ReturnObject = SetVariableValueReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
Source§impl PartialEq for SetVariableValue
impl PartialEq for SetVariableValue
Source§impl Serialize for SetVariableValue
impl Serialize for SetVariableValue
impl StructuralPartialEq for SetVariableValue
Auto Trait Implementations§
impl Freeze for SetVariableValue
impl RefUnwindSafe for SetVariableValue
impl Send for SetVariableValue
impl Sync for SetVariableValue
impl Unpin for SetVariableValue
impl UnsafeUnpin for SetVariableValue
impl UnwindSafe for SetVariableValue
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