pub trait Id {
// Required method
fn id(&self) -> &str;
}Expand description
Objects that have an identifier implement this trait
Those identifier are technical and should not be shown to travellers
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".