feat: add example of using status_show method

This commit is contained in:
rzmk 2026-02-03 18:13:21 -05:00
parent 6df4f863f1
commit 723130792c
5 changed files with 1775 additions and 0 deletions

View file

@ -0,0 +1,14 @@
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Initialize and build CKAN struct
let ckan = ckanaction::CKAN::builder()
.url("http://localhost:5000")
.build();
// Send request to /status_show and print formatted debug output
let status_show = ckan.status_show().await?;
println!("{status_show:#?}");
Ok(())
}