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: 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.
variable_name: String
Variable name.
new_value: CallArgument
New variable value.
call_frame_id: CallFrameId
Id 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>, ) -> SetVariableValueParams
Source§impl SetVariableValueParams
impl SetVariableValueParams
pub fn builder() -> SetVariableValueParamsBuilder
Source§impl SetVariableValueParams
impl SetVariableValueParams
pub const IDENTIFIER: &'static str = "Debugger.setVariableValue"
Trait Implementations§
Source§impl Clone for SetVariableValueParams
impl Clone for SetVariableValueParams
Source§fn clone(&self) -> SetVariableValueParams
fn clone(&self) -> SetVariableValueParams
Returns a copy 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 Command for SetVariableValueParams
impl Command for SetVariableValueParams
Source§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<SetVariableValueParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetVariableValueParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Method for SetVariableValueParams
impl Method for SetVariableValueParams
Source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
The whole string identifier for this method like:
DOM.removeNode
Source§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
The name of the domain this method belongs to:
DOM
Source§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
The standalone identifier of the method inside the domain:
removeNode
Source§impl MethodType for SetVariableValueParams
impl MethodType for SetVariableValueParams
Source§impl PartialEq for SetVariableValueParams
impl PartialEq for SetVariableValueParams
Source§impl Serialize for SetVariableValueParams
impl Serialize for SetVariableValueParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more