aboutsummaryrefslogtreecommitdiffstats
path: root/src/abconfig.rs
Commit message (Collapse)AuthorAgeFilesLines
* Add ZotAPI trait and derive macro.Harald Eilertsen2023-03-271-8/+3
| | | | | | | | | The idea is to try to generate more of the boilerplate code, but for now we only do the `z()` method definition. There are also some we're not quite able to replace yet (like XChanRequest) since it also has life times. It's a start anyways :)
* Update reqwest and make async.Harald Eilertsen2021-07-051-2/+2
| | | | | | | | This means adding the full tokio as a dependency. While there isn't much gain to going async in the current cli demo app, a full fledged app may have more to gain by it. First foray into async rust, so I might not do it right...
* Refactor how ABConfigs are fetched.Harald Eilertsen2020-02-131-16/+20
| | | | | | | Introduce a `z()` menber function that creates the request object that we use for further configuring the requset. This eliminates the need to two fetch functions, and is meant to provide a consistent way of doing these requests.
* Let api access client request object directly.Harald Eilertsen2020-02-131-5/+5
| | | | | This simplifies things a bit, as we don't need to buffer query params and such outside of the request itself.
* Add fetching ABConfig for only a given contact.Harald Eilertsen2020-02-131-0/+36
|
* abconfig: reorg + parse result into struct.Harald Eilertsen2020-01-041-8/+13
|
* Cargo fmtHarald Eilertsen2020-01-031-4/+1
|
* Move Client out of the api objects.Harald Eilertsen2020-01-031-9/+7
| | | | Also make constructor functions in the zotapi namespace.
* Use Url crate and move paths to submodules.Harald Eilertsen2020-01-031-2/+2
|
* Cargo fmtHarald Eilertsen2020-01-021-3/+1
|
* Use rust edition 2018.Harald Eilertsen2019-06-091-2/+4
|
* Begin implement undocumented abconfig API.Harald Eilertsen2018-09-231-0/+34