pub struct ConfirmAnswer {
pub value: bool,
pub source: ConfirmSource,
}Expand description
A submitted confirmation value and how it was chosen.
Fields§
§value: boolThe selected yes (true) or no (false) answer.
source: ConfirmSourceWhether the value came from the default or an explicit keypress.
Trait Implementations§
Source§impl Clone for ConfirmAnswer
impl Clone for ConfirmAnswer
Source§fn clone(&self) -> ConfirmAnswer
fn clone(&self) -> ConfirmAnswer
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 ConfirmAnswer
impl Debug for ConfirmAnswer
Source§impl PartialEq for ConfirmAnswer
impl PartialEq for ConfirmAnswer
Source§fn eq(&self, other: &ConfirmAnswer) -> bool
fn eq(&self, other: &ConfirmAnswer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ConfirmAnswer
impl StructuralPartialEq for ConfirmAnswer
Auto Trait Implementations§
impl Freeze for ConfirmAnswer
impl RefUnwindSafe for ConfirmAnswer
impl Send for ConfirmAnswer
impl Sync for ConfirmAnswer
impl Unpin for ConfirmAnswer
impl UnsafeUnpin for ConfirmAnswer
impl UnwindSafe for ConfirmAnswer
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