Enum lapin_async::types::AMQPType [−][src]
pub enum AMQPType {
Boolean,
ShortShortInt,
ShortShortUInt,
ShortInt,
ShortUInt,
LongInt,
LongUInt,
LongLongInt,
LongLongUInt,
Float,
Double,
DecimalValue,
ShortString,
LongString,
FieldArray,
Timestamp,
FieldTable,
ByteArray,
Void,
}Enumeration referencing all the available AMQP types
Variants
BooleanA bool
ShortShortIntAn i8
ShortShortUIntA u8
ShortIntAn i16
ShortUIntA u16
LongIntAn i32
LongUIntA u32
LongLongIntAn i64
LongLongUIntA u64
FloatAn f32
DoubleAn f64
DecimalValueA decimal value represented by a scale and a value
ShortStringDeprecated, a String
LongStringA String
FieldArrayAn array of AMQPValue
TimestampA timestamp (u32)
FieldTableA Map<String, AMQPValue>
ByteArrayAn array of bytes, RabbitMQ specific
VoidNo value
Methods
impl AMQPType[src]
impl AMQPTypepub fn from_id(id: char) -> Option<AMQPType>[src]
pub fn from_id(id: char) -> Option<AMQPType>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)
pub fn get_id(&self) -> char[src]
pub fn get_id(&self) -> charGet 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
impl Display for AMQPType[src]
impl Display for AMQPTypefn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Clone for AMQPType[src]
impl Clone for AMQPTypefn clone(&self) -> AMQPType[src]
fn clone(&self) -> AMQPTypeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for AMQPType[src]
impl Debug for AMQPTypefn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Serialize for AMQPType[src]
impl Serialize for AMQPTypefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, [src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for AMQPType[src]
impl<'de> Deserialize<'de> for AMQPTypefn deserialize<__D>(
__deserializer: __D
) -> Result<AMQPType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<AMQPType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<AMQPType> for AMQPType[src]
impl PartialEq<AMQPType> for AMQPType