pub trait HasId {
// Required method
fn id(&self) -> u32;
}
Expand description
A type with an [ObjectId
].
Each object of the implementing type has a unique id; however, ids are not unique for different type of objects.
Implementing types should ensure that the id is updated when an object is cloned.