pub struct ServerCapabilities {
Show 33 fields pub position_encoding: Option<PositionEncodingKind>, pub text_document_sync: Option<TextDocumentSyncCapability>, pub selection_range_provider: Option<SelectionRangeProviderCapability>, pub hover_provider: Option<HoverProviderCapability>, pub completion_provider: Option<CompletionOptions>, pub signature_help_provider: Option<SignatureHelpOptions>, pub definition_provider: Option<OneOf<bool, DefinitionOptions>>, pub type_definition_provider: Option<TypeDefinitionProviderCapability>, pub implementation_provider: Option<ImplementationProviderCapability>, pub references_provider: Option<OneOf<bool, ReferencesOptions>>, pub document_highlight_provider: Option<OneOf<bool, DocumentHighlightOptions>>, pub document_symbol_provider: Option<OneOf<bool, DocumentSymbolOptions>>, pub workspace_symbol_provider: Option<OneOf<bool, WorkspaceSymbolOptions>>, pub code_action_provider: Option<CodeActionProviderCapability>, pub code_lens_provider: Option<CodeLensOptions>, pub document_formatting_provider: Option<OneOf<bool, DocumentFormattingOptions>>, pub document_range_formatting_provider: Option<OneOf<bool, DocumentRangeFormattingOptions>>, pub document_on_type_formatting_provider: Option<DocumentOnTypeFormattingOptions>, pub rename_provider: Option<OneOf<bool, RenameOptions>>, pub document_link_provider: Option<DocumentLinkOptions>, pub color_provider: Option<ColorProviderCapability>, pub folding_range_provider: Option<FoldingRangeProviderCapability>, pub declaration_provider: Option<DeclarationCapability>, pub execute_command_provider: Option<ExecuteCommandOptions>, pub workspace: Option<WorkspaceServerCapabilities>, pub call_hierarchy_provider: Option<CallHierarchyServerCapability>, pub semantic_tokens_provider: Option<SemanticTokensServerCapabilities>, pub moniker_provider: Option<OneOf<bool, MonikerServerCapabilities>>, pub linked_editing_range_provider: Option<LinkedEditingRangeServerCapabilities>, pub inline_value_provider: Option<OneOf<bool, InlineValueServerCapabilities>>, pub inlay_hint_provider: Option<OneOf<bool, InlayHintServerCapabilities>>, pub diagnostic_provider: Option<DiagnosticServerCapabilities>, pub experimental: Option<Value>,
}

Fields§

§position_encoding: Option<PositionEncodingKind>

The position encoding the server picked from the encodings offered by the client via the client capability general.positionEncodings.

If the client didn’t provide any position encodings the only valid value that a server can return is ‘utf-16’.

If omitted it defaults to ‘utf-16’.

@since 3.17.0

§text_document_sync: Option<TextDocumentSyncCapability>

Defines how text documents are synced.

§selection_range_provider: Option<SelectionRangeProviderCapability>

Capabilities specific to textDocument/selectionRange requests.

§hover_provider: Option<HoverProviderCapability>

The server provides hover support.

§completion_provider: Option<CompletionOptions>

The server provides completion support.

§signature_help_provider: Option<SignatureHelpOptions>

The server provides signature help support.

§definition_provider: Option<OneOf<bool, DefinitionOptions>>

The server provides goto definition support.

§type_definition_provider: Option<TypeDefinitionProviderCapability>

The server provides goto type definition support.

§implementation_provider: Option<ImplementationProviderCapability>

The server provides goto implementation support.

§references_provider: Option<OneOf<bool, ReferencesOptions>>

The server provides find references support.

§document_highlight_provider: Option<OneOf<bool, DocumentHighlightOptions>>

The server provides document highlight support.

§document_symbol_provider: Option<OneOf<bool, DocumentSymbolOptions>>

The server provides document symbol support.

§workspace_symbol_provider: Option<OneOf<bool, WorkspaceSymbolOptions>>

The server provides workspace symbol support.

§code_action_provider: Option<CodeActionProviderCapability>

The server provides code actions.

§code_lens_provider: Option<CodeLensOptions>

The server provides code lens.

§document_formatting_provider: Option<OneOf<bool, DocumentFormattingOptions>>

The server provides document formatting.

§document_range_formatting_provider: Option<OneOf<bool, DocumentRangeFormattingOptions>>

The server provides document range formatting.

§document_on_type_formatting_provider: Option<DocumentOnTypeFormattingOptions>

The server provides document formatting on typing.

§rename_provider: Option<OneOf<bool, RenameOptions>>

The server provides rename support.

§document_link_provider: Option<DocumentLinkOptions>

The server provides document link support.

§color_provider: Option<ColorProviderCapability>

The server provides color provider support.

§folding_range_provider: Option<FoldingRangeProviderCapability>

The server provides folding provider support.

§declaration_provider: Option<DeclarationCapability>

The server provides go to declaration support.

§execute_command_provider: Option<ExecuteCommandOptions>

The server provides execute command support.

§workspace: Option<WorkspaceServerCapabilities>

Workspace specific server capabilities

§call_hierarchy_provider: Option<CallHierarchyServerCapability>

Call hierarchy provider capabilities.

§semantic_tokens_provider: Option<SemanticTokensServerCapabilities>

Semantic tokens server capabilities.

§moniker_provider: Option<OneOf<bool, MonikerServerCapabilities>>

Whether server provides moniker support.

§linked_editing_range_provider: Option<LinkedEditingRangeServerCapabilities>

The server provides linked editing range support.

@since 3.16.0

§inline_value_provider: Option<OneOf<bool, InlineValueServerCapabilities>>

The server provides inline values.

@since 3.17.0

§inlay_hint_provider: Option<OneOf<bool, InlayHintServerCapabilities>>

The server provides inlay hints.

@since 3.17.0

§diagnostic_provider: Option<DiagnosticServerCapabilities>

The server has support for pull model diagnostics.

@since 3.17.0

§experimental: Option<Value>

Experimental server capabilities.

Trait Implementations§

source§

impl Clone for ServerCapabilities

source§

fn clone(&self) -> ServerCapabilities

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ServerCapabilities

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ServerCapabilities

source§

fn default() -> ServerCapabilities

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for ServerCapabilities

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for ServerCapabilities

source§

fn eq(&self, other: &ServerCapabilities) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for ServerCapabilities

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for ServerCapabilities

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

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