Struct languageserver_types::Command [−][src]
Represents a reference to a command. Provides a title which will be used to represent a command in the UI. Commands are identitifed using a string identifier and the protocol currently doesn't specify a set of well known commands. So executing a command requires some tool extension code.
Fields
title: String
Title of the command, like save.
command: String
The identifier of the actual command handler.
arguments: Option<Vec<Value>>
Arguments that the command handler should be invoked with.
Methods
impl Command[src]
impl CommandTrait Implementations
impl Debug for Command[src]
impl Debug for Commandfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Command[src]
impl PartialEq for Commandfn eq(&self, other: &Command) -> bool[src]
fn eq(&self, other: &Command) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Command) -> bool[src]
fn ne(&self, other: &Command) -> boolThis method tests for !=.
impl Clone for Command[src]
impl Clone for Commandfn clone(&self) -> Command[src]
fn clone(&self) -> CommandReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Default for Command[src]
impl Default for Command