pub enum TypeTrue {
String,
Number,
Integer,
Boolean,
Array,
Object,
}
Expand description
This is the type of output you’d like. string
, number
, integer
, boolean
are the primitive types and should be obvious. array
and object
are more interesting and quite powerful. They allow you to define nested structures. For array
, you can define the schema of the items in the array using the items
property. For object
, you can define the properties of the object using the properties
property.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TypeTrue
impl<'de> Deserialize<'de> for TypeTrue
Source§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
Source§impl Ord for TypeTrue
impl Ord for TypeTrue
Source§impl PartialOrd for TypeTrue
impl PartialOrd for TypeTrue
impl Copy for TypeTrue
impl Eq for TypeTrue
impl StructuralPartialEq for TypeTrue
Auto Trait Implementations§
impl Freeze for TypeTrue
impl RefUnwindSafe for TypeTrue
impl Send for TypeTrue
impl Sync for TypeTrue
impl Unpin for TypeTrue
impl UnwindSafe for TypeTrue
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