pub struct ChoiceValidator { /* private fields */ }Expand description
Validates that string values are in a predefined whitelist of choices.
Implementations§
Trait Implementations§
Source§impl Clone for ChoiceValidator
impl Clone for ChoiceValidator
Source§fn clone(&self) -> ChoiceValidator
fn clone(&self) -> ChoiceValidator
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 ChoiceValidator
impl Debug for ChoiceValidator
Source§impl OptionValidator for ChoiceValidator
impl OptionValidator for ChoiceValidator
Auto Trait Implementations§
impl Freeze for ChoiceValidator
impl RefUnwindSafe for ChoiceValidator
impl Send for ChoiceValidator
impl Sync for ChoiceValidator
impl Unpin for ChoiceValidator
impl UnsafeUnpin for ChoiceValidator
impl UnwindSafe for ChoiceValidator
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