pub enum ScriptedAnswer {
Confirm(Confirmation),
Select(usize),
Text(String),
}Expand description
One answer in the script of a ScriptedUser
Each variant answers one kind of prompt, and it matches no other kind.
Variants§
Confirm(Confirmation)
The answer to a confirmation
Select(usize)
The answer to a selection
The value is the position of the chosen option, where the first option has the position zero.
Text(String)
The answer to a question for one line of text
Trait Implementations§
Source§impl Clone for ScriptedAnswer
impl Clone for ScriptedAnswer
Source§impl Debug for ScriptedAnswer
impl Debug for ScriptedAnswer
impl Eq for ScriptedAnswer
Source§impl Hash for ScriptedAnswer
impl Hash for ScriptedAnswer
Source§impl PartialEq for ScriptedAnswer
impl PartialEq for ScriptedAnswer
impl StructuralPartialEq for ScriptedAnswer
Auto Trait Implementations§
impl Freeze for ScriptedAnswer
impl RefUnwindSafe for ScriptedAnswer
impl Send for ScriptedAnswer
impl Sync for ScriptedAnswer
impl Unpin for ScriptedAnswer
impl UnsafeUnpin for ScriptedAnswer
impl UnwindSafe for ScriptedAnswer
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