pub enum Typ {
Show 28 variants
Bool,
U8,
U16,
U32,
U64,
I32,
I64,
F32,
F64,
Str,
Datetime,
Timestamp,
Decimal,
Ident,
Fuid,
LowId,
Bytes,
ArrayBytes(u32),
Array(u32, &'static Typ),
Vec(&'static Typ),
Optional(&'static Typ),
SimpleEnum(SimpleEnumType),
Struct(StructType),
Enum(EnumType),
Void,
RustJson,
JsonBytes,
Custom(&'static str, &'static [Typ]),
}Variants§
Bool
U8
U16
U32
U64
I32
I64
F32
F64
Str
Datetime
i64 unix timestamp milliseconds
Timestamp
u64 unix timestamp milliseconds
Decimal
Ident
u32 big endian id type
Fuid
Fuid
LowId
LowId
Bytes
ArrayBytes(u32)
array bytes with bytes count in scheme
Array(u32, &'static Typ)
Vec(&'static Typ)
Optional(&'static Typ)
SimpleEnum(SimpleEnumType)
Struct(StructType)
Enum(EnumType)
Void
RustJson
Rust binary JSON representation
JsonBytes
vector of bytes, representing json string
Custom(&'static str, &'static [Typ])
Trait Implementations§
impl Copy for Typ
impl StructuralPartialEq for Typ
Auto Trait Implementations§
impl Freeze for Typ
impl RefUnwindSafe for Typ
impl Send for Typ
impl Sync for Typ
impl Unpin for Typ
impl UnwindSafe for Typ
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more