pub struct Command {
pub title: String,
pub description: String,
pub rpc_cmd: PlaceholderRpc,
pub args: Vec<CommandArgument>,
}
Expand description
Represents a custom command provided by a plugin.
Fields§
§title: String
Human readable title, for display in (for example) a menu.
description: String
A short description of the command.
rpc_cmd: PlaceholderRpc
Template of the command RPC as it should be sent to the plugin.
args: Vec<CommandArgument>
A list of CommandArgument
s, which the client should use to build the RPC.
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
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin 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