pub struct SlashCommandInput {
pub completion: Option<SlashCommandInputCompletion>,
pub hint: String,
pub preserve_multiline_input: Option<bool>,
pub required: Option<bool>,
}Expand description
Optional unstructured input hint
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§completion: Option<SlashCommandInputCompletion>Optional completion hint for the input (e.g. ‘directory’ for filesystem path completion)
hint: StringHint to display when command input has not been provided
preserve_multiline_input: Option<bool>When true, clients should pass the full text after the command name as a single argument rather than splitting on whitespace
required: Option<bool>When true, the command requires non-empty input; clients should render the input hint as required
Trait Implementations§
Source§impl Clone for SlashCommandInput
impl Clone for SlashCommandInput
Source§fn clone(&self) -> SlashCommandInput
fn clone(&self) -> SlashCommandInput
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 SlashCommandInput
impl Debug for SlashCommandInput
Source§impl Default for SlashCommandInput
impl Default for SlashCommandInput
Source§fn default() -> SlashCommandInput
fn default() -> SlashCommandInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SlashCommandInput
impl<'de> Deserialize<'de> for SlashCommandInput
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 SlashCommandInput
impl RefUnwindSafe for SlashCommandInput
impl Send for SlashCommandInput
impl Sync for SlashCommandInput
impl Unpin for SlashCommandInput
impl UnsafeUnpin for SlashCommandInput
impl UnwindSafe for SlashCommandInput
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