pub struct Command {
pub title: String,
pub tooltip: Option<String>,
pub command: String,
pub arguments: Option<Vec<LspAny>>,
}Expand description
Represents a reference to a command. Provides a title which will be used to represent a command in the UI and, optionally, an array of arguments which will be passed to the command handler function when invoked.
Fields§
§title: StringTitle of the command, like save.
tooltip: Option<String>An optional tooltip.
@since 3.18.0 @proposed
command: StringThe identifier of the actual command handler.
arguments: Option<Vec<LspAny>>Arguments that the command handler should be invoked with.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Command> for CodeActionPartialResponse
impl From<Command> for CodeActionPartialResponse
Source§impl From<Command> for CodeActionResponse
impl From<Command> for CodeActionResponse
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more