pub enum Type {
String(StringKeys),
Number(NumericKeys),
Boolean,
Null,
Array(ArrayKeys),
Object(ObjectKeys),
Enum(EnumKeys),
Tuple(TupleKeys),
}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.
Trait Implementations
sourceimpl Serialize for Type
impl Serialize for Type
sourcefn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more