Struct transit_model::PrefixConfiguration
source · pub struct PrefixConfiguration { /* private fields */ }
Expand description
Metadata for building the prefix.
Implementations§
source§impl PrefixConfiguration
impl PrefixConfiguration
sourcepub fn set_sep<S>(&mut self, sep: S)where
S: ToString,
pub fn set_sep<S>(&mut self, sep: S)where
S: ToString,
Set the prefix separator for PrefixConfiguration.
sourcepub fn set_data_prefix<S>(&mut self, data_prefix: S)where
S: ToString,
pub fn set_data_prefix<S>(&mut self, data_prefix: S)where
S: ToString,
Set the data_prefix in the PrefixConfiguration.
sourcepub fn set_schedule_subprefix<S>(&mut self, schedule_subprefix: S)where
S: ToString,
pub fn set_schedule_subprefix<S>(&mut self, schedule_subprefix: S)where
S: ToString,
Set the schedule_subprefix in the PrefixConfiguration.
sourcepub fn referential_prefix(&self, id: &str) -> String
pub fn referential_prefix(&self, id: &str) -> String
Add prefix for referential-type object.
Example of objects from the referential are Line or StopPoint.
sourcepub fn schedule_prefix(&self, id: &str) -> String
pub fn schedule_prefix(&self, id: &str) -> String
Add prefix for schedule-type object.
Example of objects from the schedule are VehicleJourney or StopTime.