pub struct ProviderCommand {
pub name: String,
pub description: Option<String>,
pub source: Option<String>,
pub argument_hint: Option<String>,
}Expand description
One provider-defined slash command (see SessionCommandsResult).
Fields§
§name: StringInvokable name without the leading slash.
description: Option<String>§source: Option<String>Provider-specific origin taxonomy (e.g. “extension” | “prompt” | “skill”). Display verbatim, never switch on it.
argument_hint: Option<String>Trait Implementations§
Source§impl Clone for ProviderCommand
impl Clone for ProviderCommand
Source§fn clone(&self) -> ProviderCommand
fn clone(&self) -> ProviderCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProviderCommand
impl Debug for ProviderCommand
Source§impl<'de> Deserialize<'de> for ProviderCommand
impl<'de> Deserialize<'de> for ProviderCommand
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 ProviderCommand
impl RefUnwindSafe for ProviderCommand
impl Send for ProviderCommand
impl Sync for ProviderCommand
impl Unpin for ProviderCommand
impl UnsafeUnpin for ProviderCommand
impl UnwindSafe for ProviderCommand
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