pub enum ScalarTyp {
Show 22 variants
Bool,
U8,
U16,
U32,
U64,
I32,
I64,
F32,
F64,
Str,
Datetime,
Timestamp,
Decimal,
Id32,
Id64,
Fuid,
LowId,
Bytes,
Void,
RustJson,
JsonBytes,
ArrayBytes(u32),
}Expand description
Leaf schema types — no nested Typ. Copy, const-constructible,
shared by Typ (compile-time) and SchemaTyp (runtime).
Variants§
Bool
U8
U16
U32
U64
I32
I64
F32
F64
Str
Datetime
i64 unix timestamp milliseconds
Timestamp
u64 unix timestamp milliseconds
Decimal
rust_decimal - 96 bit repr
Id32
u32 big endian id type
Id64
u64 big endian id type
Fuid
Fuid (8 bytes, repr(transparent) over u64_be)
LowId
LowId
Bytes
byte array
Void
RustJson
Rust binary JSON representation
JsonBytes
vector of bytes, representing json string
ArrayBytes(u32)
array bytes with bytes count in scheme
Trait Implementations§
impl Copy for ScalarTyp
impl Eq for ScalarTyp
Source§impl Serialize for ScalarTyp
impl Serialize for ScalarTyp
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ScalarTyp
Auto Trait Implementations§
impl Freeze for ScalarTyp
impl RefUnwindSafe for ScalarTyp
impl Send for ScalarTyp
impl Sync for ScalarTyp
impl Unpin for ScalarTyp
impl UnsafeUnpin for ScalarTyp
impl UnwindSafe for ScalarTyp
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