pub struct GTFSCalendarDate {
pub service_id: String,
pub date: String,
pub exception_type: i8,
}Expand description
§Calendar Dates
Conditionally Required Explicitly activates or disables service on particular dates.
- If used with
calendar.txt, it modifies the default service patterns. - If
calendar.txtis omitted, all service dates must be listed here.
Fields§
§service_id: StringRequired
Identifies a set of dates where service exception occurs.
References calendar.service_id if used with calendar.txt;
or acts as a standalone ID if calendar.txt is omitted.
date: StringRequired Date of the service exception, parsed as a JavaScript Date. Originally in GTFS as a YYYYMMDD string (no time component).
exception_type: i8Required Indicates whether service is added (1) or removed (2) on this date.
Implementations§
Source§impl GTFSCalendarDate
impl GTFSCalendarDate
Sourcepub fn exception_type(&self) -> GTFSExceptionType
pub fn exception_type(&self) -> GTFSExceptionType
Get the exception type
Trait Implementations§
Source§impl Clone for GTFSCalendarDate
impl Clone for GTFSCalendarDate
Source§fn clone(&self) -> GTFSCalendarDate
fn clone(&self) -> GTFSCalendarDate
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GTFSCalendarDate
impl Debug for GTFSCalendarDate
Source§impl Default for GTFSCalendarDate
impl Default for GTFSCalendarDate
Source§fn default() -> GTFSCalendarDate
fn default() -> GTFSCalendarDate
Source§impl From<&Map<String, ValueType>> for GTFSCalendarDate
Starting from a ref to an MValue, convert to a struct
impl From<&Map<String, ValueType>> for GTFSCalendarDate
Starting from a ref to an MValue, convert to a struct
Source§impl From<&ValueType> for GTFSCalendarDate
If this struct ref is nested into another struct, pull out the MValue and let
From handle
impl From<&ValueType> for GTFSCalendarDate
If this struct ref is nested into another struct, pull out the MValue and let
From
Source§impl From<GTFSCalendarDate> for MValue
Starting from a struct, convert to an MValue
impl From<GTFSCalendarDate> for MValue
Starting from a struct, convert to an MValue
Source§fn from(value: GTFSCalendarDate) -> MValue
fn from(value: GTFSCalendarDate) -> MValue
Source§impl From<GTFSCalendarDate> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
impl From<GTFSCalendarDate> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
Source§fn from(value: GTFSCalendarDate) -> ValueType
fn from(value: GTFSCalendarDate) -> ValueType
Source§impl From<Map<String, ValueType>> for GTFSCalendarDate
Starting from an MValue, convert to a struct
impl From<Map<String, ValueType>> for GTFSCalendarDate
Starting from an MValue, convert to a struct
Source§impl From<ValueType> for GTFSCalendarDate
If this struct is nested into another struct, pull out the MValue and let
From handle
impl From<ValueType> for GTFSCalendarDate
If this struct is nested into another struct, pull out the MValue and let
From
Source§impl PartialEq for GTFSCalendarDate
impl PartialEq for GTFSCalendarDate
impl MValueCompatible for GTFSCalendarDate
Finally implement the MValueCompatible trait
impl StructuralPartialEq for GTFSCalendarDate
Auto Trait Implementations§
impl Freeze for GTFSCalendarDate
impl RefUnwindSafe for GTFSCalendarDate
impl Send for GTFSCalendarDate
impl Sync for GTFSCalendarDate
impl Unpin for GTFSCalendarDate
impl UnwindSafe for GTFSCalendarDate
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().