pub enum MapKey {
String(String),
I32(i32),
I64(i64),
U32(u32),
U64(u64),
Bool(bool),
}Expand description
The key of a protobuf map<K, V> field.
Protobuf restricts map keys to integral, boolean, and string scalar types.
Variants§
String(String)
A string key.
I32(i32)
An int32, sint32, or sfixed32 key.
I64(i64)
An int64, sint64, or sfixed64 key.
U32(u32)
A uint32 or fixed32 key.
U64(u64)
A uint64 or fixed64 key.
Bool(bool)
A bool key.
Implementations§
Trait Implementations§
impl Eq for MapKey
impl StructuralPartialEq for MapKey
Auto Trait Implementations§
impl Freeze for MapKey
impl RefUnwindSafe for MapKey
impl Send for MapKey
impl Sync for MapKey
impl Unpin for MapKey
impl UnsafeUnpin for MapKey
impl UnwindSafe for MapKey
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