Struct zed_extension_api::SlashCommand
source · pub struct SlashCommand {
pub name: String,
pub description: String,
pub tooltip_text: String,
pub requires_argument: bool,
}
Expand description
A slash command for use in the Assistant.
Fields§
§name: String
The name of the slash command.
description: String
The description of the slash command.
tooltip_text: String
The tooltip text to display for the run button.
requires_argument: bool
Whether this slash command requires an argument.
Trait Implementations§
source§impl Clone for SlashCommand
impl Clone for SlashCommand
source§fn clone(&self) -> SlashCommand
fn clone(&self) -> SlashCommand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SlashCommand
impl RefUnwindSafe for SlashCommand
impl Send for SlashCommand
impl Sync for SlashCommand
impl Unpin for SlashCommand
impl UnwindSafe for SlashCommand
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)