pub enum ScriptedResponse {
Select(usize),
MultiSelect(Vec<usize>),
Confirm(bool),
Input(String),
Edit(String),
}Expand description
Types of scripted responses.
Variants§
Select(usize)
Single selection (index)
MultiSelect(Vec<usize>)
Multiple selection (indices)
Confirm(bool)
Confirmation (yes/no)
Input(String)
Text input
Edit(String)
Editor result
Trait Implementations§
Source§impl Clone for ScriptedResponse
impl Clone for ScriptedResponse
Source§fn clone(&self) -> ScriptedResponse
fn clone(&self) -> ScriptedResponse
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 ScriptedResponse
impl RefUnwindSafe for ScriptedResponse
impl Send for ScriptedResponse
impl Sync for ScriptedResponse
impl Unpin for ScriptedResponse
impl UnsafeUnpin for ScriptedResponse
impl UnwindSafe for ScriptedResponse
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