aboutsummaryrefslogtreecommitdiffstats
path: root/src/api.rs
Commit message (Collapse)AuthorAgeFilesLines
* No need for static lifetime in const, thanks clippy.Harald Eilertsen2019-02-241-1/+1
|
* Propagate errors from the server back up through the Api.Harald Eilertsen2019-02-231-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 Eilertsen2019-02-231-1/+16
|
* Add a tiny bit of documentation.Harald Eilertsen2019-02-231-0/+8
|
* Propagate errors from api calls to caller.Harald Eilertsen2019-02-231-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 Eilertsen2019-02-231-3/+7
|
* Move Api to api module.Harald Eilertsen2019-02-231-0/+48