You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I was trying to create a FieldTable with an integer type, such as:
letmut ft = FieldTable::new();
ft.insert("x-message-ttl".try_into().unwrap(),60000.try_into().unwrap(),);
and the compiler tells me that "required for {integer} to implement TryInto<amqp_serde::types::FieldValue>".
Also, I've also found that both FieldName and FieldValue are private, so that I can not create such a FieldValue from 60000.
Would you want me to create a PR to fix this small issue? I'm glad to help.
The text was updated successfully, but these errors were encountered:
Hi, I will reexport the amqp_serde types into amqprs namespace.
If you need a quick workaround before I release new version, you can add "amqp_serde" in your Cargo.toml, then you can use the types, because they are pub types in amqp_serde not in amqprs
Hi, I was trying to create a
FieldTable
with an integer type, such as:and the compiler tells me that "required for {integer} to implement TryInto<amqp_serde::types::FieldValue>".
Also, I've also found that both
FieldName
andFieldValue
are private, so that I can not create such aFieldValue
from60000
.Would you want me to create a PR to fix this small issue? I'm glad to help.
The text was updated successfully, but these errors were encountered: