[][src]Enum amq_protocol_types::AMQPValue

pub enum AMQPValue {
    Boolean(Boolean),
    ShortShortInt(ShortShortInt),
    ShortShortUInt(ShortShortUInt),
    ShortInt(ShortInt),
    ShortUInt(ShortUInt),
    LongInt(LongInt),
    LongUInt(LongUInt),
    LongLongInt(LongLongInt),
    Float(Float),
    Double(Double),
    DecimalValue(DecimalValue),
    ShortString(ShortString),
    LongString(LongString),
    FieldArray(FieldArray),
    Timestamp(Timestamp),
    FieldTable(FieldTable),
    ByteArray(ByteArray),
    Void,
}

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)

Void

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]

impl PartialEq<AMQPValue> for AMQPValue[src]

impl Serialize for AMQPValue[src]

impl StructuralPartialEq for AMQPValue[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.