Trait HasId

Source
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.

Required Methods§

Source

fn id(&self) -> u32

The id of this object.

Each object of this type has a unique id; however, ids are not unique for different type of objects.

Implementors§