diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2020-01-03 23:32:44 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2020-01-03 23:32:44 +0100 |
commit | 0c76f0c9727a512475e29b5d099b5b7188f72052 (patch) | |
tree | d1c2b59458c62116447fa2d885113afe6a5378da /examples/zot/abconfig.rs | |
parent | 5f96d9981a6d041f5c8a464cda10a0dc371060f8 (diff) | |
download | rust-zotapi-0c76f0c9727a512475e29b5d099b5b7188f72052.tar.gz rust-zotapi-0c76f0c9727a512475e29b5d099b5b7188f72052.tar.bz2 rust-zotapi-0c76f0c9727a512475e29b5d099b5b7188f72052.zip |
Move Client out of the api objects.
Also make constructor functions in the zotapi namespace.
Diffstat (limited to 'examples/zot/abconfig.rs')
-rw-r--r-- | examples/zot/abconfig.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/zot/abconfig.rs b/examples/zot/abconfig.rs index 54d555c..2362408 100644 --- a/examples/zot/abconfig.rs +++ b/examples/zot/abconfig.rs @@ -18,7 +18,7 @@ use zotapi; pub fn fetch(client: &zotapi::Client) { - match client.abconfig().fetch() { + match zotapi::abconfig().fetch(&client) { Ok(payload) => { println!("{}", payload); } |