PigRabbit

A rust wrapper for porkbun's api

Example

Adding a record to the domain and view all the records:

```rust let keysfile = std::fs::readtostring("keys.json").expect("File not found!"); let keys = serdejson::fromstr(&keysfile).unwrap(); let mut client = pigrabbit::PRClient::new(keys);

let record = pigrabbit::types::Record{ name: "internal".toowned(), dtype: "A".toowned(), content: "1.1.1.1".to_owned(), ttl: 300 };

client.addrecord("Example.com",&record).await.unwrap(); let records = client.retreivebydomainwith_id("Example.com", "").await.unwrap(); println!("{:?}", records);

```