pub struct EvaluateResponseBody {
pub result: String,
pub type_: Option<String>,
pub presentation_hint: Option<VariablePresentationHint>,
pub variables_reference: i32,
pub named_variables: Option<i32>,
pub indexed_variables: Option<i32>,
pub memory_reference: Option<String>,
/* private fields */
}
Fields§
§result: String
The result of the evaluate request.
type_: Option<String>
The optional type of the evaluate result.
This attribute should only be returned by a debug adapter if the client has passed the value true for the ‘supportsVariableType’ capability of the ‘initialize’ request.
presentation_hint: Option<VariablePresentationHint>
Properties of a evaluate result that can be used to determine how to render the result in the UI.
variables_reference: i32
If variablesReference is > 0, the evaluate result is structured and its children can be retrieved by passing variablesReference to the VariablesRequest.
The value should be less than or equal to 2147483647 (2^31-1).
named_variables: Option<i32>
The number of named child variables.
The client can use this optional information to present the variables in a paged UI and fetch them in chunks.
The value should be less than or equal to 2147483647 (2^31-1).
indexed_variables: Option<i32>
The number of indexed child variables.
The client can use this optional information to present the variables in a paged UI and fetch them in chunks.
The value should be less than or equal to 2147483647 (2^31-1).
memory_reference: Option<String>
Optional memory reference to a location appropriate for this result.
For pointer type eval results, this is generally a reference to the memory address contained in the pointer.
This attribute should be returned by a debug adapter if the client has passed the value true for the ‘supportsMemoryReferences’ capability of the ‘initialize’ request.
Implementations§
Source§impl EvaluateResponseBody
impl EvaluateResponseBody
Sourcepub fn builder() -> EvaluateResponseBodyBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> EvaluateResponseBodyBuilder<((), (), (), (), (), (), ())>
Create a builder for building EvaluateResponseBody
.
On the builder, call .result(...)
, .type_(...)
(optional), .presentation_hint(...)
(optional), .variables_reference(...)
, .named_variables(...)
(optional), .indexed_variables(...)
(optional), .memory_reference(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of EvaluateResponseBody
.
Trait Implementations§
Source§impl Clone for EvaluateResponseBody
impl Clone for EvaluateResponseBody
Source§fn clone(&self) -> EvaluateResponseBody
fn clone(&self) -> EvaluateResponseBody
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for EvaluateResponseBody
impl Debug for EvaluateResponseBody
Source§impl<'de> Deserialize<'de> for EvaluateResponseBody
impl<'de> Deserialize<'de> for EvaluateResponseBody
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>,
Source§impl From<EvaluateResponseBody> for SuccessResponse
impl From<EvaluateResponseBody> for SuccessResponse
Source§fn from(args: EvaluateResponseBody) -> Self
fn from(args: EvaluateResponseBody) -> Self
Source§impl PartialEq for EvaluateResponseBody
impl PartialEq for EvaluateResponseBody
Source§impl Serialize for EvaluateResponseBody
impl Serialize for EvaluateResponseBody
impl Eq for EvaluateResponseBody
impl StructuralPartialEq for EvaluateResponseBody
Auto Trait Implementations§
impl Freeze for EvaluateResponseBody
impl RefUnwindSafe for EvaluateResponseBody
impl Send for EvaluateResponseBody
impl Sync for EvaluateResponseBody
impl Unpin for EvaluateResponseBody
impl UnwindSafe for EvaluateResponseBody
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.