Skip to main content

Identifiable

Trait Identifiable 

Source
pub trait Identifiable {
    // Required method
    fn id(&self) -> &Id;
}
Expand description

A trait that provides a common way of identifying resources.

Resources of the same type should have a unique ID.

Required Methods§

Source

fn id(&self) -> &Id

Implementors§