pub struct SlashCommandConfig {
pub name: String,
pub description: String,
pub input_hint: Option<String>,
}Expand description
A slash command advertised to connected clients via available_commands_update.
Define these in common.toml for agents that don’t send available_commands_update
themselves (e.g. Copilot CLI, Goose).
Example common.toml entry:
[[slash_commands]]
name = "fix"
description = "Fix the selected code"
[[slash_commands]]
name = "explain"
description = "Explain the code, optionally with a focus"
input_hint = "what to focus on"Fields§
§name: StringCommand name without the leading / (e.g. "fix").
description: StringHuman-readable description shown in the picker.
input_hint: Option<String>If set, the command accepts free-text input; this string is shown as the placeholder hint in the text field.
Trait Implementations§
Source§impl Clone for SlashCommandConfig
impl Clone for SlashCommandConfig
Source§fn clone(&self) -> SlashCommandConfig
fn clone(&self) -> SlashCommandConfig
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 SlashCommandConfig
impl Debug for SlashCommandConfig
Source§impl<'de> Deserialize<'de> for SlashCommandConfig
impl<'de> Deserialize<'de> for SlashCommandConfig
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 SlashCommandConfig
impl RefUnwindSafe for SlashCommandConfig
impl Send for SlashCommandConfig
impl Sync for SlashCommandConfig
impl Unpin for SlashCommandConfig
impl UnsafeUnpin for SlashCommandConfig
impl UnwindSafe for SlashCommandConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more