pub enum Type {
    String(StringKeys),
    Number(NumericKeys),
    Boolean,
    Null,
    Array(ArrayKeys),
    Object(ObjectKeys),
    Enum(EnumKeys),
    Tuple(TupleKeys),
    Ref(&'static str),
}
Expand description

Represents some property type.

Variants

String(StringKeys)

For a string type property.

Number(NumericKeys)

For a number type property.

Boolean

For a boolean type property.

Null

For a null type property.

Array(ArrayKeys)

For an array type property.

Object(ObjectKeys)

For an object type property.

Enum(EnumKeys)

For an array type property. In particular, it has unordered and composite type items.

Tuple(TupleKeys)

For an array type property. In particular, it has ordered and composite type items.

Ref(&'static str)

A reference to another schema.

Trait Implementations

Formats the value using the given formatter. Read more

Serialize this value into the given Serde serializer. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.