pub struct VariablePresentationHint {
pub attributes: Option<Vec<VariablePresentationHintAttributes>>,
pub kind: Option<VariablePresentationHintKind>,
pub lazy: Option<bool>,
pub visibility: Option<VariablePresentationHintVisibility>,
}Expand description
Properties of a variable that can be used to determine how to render the variable in the UI.
Fields§
§attributes: Option<Vec<VariablePresentationHintAttributes>>Set of attributes represented as an array of strings. Before introducing additional values, try to use the listed values.
kind: Option<VariablePresentationHintKind>The kind 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.
visibility: Option<VariablePresentationHintVisibility>Visibility of variable. Before introducing additional values, try to use the listed values.
Trait Implementations§
Source§impl Clone for VariablePresentationHint
impl Clone for VariablePresentationHint
Source§fn clone(&self) -> VariablePresentationHint
fn clone(&self) -> VariablePresentationHint
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VariablePresentationHint
impl Debug for VariablePresentationHint
Source§impl<'de> Deserialize<'de> for VariablePresentationHint
impl<'de> Deserialize<'de> for VariablePresentationHint
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>,
impl Eq for VariablePresentationHint
Source§impl Hash for VariablePresentationHint
impl Hash for VariablePresentationHint
Source§impl PartialEq for VariablePresentationHint
impl PartialEq for VariablePresentationHint
Source§fn eq(&self, other: &VariablePresentationHint) -> bool
fn eq(&self, other: &VariablePresentationHint) -> bool
self and other values to be equal, and is used by ==.