aboutsummaryrefslogtreecommitdiffstats
path: root/src/xchan.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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.