Struct languageserver_types::Command
[−]
[src]
pub struct Command { pub title: String, pub command: String, pub arguments: Option<Vec<Value>>, }
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]
Trait Implementations
impl Debug for Command
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Command
[src]
fn eq(&self, __arg_0: &Command) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Command) -> bool
[src]
This method tests for !=
.
impl Clone for Command
[src]
fn clone(&self) -> Command
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more