#[repr(transparent)]pub struct ValidationType(pub i8);Tuple Fields§
§0: i8Implementations§
Source§impl ValidationType
impl ValidationType
pub const Required: Self
pub const MinLength: Self
pub const MaxLength: Self
pub const Pattern: Self
pub const Min: Self
pub const Max: Self
pub const Email: Self
pub const Url: Self
pub const Custom: Self
pub const ENUM_MIN: i8 = 0
pub const ENUM_MAX: i8 = 8
pub const ENUM_VALUES: &'static [Self]
Sourcepub fn variant_name(self) -> Option<&'static str>
pub fn variant_name(self) -> Option<&'static str>
Returns the variant’s name or “” if unknown.
Trait Implementations§
Source§impl Clone for ValidationType
impl Clone for ValidationType
Source§fn clone(&self) -> ValidationType
fn clone(&self) -> ValidationType
Returns a duplicate 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 ValidationType
impl Debug for ValidationType
Source§impl Default for ValidationType
impl Default for ValidationType
Source§fn default() -> ValidationType
fn default() -> ValidationType
Returns the “default value” for a type. Read more
Source§impl EndianScalar for ValidationType
impl EndianScalar for ValidationType
Source§impl<'a> Follow<'a> for ValidationType
impl<'a> Follow<'a> for ValidationType
Source§impl Hash for ValidationType
impl Hash for ValidationType
Source§impl Ord for ValidationType
impl Ord for ValidationType
Source§fn cmp(&self, other: &ValidationType) -> Ordering
fn cmp(&self, other: &ValidationType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ValidationType
impl PartialEq for ValidationType
Source§impl PartialOrd for ValidationType
impl PartialOrd for ValidationType
Source§impl Push for ValidationType
impl Push for ValidationType
Source§impl<'a> Verifiable for ValidationType
impl<'a> Verifiable for ValidationType
Source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos in the verifier’s buffer.
Should not need to be called directly.impl Copy for ValidationType
impl Eq for ValidationType
impl SimpleToVerifyInSlice for ValidationType
impl StructuralPartialEq for ValidationType
Auto Trait Implementations§
impl Freeze for ValidationType
impl RefUnwindSafe for ValidationType
impl Send for ValidationType
impl Sync for ValidationType
impl Unpin for ValidationType
impl UnsafeUnpin for ValidationType
impl UnwindSafe for ValidationType
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