pub struct SlashCommandTextResult {
pub kind: SlashCommandTextResultKind,
pub markdown: Option<bool>,
pub preserve_ansi: Option<bool>,
pub runtime_settings_changed: Option<bool>,
pub sandbox_session_change: Option<SandboxSessionChange>,
pub text: String,
}Expand description
Slash-command invocation result containing text output plus Markdown/ANSI rendering flags.
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
sandbox_session_change: Option<SandboxSessionChange>Present when the invocation changed the sandbox for this session only. Nothing was persisted, so consumers must mirror the change onto the live session rather than reloading settings, and must not treat it as a settings change.
text: StringText output for the client to render
Trait Implementations§
Source§impl Clone for SlashCommandTextResult
impl Clone for SlashCommandTextResult
Source§impl Debug for SlashCommandTextResult
impl Debug for SlashCommandTextResult
Source§impl Default for SlashCommandTextResult
impl Default for SlashCommandTextResult
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