pub enum FieldType {
Bool,
U8,
U16,
U32,
U64,
I32,
I64,
U128,
FixedBytes,
VarBytes,
EnumU8,
}Expand description
Primitive field representation supported by StateVec schemas.
Variants§
Bool
Boolean field encoded as one byte.
U8
Unsigned 8-bit integer.
U16
Unsigned 16-bit little-endian integer.
U32
Unsigned 32-bit little-endian integer.
U64
Unsigned 64-bit little-endian integer.
I32
Signed 32-bit little-endian integer.
I64
Signed 64-bit little-endian integer.
U128
Unsigned 128-bit little-endian integer.
FixedBytes
Fixed-capacity byte field with an encoded logical length.
VarBytes
Variable-length byte field used in command and event payloads.
EnumU8
User-defined repr(u8) enum.
Trait Implementations§
impl Copy for FieldType
impl Eq for FieldType
impl StructuralPartialEq for FieldType
Auto Trait Implementations§
impl Freeze for FieldType
impl RefUnwindSafe for FieldType
impl Send for FieldType
impl Sync for FieldType
impl Unpin for FieldType
impl UnsafeUnpin for FieldType
impl UnwindSafe for FieldType
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