pub struct SemanticTokensClientCapabilities {
pub dynamic_registration: Option<bool>,
pub requests: SemanticTokensClientCapabilitiesRequests,
pub token_types: Vec<SemanticTokenType>,
pub token_modifiers: Vec<SemanticTokenModifier>,
pub formats: Vec<TokenFormat>,
pub overlapping_token_support: Option<bool>,
pub multiline_token_support: Option<bool>,
}
Expand description
Capabilities specific to the textDocument/semanticTokens/*
requests.
@since 3.16.0
Fields
dynamic_registration: Option<bool>
Whether implementation supports dynamic registration. If this is set to true
the client supports the new (TextDocumentRegistrationOptions & StaticRegistrationOptions)
return value for the corresponding server capability as well.
requests: SemanticTokensClientCapabilitiesRequests
Which requests the client supports and might send to the server
depending on the server’s capability. Please note that clients might not
show semantic tokens or degrade some of the user experience if a range
or full request is advertised by the client but not provided by the
server. If for example the client capability requests.full
and
request.range
are both set to true but the server only provides a
range provider the client might not render a minimap correctly or might
even decide to not show any semantic tokens at all.
token_types: Vec<SemanticTokenType>
The token types that the client supports.
token_modifiers: Vec<SemanticTokenModifier>
The token modifiers that the client supports.
formats: Vec<TokenFormat>
The token formats the clients supports.
overlapping_token_support: Option<bool>
Whether the client supports tokens that can overlap each other.
multiline_token_support: Option<bool>
Whether the client supports tokens that can span multiple lines.
Trait Implementations
sourceimpl Clone for SemanticTokensClientCapabilities
impl Clone for SemanticTokensClientCapabilities
sourcefn clone(&self) -> SemanticTokensClientCapabilities
fn clone(&self) -> SemanticTokensClientCapabilities
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for SemanticTokensClientCapabilities
impl Default for SemanticTokensClientCapabilities
sourcefn default() -> SemanticTokensClientCapabilities
fn default() -> SemanticTokensClientCapabilities
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SemanticTokensClientCapabilities
impl<'de> Deserialize<'de> for SemanticTokensClientCapabilities
sourcefn 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
sourceimpl PartialEq<SemanticTokensClientCapabilities> for SemanticTokensClientCapabilities
impl PartialEq<SemanticTokensClientCapabilities> for SemanticTokensClientCapabilities
sourcefn eq(&self, other: &SemanticTokensClientCapabilities) -> bool
fn eq(&self, other: &SemanticTokensClientCapabilities) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SemanticTokensClientCapabilities) -> bool
fn ne(&self, other: &SemanticTokensClientCapabilities) -> bool
This method tests for !=
.
impl Eq for SemanticTokensClientCapabilities
impl StructuralEq for SemanticTokensClientCapabilities
impl StructuralPartialEq for SemanticTokensClientCapabilities
Auto Trait Implementations
impl RefUnwindSafe for SemanticTokensClientCapabilities
impl Send for SemanticTokensClientCapabilities
impl Sync for SemanticTokensClientCapabilities
impl Unpin for SemanticTokensClientCapabilities
impl UnwindSafe for SemanticTokensClientCapabilities
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more