pub enum TypeInfoKind {
Show 13 variants
Null,
Undefined,
Boolean,
Number,
String,
NumberLiteral(LiteralF64),
StringLiteral(String),
BooleanLiteral(bool),
Array {
element: TypeInfoId,
},
Tuple {
elements: Vec<TypeInfoId>,
optional: usize,
},
Object {
fields: Vec<FieldInfo>,
},
Union {
members: Vec<TypeInfoId>,
},
Unsupported {
label: String,
},
}Variants§
Null
Undefined
Boolean
Number
String
NumberLiteral(LiteralF64)
StringLiteral(String)
BooleanLiteral(bool)
Array
Fields
§
element: TypeInfoIdTuple
Object
Union
Fields
§
members: Vec<TypeInfoId>Unsupported
Trait Implementations§
Source§impl Clone for TypeInfoKind
impl Clone for TypeInfoKind
Source§impl Debug for TypeInfoKind
impl Debug for TypeInfoKind
Source§impl<'de> Deserialize<'de> for TypeInfoKind
impl<'de> Deserialize<'de> for TypeInfoKind
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 PartialEq for TypeInfoKind
impl PartialEq for TypeInfoKind
Source§impl Serialize for TypeInfoKind
impl Serialize for TypeInfoKind
impl StructuralPartialEq for TypeInfoKind
Auto Trait Implementations§
impl Freeze for TypeInfoKind
impl RefUnwindSafe for TypeInfoKind
impl Send for TypeInfoKind
impl Sync for TypeInfoKind
impl Unpin for TypeInfoKind
impl UnsafeUnpin for TypeInfoKind
impl UnwindSafe for TypeInfoKind
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