Enum amq_protocol_types::AMQPType [−][src]
pub enum AMQPType {
Show 19 variants
Boolean,
ShortShortInt,
ShortShortUInt,
ShortInt,
ShortUInt,
LongInt,
LongUInt,
LongLongInt,
LongLongUInt,
Float,
Double,
DecimalValue,
ShortString,
LongString,
FieldArray,
Timestamp,
FieldTable,
ByteArray,
Void,
}
Expand description
Enumeration referencing all the available AMQP types
Variants
A bool
An i8
A u8
An i16
A u16
An i32
A u32
An i64
A u64
An f32
An f64
A decimal value represented by a scale and a value
Deprecated, a String
A String
An array of AMQPValue
A timestamp (u64)
A Map<String, AMQPValue>
An array of bytes, RabbitMQ specific
No value
Implementations
Get the AMQPType corresponding to the given id. We don’t strictly follow the spec here but rather the RabbitMQ implementation ‘s’ means ShortInt (like ‘U’) instead of ShortString ‘l’ and ‘L’ both mean LongLongInt (no LongLongUInt)
Get the id from an AMQPType We don’t strictly follow the spec here but rather the RabbitMQ implementation ShortString doesn’t have an id, we return ‘_’ instead ShortInt is supposed to be ‘U’ but we use ‘s’ LongLongUInt is supposed to be ‘L’ but we return ‘l’ as LongLongInt
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for AMQPType
impl UnwindSafe for AMQPType
Blanket Implementations
Mutably borrows from an owned value. Read more