pub mod account;
pub mod domains;
pub mod dyndns;
pub mod rrsets;
pub mod tokens;
pub use account::AccountApi;
pub use domains::DomainsApi;
pub use rrsets::RrsetsApi;
pub use tokens::{TokenPoliciesApi, TokensApi};
use crate::client::Client;
impl Client {
pub fn domains(&self) -> DomainsApi<'_> {
DomainsApi::new(self)
}
pub fn rrsets<'a>(&'a self, domain: &'a str) -> RrsetsApi<'a> {
RrsetsApi::new(self, domain)
}
pub fn tokens(&self) -> TokensApi<'_> {
TokensApi::new(self)
}
pub fn account(&self) -> AccountApi<'_> {
AccountApi::new(self)
}
}
#[derive(Debug, Clone, PartialEq, Eq, serde::Deserialize, serde::Serialize)]
pub struct Detail {
pub detail: String,
}