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§

Returns true if there is a service running on that day

Trait Implementations§

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Formats the value using the given formatter. Read more
Identifier of the object
Serialize this value into the given Serde serializer. Read more
What is the type of the object

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more