pub fn to_value<T>(val: &T) -> Result<Value, Error>where T: Serialize,
Serializes a instance of type T as an AMQP1.0 Value
T
Value