pub struct GTFSTimeframe {
pub timeframe_group_id: String,
pub start_time: Option<String>,
pub end_time: Option<String>,
pub service_id: String,
}Expand description
§Timeframes
Optional
Describes fare variations based on time of day, day of week, or specific dates.
Timeframes can be associated with fare products in fare_leg_rules.txt.
There must be no overlapping [start_time, end_time) intervals for the same
timeframe_group_id and service_id.
Fields§
§timeframe_group_id: StringRequired Identifies a timeframe (or set of timeframes).
start_time: Option<String>Conditionally Required Beginning of a timeframe in HH:MM:SS format (<= 24:00:00). The interval includes this time.
- If
end_timeis defined,start_timeis required. - If
end_timeis absent,start_timemust be absent. - If
start_timeis empty in the CSV, it is considered00:00:00.
end_time: Option<String>Conditionally Required End of a timeframe in HH:MM:SS format (<= 24:00:00). The interval excludes this time.
- If
start_timeis defined,end_timeis required. - If
start_timeis absent,end_timemust be absent. - If
end_timeis empty in the CSV, it is considered24:00:00.
service_id: StringRequired
Identifies a set of dates (calendar.service_id or calendar_dates.service_id)
when this timeframe is in effect.
Implementations§
Source§impl GTFSTimeframe
impl GTFSTimeframe
Trait Implementations§
Source§impl Clone for GTFSTimeframe
impl Clone for GTFSTimeframe
Source§fn clone(&self) -> GTFSTimeframe
fn clone(&self) -> GTFSTimeframe
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GTFSTimeframe
impl Debug for GTFSTimeframe
Source§impl Default for GTFSTimeframe
impl Default for GTFSTimeframe
Source§fn default() -> GTFSTimeframe
fn default() -> GTFSTimeframe
Source§impl From<&Map<String, ValueType>> for GTFSTimeframe
Starting from a ref to an MValue, convert to a struct
impl From<&Map<String, ValueType>> for GTFSTimeframe
Starting from a ref to an MValue, convert to a struct
Source§impl From<&ValueType> for GTFSTimeframe
If this struct ref is nested into another struct, pull out the MValue and let
From handle
impl From<&ValueType> for GTFSTimeframe
If this struct ref is nested into another struct, pull out the MValue and let
From
Source§impl From<GTFSTimeframe> for MValue
Starting from a struct, convert to an MValue
impl From<GTFSTimeframe> for MValue
Starting from a struct, convert to an MValue
Source§fn from(value: GTFSTimeframe) -> MValue
fn from(value: GTFSTimeframe) -> MValue
Source§impl From<GTFSTimeframe> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
impl From<GTFSTimeframe> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
Source§fn from(value: GTFSTimeframe) -> ValueType
fn from(value: GTFSTimeframe) -> ValueType
Source§impl From<Map<String, ValueType>> for GTFSTimeframe
Starting from an MValue, convert to a struct
impl From<Map<String, ValueType>> for GTFSTimeframe
Starting from an MValue, convert to a struct
Source§impl From<ValueType> for GTFSTimeframe
If this struct is nested into another struct, pull out the MValue and let
From handle
impl From<ValueType> for GTFSTimeframe
If this struct is nested into another struct, pull out the MValue and let
From
Source§impl PartialEq for GTFSTimeframe
impl PartialEq for GTFSTimeframe
impl MValueCompatible for GTFSTimeframe
Finally implement the MValueCompatible trait
impl StructuralPartialEq for GTFSTimeframe
Auto Trait Implementations§
impl Freeze for GTFSTimeframe
impl RefUnwindSafe for GTFSTimeframe
impl Send for GTFSTimeframe
impl Sync for GTFSTimeframe
impl Unpin for GTFSTimeframe
impl UnwindSafe for GTFSTimeframe
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().