pub struct CodeAction {
pub title: String,
pub kind: CodeActionKind,
pub edit: WorkspaceEdit,
pub diagnostics: Option<Vec<Diagnostic>>,
}Expand description
Code action
Fields§
§title: StringAction title
kind: CodeActionKindAction kind
edit: WorkspaceEditWorkspace edit
diagnostics: Option<Vec<Diagnostic>>Associated diagnostics
Implementations§
Source§impl CodeAction
impl CodeAction
Sourcepub fn new(title: String, kind: CodeActionKind, edit: WorkspaceEdit) -> Self
pub fn new(title: String, kind: CodeActionKind, edit: WorkspaceEdit) -> Self
Create a new code action
Trait Implementations§
Source§impl Clone for CodeAction
impl Clone for CodeAction
Source§fn clone(&self) -> CodeAction
fn clone(&self) -> CodeAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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
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