aboutsummaryrefslogtreecommitdiffstats
path: root/src/abook.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 :)
* Include XChan in the Abook struct.Harald Eilertsen2023-03-261-3/+16
| | | | | | I feel this is a better representation than what is coming directly from the API where it's all returned as one json object with fieldnames prefixed with abook or xchan respectively.
* Fetch abook and xchan directly from api.Harald Eilertsen2023-03-261-26/+47
| | | | We don't really need the intermediate layer in the binary module.
* 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...
* Update abook with struct and request object.Harald Eilertsen2020-02-141-5/+102
|
* Cargo fmtHarald Eilertsen2020-01-031-5/+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/+3
|
* Cargo fmtHarald Eilertsen2020-01-021-3/+1
|
* Use rust edition 2018.Harald Eilertsen2019-06-091-2/+4
|
* Begin implementaton of undocumented abook api to fetch connections.Harald Eilertsen2018-09-231-0/+34