Struct languageserver_types::CodeActionContext [−][src]
pub struct CodeActionContext {
pub diagnostics: Vec<Diagnostic>,
pub only: Option<Vec<String>>,
}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<String>>
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 Debug for CodeActionContext[src]
impl Debug for CodeActionContextfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for CodeActionContext[src]
impl Eq for CodeActionContextimpl PartialEq for CodeActionContext[src]
impl PartialEq for CodeActionContextfn eq(&self, other: &CodeActionContext) -> bool[src]
fn eq(&self, other: &CodeActionContext) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &CodeActionContext) -> bool[src]
fn ne(&self, other: &CodeActionContext) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for CodeActionContext
impl Send for CodeActionContextimpl Sync for CodeActionContext
impl Sync for CodeActionContext