pub struct SetVariableValueParams {
pub scope_number: i64,
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. setVariableValue
Fields§
§scope_number: i640-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.
Implementations§
Source§impl SetVariableValueParams
impl SetVariableValueParams
pub fn new( scope_number: impl Into<i64>, variable_name: impl Into<String>, new_value: impl Into<CallArgument>, call_frame_id: impl Into<CallFrameId>, ) -> Self
Trait Implementations§
Source§impl Clone for SetVariableValueParams
impl Clone for SetVariableValueParams
Source§fn clone(&self) -> SetVariableValueParams
fn clone(&self) -> SetVariableValueParams
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 SetVariableValueParams
impl Debug for SetVariableValueParams
Source§impl<'de> Deserialize<'de> for SetVariableValueParams
impl<'de> Deserialize<'de> for SetVariableValueParams
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 PartialEq for SetVariableValueParams
impl PartialEq for SetVariableValueParams
Source§impl Serialize for SetVariableValueParams
impl Serialize for SetVariableValueParams
impl StructuralPartialEq for SetVariableValueParams
Auto Trait Implementations§
impl Freeze for SetVariableValueParams
impl RefUnwindSafe for SetVariableValueParams
impl Send for SetVariableValueParams
impl Sync for SetVariableValueParams
impl Unpin for SetVariableValueParams
impl UnsafeUnpin for SetVariableValueParams
impl UnwindSafe for SetVariableValueParams
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