Struct transit_model::PrefixConfiguration
source · [−]pub struct PrefixConfiguration { /* private fields */ }
Expand description
Metadata for building the prefix.
Implementations
sourceimpl 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
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more