pub struct SetVariableValueParams<'a> { /* private fields */ }Expand description
Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
Implementations§
Source§impl<'a> SetVariableValueParams<'a>
impl<'a> SetVariableValueParams<'a>
Sourcepub fn builder(
scope_number: i64,
variable_name: impl Into<Cow<'a, str>>,
new_value: CallArgument<'a>,
call_frame_id: impl Into<CallFrameId<'a>>,
) -> SetVariableValueParamsBuilder<'a>
pub fn builder( scope_number: i64, variable_name: impl Into<Cow<'a, str>>, new_value: CallArgument<'a>, call_frame_id: impl Into<CallFrameId<'a>>, ) -> SetVariableValueParamsBuilder<'a>
Creates a builder for this type with the required parameters:
scope_number: 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: Variable name.new_value: New variable value.call_frame_id: Id of callframe that holds variable.
Sourcepub fn scope_number(&self) -> i64
pub fn scope_number(&self) -> i64
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.
Sourcepub fn variable_name(&self) -> &str
pub fn variable_name(&self) -> &str
Variable name.
Sourcepub fn new_value(&self) -> &CallArgument<'a>
pub fn new_value(&self) -> &CallArgument<'a>
New variable value.
Sourcepub fn call_frame_id(&self) -> &CallFrameId<'a>
pub fn call_frame_id(&self) -> &CallFrameId<'a>
Id of callframe that holds variable.
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for SetVariableValueParams<'a>
impl<'a> CdpCommand<'a> for SetVariableValueParams<'a>
Source§impl<'a> Clone for SetVariableValueParams<'a>
impl<'a> Clone for SetVariableValueParams<'a>
Source§fn clone(&self) -> SetVariableValueParams<'a>
fn clone(&self) -> SetVariableValueParams<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SetVariableValueParams<'a>
impl<'a> Debug for SetVariableValueParams<'a>
Source§impl<'a> Default for SetVariableValueParams<'a>
impl<'a> Default for SetVariableValueParams<'a>
Source§fn default() -> SetVariableValueParams<'a>
fn default() -> SetVariableValueParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for SetVariableValueParams<'a>
impl<'de, 'a> Deserialize<'de> for SetVariableValueParams<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for SetVariableValueParams<'a>
impl<'a> RefUnwindSafe for SetVariableValueParams<'a>
impl<'a> Send for SetVariableValueParams<'a>
impl<'a> Sync for SetVariableValueParams<'a>
impl<'a> Unpin for SetVariableValueParams<'a>
impl<'a> UnsafeUnpin for SetVariableValueParams<'a>
impl<'a> UnwindSafe for SetVariableValueParams<'a>
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