pub struct FeedInfo {
    pub name: String,
    pub url: String,
    pub lang: String,
    pub default_lang: Option<String>,
    pub start_date: Option<NaiveDate>,
    pub end_date: Option<NaiveDate>,
    pub version: Option<String>,
    pub contact_email: Option<String>,
    pub contact_url: Option<String>,
}
Expand description

Fields§

§name: String

Full name of the organization that publishes the dataset.

§url: String

URL of the dataset publishing organization’s website

§lang: String

Default language used for the text in this dataset

§default_lang: Option<String>

Defines the language that should be used when the data consumer doesn’t know the language of the rider

§start_date: Option<NaiveDate>

The dataset provides complete and reliable schedule information for service in the period from this date

§end_date: Option<NaiveDate>

The dataset provides complete and reliable schedule information for service in the period until this date

§version: Option<String>

String that indicates the current version of their GTFS dataset

§contact_email: Option<String>

Email address for communication regarding the GTFS dataset and data publishing practices

§contact_url: Option<String>

URL for contact information, a web-form, support desk, or other tools for communication regarding the GTFS dataset and data publishing practices

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
Serialize this value into the given Serde serializer. Read more

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