Trait Key

pub trait Key:
    Encode
    + Decode
    + Ord
    + Clone
    + Serialize
    + for<'a> Deserialize<'a> { }
Available on crate feature provider only.
Expand description

Generic trait that enforces the database key to implement Encode and Decode.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl<T> Key for T
where T: Encode + Decode + Ord + Clone + Serialize + for<'a> Deserialize<'a>,