Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Propagate errors from the server back up through the Api. | Harald Eilertsen | 2019-02-23 | 1 | -8/+12 |
| | | | | | Also create a small helper method to fetch the payload from the server, to avoid too much repitition. | ||||
* | Add api to fetch availability data as well. | Harald Eilertsen | 2019-02-23 | 1 | -1/+16 |
| | |||||
* | Add a tiny bit of documentation. | Harald Eilertsen | 2019-02-23 | 1 | -0/+8 |
| | |||||
* | Propagate errors from api calls to caller. | Harald Eilertsen | 2019-02-23 | 1 | -12/+20 |
| | | | | | | | | | This defines an ApiResult type, and a corresponding Error type which wraps any errors that can be returned from underlying libs. Prevents panics due to unwraps in the core api. The main app still unwraps, and will panic on any error, though. Fix that later. | ||||
* | Deserialize stations json data into native rust struct. | Harald Eilertsen | 2019-02-23 | 1 | -3/+7 |
| | |||||
* | Move Api to api module. | Harald Eilertsen | 2019-02-23 | 1 | -0/+48 |