Enum fog_pack::validator::Validator [−][src]
pub enum Validator {
Show 22 variants
Null,
Bool(BoolValidator),
Int(IntValidator),
F32(F32Validator),
F64(F64Validator),
Bin(BinValidator),
Str(StrValidator),
Array(ArrayValidator),
Map(MapValidator),
Time(TimeValidator),
Hash(HashValidator),
Identity(IdentityValidator),
StreamId(StreamIdValidator),
LockId(LockIdValidator),
DataLockbox(DataLockboxValidator),
IdentityLockbox(IdentityLockboxValidator),
StreamLockbox(StreamLockboxValidator),
LockLockbox(LockLockboxValidator),
Ref(String),
Multi(MultiValidator),
Enum(EnumValidator),
Any,
}Expand description
A fog-pack Validator, for verifying the form of a fog-pack Document or Entry.
Validators can be used to verify a fog-pack Document or Entry. Schemas use them for verification, and they are also used by Queries to find matching Entries.
A Validator can range from the
Variants
Tuple Fields of Bool
Tuple Fields of Int
0: IntValidatorTuple Fields of F32
0: F32ValidatorTuple Fields of F64
0: F64ValidatorTuple Fields of Bin
0: BinValidatorTuple Fields of Str
0: StrValidatorTuple Fields of Array
Tuple Fields of Map
0: MapValidatorTuple Fields of Time
Tuple Fields of Hash
Tuple Fields of Identity
Tuple Fields of StreamId
Tuple Fields of LockId
Tuple Fields of DataLockbox
Tuple Fields of IdentityLockbox
Tuple Fields of StreamLockbox
Tuple Fields of LockLockbox
Tuple Fields of Ref
0: StringTuple Fields of Multi
Tuple Fields of Enum
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
Auto Trait Implementations
impl RefUnwindSafe for Validator
impl UnwindSafe for Validator
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self