[][src]Struct lsp_types::CodeActionContext

pub struct CodeActionContext {
    pub diagnostics: Vec<Diagnostic>,
    pub only: Option<Vec<CodeActionKind>>,
}

Contains additional diagnostic information about the context in which a code action is run.

Fields

diagnostics: Vec<Diagnostic>

An array of diagnostics.

only: Option<Vec<CodeActionKind>>

Requested kind of actions to return.

Actions not of this kind are filtered out by the client before being shown. So servers can omit computing them.

Trait Implementations

impl Clone for CodeActionContext[src]

impl Debug for CodeActionContext[src]

impl Default for CodeActionContext[src]

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

impl Eq for CodeActionContext[src]

impl PartialEq<CodeActionContext> for CodeActionContext[src]

impl Serialize for CodeActionContext[src]

impl StructuralEq for CodeActionContext[src]

impl StructuralPartialEq for CodeActionContext[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.