pub enum Value<'a> {
Show 29 variants
Null,
True,
False,
UInt8(u8),
Int8(i8),
UInt16(u16),
Int16(i16),
UInt32(u32),
Int32(i32),
Float(f32),
UInt64(u64),
Int64(i64),
Double(f64),
Text(&'a str),
DateTime(&'a str),
Date(&'a str),
Time(&'a str),
DecimalStr(&'a str),
Blob(&'a [u8]),
List(List<'a>),
Map(Map<'a>),
Object(Object<'a>),
Empty(SubType),
Byte(SubType, u8),
Word(SubType, u16),
DWord(SubType, u32),
QWord(SubType, u64),
UserText(SubType, &'a str),
UserBlob(SubType, &'a [u8]),
}
Expand description
Any value in binn format
Variants§
Null
Null
True
Boolean True
False
Boolean False
UInt8(u8)
Unsigned 8bit integer (0..255)
Int8(i8)
Signed 8bit integer (-128..127)
UInt16(u16)
Unsigned 16bit integer (0..65_535)
Int16(i16)
Signed 16bit integer (-32_768..32_767)
UInt32(u32)
Unsigned 32bit integer (0..4_294_967_295)
Int32(i32)
Signed 32bit integer (-2_147_483_648..2_147_483_647)
Float(f32)
IEEE 754 single precision floating point number (32bit)
UInt64(u64)
Unsigned 64bit integer (0..18_446_744_073_709_551_615)
Int64(i64)
Signed 64bit integer (-9_223_372_036_854_775_808..9_223_372_036_854_775_807)
Double(f64)
IEEE 754 double precision floating point number (64bit)
Text(&'a str)
UTF-8 encoded string
DateTime(&'a str)
String representing datetime (exact format not specified)
Date(&'a str)
String representing date (exact format not specified)
Time(&'a str)
String representing time (exact format not specified)
DecimalStr(&'a str)
String representing decimal number (exact format not specified)
Blob(&'a [u8])
Binary data
List(List<'a>)
Container that stores elements sequentially without keys
Map(Map<'a>)
Container that stores key-value pairs with 32bit signed integer as keys
Object(Object<'a>)
Container that stores key-value pairs with utf-8 strings as keys (with 255 byte limit for their length)
Empty(SubType)
User-defined type with empty storage
Byte(SubType, u8)
User-defined type with Byte storage (8bits)
Word(SubType, u16)
User-defined type with Word storage (16bits)
DWord(SubType, u32)
User-defined type with DWord storage (32bits)
QWord(SubType, u64)
User-defined type with QWord storage (64bits)
UserText(SubType, &'a str)
User-defined type with Text storage (UTF-8 string)
UserBlob(SubType, &'a [u8])
User-defined type with Blob storage (binary data)