Struct lsp_types::SemanticTokens[][src]

pub struct SemanticTokens {
    pub result_id: Option<String>,
    pub data: Vec<SemanticToken>,
}

@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

impl Clone for SemanticTokens[src]

impl Debug for SemanticTokens[src]

impl Default for SemanticTokens[src]

impl<'de> Deserialize<'de> for SemanticTokens[src]

impl Eq for SemanticTokens[src]

impl From<SemanticTokens> for SemanticTokensResult[src]

impl From<SemanticTokens> for SemanticTokensFullDeltaResult[src]

impl From<SemanticTokens> for SemanticTokensRangeResult[src]

impl PartialEq<SemanticTokens> for SemanticTokens[src]

impl Serialize for SemanticTokens[src]

impl StructuralEq for SemanticTokens[src]

impl StructuralPartialEq for SemanticTokens[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.