pub trait Id {
type Id: Hash + Eq + Clone + Debug + Send + Serialize + for<'a> Deserialize<'a>;
// Required method
fn id(&self) -> &Self::Id;
}
Expand description
Trait for an object that can provide an Id for itself.
pub trait Id {
type Id: Hash + Eq + Clone + Debug + Send + Serialize + for<'a> Deserialize<'a>;
// Required method
fn id(&self) -> &Self::Id;
}
Trait for an object that can provide an Id for itself.