[−][src]Enum amq_protocol_types::AMQPType
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 (u32)
A Map<String, AMQPValue>
An array of bytes, RabbitMQ specific
No 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 Clone for AMQPType
[src]
impl Copy for AMQPType
[src]
impl Debug for AMQPType
[src]
impl<'de> Deserialize<'de> for AMQPType
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for AMQPType
[src]
impl Eq for AMQPType
[src]
impl PartialEq<AMQPType> for AMQPType
[src]
impl Serialize for AMQPType
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for AMQPType
[src]
impl StructuralPartialEq for AMQPType
[src]
Auto Trait Implementations
impl RefUnwindSafe for AMQPType
impl Send for AMQPType
impl Sync for AMQPType
impl Unpin for AMQPType
impl UnwindSafe for AMQPType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,