Struct lsp_types::SemanticTokens [−][src]
pub struct SemanticTokens {
pub result_id: Option<String>,
pub data: Vec<SemanticToken>,
}
Expand description
@since 3.16.0
Fields
result_id: Option<String>
An optional result id. If provided and clients support delta updating the client will include the result id in the next semantic token request. A server can then instead of computing all semantic tokens again simply send a delta.
data: Vec<SemanticToken>
The actual tokens. For a detailed description about how the data is structured please see https://github.com/microsoft/vscode-extension-samples/blob/5ae1f7787122812dcc84e37427ca90af5ee09f14/semantic-tokens-sample/vscode.proposed.d.ts#L71
Trait Implementations
Returns the “default value” for a type. Read more
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
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SemanticTokens
impl Send for SemanticTokens
impl Sync for SemanticTokens
impl Unpin for SemanticTokens
impl UnwindSafe for SemanticTokens
Blanket Implementations
Mutably borrows from an owned value. Read more