Struct transit_model::objects::Pathway
source · pub struct Pathway {Show 14 fields
pub id: String,
pub from_stop_id: String,
pub from_stop_type: StopType,
pub to_stop_id: String,
pub to_stop_type: StopType,
pub pathway_mode: PathwayMode,
pub is_bidirectional: bool,
pub length: Option<Decimal>,
pub traversal_time: Option<u32>,
pub stair_count: Option<i16>,
pub max_slope: Option<f32>,
pub min_width: Option<f32>,
pub signposted_as: Option<String>,
pub reversed_signposted_as: Option<String>,
}
Fields§
§id: String
§from_stop_id: String
§from_stop_type: StopType
§to_stop_id: String
§to_stop_type: StopType
§pathway_mode: PathwayMode
§is_bidirectional: bool
§length: Option<Decimal>
§traversal_time: Option<u32>
§stair_count: Option<i16>
§max_slope: Option<f32>
§min_width: Option<f32>
§signposted_as: Option<String>
§reversed_signposted_as: Option<String>
Trait Implementations§
source§impl AddPrefix for Pathway
impl AddPrefix for Pathway
source§fn prefix(&mut self, prefix_conf: &PrefixConfiguration)
fn prefix(&mut self, prefix_conf: &PrefixConfiguration)
Add the prefix to all elements of the object that needs to be prefixed.
PrefixConfiguration contains all the needed metadata to create the
complete prefix.
source§fn add_prefix(&mut self, prefix: &str)
fn add_prefix(&mut self, prefix: &str)
👎Deprecated since 0.24.0: please use
AddPrefix::prefix()
insteadAdd the prefix to all elements of the object that needs to be prefixed.
source§fn add_prefix_with_sep(&mut self, prefix: &str, sep: &str)
fn add_prefix_with_sep(&mut self, prefix: &str, sep: &str)
👎Deprecated since 0.24.0: please use
AddPrefix::prefix()
insteadAdd the prefix to all elements of the object that needs to be prefixed.
A separator will be placed between the prefix and the identifier.
source§impl<'de> Deserialize<'de> for Pathway
impl<'de> Deserialize<'de> for Pathway
source§fn 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
source§impl PartialEq<Pathway> for Pathway
impl PartialEq<Pathway> for Pathway
impl StructuralPartialEq for 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§
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