pdns-cli 0.0.2

Rust client library and CLI for the PowerDNS Authoritative Server API
Documentation
//! # `pdns_client`
//!
//! This library crate provides a blocking/synchronous client for interacting with the `PowerDNS` Authoritative Server API.
//!
//! # Examples
//!
//! ```no_run
//! fn main() -> Result<(), Box<dyn std::error::Error>>{
//!     let client = pdns_client::Client::new("http://127.0.0.1:8081", "api_key")?;
//!     let servers = client.list_servers()?;
//!
//!     for server in servers {
//!         println!(
//!             "pdns server with id={}, daemon_type={}",
//!             server.id, server.daemon_type
//!         );
//!     }
//!
//!     Ok(())
//! }
//! ```

// ////////////////////////////
// PUBLIC API EXPORTSS
// ////////////////////////////

mod client;
pub use client::*; // this is meant to be a one module crate. glob operator usage to keep re-export code simple is thus acceptable