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 PartialEq for Calendar
impl PartialEq for Calendar
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
impl Eq for Calendar
impl StructuralPartialEq for Calendar
Auto Trait Implementations§
impl Freeze for Calendar
impl RefUnwindSafe for Calendar
impl Send for Calendar
impl Sync for Calendar
impl Unpin for Calendar
impl UnwindSafe for Calendar
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.