Struct languageserver_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§
source§impl Debug for CodeAction
impl Debug for CodeAction
source§impl<'de> Deserialize<'de> for CodeAction
impl<'de> Deserialize<'de> for CodeAction
source§fn 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