#[repr(u8)]pub enum WireType {
Bool = 1,
U16 = 2,
U32 = 3,
U64 = 4,
EnumU16 = 5,
String = 16,
Bytes = 17,
ObjectId = 18,
RepoPath = 19,
Record = 32,
RecordListItem = 33,
}Expand description
Canonical field value type — FDD-03 §7.1 value_type. (The Rust type keeps the
historical name WireType; its codes and semantics are the normative
§7.1 table.) The u8 code is part of every field record and therefore part of
object identity.
Variants§
Bool = 1
Boolean as one byte, 0 or 1.
U16 = 2
Unsigned 16-bit integer, big-endian.
U32 = 3
Unsigned 32-bit integer, big-endian.
U64 = 4
Unsigned 64-bit integer, big-endian.
EnumU16 = 5
Discriminated enum_u16 value, big-endian.
String = 16
UTF-8 string bytes.
Bytes = 17
Opaque byte string.
ObjectId = 18
32-byte object identifier.
RepoPath = 19
Normalized repo-relative UTF-8 path.
Record = 32
Nested canonical record bytes.
RecordListItem = 33
Item of a repeated record list.
Trait Implementations§
impl Copy for WireType
impl Eq for WireType
impl StructuralPartialEq for WireType
Auto Trait Implementations§
impl Freeze for WireType
impl RefUnwindSafe for WireType
impl Send for WireType
impl Sync for WireType
impl Unpin for WireType
impl UnsafeUnpin for WireType
impl UnwindSafe for WireType
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