Enum fog_pack::validator::Validator[][src]

pub enum Validator {
    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,
}

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

Null
IdentityLockbox(IdentityLockboxValidator)
StreamLockbox(StreamLockboxValidator)
Ref(String)
Any

Implementations

impl Validator[src]

pub fn new_ref(name: impl Into<String>) -> Self[src]

pub fn new_null() -> Self[src]

pub fn new_any() -> Self[src]

Trait Implementations

impl Clone for Validator[src]

impl Debug for Validator[src]

impl<'de> Deserialize<'de> for Validator[src]

impl PartialEq<Validator> for Validator[src]

impl Serialize for Validator[src]

impl StructuralPartialEq for Validator[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,