pub struct GTFSFrequency {
pub trip_id: String,
pub start_time: String,
pub end_time: String,
pub headway_secs: i64,
pub exact_times: Option<i32>,
}Expand description
§Frequency
Optional Defines headway-based (or compressed schedule-based) service for specific trips. Each record references a single trip and indicates:
- A start/end time window
- A headway (seconds between departures)
- Whether it’s frequency-based (exact_times=0) or schedule-based (exact_times=1).
Primary Key: (trip_id, start_time)
Fields§
§trip_id: StringRequired
Identifies the trip (trips.trip_id) to which the specified headway of service applies.
start_time: StringRequired Time at which the first vehicle departs from the trip’s first stop with the specified headway (HH:MM:SS, can exceed 24:00:00 if overnight).
end_time: StringRequired Time at which service changes or ends (HH:MM:SS, can exceed 24:00:00 if overnight).
headway_secs: i64Required Headway in seconds between departures from the same stop for this trip, during [start_time, end_time).
exact_times: Option<i32>Optional Whether this is frequency-based or schedule-based service.
- 0 or empty = Frequency-based
- 1 = Schedule-based
Implementations§
Source§impl GTFSFrequency
impl GTFSFrequency
Sourcepub fn new(source: &str) -> Vec<GTFSFrequency>
pub fn new(source: &str) -> Vec<GTFSFrequency>
Create a new GTFSFrequency
Sourcepub fn exact_times(&self) -> Option<GTFSExactTimes>
pub fn exact_times(&self) -> Option<GTFSExactTimes>
Get the exact times
Trait Implementations§
Source§impl Clone for GTFSFrequency
impl Clone for GTFSFrequency
Source§fn clone(&self) -> GTFSFrequency
fn clone(&self) -> GTFSFrequency
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GTFSFrequency
impl Debug for GTFSFrequency
Source§impl Default for GTFSFrequency
impl Default for GTFSFrequency
Source§fn default() -> GTFSFrequency
fn default() -> GTFSFrequency
Source§impl From<&Map<String, ValueType>> for GTFSFrequency
Starting from a ref to an MValue, convert to a struct
impl From<&Map<String, ValueType>> for GTFSFrequency
Starting from a ref to an MValue, convert to a struct
Source§impl From<&ValueType> for GTFSFrequency
If this struct ref is nested into another struct, pull out the MValue and let
From handle
impl From<&ValueType> for GTFSFrequency
If this struct ref is nested into another struct, pull out the MValue and let
From
Source§impl From<GTFSFrequency> for MValue
Starting from a struct, convert to an MValue
impl From<GTFSFrequency> for MValue
Starting from a struct, convert to an MValue
Source§fn from(value: GTFSFrequency) -> MValue
fn from(value: GTFSFrequency) -> MValue
Source§impl From<GTFSFrequency> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
impl From<GTFSFrequency> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
Source§fn from(value: GTFSFrequency) -> ValueType
fn from(value: GTFSFrequency) -> ValueType
Source§impl From<Map<String, ValueType>> for GTFSFrequency
Starting from an MValue, convert to a struct
impl From<Map<String, ValueType>> for GTFSFrequency
Starting from an MValue, convert to a struct
Source§impl From<ValueType> for GTFSFrequency
If this struct is nested into another struct, pull out the MValue and let
From handle
impl From<ValueType> for GTFSFrequency
If this struct is nested into another struct, pull out the MValue and let
From
Source§impl PartialEq for GTFSFrequency
impl PartialEq for GTFSFrequency
impl MValueCompatible for GTFSFrequency
Finally implement the MValueCompatible trait
impl StructuralPartialEq for GTFSFrequency
Auto Trait Implementations§
impl Freeze for GTFSFrequency
impl RefUnwindSafe for GTFSFrequency
impl Send for GTFSFrequency
impl Sync for GTFSFrequency
impl Unpin for GTFSFrequency
impl UnwindSafe for GTFSFrequency
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().