Enum struct_metadata::Kind
source · pub enum Kind<Metadata: Default> {
Show 22 variants
Struct {
name: &'static str,
children: Vec<Entry<Metadata>>,
},
Aliased {
name: &'static str,
kind: Box<Descriptor<Metadata>>,
},
Enum {
name: &'static str,
variants: Vec<Variant<Metadata>>,
},
Sequence(Box<Descriptor<Metadata>>),
Option(Box<Descriptor<Metadata>>),
Mapping(Box<Descriptor<Metadata>>, Box<Descriptor<Metadata>>),
DateTime,
String,
U128,
I128,
U64,
I64,
U32,
I32,
U16,
I16,
U8,
I8,
F64,
F32,
Bool,
Any,
}Expand description
Enum reflecting all supported types
Variants§
Struct
Fields
The type is a struct
Aliased
Fields
§
kind: Box<Descriptor<Metadata>>The type this alias struct wraps
A struct wrapping a single anonymous field
Enum
Fields
A simple no-field enum type
Sequence(Box<Descriptor<Metadata>>)
A list of items of a consistent type
Option(Box<Descriptor<Metadata>>)
An item which is optionally present
Mapping(Box<Descriptor<Metadata>>, Box<Descriptor<Metadata>>)
A pairwise mapping between consistent types with unique keys
DateTime
A field describing a point in time
String
A string
U128
Unsigned 128 bit integer
I128
Signed 128 bit integer
U64
Unsigned 64 bit integer
I64
Signed 64 bit integer
U32
Unsigned 32 bit integer
I32
Signed 32 bit integer
U16
Unsigned 16 bit integer
I16
Signed 16 bit integer
U8
Unsigned 8 bit integer
I8
Signed 8 bit integer
F64
64 bit floating point number
F32
32 bit floating point number
Bool
A boolean value
Any
A value of unspecified type
Trait Implementations§
source§impl<Metadata: PartialEq + Default> PartialEq for Kind<Metadata>
impl<Metadata: PartialEq + Default> PartialEq for Kind<Metadata>
impl<Metadata: Eq + Default> Eq for Kind<Metadata>
impl<Metadata: Default> StructuralEq for Kind<Metadata>
impl<Metadata: Default> StructuralPartialEq for Kind<Metadata>
Auto Trait Implementations§
impl<Metadata> RefUnwindSafe for Kind<Metadata>where Metadata: RefUnwindSafe,
impl<Metadata> Send for Kind<Metadata>where Metadata: Send,
impl<Metadata> Sync for Kind<Metadata>where Metadata: Sync,
impl<Metadata> Unpin for Kind<Metadata>where Metadata: Unpin,
impl<Metadata> UnwindSafe for Kind<Metadata>where Metadata: UnwindSafe,
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