pub struct SlashCommandSetModelResult {
pub kind: SlashCommandSetModelResultKind,
pub model: String,
pub reasoning_effort: Option<String>,
pub repo_scope: Option<String>,
pub revert_on_cancel: Option<Value>,
pub runtime_settings_changed: Option<bool>,
pub scope: Option<String>,
pub warning: Option<String>,
}Expand description
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: SlashCommandSetModelResultKindDiscriminator for a set-model result.
model: StringModel selected by the command.
reasoning_effort: Option<String>Reasoning effort selected for the model.
repo_scope: Option<String>Repository settings scope modified by the command.
revert_on_cancel: Option<Value>User-settings snapshot to restore if the host cancels the model switch.
runtime_settings_changed: Option<bool>Whether command execution changed persisted runtime settings.
scope: Option<String>Settings scope modified by the command.
warning: Option<String>User-facing warning produced while selecting the model.
Trait Implementations§
Source§impl Clone for SlashCommandSetModelResult
impl Clone for SlashCommandSetModelResult
Source§fn clone(&self) -> SlashCommandSetModelResult
fn clone(&self) -> SlashCommandSetModelResult
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 SlashCommandSetModelResult
impl Debug for SlashCommandSetModelResult
Source§impl Default for SlashCommandSetModelResult
impl Default for SlashCommandSetModelResult
Source§fn default() -> SlashCommandSetModelResult
fn default() -> SlashCommandSetModelResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SlashCommandSetModelResult
impl<'de> Deserialize<'de> for SlashCommandSetModelResult
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 SlashCommandSetModelResult
impl RefUnwindSafe for SlashCommandSetModelResult
impl Send for SlashCommandSetModelResult
impl Sync for SlashCommandSetModelResult
impl Unpin for SlashCommandSetModelResult
impl UnsafeUnpin for SlashCommandSetModelResult
impl UnwindSafe for SlashCommandSetModelResult
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