[−][src]Enum amq_protocol::types::AMQPType
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]
pub fn from_id(id: char) -> Option<AMQPType>[src]
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]
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
impl Copy for AMQPType[src]
impl Clone for AMQPType[src]
fn clone(&self) -> AMQPType[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Serialize for AMQPType[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, [src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl PartialEq<AMQPType> for AMQPType[src]
fn eq(&self, other: &AMQPType) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Display for AMQPType[src]
impl Debug for AMQPType[src]
impl<'de> Deserialize<'de> for AMQPType[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<AMQPType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, [src]
__deserializer: __D
) -> Result<AMQPType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Eq for AMQPType[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,