pub struct SlashCommandTextResult {
pub kind: SlashCommandTextResultKind,
pub markdown: Option<bool>,
pub preserve_ansi: Option<bool>,
pub runtime_settings_changed: Option<bool>,
pub text: String,
}Expand description
Schema for the SlashCommandTextResult 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§
§kind: SlashCommandTextResultKindText result discriminator
markdown: Option<bool>Whether text contains Markdown
preserve_ansi: Option<bool>Whether ANSI sequences should be preserved
runtime_settings_changed: Option<bool>True when the invocation mutated user runtime settings; consumers caching settings should refresh
text: StringText output for the client to render
Trait Implementations§
Source§impl Clone for SlashCommandTextResult
impl Clone for SlashCommandTextResult
Source§fn clone(&self) -> SlashCommandTextResult
fn clone(&self) -> SlashCommandTextResult
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 SlashCommandTextResult
impl Debug for SlashCommandTextResult
Source§impl Default for SlashCommandTextResult
impl Default for SlashCommandTextResult
Source§fn default() -> SlashCommandTextResult
fn default() -> SlashCommandTextResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SlashCommandTextResult
impl<'de> Deserialize<'de> for SlashCommandTextResult
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 SlashCommandTextResult
impl RefUnwindSafe for SlashCommandTextResult
impl Send for SlashCommandTextResult
impl Sync for SlashCommandTextResult
impl Unpin for SlashCommandTextResult
impl UnsafeUnpin for SlashCommandTextResult
impl UnwindSafe for SlashCommandTextResult
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