languageserver_types

Struct TextDocumentClientCapabilities

Source
pub struct TextDocumentClientCapabilities {
Show 21 fields pub synchronization: Option<SynchronizationCapability>, pub completion: Option<CompletionCapability>, pub hover: Option<HoverCapability>, pub signature_help: Option<SignatureHelpCapability>, pub references: Option<GenericCapability>, pub document_highlight: Option<GenericCapability>, pub document_symbol: Option<DocumentSymbolCapability>, pub formatting: Option<GenericCapability>, pub range_formatting: Option<GenericCapability>, pub on_type_formatting: Option<GenericCapability>, pub declaration: Option<GotoCapability>, pub definition: Option<GotoCapability>, pub type_definition: Option<GotoCapability>, pub implementation: Option<GotoCapability>, pub code_action: Option<CodeActionCapability>, pub code_lens: Option<GenericCapability>, pub document_link: Option<GenericCapability>, pub color_provider: Option<GenericCapability>, pub rename: Option<RenameCapability>, pub publish_diagnostics: Option<PublishDiagnosticsCapability>, pub folding_range: Option<FoldingRangeCapability>,
}
Expand description

Text document specific client capabilities.

Fields§

§synchronization: Option<SynchronizationCapability>§completion: Option<CompletionCapability>

Capabilities specific to the textDocument/completion

§hover: Option<HoverCapability>

Capabilities specific to the textDocument/hover

§signature_help: Option<SignatureHelpCapability>

Capabilities specific to the textDocument/signatureHelp

§references: Option<GenericCapability>

Capabilities specific to the textDocument/references

§document_highlight: Option<GenericCapability>

Capabilities specific to the textDocument/documentHighlight

§document_symbol: Option<DocumentSymbolCapability>

Capabilities specific to the textDocument/documentSymbol

§formatting: Option<GenericCapability>

Capabilities specific to the textDocument/formatting

§range_formatting: Option<GenericCapability>

Capabilities specific to the textDocument/rangeFormatting

§on_type_formatting: Option<GenericCapability>

Capabilities specific to the textDocument/onTypeFormatting

§declaration: Option<GotoCapability>

Capabilities specific to the textDocument/declaration

§definition: Option<GotoCapability>

Capabilities specific to the textDocument/definition

§type_definition: Option<GotoCapability>

Capabilities specific to the textDocument/typeDefinition

§implementation: Option<GotoCapability>

Capabilities specific to the textDocument/implementation

§code_action: Option<CodeActionCapability>

Capabilities specific to the textDocument/codeAction

§code_lens: Option<GenericCapability>

Capabilities specific to the textDocument/codeLens

§document_link: Option<GenericCapability>

Capabilities specific to the textDocument/documentLink

§color_provider: Option<GenericCapability>

Capabilities specific to the textDocument/documentColor and the textDocument/colorPresentation request.

§rename: Option<RenameCapability>

Capabilities specific to the textDocument/rename

§publish_diagnostics: Option<PublishDiagnosticsCapability>

Capabilities specific to textDocument/publishDiagnostics.

§folding_range: Option<FoldingRangeCapability>

Capabilities specific to textDocument/foldingRange requests.

Trait Implementations§

Source§

impl Debug for TextDocumentClientCapabilities

Source§

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

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

impl Default for TextDocumentClientCapabilities

Source§

fn default() -> TextDocumentClientCapabilities

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

impl<'de> Deserialize<'de> for TextDocumentClientCapabilities

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 TextDocumentClientCapabilities

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for TextDocumentClientCapabilities

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 Eq for TextDocumentClientCapabilities

Source§

impl StructuralPartialEq for TextDocumentClientCapabilities

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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>,