Trait gtfs_structures::Id

source ·
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§

source

fn id(&self) -> &str

Identifier of the object

Implementations on Foreign Types§

source§

impl<T: Id> Id for Arc<T>

source§

fn id(&self) -> &str

Implementors§