pub trait Id<T> {
    // Required methods
    fn id(&self) -> &str;
    fn set_id(&mut self, id: String);
}
Expand description

An object that has a unique identifier.

Required Methods§

source

fn id(&self) -> &str

Returns the unique identifier.

source

fn set_id(&mut self, id: String)

Set the identifier

Implementors§