Enum val_test::validate::Rules[][src]

pub enum Rules {
Show 19 variants Numeric, Required, Array, Between { min: i64, max: i64, }, Boolean, Date, Email, InArray { field: String, }, GreaterThan { field: String, }, LessThan { field: String, }, In { value: String, }, NotIn { value: String, }, Equal { field: String, }, EqualString { value: String, }, Json, Max { value: i64, }, Min { value: i64, }, String, NoneExist { field: String, },
}

Variants

Numeric
Required
Array
Between

Fields of Between

min: i64max: i64
Boolean
Date
Email
InArray

Fields of InArray

field: String
GreaterThan

Fields of GreaterThan

field: String
LessThan

Fields of LessThan

field: String
In

Fields of In

value: String
NotIn

Fields of NotIn

value: String
Equal

Fields of Equal

field: String
EqualString

Fields of EqualString

value: String
Json
Max

Fields of Max

value: i64
Min

Fields of Min

value: i64
String
NoneExist

Fields of NoneExist

field: String

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.