aboutsummaryrefslogtreecommitdiffstats
path: root/src/xchan.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move Client out of the api objects.Harald Eilertsen2020-01-031-12/+10
| | | | 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-5/+3
|
* Replace serde_urlencoded with serde_qs.Harald Eilertsen2020-01-011-14/+4
| | | | Simplifies serialization of various types quite a bit.
* Use rust edition 2018.Harald Eilertsen2019-06-091-2/+4
|
* Use enum instead of BTreeMap to select xchan.Harald Eilertsen2018-08-231-7/+26
| | | | | | | | | Since it only makes sence to fetch an xchan by one of the methods (address, hash or guid) we don't need a data type that can hold more than one value. Had to implement my own serializer for it, since serde_urlencoded don't know how to serialize enums by default.
* Add fetching xchans by guid and has too.Harald Eilertsen2018-08-231-0/+10
|
* Add support for fetching xchan data by address.Harald Eilertsen2018-08-211-0/+42
Not entirely happy with it, have updated the signature of Client::fetch_stream and Client::url to take args, which are left out if they're not serializable (or empty, I hope.) Should probably use an Option instead, or maybe even two entry points for the api.