Struct lsp_types::CodeAction
source · pub struct CodeAction {
pub title: String,
pub kind: Option<String>,
pub diagnostics: Option<Vec<Diagnostic>>,
pub edit: Option<WorkspaceEdit>,
pub command: Option<Command>,
}
Fields
title: String
A short, human-readable, title for this code action.
kind: Option<String>
The kind of the code action. Used to filter code actions.
diagnostics: Option<Vec<Diagnostic>>
The diagnostics that this code action resolves.
edit: Option<WorkspaceEdit>
The workspace edit this code action performs.
command: Option<Command>
A command this code action executes. If a code action provides an edit and a command, first the edit is executed and then the command.
Trait Implementations
sourceimpl Debug for CodeAction
impl Debug for CodeAction
sourceimpl<'de> Deserialize<'de> for CodeAction
impl<'de> Deserialize<'de> for CodeAction
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<CodeAction> for CodeAction
impl PartialEq<CodeAction> for CodeAction
sourcefn eq(&self, other: &CodeAction) -> bool
fn eq(&self, other: &CodeAction) -> bool
sourceimpl Serialize for CodeAction
impl Serialize for CodeAction
impl StructuralPartialEq for CodeAction
Auto Trait Implementations
impl RefUnwindSafe for CodeAction
impl Send for CodeAction
impl Sync for CodeAction
impl Unpin for CodeAction
impl UnwindSafe for CodeAction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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