pub struct LegAttribute {
pub text: String,
pub code: Option<Option<String>>,
pub from_stop_seq_number: Option<Option<i32>>,
pub to_stop_seq_number: Option<Option<i32>>,
}Expand description
LegAttribute : Attributes that are not valid on the whole service, but only on section of a trip made on a single mode without interchange between boarding and alighting.
Fields§
§text: StringText of the attribute to be shown to the user.
code: Option<Option<String>>Internal code of the attribute. Can be used for detection of double occurrences. Refers to Service Facilities / Leg Attributes from the Catalog of Code Lists
from_stop_seq_number: Option<Option<i32>>The attribute is valid from the stop point with this sequence number within the leg. If missing it is valid from the beginning of the leg.
to_stop_seq_number: Option<Option<i32>>The attribute is valid to the stop point (inclusively) with this sequence number within the leg. If missing it is valid to the end of the leg.
Implementations§
Source§impl LegAttribute
impl LegAttribute
Sourcepub fn new(text: String) -> LegAttribute
pub fn new(text: String) -> LegAttribute
Attributes that are not valid on the whole service, but only on section of a trip made on a single mode without interchange between boarding and alighting.
Trait Implementations§
Source§impl Clone for LegAttribute
impl Clone for LegAttribute
Source§fn clone(&self) -> LegAttribute
fn clone(&self) -> LegAttribute
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LegAttribute
impl Debug for LegAttribute
Source§impl Default for LegAttribute
impl Default for LegAttribute
Source§fn default() -> LegAttribute
fn default() -> LegAttribute
Source§impl<'de> Deserialize<'de> for LegAttribute
impl<'de> Deserialize<'de> for LegAttribute
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>,
Source§impl PartialEq for LegAttribute
impl PartialEq for LegAttribute
Source§fn eq(&self, other: &LegAttribute) -> bool
fn eq(&self, other: &LegAttribute) -> bool
self and other values to be equal, and is used by ==.