pub struct Agency {
    pub id: Option<String>,
    pub name: String,
    pub url: String,
    pub timezone: String,
    pub lang: Option<String>,
    pub phone: Option<String>,
    pub fare_url: Option<String>,
    pub email: Option<String>,
}
Expand description

General informations about the agency running the network. See https://gtfs.org/reference/static/#agencytxt

Fields

id: Option<String>

Unique technical (not for the traveller) identifier for the Agency

name: String

Full name of the transit agency

url: String

Full name of the transit agency.

timezone: String

Timezone where the transit agency is located

lang: Option<String>

Primary language used by this transit agency

phone: Option<String>

A voice telephone number for the specified agency

fare_url: Option<String>

URL of a web page that allows a rider to purchase tickets or other fare instruments for that agency online

email: Option<String>

Email address actively monitored by the agency’s customer service department

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. 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