Enum bonsaidb_core::key::KeyKind
source · pub enum KeyKind {
Show 18 variants
Unit,
U8,
U16,
U32,
U64,
U128,
Usize,
I8,
I16,
I32,
I64,
I128,
Isize,
Signed,
Unsigned,
Bool,
String,
Bytes,
}
Expand description
The type of a single field contained in a key.
Variants§
Unit
An unit
type, encoded with no length.
U8
An u8
encoded in big-endian encoding.
U16
An u16
encoded in big-endian encoding.
U32
An u32
encoded in big-endian encoding.
U64
An u64
encoded in big-endian encoding.
U128
An u128
encoded in big-endian encoding.
Usize
An usize
encoded in big-endian encoding.
I8
An i8
encoded in big-endian encoding.
I16
An i16
encoded in big-endian encoding.
I32
An i32
encoded in big-endian encoding.
I64
An i64
encoded in big-endian encoding.
I128
An i128
encoded in big-endian encoding.
Isize
An isize
encoded in big-endian encoding.
Signed
A [Signed
] number encoded using [ordered_varint
].
Unsigned
An [Unsigned
] number encoded using [ordered_varint
].
Bool
A bool
encoded as a single byte.
String
A String encoded using BonsaiDb’s built-in KeyEncoding
.
Bytes
A byte array encoded using BonsaiDb’s built-in KeyEncoding
.