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§
Source§impl Serialize for Type
impl Serialize for Type
Source§fn 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 Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more