Crate railway_core

Source
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.
JourneysOptions
The options for Provider::journeys
JourneysResponse
The response for Provider::journeys
Leg
A leg of a journey.
Line
A line serving a Leg.
LocationsOptions
The options for Provider::locations
Operator
The operator serving a Line.
Price
The price of the trip.
Product
The product a Line uses.
ProductsSelection
A selection of modes.
RefreshJourneyOptions
The options for Provider::refresh_journey
Remark
A remark on a leg or stopover.
Station
A station where trains drive from.
Stop
A place where the train stops.

Enums§

Accessibility
How accessible a trip should be.
Error
An error in the API.
IntermediateLocation
An intermediate locaion of a leg.
LoadFactor
How full a Leg is.
Location
A general location.
LoyaltyCard
Different kinds of loyalty cards supported.
Mode
Different modes of transport.
Place
Any place.
RemarkAssociation
What to associate a Remark with.
RemarkType
What type a remark has.
TariffClass
What class to travel with.
TransferOptions
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.
RequesterBuilder
Build a Requester.

Type Aliases§

LocationsResponse
The response given by Provider::locations
RefreshJourneyResponse
The result for Provider::refresh_journey