1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! # Simple and type-safe client for the Porkbun API.
//!
//! Implements an easy-to-use client for interfacing with the [Porkbun API].
//! Ensures that correct values are supplied using the Rust type system.
//!
//! ## Examples
//!
//! See [hamsando-ddns] for an implementation of a dynamic DNS program using this crate.
//!
//! ```no_run
//! use hamsando::{domain::Domain, blocking::Client};
//!
//! let client = Client::builder()
//! .apikey("<APIKEY>".to_string())
//! .secretapikey("<SECRETAPIKEY>".to_string())
//! .build()
//! .unwrap();
//!
//! let my_ip = client.test_auth().unwrap();
//!
//! let domain: Box<Domain> = "example.com".parse().unwrap();
//! let record_id = client.create_dns(&domain, &my_ip.into(), None, None).unwrap();
//! ```
//!
//! [Porkbun API]: https://porkbun.com/api/json/v3/documentation
//! [hamsando-ddns]: https://codeberg.org/FintasticMan/hamsando-ddns
pub use *;
pub use *;
pub use Payload;