#[non_exhaustive]pub enum ValidationArgument<'a> {
Bool(bool),
Integer(i128),
Unsigned(u128),
String(&'a str),
BoolList(&'a [bool]),
IntegerList(&'a [i128]),
UnsignedList(&'a [u128]),
StringList(&'a [&'a str]),
}Expand description
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bool(bool)
A Boolean value.
Integer(i128)
A signed integer value.
Unsigned(u128)
An unsigned integer value.
String(&'a str)
A string value.
BoolList(&'a [bool])
A Boolean list.
IntegerList(&'a [i128])
A signed integer list.
UnsignedList(&'a [u128])
An unsigned integer list.
StringList(&'a [&'a str])
A string list.
Trait Implementations§
Source§impl<'a> Clone for ValidationArgument<'a>
impl<'a> Clone for ValidationArgument<'a>
impl<'a> Copy for ValidationArgument<'a>
Source§impl Debug for ValidationArgument<'_>
impl Debug for ValidationArgument<'_>
impl<'a> Eq for ValidationArgument<'a>
Source§impl<'a> PartialEq for ValidationArgument<'a>
impl<'a> PartialEq for ValidationArgument<'a>
impl<'a> StructuralPartialEq for ValidationArgument<'a>
Auto Trait Implementations§
impl<'a> Freeze for ValidationArgument<'a>
impl<'a> RefUnwindSafe for ValidationArgument<'a>
impl<'a> Send for ValidationArgument<'a>
impl<'a> Sync for ValidationArgument<'a>
impl<'a> Unpin for ValidationArgument<'a>
impl<'a> UnsafeUnpin for ValidationArgument<'a>
impl<'a> UnwindSafe for ValidationArgument<'a>
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