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>), ByteArray(Vec<u8, Global>), Void,
}
Expand description

Enumeration referencing the possible AMQP values depending on the types

Variants

Boolean(bool)

Tuple Fields

0: bool

A bool

ShortShortInt(i8)

Tuple Fields

0: i8

An i8

ShortShortUInt(u8)

Tuple Fields

0: u8

A u8

ShortInt(i16)

Tuple Fields

0: i16

An i16

ShortUInt(u16)

Tuple Fields

0: u16

A u16

LongInt(i32)

Tuple Fields

0: i32

An i32

LongUInt(u32)

Tuple Fields

0: u32

A u32

LongLongInt(i64)

Tuple Fields

0: i64

An i64

Float(f32)

Tuple Fields

0: f32

An f32

Double(f64)

Tuple Fields

0: f64

An f64

DecimalValue(DecimalValue)

Tuple Fields

A decimal value

LongString(String)

Tuple Fields

0: String

A String

FieldArray(Vec<AMQPValue, Global>)

Tuple Fields

An array of AMQPValue

Timestamp(u64)

Tuple Fields

0: u64

A timestamp (u32)

FieldTable(BTreeMap<String, AMQPValue>)

Tuple Fields

A Map<String, AMQPValue>

ByteArray(Vec<u8, Global>)

Tuple Fields

0: 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

Performs the conversion.

Performs the conversion.

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

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

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

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.