mirror of
https://github.com/dathere/ckanaction.git
synced 2026-07-05 17:12:19 +00:00
15 lines
392 B
Rust
15 lines
392 B
Rust
use ckanaction::CKANError;
|
|
|
|
#[tokio::main]
|
|
async fn main() -> Result<(), CKANError> {
|
|
// 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(())
|
|
}
|