Struct gtfs_structures::Calendar
source · pub struct Calendar {
pub id: String,
pub monday: bool,
pub tuesday: bool,
pub wednesday: bool,
pub thursday: bool,
pub friday: bool,
pub saturday: bool,
pub sunday: bool,
pub start_date: NaiveDate,
pub end_date: NaiveDate,
}
Expand description
A calender describes on which days the vehicle runs. See https://gtfs.org/reference/static/#calendartxt
Fields§
§id: String
Unique technical identifier (not for the traveller) of this calendar
monday: bool
Does the service run on mondays
tuesday: bool
Does the service run on tuesdays
wednesday: bool
Does the service run on wednesdays
thursday: bool
Does the service run on thursdays
friday: bool
Does the service run on fridays
saturday: bool
Does the service run on saturdays
sunday: bool
Does the service run on sundays
start_date: NaiveDate
Start service day for the service interval
end_date: NaiveDate
End service day for the service interval. This service day is included in the interval
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Calendar
impl<'de> Deserialize<'de> for Calendar
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
source§impl Type for Calendar
impl Type for Calendar
source§fn object_type(&self) -> ObjectType
fn object_type(&self) -> ObjectType
What is the type of the object