pub enum Variant {
Show 22 variants
Null,
Boolean(bool),
Ubyte(u8),
Ushort(u16),
Uint(u32),
Ulong(u64),
Byte(i8),
Short(i16),
Int(i32),
Long(i64),
Float(OrderedFloat<f32>),
Double(OrderedFloat<f64>),
Char(char),
Timestamp(DateTime<Utc>),
Uuid(Uuid),
Binary(Bytes),
String(Str),
Symbol(Symbol),
StaticSymbol(StaticSymbol),
List(List),
Map(VariantMap),
Described((Descriptor, Box<Variant>)),
}
Expand description
Represents an AMQP type for use in polymorphic collections
Variants§
Null
Indicates an empty value.
Boolean(bool)
Represents a true or false value.
Ubyte(u8)
Integer in the range 0 to 2^8 - 1 inclusive.
Ushort(u16)
Integer in the range 0 to 2^16 - 1 inclusive.
Uint(u32)
Integer in the range 0 to 2^32 - 1 inclusive.
Ulong(u64)
Integer in the range 0 to 2^64 - 1 inclusive.
Byte(i8)
Integer in the range 0 to 2^7 - 1 inclusive.
Short(i16)
Integer in the range 0 to 2^15 - 1 inclusive.
Int(i32)
Integer in the range 0 to 2^32 - 1 inclusive.
Long(i64)
Integer in the range 0 to 2^64 - 1 inclusive.
Float(OrderedFloat<f32>)
32-bit floating point number (IEEE 754-2008 binary32).
Double(OrderedFloat<f64>)
64-bit floating point number (IEEE 754-2008 binary64).
Char(char)
A single Unicode character.
Timestamp(DateTime<Utc>)
An absolute point in time. Represents an approximate point in time using the Unix time encoding of UTC with a precision of milliseconds. For example, 1311704463521 represents the moment 2011-07-26T18:21:03.521Z.
Uuid(Uuid)
A universally unique identifier as defined by RFC-4122 section 4.1.2
Binary(Bytes)
A sequence of octets.
String(Str)
A sequence of Unicode characters
Symbol(Symbol)
Symbolic values from a constrained domain.
StaticSymbol(StaticSymbol)
Same as Symbol but for static refs
List(List)
List
Map(VariantMap)
Map
Described((Descriptor, Box<Variant>))
Described value