pub enum ValidatorOption {
Must,
Allow,
NotAllow,
}
Expand description
Options for validators.
Variants§
Implementations§
source§impl ValidatorOption
impl ValidatorOption
pub unsafe fn from_ordinal_unsafe(number: i8) -> ValidatorOption
pub fn from_ordinal(number: i8) -> Option<ValidatorOption>
pub fn ordinal(&self) -> i8
pub const fn variants() -> [ValidatorOption; 3]
pub const fn variant_count() -> usize
Trait Implementations§
source§impl Clone for ValidatorOption
impl Clone for ValidatorOption
source§fn clone(&self) -> ValidatorOption
fn clone(&self) -> ValidatorOption
Returns a copy of the value. Read more
1.0.0 · 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 ValidatorOption
impl Debug for ValidatorOption
source§impl Default for ValidatorOption
impl Default for ValidatorOption
source§impl PartialEq<ValidatorOption> for ValidatorOption
impl PartialEq<ValidatorOption> for ValidatorOption
source§fn eq(&self, other: &ValidatorOption) -> bool
fn eq(&self, other: &ValidatorOption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ValidatorOption
impl Eq for ValidatorOption
impl StructuralEq for ValidatorOption
impl StructuralPartialEq for ValidatorOption
Auto Trait Implementations§
impl RefUnwindSafe for ValidatorOption
impl Send for ValidatorOption
impl Sync for ValidatorOption
impl Unpin for ValidatorOption
impl UnwindSafe for ValidatorOption
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