pub struct CodeAction {
pub title: String,
pub kind: Option<String>,
pub diagnostics: Option<Vec<Diagnostic>>,
pub edit: Option<WorkspaceEdit>,
pub command: Option<Command>,
pub is_preferred: Option<bool>,
pub disabled: Option<CodeActionDisabled>,
}Expand description
Represents a code action.
Fields§
§title: String§kind: Option<String>§diagnostics: Option<Vec<Diagnostic>>§edit: Option<WorkspaceEdit>§command: Option<Command>§is_preferred: Option<bool>§disabled: Option<CodeActionDisabled>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