pub struct VariablePresentationHint {
pub kind: Option<VariablePresentationHintKind>,
pub attributes: Option<Vec<VariablePresentationHintAttributes>>,
pub visibility: Option<VariablePresentationHintVisibility>,
pub lazy: Option<bool>,
}
Expand description
Properties of a variable that can be used to determine how to render the variable in the UI.
Fields§
§kind: Option<VariablePresentationHintKind>
The kind of variable. Before introducing additional values, try to use the listed values.
attributes: Option<Vec<VariablePresentationHintAttributes>>
Set of attributes represented as an array of strings. Before introducing additional values, try to use the listed values.
visibility: Option<VariablePresentationHintVisibility>
Visibility of variable. Before introducing additional values, try to use the listed values.
lazy: Option<bool>
If true, clients can present the variable with a UI that supports a specific gesture to trigger its evaluation.
This mechanism can be used for properties that require executing code when retrieving their value and where the code execution can be expensive and/or produce side-effects. A typical example are properties based on a getter function.
Please note that in addition to the lazy
flag, the variable’s variablesReference
is expected to refer to a variable that will provide the value through another variable
request.
Trait Implementations§
Source§impl Clone for VariablePresentationHint
impl Clone for VariablePresentationHint
Source§fn clone(&self) -> VariablePresentationHint
fn clone(&self) -> VariablePresentationHint
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more