Struct gtfs_structures::Frequency
source · pub struct Frequency {
pub start_time: u32,
pub end_time: u32,
pub headway_secs: u32,
pub exact_times: Option<ExactTimes>,
}
Expand description
Timetables can be defined by the frequency of their vehicles. See <https://gtfs.org/reference/static/#frequenciestxt>
Fields§
§start_time: u32
Time at which the first vehicle departs from the first stop of the trip
end_time: u32
Time at which service changes to a different headway (or ceases) at the first stop in the trip
headway_secs: u32
Time, in seconds, between departures from the same stop (headway) for the trip, during the time interval specified by start_time and end_time
exact_times: Option<ExactTimes>
Indicates the type of service for a trip
Implementations§
source§impl Frequency
impl Frequency
sourcepub fn from(frequency: &RawFrequency) -> Self
pub fn from(frequency: &RawFrequency) -> Self
Converts from a RawFrequency to a Frequency
Trait Implementations§
source§impl<'de> Deserialize<'de> for Frequency
impl<'de> Deserialize<'de> for Frequency
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
Auto Trait Implementations§
impl Freeze for Frequency
impl RefUnwindSafe for Frequency
impl Send for Frequency
impl Sync for Frequency
impl Unpin for Frequency
impl UnwindSafe for Frequency
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