pub struct SlashCommandSelectSubcommandResult {
pub command: String,
pub kind: SlashCommandSelectSubcommandResultKind,
pub options: Vec<SlashCommandSelectSubcommandOption>,
pub runtime_settings_changed: Option<bool>,
pub title: String,
}Expand description
Schema for the SlashCommandSelectSubcommandResult type.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§command: StringParent command name that requires subcommand selection
kind: SlashCommandSelectSubcommandResultKindSelect subcommand result discriminator
options: Vec<SlashCommandSelectSubcommandOption>Available subcommand options for the client to present
runtime_settings_changed: Option<bool>True when the invocation mutated user runtime settings; consumers caching settings should refresh
title: StringHuman-readable title for the selection UI
Trait Implementations§
Source§impl Clone for SlashCommandSelectSubcommandResult
impl Clone for SlashCommandSelectSubcommandResult
Source§fn clone(&self) -> SlashCommandSelectSubcommandResult
fn clone(&self) -> SlashCommandSelectSubcommandResult
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 Default for SlashCommandSelectSubcommandResult
impl Default for SlashCommandSelectSubcommandResult
Source§fn default() -> SlashCommandSelectSubcommandResult
fn default() -> SlashCommandSelectSubcommandResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SlashCommandSelectSubcommandResult
impl<'de> Deserialize<'de> for SlashCommandSelectSubcommandResult
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 SlashCommandSelectSubcommandResult
impl RefUnwindSafe for SlashCommandSelectSubcommandResult
impl Send for SlashCommandSelectSubcommandResult
impl Sync for SlashCommandSelectSubcommandResult
impl Unpin for SlashCommandSelectSubcommandResult
impl UnsafeUnpin for SlashCommandSelectSubcommandResult
impl UnwindSafe for SlashCommandSelectSubcommandResult
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