[][src]Enum b3_rs::datatypes::KnownType

#[repr(u64)]pub enum KnownType {
    Reserved0,
    CompositeDict,
    CompositeList,
    Bytes,
    UTF8,
    Boolean,
    Int64,
    UVarInt,
    SVarInt,
    Float64,
    Decimal,
    Reserved11,
    Stamp64,
    Sched,
    Reserved14,
    ExtendedType,
}

The B3 standard-defined data types.

The standard-defined data type Complex (type number 16) is an extended type, and as such, is found in the KnownExtendedType enum.

Variants

Reserved0

Type 0 - Reserved, probably permanently unused.

CompositeDict

Type 1 - Dictionary-like object.

Identical to CompositeList on the wire, hints to parser to yield a dictionary-like object where possible.

CompositeList

Type 2 - List-like object.

Identical to CompositeDict on the wire, hints to parser to yield a list-like object where possible.

Bytes

Type 3 - Array of bytes.

UTF8

Type 4 - A UTF-8 encoded string.

Boolean

Type 5 - A boolean.

Int64

Type 6 - A signed 64-bit integer.

UVarInt

Type 7 - An unsigned variable length integer.

SVarInt

Type 8 - A signed variable length integer.

Float64

Type 9 - A signed 64-bit float.

Decimal

Type 10 - Arbitrary-precision decimal.

Reserved11

Type 11 - Reserved, currently unused.

Stamp64

Type 12 - Signed 64-bit UNIX nanoseconds.

Sched

Type 13 - Local datetime.

YMDHMS plus optional subseconds, offset to UTC, and timezone name.

Reserved14

Type 14 - Reserved, currently unused.

ExtendedType

Type 15 - Reserved, used as a marker to signify that there is an extended data type in a UVarInt following the item's control byte.

Trait Implementations

impl Clone for KnownType[src]

impl Copy for KnownType[src]

impl Debug for KnownType[src]

impl From<KnownType> for DataType[src]

impl From<u64> for KnownType[src]

impl PartialEq<KnownType> for KnownType[src]

impl StructuralPartialEq for KnownType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.