pub struct UIHandlePendingAutoModeSwitchRequest {
pub request_id: RequestId,
pub response: UIAutoModeSwitchResponse,
}Expand description
Request ID of a pending auto_mode_switch.requested event and the user’s response.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§request_id: RequestIdThe unique request ID from the auto_mode_switch.requested event
response: UIAutoModeSwitchResponseUser’s choice for auto-mode switching: yes (allow this turn), yes_always (allow + persist as setting), or no (decline).
Trait Implementations§
Source§impl Clone for UIHandlePendingAutoModeSwitchRequest
impl Clone for UIHandlePendingAutoModeSwitchRequest
Source§fn clone(&self) -> UIHandlePendingAutoModeSwitchRequest
fn clone(&self) -> UIHandlePendingAutoModeSwitchRequest
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 Default for UIHandlePendingAutoModeSwitchRequest
impl Default for UIHandlePendingAutoModeSwitchRequest
Source§fn default() -> UIHandlePendingAutoModeSwitchRequest
fn default() -> UIHandlePendingAutoModeSwitchRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UIHandlePendingAutoModeSwitchRequest
impl<'de> Deserialize<'de> for UIHandlePendingAutoModeSwitchRequest
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 UIHandlePendingAutoModeSwitchRequest
impl RefUnwindSafe for UIHandlePendingAutoModeSwitchRequest
impl Send for UIHandlePendingAutoModeSwitchRequest
impl Sync for UIHandlePendingAutoModeSwitchRequest
impl Unpin for UIHandlePendingAutoModeSwitchRequest
impl UnsafeUnpin for UIHandlePendingAutoModeSwitchRequest
impl UnwindSafe for UIHandlePendingAutoModeSwitchRequest
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