Enum ntex_amqp::codec::types::Variant [−][src]
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, Global>)),
}
Expand description
Represents an AMQP type for use in polymorphic collections
Variants
Null
Indicates an empty value.
Boolean(bool)
Tuple Fields
0: bool
Represents a true or false value.
Ubyte(u8)
Tuple Fields
0: u8
Integer in the range 0 to 2^8 - 1 inclusive.
Ushort(u16)
Tuple Fields
0: u16
Integer in the range 0 to 2^16 - 1 inclusive.
Uint(u32)
Tuple Fields
0: u32
Integer in the range 0 to 2^32 - 1 inclusive.
Ulong(u64)
Tuple Fields
0: u64
Integer in the range 0 to 2^64 - 1 inclusive.
Byte(i8)
Tuple Fields
0: i8
Integer in the range 0 to 2^7 - 1 inclusive.
Short(i16)
Tuple Fields
0: i16
Integer in the range 0 to 2^15 - 1 inclusive.
Int(i32)
Tuple Fields
0: i32
Integer in the range 0 to 2^32 - 1 inclusive.
Long(i64)
Tuple Fields
0: i64
Integer in the range 0 to 2^64 - 1 inclusive.
Float(OrderedFloat<f32>)
Tuple Fields
0: OrderedFloat<f32>
32-bit floating point number (IEEE 754-2008 binary32).
Double(OrderedFloat<f64>)
Tuple Fields
0: OrderedFloat<f64>
64-bit floating point number (IEEE 754-2008 binary64).
Char(char)
Tuple Fields
0: 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)
Tuple Fields
0: Uuid
A universally unique identifier as defined by RFC-4122 section 4.1.2
Binary(Bytes)
Tuple Fields
0: Bytes
A sequence of octets.
String(Str)
Tuple Fields
0: Str
A sequence of Unicode characters
Symbol(Symbol)
Tuple Fields
0: Symbol
Symbolic values from a constrained domain.
StaticSymbol(StaticSymbol)
Tuple Fields
0: StaticSymbol
Same as Symbol but for static refs
List(List)
Tuple Fields
0: List
List
Map(VariantMap)
Tuple Fields
0: VariantMap
Map
Described((Descriptor, Box<Variant, Global>))
Described value
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Variant
impl !UnwindSafe for Variant
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more