pub trait Request {
    type Params: DeserializeOwned + Serialize;
    type Result: DeserializeOwned + Serialize;

    const METHOD: &'static str;
}

Required Associated Types§

Required Associated Constants§

source

const METHOD: &'static str

Implementors§

source§

impl Request for ApplyWorkspaceEdit

§

type Params = ApplyWorkspaceEditParams

§

type Result = ApplyWorkspaceEditResponse

source§

const METHOD: &'static str = "workspace/applyEdit"

source§

impl Request for CallHierarchyIncomingCalls

§

type Params = CallHierarchyIncomingCallsParams

§

type Result = Option<Vec<CallHierarchyIncomingCall, Global>>

source§

const METHOD: &'static str = "callHierarchy/incomingCalls"

source§

impl Request for CallHierarchyOutgoingCalls

§

type Params = CallHierarchyOutgoingCallsParams

§

type Result = Option<Vec<CallHierarchyOutgoingCall, Global>>

source§

const METHOD: &'static str = "callHierarchy/outgoingCalls"

source§

impl Request for CallHierarchyPrepare

§

type Params = CallHierarchyPrepareParams

§

type Result = Option<Vec<CallHierarchyItem, Global>>

source§

const METHOD: &'static str = "textDocument/prepareCallHierarchy"

source§

impl Request for CodeActionRequest

§

type Params = CodeActionParams

§

type Result = Option<Vec<CodeActionOrCommand, Global>>

source§

const METHOD: &'static str = "textDocument/codeAction"

source§

impl Request for CodeActionResolveRequest

§

type Params = CodeAction

§

type Result = CodeAction

source§

const METHOD: &'static str = "codeAction/resolve"

source§

impl Request for CodeLensRefresh

§

type Params = ()

§

type Result = ()

source§

const METHOD: &'static str = "workspace/codeLens/refresh"

source§

impl Request for CodeLensRequest

§

type Params = CodeLensParams

§

type Result = Option<Vec<CodeLens, Global>>

source§

const METHOD: &'static str = "textDocument/codeLens"

source§

impl Request for CodeLensResolve

§

type Params = CodeLens

§

type Result = CodeLens

source§

const METHOD: &'static str = "codeLens/resolve"

source§

impl Request for ColorPresentationRequest

§

type Params = ColorPresentationParams

§

type Result = Vec<ColorPresentation, Global>

source§

const METHOD: &'static str = "textDocument/colorPresentation"

source§

impl Request for Completion

§

type Params = CompletionParams

§

type Result = Option<CompletionResponse>

source§

const METHOD: &'static str = "textDocument/completion"

source§

impl Request for DocumentColor

§

type Params = DocumentColorParams

§

type Result = Vec<ColorInformation, Global>

source§

const METHOD: &'static str = "textDocument/documentColor"

source§

impl Request for DocumentHighlightRequest

§

type Params = DocumentHighlightParams

§

type Result = Option<Vec<DocumentHighlight, Global>>

source§

const METHOD: &'static str = "textDocument/documentHighlight"

source§

impl Request for DocumentLinkRequest

§

type Params = DocumentLinkParams

§

type Result = Option<Vec<DocumentLink, Global>>

source§

const METHOD: &'static str = "textDocument/documentLink"

source§

impl Request for DocumentLinkResolve

§

type Params = DocumentLink

§

type Result = DocumentLink

source§

const METHOD: &'static str = "documentLink/resolve"

source§

impl Request for DocumentSymbolRequest

§

type Params = DocumentSymbolParams

§

type Result = Option<DocumentSymbolResponse>

source§

const METHOD: &'static str = "textDocument/documentSymbol"

source§

impl Request for ExecuteCommand

§

type Params = ExecuteCommandParams

§

type Result = Option<Value>

source§

const METHOD: &'static str = "workspace/executeCommand"

source§

impl Request for FoldingRangeRequest

§

type Params = FoldingRangeParams

§

type Result = Option<Vec<FoldingRange, Global>>

source§

const METHOD: &'static str = "textDocument/foldingRange"

source§

impl Request for Formatting

§

type Params = DocumentFormattingParams

§

type Result = Option<Vec<TextEdit, Global>>

source§

const METHOD: &'static str = "textDocument/formatting"

source§

impl Request for GotoDeclaration

The goto declaration request is sent from the client to the server to resolve the declaration location of a symbol at a given text document position.

§

type Params = GotoDefinitionParams

§

type Result = Option<GotoDefinitionResponse>

source§

const METHOD: &'static str = "textDocument/declaration"

source§

impl Request for GotoDefinition

§

type Params = GotoDefinitionParams

§

type Result = Option<GotoDefinitionResponse>

source§

const METHOD: &'static str = "textDocument/definition"

source§

impl Request for GotoImplementation

§

type Params = GotoDefinitionParams

§

type Result = Option<GotoDefinitionResponse>

source§

const METHOD: &'static str = "textDocument/implementation"

source§

impl Request for GotoTypeDefinition

§

type Params = GotoDefinitionParams

§

type Result = Option<GotoDefinitionResponse>

source§

const METHOD: &'static str = "textDocument/typeDefinition"

source§

impl Request for HoverRequest

§

type Params = HoverParams

§

type Result = Option<Hover>

source§

const METHOD: &'static str = "textDocument/hover"

source§

impl Request for Initialize

§

type Params = InitializeParams

§

type Result = InitializeResult

source§

const METHOD: &'static str = "initialize"

source§

impl Request for InlayHintRefreshRequest

§

type Params = ()

§

type Result = ()

source§

const METHOD: &'static str = "workspace/inlayHint/refresh"

source§

impl Request for InlayHintRequest

§

type Params = InlayHintParams

§

type Result = Option<Vec<InlayHint, Global>>

source§

const METHOD: &'static str = "textDocument/inlayHint"

source§

impl Request for InlayHintResolveRequest

§

type Params = InlayHint

§

type Result = InlayHint

source§

const METHOD: &'static str = "inlayHint/resolve"

source§

impl Request for InlineValueRefreshRequest

§

type Params = ()

§

type Result = ()

source§

const METHOD: &'static str = "workspace/inlineValue/refresh"

source§

impl Request for InlineValueRequest

§

type Params = InlineValueParams

§

type Result = Option<InlineValue>

source§

const METHOD: &'static str = "textDocument/inlineValue"

source§

impl Request for LinkedEditingRange

§

type Params = LinkedEditingRangeParams

§

type Result = Option<LinkedEditingRanges>

source§

const METHOD: &'static str = "textDocument/linkedEditingRange"

source§

impl Request for MonikerRequest

§

type Params = MonikerParams

§

type Result = Option<Vec<Moniker, Global>>

source§

const METHOD: &'static str = "textDocument/moniker"

source§

impl Request for OnTypeFormatting

§

type Params = DocumentOnTypeFormattingParams

§

type Result = Option<Vec<TextEdit, Global>>

source§

const METHOD: &'static str = "textDocument/onTypeFormatting"

source§

impl Request for PrepareRenameRequest

§

type Params = TextDocumentPositionParams

§

type Result = Option<PrepareRenameResponse>

source§

const METHOD: &'static str = "textDocument/prepareRename"

source§

impl Request for RangeFormatting

§

type Params = DocumentRangeFormattingParams

§

type Result = Option<Vec<TextEdit, Global>>

source§

const METHOD: &'static str = "textDocument/rangeFormatting"

source§

impl Request for References

§

type Params = ReferenceParams

§

type Result = Option<Vec<Location, Global>>

source§

const METHOD: &'static str = "textDocument/references"

source§

impl Request for RegisterCapability

§

type Params = RegistrationParams

§

type Result = ()

source§

const METHOD: &'static str = "client/registerCapability"

source§

impl Request for Rename

§

type Params = RenameParams

§

type Result = Option<WorkspaceEdit>

source§

const METHOD: &'static str = "textDocument/rename"

source§

impl Request for ResolveCompletionItem

§

type Params = CompletionItem

§

type Result = CompletionItem

source§

const METHOD: &'static str = "completionItem/resolve"

source§

impl Request for SelectionRangeRequest

§

type Params = SelectionRangeParams

§

type Result = Option<Vec<SelectionRange, Global>>

source§

const METHOD: &'static str = "textDocument/selectionRange"

source§

impl Request for SemanticTokensFullDeltaRequest

§

type Params = SemanticTokensDeltaParams

§

type Result = Option<SemanticTokensFullDeltaResult>

source§

const METHOD: &'static str = "textDocument/semanticTokens/full/delta"

source§

impl Request for SemanticTokensFullRequest

§

type Params = SemanticTokensParams

§

type Result = Option<SemanticTokensResult>

source§

const METHOD: &'static str = "textDocument/semanticTokens/full"

source§

impl Request for SemanticTokensRangeRequest

§

type Params = SemanticTokensRangeParams

§

type Result = Option<SemanticTokensRangeResult>

source§

const METHOD: &'static str = "textDocument/semanticTokens/range"

source§

impl Request for SemanticTokensRefresh

§

type Params = ()

§

type Result = ()

source§

const METHOD: &'static str = "workspace/semanticTokens/refresh"

source§

impl Request for ShowDocument

§

type Params = ShowDocumentParams

§

type Result = ShowDocumentResult

source§

const METHOD: &'static str = "window/showDocument"

source§

impl Request for ShowMessageRequest

§

type Params = ShowMessageRequestParams

§

type Result = Option<MessageActionItem>

source§

const METHOD: &'static str = "window/showMessageRequest"

source§

impl Request for Shutdown

§

type Params = ()

§

type Result = ()

source§

const METHOD: &'static str = "shutdown"

source§

impl Request for SignatureHelpRequest

§

type Params = SignatureHelpParams

§

type Result = Option<SignatureHelp>

source§

const METHOD: &'static str = "textDocument/signatureHelp"

source§

impl Request for TypeHierarchyPrepare

§

type Params = TypeHierarchyPrepareParams

§

type Result = Option<Vec<TypeHierarchyItem, Global>>

source§

const METHOD: &'static str = "textDocument/prepareTypeHierarchy"

source§

impl Request for TypeHierarchySubtypes

§

type Params = TypeHierarchySubtypesParams

§

type Result = Option<Vec<TypeHierarchyItem, Global>>

source§

const METHOD: &'static str = "typeHierarchy/subtypes"

source§

impl Request for TypeHierarchySupertypes

§

type Params = TypeHierarchySupertypesParams

§

type Result = Option<Vec<TypeHierarchyItem, Global>>

source§

const METHOD: &'static str = "typeHierarchy/supertypes"

source§

impl Request for UnregisterCapability

§

type Params = UnregistrationParams

§

type Result = ()

source§

const METHOD: &'static str = "client/unregisterCapability"

source§

impl Request for WillCreateFiles

§

type Params = CreateFilesParams

§

type Result = Option<WorkspaceEdit>

source§

const METHOD: &'static str = "workspace/willCreateFiles"

source§

impl Request for WillDeleteFiles

§

type Params = DeleteFilesParams

§

type Result = Option<WorkspaceEdit>

source§

const METHOD: &'static str = "workspace/willDeleteFiles"

source§

impl Request for WillRenameFiles

§

type Params = RenameFilesParams

§

type Result = Option<WorkspaceEdit>

source§

const METHOD: &'static str = "workspace/willRenameFiles"

source§

impl Request for WillSaveWaitUntil

§

type Params = WillSaveTextDocumentParams

§

type Result = Option<Vec<TextEdit, Global>>

source§

const METHOD: &'static str = "textDocument/willSaveWaitUntil"

source§

impl Request for WorkDoneProgressCreate

§

type Params = WorkDoneProgressCreateParams

§

type Result = ()

source§

const METHOD: &'static str = "window/workDoneProgress/create"

source§

impl Request for WorkspaceConfiguration

§

type Params = ConfigurationParams

§

type Result = Vec<Value, Global>

source§

const METHOD: &'static str = "workspace/configuration"

source§

impl Request for WorkspaceFoldersRequest

§

type Params = ()

§

type Result = Option<Vec<WorkspaceFolder, Global>>

source§

const METHOD: &'static str = "workspace/workspaceFolders"

source§

impl Request for WorkspaceSymbolRequest

§

type Params = WorkspaceSymbolParams

§

type Result = Option<WorkspaceSymbolResponse>

source§

const METHOD: &'static str = "workspace/symbol"

source§

impl Request for WorkspaceSymbolResolve

§

type Params = WorkspaceSymbol

§

type Result = WorkspaceSymbol

source§

const METHOD: &'static str = "workspaceSymbol/resolve"