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
Hello,
Aerospike is a great database! Master-master replication is very cool. But we are struggling to write Rust code that interfaces it.
We are getting stuck on serialization and deserialization code. The aerospike::Value and aerospike::Record structs do not implement serde::ser::Serialize and serde::de::Deserialize. Any conversions between Rust structs and Aerospike values need to be implemented manually, field by field. Deserializing is particularly tricky, because aerospike::Value may be any variant. Application code needs to match on the enum in order to extract each value, and manually handle deserialization errors (invalid variants).
This library should be able to serialize this rust struct into an aerospike::Record:
Hello,
Aerospike is a great database! Master-master replication is very cool. But we are struggling to write Rust code that interfaces it.
We are getting stuck on serialization and deserialization code. The
aerospike::Value
andaerospike::Record
structs do not implementserde::ser::Serialize
andserde::de::Deserialize
. Any conversions between Rust structs and Aerospike values need to be implemented manually, field by field. Deserializing is particularly tricky, because aerospike::Value may be any variant. Application code needs to match on the enum in order to extract each value, and manually handle deserialization errors (invalid variants).This library should be able to serialize this rust struct into an
aerospike::Record
:It should also be able to deserialize an
aerospike::Record
into the struct, with errors if fields have incompatible Value variants.The text was updated successfully, but these errors were encountered: