pub trait Cacheable:
Serialize
+ DeserializeOwned
+ Debug {
type Key: Debug;
const TABLE: &'static str;
const KEY_KCOLS: &'static [&'static str];
const KEY_VCOLS: &'static [&'static str];
const REFRESH: RefreshKind;
// Required method
fn key_col_values(key: &Self::Key) -> Result<Vec<&dyn ToSql>, AE>;
}Required Associated Constants§
const TABLE: &'static str
const KEY_KCOLS: &'static [&'static str]
const KEY_VCOLS: &'static [&'static str]
const REFRESH: RefreshKind
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".