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.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyKind
impl<'de> Deserialize<'de> for KeyKind
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>,
impl Eq for KeyKind
impl StructuralPartialEq for KeyKind
Auto Trait Implementations§
impl Freeze for KeyKind
impl RefUnwindSafe for KeyKind
impl Send for KeyKind
impl Sync for KeyKind
impl Unpin for KeyKind
impl UnwindSafe for KeyKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more