scyllax/
entity.rs

1use scylla::{frame::value::ValueList, FromRow};
2
3/// The traits of the entity
4pub trait EntityExt<T: ValueList + FromRow> {
5    /// Returns the keys of the entity as a vector of strings, keeping the order of the keys.
6    fn keys() -> Vec<String>;
7
8    /// Returns the primary keys
9    fn pks() -> Vec<String>;
10}