pub enum Type {
Bool,
Uint,
Int,
Float,
Double,
String,
Octets,
Enum(&'static EnumDef),
Bitmap(&'static BitmapDef),
Struct(&'static StructDef),
Unknown(&'static str),
}Expand description
The type of a value, as far as JSON conversion needs it.
Variants§
Bool
boolean.
Uint
An unsigned integer of any width, or a semantic type over one.
Int
A signed integer of any width, or a semantic type over one.
Float
single.
Double
double.
String
A UTF-8 string.
Octets
An octet string; hex in JSON.
Enum(&'static EnumDef)
An enumeration: a number, or its name when encoding.
Bitmap(&'static BitmapDef)
A bitmap: a number.
Struct(&'static StructDef)
A structure: an object keyed by field name.
Unknown(&'static str)
A type the tables do not know; converted by its TLV type.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Init<T> for T
impl<T> Init<T> for T
§impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
§fn into_fallible<E>(self) -> impl Init<T, E>
fn into_fallible<E>(self) -> impl Init<T, E>
Convert the infallible initializer to a fallible one.