Module scylla::macros

source ·

Macros§

Structs§

  • A cheaply cloneable and sliceable chunk of contiguous memory.
  • A unique reference to a contiguous slice of memory.

Traits§

  • A trait for values that provide sequential write access to bytes.

Derive Macros§

  • Derive macro for the DeserializeRow trait that generates an implementation which deserializes a row with a similar layout to the Rust struct.
  • Derive macro for the DeserializeValue trait that generates an implementation which deserializes a User Defined Type with the same layout as the Rust struct.
  • Derive macro for the FromRow trait which deserializes a row to given Rust structure.
  • #[derive(FromUserType)] allows to parse struct as a User Defined Type
  • #[derive(IntoUserType)] allows to pass struct a User Defined Type Value in queries
  • Derive macro for the SerializeRow trait which serializes given Rust structure into bind markers for a CQL statement.
  • Derive macro for the SerializeValue trait which serializes given Rust structure as a User Defined Type (UDT).
  • #[derive(ValueList)] allows to pass struct as a list of values for a query