pub enum FieldType {
U8,
U16,
U32,
U64,
U128,
I64,
Bool,
Bytes(usize),
VarBytes,
Address,
Hash,
}Expand description
Type of a single field in a schema.
Variants§
U8
U16
U32
U64
U128
I64
Bool
Bytes(usize)
Fixed-length byte array.
VarBytes
Variable-length byte array (prefixed with 4-byte length on disk).
Address
32-byte account/contract address.
Hash
32-byte hash (block hash, tx hash, etc).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FieldType
impl<'de> Deserialize<'de> for FieldType
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>,
Deserialize this value from the given Serde deserializer. Read more
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