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

Tuple Fields

A bool

ShortShortInt(ShortShortInt)

Tuple Fields

An i8

ShortShortUInt(ShortShortUInt)

Tuple Fields

A u8

ShortInt(ShortInt)

Tuple Fields

An i16

ShortUInt(ShortUInt)

Tuple Fields

A u16

LongInt(LongInt)

Tuple Fields

An i32

LongUInt(LongUInt)

Tuple Fields

A u32

LongLongInt(LongLongInt)

Tuple Fields

An i64

Float(Float)

Tuple Fields

0: Float

An f32

Double(Double)

Tuple Fields

0: Double

An f64

DecimalValue(DecimalValue)

Tuple Fields

A decimal value

ShortString(ShortString)

Tuple Fields

A String (deprecated)

LongString(LongString)

Tuple Fields

A String

FieldArray(FieldArray)

Tuple Fields

An array of AMQPValue

Timestamp(Timestamp)

Tuple Fields

A timestamp (u64)

FieldTable(FieldTable)

Tuple Fields

A Map<String, AMQPValue>

ByteArray(ByteArray)

Tuple Fields

An array of bytes (RabbitMQ specific)

Void

No value

Implementations

Get the AMQPType of an AMQPValue

Convert a serde_json::Value into an AMQPValue

If the value is bool, returns associated value. Returns None otherwise.

If the value is ShortShortInt, returns associated value. Returns None otherwise.

If the value is ShortShortUInt, returns associated value. Returns None otherwise.

If the value is ShortInt, returns associated value. Returns None otherwise.

If the value is ShortUInt, returns associated value. Returns None otherwise.

If the value is LongInt, returns associated value. Returns None otherwise.

If the value is LongUInt, returns associated value. Returns None otherwise.

If the value is LongLongInt, returns associated value. Returns None otherwise.

If the value is Float, returns associated value. Returns None otherwise.

If the value is Double, returns associated value. Returns None otherwise.

If the value is DecimalValue, returns associated value. Returns None otherwise.

If the value is ShortString, returns associated value as str. Returns None otherwise.

If the value is LongString, returns associated value as bytes. Returns None otherwise.

If the value is FieldArray, returns associated value. Returns None otherwise.

If the value is Timestamp, returns associated value. Returns None otherwise.

If the value is FieldTable, returns associated value. Returns None otherwise.

If the value is ByteArray, returns associated value. Returns None otherwise.

Returns true if value is Void.

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)

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.