pub enum PromptAnswer {
Confirm(bool),
Text(String),
Select(String),
}Expand description
One canned prompt response. Used by tests to drive prompt_* past non-interactive guards.
Variants§
Trait Implementations§
Source§impl Clone for PromptAnswer
impl Clone for PromptAnswer
Source§fn clone(&self) -> PromptAnswer
fn clone(&self) -> PromptAnswer
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 PromptAnswer
impl Debug for PromptAnswer
Source§impl PartialEq for PromptAnswer
impl PartialEq for PromptAnswer
Source§fn eq(&self, other: &PromptAnswer) -> bool
fn eq(&self, other: &PromptAnswer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PromptAnswer
impl StructuralPartialEq for PromptAnswer
Auto Trait Implementations§
impl Freeze for PromptAnswer
impl RefUnwindSafe for PromptAnswer
impl Send for PromptAnswer
impl Sync for PromptAnswer
impl Unpin for PromptAnswer
impl UnsafeUnpin for PromptAnswer
impl UnwindSafe for PromptAnswer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.