Struct navitia_poi_model::objects::Model
source · pub struct Model {
pub pois: BTreeMap<String, Poi>,
pub poi_types: HashMap<String, PoiType>,
}
Expand description
A data structure used for exporting and importing data to and from file.
Fields§
§pois: BTreeMap<String, Poi>
A list of POIs.
Could have been a hashmap…
poi_types: HashMap<String, PoiType>
A map of PoiType, indexed by their id.
We use a hashmap to list poi types, as the main purpose is to search for a PoiType based on its id. (Poi only stores the type’s id)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more