Enum requestty_ui::Validation
source · [−]pub enum Validation {
Finish,
Continue,
}
Expand description
The state of a prompt on validation.
See Prompt::validate
Variants
Finish
If the prompt is ready to finish.
Continue
If the state is valid, but the prompt should still persist.
Unlike returning an Err, this will not show an error and is a way for the prompt to progress its internal state machine.
Trait Implementations
sourceimpl Clone for Validation
impl Clone for Validation
sourcefn clone(&self) -> Validation
fn clone(&self) -> Validation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Validation
impl Debug for Validation
sourceimpl PartialEq<Validation> for Validation
impl PartialEq<Validation> for Validation
sourcefn eq(&self, other: &Validation) -> bool
fn eq(&self, other: &Validation) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for Validation
impl Eq for Validation
impl StructuralEq for Validation
impl StructuralPartialEq for Validation
Auto Trait Implementations
impl RefUnwindSafe for Validation
impl Send for Validation
impl Sync for Validation
impl Unpin for Validation
impl UnwindSafe for Validation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more