aboutsummaryrefslogtreecommitdiffstats
path: root/examples/zot/abconfig.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/zot/abconfig.rs')
-rw-r--r--examples/zot/abconfig.rs15
1 files changed, 12 insertions, 3 deletions
diff --git a/examples/zot/abconfig.rs b/examples/zot/abconfig.rs
index 2362408..a6454ac 100644
--- a/examples/zot/abconfig.rs
+++ b/examples/zot/abconfig.rs
@@ -18,9 +18,18 @@
use zotapi;
pub fn fetch(client: &zotapi::Client) {
- match zotapi::abconfig().fetch(&client) {
- Ok(payload) => {
- println!("{}", payload);
+ match zotapi::abconfig::fetch(&client) {
+ Ok(v) => {
+ println!("Id: Chan: Cat: Key: Val: xchan:");
+ for entry in v {
+ println!("{:6} {:6} {:15} {:15} {:4} {}",
+ entry.id,
+ entry.chan,
+ entry.cat,
+ entry.k,
+ entry.v,
+ entry.xchan);
+ }
}
Err(e) => {
println!("{:?}", e);