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
Source§impl PartialEq for CodeAction
impl PartialEq for CodeAction
Source§impl Serialize for CodeAction
impl Serialize for CodeAction
impl StructuralPartialEq for CodeAction
Auto Trait Implementations§
impl Freeze for CodeAction
impl RefUnwindSafe for CodeAction
impl Send for CodeAction
impl Sync for CodeAction
impl Unpin for CodeAction
impl UnwindSafe for CodeAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more