scylladb / scylla-rust-driver

Async CQL driver for Rust, optimized for ScyllaDB!
Apache License 2.0
562 stars 97 forks source link

Deserialization refactor: macros for the new traits #962

Closed wprzytula closed 1 month ago

wprzytula commented 5 months ago

Sub-task of https://github.com/scylladb/scylla-rust-driver/issues/961.

The new DeserializeRow and DeserializeCql traits will need to have their corresponding procedural macros implemented.

Lorak-mmk commented 5 months ago

Note: It would be good to support #[scylla(skip)] attribute (currently used by serialization macros). We could either require the field to implement Default or provide default value in attribute (I think first option makes more sense).

Example use case: https://forum.scylladb.com/t/how-to-ignore-field-in-rust-struct/1419