pub struct Variable {
pub name: String,
pub value: String,
pub type_: Option<String>,
pub variables_reference: i32,
pub named_variables: Option<i32>,
pub indexed_variables: Option<i32>,
}Expand description
Variable information returned by the debug adapter.
Corresponds to the DAP Variable type in variables responses.
Fields§
§name: StringThe variable’s display name (e.g. "$x", "@arr").
value: StringThe variable’s value rendered as a string for display.
type_: Option<String>Optional type hint for the variable (e.g. "SCALAR", "ARRAY", "HASH").
variables_reference: i32Reference handle for fetching nested variables; 0 means the variable has no children.
named_variables: Option<i32>Hint for how many named child variables this variable has, if structured.
indexed_variables: Option<i32>Hint for how many indexed child variables this variable has, if it is an array.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Variable
impl<'de> Deserialize<'de> for Variable
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
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl Freeze for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnsafeUnpin for Variable
impl UnwindSafe for Variable
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