Enum amq_protocol_types::AMQPValue [−][src]
pub enum AMQPValue {
Show 18 variants
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,
}
Expand description
Enumeration referencing the possible AMQP values depending on the types
Variants
Boolean(Boolean)
Tuple Fields
0: Boolean
A bool
ShortShortInt(ShortShortInt)
Tuple Fields
An i8
ShortShortUInt(ShortShortUInt)
Tuple Fields
A u8
ShortInt(ShortInt)
Tuple Fields
0: ShortInt
An i16
ShortUInt(ShortUInt)
Tuple Fields
0: ShortUInt
A u16
LongInt(LongInt)
Tuple Fields
0: LongInt
An i32
LongUInt(LongUInt)
Tuple Fields
0: LongUInt
A u32
LongLongInt(LongLongInt)
Tuple Fields
0: LongLongInt
An i64
Float(Float)
Tuple Fields
0: Float
An f32
Double(Double)
Tuple Fields
0: Double
An f64
DecimalValue(DecimalValue)
Tuple Fields
0: DecimalValue
A decimal value
ShortString(ShortString)
Tuple Fields
0: ShortString
A String (deprecated)
LongString(LongString)
Tuple Fields
0: LongString
A String
FieldArray(FieldArray)
Tuple Fields
0: FieldArray
An array of AMQPValue
Timestamp(Timestamp)
Tuple Fields
0: Timestamp
A timestamp (u64)
FieldTable(FieldTable)
Tuple Fields
0: FieldTable
A Map<String, AMQPValue>
ByteArray(ByteArray)
Tuple Fields
0: ByteArray
An array of bytes (RabbitMQ specific)
Void
No value
Implementations
Convert a serde_json::Value into an AMQPValue
If the value is bool, returns associated value. Returns None otherwise.
If the value is ShortShortInt, returns associated value. Returns None otherwise.
If the value is ShortShortUInt, returns associated value. Returns None otherwise.
If the value is ShortInt, returns associated value. Returns None otherwise.
If the value is ShortUInt, returns associated value. Returns None otherwise.
If the value is LongInt, returns associated value. Returns None otherwise.
If the value is LongUInt, returns associated value. Returns None otherwise.
If the value is LongLongInt, returns associated value. Returns None otherwise.
If the value is Float, returns associated value. Returns None otherwise.
If the value is Double, returns associated value. Returns None otherwise.
If the value is DecimalValue, returns associated value. Returns None otherwise.
If the value is ShortString, returns associated value as str. Returns None otherwise.
If the value is LongString, returns associated value as bytes. Returns None otherwise.
If the value is FieldArray, returns associated value. Returns None otherwise.
If the value is Timestamp, returns associated value. Returns None otherwise.
If the value is FieldTable, returns associated value. Returns None otherwise.
If the value is ByteArray, returns associated value. Returns None otherwise.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for AMQPValue
impl UnwindSafe for AMQPValue
Blanket Implementations
Mutably borrows from an owned value. Read more