Enum amq_protocol_types::AMQPValue[][src]

pub enum AMQPValue {
Show 18 variants Boolean(Boolean), ShortShortInt(ShortShortInt), ShortShortUInt(ShortShortUInt), ShortInt(ShortInt), ShortUInt(ShortUInt), LongInt(LongInt), LongUInt(LongUInt), LongLongInt(LongLongInt), Float(Float), Double(Double), DecimalValue(DecimalValue), ShortString(ShortString), LongString(LongString), FieldArray(FieldArray), Timestamp(Timestamp), FieldTable(FieldTable), ByteArray(ByteArray), Void,
}
Expand description

Enumeration referencing the possible AMQP values depending on the types

Variants

Boolean

A bool

Tuple Fields of Boolean

0: Boolean
ShortShortInt

An i8

Tuple Fields of ShortShortInt

0: ShortShortInt
ShortShortUInt

A u8

Tuple Fields of ShortShortUInt

0: ShortShortUInt
ShortInt

An i16

Tuple Fields of ShortInt

0: ShortInt
ShortUInt

A u16

Tuple Fields of ShortUInt

0: ShortUInt
LongInt

An i32

Tuple Fields of LongInt

0: LongInt
LongUInt

A u32

Tuple Fields of LongUInt

0: LongUInt
LongLongInt

An i64

Tuple Fields of LongLongInt

0: LongLongInt
Float

An f32

Tuple Fields of Float

0: Float
Double

An f64

Tuple Fields of Double

0: Double
DecimalValue

A decimal value

Tuple Fields of DecimalValue

0: DecimalValue
ShortString

A String (deprecated)

Tuple Fields of ShortString

0: ShortString
LongString

A String

Tuple Fields of LongString

0: LongString
FieldArray

An array of AMQPValue

Tuple Fields of FieldArray

0: FieldArray
Timestamp

A timestamp (u64)

Tuple Fields of Timestamp

0: Timestamp
FieldTable

A Map<String, AMQPValue>

Tuple Fields of FieldTable

0: FieldTable
ByteArray

An array of bytes (RabbitMQ specific)

Tuple Fields of ByteArray

0: ByteArray
Void

No value

Implementations

Get the AMQPType of an AMQPValue

Convert a serde_json::Value into 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.

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.

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)

recently added

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.