pub struct ModelSwitchScan {
pub model_switch: Option<String>,
pub model_switch_tier: Option<Tier>,
pub stripped_diff: String,
}Expand description
Result of scanning a unified diff for an inline /model <x> command.
Fields§
§model_switch: Option<String>The concrete model name from /model <name> (e.g., "opus").
model_switch_tier: Option<Tier>The resolved tier for the model switch (e.g., Tier::High for opus).
stripped_diff: StringThe diff text with the /model <x> command line(s) stripped.
Trait Implementations§
Source§impl Clone for ModelSwitchScan
impl Clone for ModelSwitchScan
Source§fn clone(&self) -> ModelSwitchScan
fn clone(&self) -> ModelSwitchScan
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModelSwitchScan
impl RefUnwindSafe for ModelSwitchScan
impl Send for ModelSwitchScan
impl Sync for ModelSwitchScan
impl Unpin for ModelSwitchScan
impl UnsafeUnpin for ModelSwitchScan
impl UnwindSafe for ModelSwitchScan
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