#[non_exhaustive]pub enum AutoModeSwitchResponse {
Yes,
YesAlways,
No,
}Expand description
Response to a HandlerEvent::AutoModeSwitch request.
Wire serialization matches the CLI’s autoModeSwitch.request response
schema: "yes", "yes_always", or "no".
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Yes
Approve the auto-mode switch for this rate-limit cycle only.
YesAlways
Approve and remember — auto-accept future auto-mode switches in this session without prompting.
No
Decline the auto-mode switch. The session stays on the current model and surfaces the rate-limit error.
Trait Implementations§
Source§impl Clone for AutoModeSwitchResponse
impl Clone for AutoModeSwitchResponse
Source§fn clone(&self) -> AutoModeSwitchResponse
fn clone(&self) -> AutoModeSwitchResponse
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 AutoModeSwitchResponse
impl Debug for AutoModeSwitchResponse
Source§impl<'de> Deserialize<'de> for AutoModeSwitchResponse
impl<'de> Deserialize<'de> for AutoModeSwitchResponse
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
Source§impl PartialEq for AutoModeSwitchResponse
impl PartialEq for AutoModeSwitchResponse
Source§fn eq(&self, other: &AutoModeSwitchResponse) -> bool
fn eq(&self, other: &AutoModeSwitchResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AutoModeSwitchResponse
impl Serialize for AutoModeSwitchResponse
impl Copy for AutoModeSwitchResponse
impl Eq for AutoModeSwitchResponse
impl StructuralPartialEq for AutoModeSwitchResponse
Auto Trait Implementations§
impl Freeze for AutoModeSwitchResponse
impl RefUnwindSafe for AutoModeSwitchResponse
impl Send for AutoModeSwitchResponse
impl Sync for AutoModeSwitchResponse
impl Unpin for AutoModeSwitchResponse
impl UnsafeUnpin for AutoModeSwitchResponse
impl UnwindSafe for AutoModeSwitchResponse
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