pub enum AMQPValue {
Show 17 variants Boolean(bool), ShortShortInt(i8), ShortShortUInt(u8), ShortInt(i16), ShortUInt(u16), LongInt(i32), LongUInt(u32), LongLongInt(i64), Float(f32), Double(f64), DecimalValue(DecimalValue), LongString(String), FieldArray(Vec<AMQPValue, Global>), Timestamp(u64), FieldTable(BTreeMap<String, AMQPValue, Global>), ByteArray(Vec<u8, Global>), Void,
}
Expand description

Enumeration referencing the possible AMQP values depending on the types

Variants

Boolean(bool)

A bool

ShortShortInt(i8)

An i8

ShortShortUInt(u8)

A u8

ShortInt(i16)

An i16

ShortUInt(u16)

A u16

LongInt(i32)

An i32

LongUInt(u32)

A u32

LongLongInt(i64)

An i64

Float(f32)

An f32

Double(f64)

An f64

DecimalValue(DecimalValue)

A decimal value

LongString(String)

A String

FieldArray(Vec<AMQPValue, Global>)

An array of AMQPValue

Timestamp(u64)

A timestamp (u32)

FieldTable(BTreeMap<String, AMQPValue, Global>)

A Map<String, AMQPValue>

ByteArray(Vec<u8, Global>)

An array of bytes (RabbitMQ speicific)

Void

No value

Implementations

Get the AMQPType of an AMQPValue

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
Deserialize this value from the given Serde deserializer. Read more
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. 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.