aboutsummaryrefslogtreecommitdiffstats
path: root/examples/hubzilla-network-stream.rs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-08-23 21:23:49 +0200
committerHarald Eilertsen <haraldei@anduin.net>2018-08-23 21:23:49 +0200
commita5121b3fc8fd9ae15c27aac2e93eaf081bf82290 (patch)
tree76f17711c72711bfec5e3434c24ff75bcff2d20f /examples/hubzilla-network-stream.rs
parentcc8207865b950de54fa3d20ee7b2bb9b29382c67 (diff)
downloadrust-zotapi-a5121b3fc8fd9ae15c27aac2e93eaf081bf82290.tar.gz
rust-zotapi-a5121b3fc8fd9ae15c27aac2e93eaf081bf82290.tar.bz2
rust-zotapi-a5121b3fc8fd9ae15c27aac2e93eaf081bf82290.zip
Use enum instead of BTreeMap to select xchan.
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.
Diffstat (limited to 'examples/hubzilla-network-stream.rs')
0 files changed, 0 insertions, 0 deletions