Expand description
§Railway Core
Core type definitions of the Railway backend.
This crate is part of railway-backend. You can find a high-level documentation of railway-backend here.
Structs§
- Age
- The age of a person in years.
- Frequency
- At what frequency the train drives.
- Journey
- A single journey from source to destination.
- Journeys
Options - The options for
Provider::journeys - Journeys
Response - The response for
Provider::journeys - Leg
- A leg of a journey.
- Line
- A line serving a
Leg. - Locations
Options - The options for
Provider::locations - Operator
- The operator serving a
Line. - Price
- The price of the trip.
- Product
- The product a
Lineuses. - Products
Selection - A selection of modes.
- Refresh
Journey Options - The options for
Provider::refresh_journey - Remark
- A remark on a leg or stopover.
- Station
- A station where trains drive from.
- Station
Board Options - The options for
Provider::station_board - Station
Board Response - The response for
Provider::station_board - Stop
- A place where the train stops.
Enums§
- Accessibility
- How accessible a trip should be.
- Error
- An error in the API.
- Intermediate
Location - An intermediate locaion of a leg.
- Load
Factor - How full a
Legis. - Location
- A general location.
- Loyalty
Card - Different kinds of loyalty cards supported.
- Mode
- Different modes of transport.
- Place
- Any place.
- Remark
Association - What to associate a
Remarkwith. - Remark
Type - What type a remark has.
- Station
Board Kind - The type of station board (departures, arrivals)
- Tariff
Class - What class to travel with.
- Transfer
Options - How often is a journey allowed to transfer.
Traits§
- Provider
- The core type definition specifying what a provider needs to do.
- Requester
- A general trait to query data from the internet.
- Requester
Builder - Build a
Requester.
Type Aliases§
- Locations
Response - The response given by
Provider::locations - Refresh
Journey Response - The result for
Provider::refresh_journey