Struct fog_pack::validator::MultiValidator [−][src]
Expand description
“Multi” validator that checks with several validators at once.
This validator will accept any value that passes at least one of its contained validators. This can be used like an “any of” operator, or a logical OR of validators.
When going through the contained validators, some rules are followed to avoid possible cyclic references:
- Contained Multi-validators are skipped
- Contained Ref validators that refer to a Multi-validator are skipped.
- Contained Ref validators that refer to a Ref validator are skipped.
More succintly, the banned sequences are: Multi->Multi, Multi->Ref->Multi, Multi->Ref->Ref.
Query Checking
The validator for a query must be accepted by at least one of the validators in the Multi-validator. Contained validators that violate the cyclic reference rules are skipped (see above).
Tuple Fields
0: Vec<Validator>Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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
impl RefUnwindSafe for MultiValidator
impl Send for MultiValidator
impl Sync for MultiValidator
impl Unpin for MultiValidator
impl UnwindSafe for MultiValidator
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self