pub enum Answer {
RESPONSE(String),
YES,
NO,
}Expand description
An answer, the result of asking a Question.
Variants§
RESPONSE(String)
A more complicated RESPONSE(String) that
can be evaluated in the context of the
application.
YES
A “yes” answer.
Used to represent any answers that are acceptable as a “yes” when asking a yes/no question.
NO
A “no” answer.
Used to represent any answers that are acceptable as a “no” when asking a yes/no question.
Trait Implementations§
impl Eq for Answer
impl StructuralPartialEq for Answer
Auto Trait Implementations§
impl Freeze for Answer
impl RefUnwindSafe for Answer
impl Send for Answer
impl Sync for Answer
impl Unpin for Answer
impl UnwindSafe for Answer
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