pub enum InteractiveEvent {
PromptRequested {
prompt_id: String,
message: String,
options: Vec<String>,
},
PromptResolved {
prompt_id: String,
response: String,
},
WaitProgress {
target: String,
elapsed_secs: u64,
},
}Expand description
User interaction events.
Variants§
PromptRequested
Prompt requested from user.
Fields
PromptResolved
Prompt resolved with user response.
WaitProgress
Wait/progress indicator.
Trait Implementations§
Source§impl Clone for InteractiveEvent
impl Clone for InteractiveEvent
Source§fn clone(&self) -> InteractiveEvent
fn clone(&self) -> InteractiveEvent
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 moreSource§impl Debug for InteractiveEvent
impl Debug for InteractiveEvent
Source§impl<'de> Deserialize<'de> for InteractiveEvent
impl<'de> Deserialize<'de> for InteractiveEvent
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 InteractiveEvent
impl RefUnwindSafe for InteractiveEvent
impl Send for InteractiveEvent
impl Sync for InteractiveEvent
impl Unpin for InteractiveEvent
impl UnsafeUnpin for InteractiveEvent
impl UnwindSafe for InteractiveEvent
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