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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more