[−][src]Enum amq_protocol_types::AMQPValue
Enumeration referencing the possible AMQP values depending on the types
Variants
Boolean(Boolean)
A bool
ShortShortInt(ShortShortInt)
An i8
ShortShortUInt(ShortShortUInt)
A u8
ShortInt(ShortInt)
An i16
ShortUInt(ShortUInt)
A u16
LongInt(LongInt)
An i32
LongUInt(LongUInt)
A u32
LongLongInt(LongLongInt)
An i64
Float(Float)
An f32
Double(Double)
An f64
DecimalValue(DecimalValue)
A decimal value
ShortString(ShortString)
A String (deprecated)
LongString(LongString)
A String
FieldArray(FieldArray)
An array of AMQPValue
Timestamp(Timestamp)
A timestamp (u32)
FieldTable(FieldTable)
A Map<String, AMQPValue>
ByteArray(ByteArray)
An array of bytes (RabbitMQ speicific)
No value
Methods
impl AMQPValue
[src]
pub fn get_type(&self) -> AMQPType
[src]
Get the AMQPType of an AMQPValue
pub fn try_from(value: &Value, amqp_type: AMQPType) -> Option<AMQPValue>
[src]
Convert a serde_json::Value into an AMQPValue
Trait Implementations
impl Clone for AMQPValue
[src]
impl Debug for AMQPValue
[src]
impl<'de> Deserialize<'de> for AMQPValue
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<AMQPValue> for AMQPValue
[src]
impl Serialize for AMQPValue
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for AMQPValue
[src]
Auto Trait Implementations
impl RefUnwindSafe for AMQPValue
impl Send for AMQPValue
impl Sync for AMQPValue
impl Unpin for AMQPValue
impl UnwindSafe for AMQPValue
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, 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>,