#cdrs #helper #convert #traits #derive #udt #fields

macro cdrs_helpers_derive_temp

Derive CDRS helper traits

1 unstable release

Uses old Rust 2015

0.1.0 Sep 4, 2020

#4 in #udt

MIT/Apache

16KB
364 lines

cdrs-helpers-derive

Procedural macros that derive helper traits for CDRS Cassandra to Rust types conversion back and forth

The package is under hard development and is absolutely not stable.

Features:

  • convert Cassandra primitive types (not lists, sets, maps, UDTs) into Rust
  • recursively convert Cassandra "collection" types (lists, sets, maps) into Rust
  • recursively convert Cassandra UDTs into Rust
  • recursively convert optional fields into Rust
  • convert Rust primitive types into Cassandra query values
  • convert Rust "collection" types into Cassandra query values
  • convert Rust structures into Cassandra query values
  • convert Option<T> into Cassandra query value
  • generates an insert method for a Rust struct type

lib.rs:

This trait provides functionality for derivation IntoCDRSBytes trait implementation for underlying

Dependencies

~2.5MB
~53K SLoC