pub struct Command {
pub id: String,
pub summary: String,
pub params: Vec<Param>,
pub returns: String,
pub read_only: bool,
pub notes: Vec<String>,
pub examples: Vec<Example>,
pub see_also: Vec<String>,
}Fields§
§id: String§summary: String§params: Vec<Param>§returns: String§read_only: boolIt changes nothing, so an agent may run it without asking.
notes: Vec<String>What a caller must know beyond the arguments: what it refuses, does silently, or is easily mistaken for.
examples: Vec<Example>Working uses, each a Lua script run from an empty document.
see_also: Vec<String>Other commands that do the related thing, by id.
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
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Forget for Command
impl Freeze for Command
impl Move 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