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>)

Tuple Fields

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

Same as Symbol but for static refs

List(List)

Tuple Fields

0: List

List

Map(VariantMap)

Tuple Fields

Map

Described((Descriptor, Box<Variant, Global>))

Tuple Fields

Described value

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Encodes Variant into provided BytesMut

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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