Struct gtfs_structures::Pathway
source · [−]pub struct Pathway {
pub id: String,
pub to_stop_id: String,
pub mode: PathwayMode,
pub is_bidirectional: PathwayDirectionType,
pub length: Option<f32>,
pub traversal_time: Option<u32>,
pub stair_count: Option<u32>,
pub max_slope: Option<f32>,
pub min_width: Option<f32>,
pub signposted_as: Option<String>,
pub reversed_signposted_as: Option<String>,
}
Expand description
Pathway going from a stop to another.
Fields
id: String
Uniquely identifies the pathway
to_stop_id: String
Location at which the pathway ends
mode: PathwayMode
Type of pathway between the specified (from_stop_id, to_stop_id) pair
is_bidirectional: PathwayDirectionType
Indicates in which direction the pathway can be used
length: Option<f32>
Horizontal length in meters of the pathway from the origin location to the destination location
traversal_time: Option<u32>
Average time in seconds needed to walk through the pathway from the origin location to the destination location
stair_count: Option<u32>
Number of stairs of the pathway
max_slope: Option<f32>
Maximum slope ratio of the pathway
min_width: Option<f32>
Minimum width of the pathway in meters
signposted_as: Option<String>
String of text from physical signage visible to transit riders
reversed_signposted_as: Option<String>
Same than the signposted_as field, but when the pathways is used backward
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Pathway
impl<'de> Deserialize<'de> for Pathway
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<RawPathway> for Pathway
impl From<RawPathway> for Pathway
sourcefn from(raw: RawPathway) -> Self
fn from(raw: RawPathway) -> Self
Converts from a RawPathway to a Pathway
Auto Trait Implementations
impl RefUnwindSafe for Pathway
impl Send for Pathway
impl Sync for Pathway
impl Unpin for Pathway
impl UnwindSafe for Pathway
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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