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.
Trait Implementations§
source§impl Debug for PrefixConfiguration
impl Debug for PrefixConfiguration
Auto Trait Implementations§
impl RefUnwindSafe for PrefixConfiguration
impl Send for PrefixConfiguration
impl Sync for PrefixConfiguration
impl Unpin for PrefixConfiguration
impl UnwindSafe for PrefixConfiguration
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