Rocket Launch Live
A type safe and asynchronous wrapper around the RocketLaunch.Live API.
rocket_launch_live allows you to easily integrate your code asynchronously with the
RocketLaunch.Live API. Instead of dealing with low level details, the user can instanciate a
client with a valid API key and use a high level interface to this service.
Design
RocketLaunchLive is the main struct, containing methods for each endpoint. The JSON data is
deserialised into meaningful model types defined in the api_models module. Each call to an
endpoint method returns a Response<T> which is generic over T, allowing tailored responses.
Depending on which method you call, the response contains a result field of type Vec<T> where
T can be of the type api_models::Company, api_models::Launch, api_models::Location,
api_models::Mission, api_models::Pad, api_models::Tag or api_models::Vehicle.
This REST API provides access to a growing database of curated rocket launch data through the following endpoints:
- Companies
- Launches
- Locations
- Missions
- Pads
- Tags
- Vehicles
Examples
use ;
use ;
use ;
async