Alex6323 / bee-p

Bee prototype.
16 stars 13 forks source link

feat(message) `serde` using with ToStr/Display, enums adjacently tagged #360

Closed lucasfernog closed 3 years ago

lucasfernog commented 3 years ago

Using the FromStr/Display traits to deserialize/serialize types simplifies the bee-message crate usage on FFI bindings, since we often have to serialize the Message types to JavaScript/Python/Go.. and deserialize the types back on the Rust side. (e.g. serialize a Message to JS and take a MessageId as string later).