#[non_exhaustive]pub struct CommandDescriptor {
pub name: String,
pub description: String,
}Expand description
One slash-command a capability exposes — everruns’ CommandDescriptor,
pared down to what a host needs to list and invoke it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringInvoked as /{name} (no leading slash here).
description: StringOne line describing what it does, for a host to list.
Implementations§
Trait Implementations§
Source§impl Clone for CommandDescriptor
impl Clone for CommandDescriptor
Source§impl Debug for CommandDescriptor
impl Debug for CommandDescriptor
Source§impl<'de> Deserialize<'de> for CommandDescriptor
impl<'de> Deserialize<'de> for CommandDescriptor
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 PartialEq for CommandDescriptor
impl PartialEq for CommandDescriptor
Source§impl Serialize for CommandDescriptor
impl Serialize for CommandDescriptor
impl StructuralPartialEq for CommandDescriptor
Auto Trait Implementations§
impl Freeze for CommandDescriptor
impl RefUnwindSafe for CommandDescriptor
impl Send for CommandDescriptor
impl Sync for CommandDescriptor
impl Unpin for CommandDescriptor
impl UnsafeUnpin for CommandDescriptor
impl UnwindSafe for CommandDescriptor
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