[][src]Struct lsp_types::CodeAction

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

impl PartialEq<CodeAction> for CodeAction
[src]

impl Debug for CodeAction
[src]

impl Serialize for CodeAction
[src]

impl<'de> Deserialize<'de> for CodeAction
[src]

Auto Trait Implementations

impl Send for CodeAction

impl Sync for CodeAction

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]