ddns-provider 0.1.0

Common traits and error types for pluggable DNS providers.
Documentation

ddns-provider (traits)

Thin abstraction for pluggable DNS providers.

#[async_trait::async_trait]
pub trait DnsProvider {
    async fn upsert_record(
        &self,
        zone: &str,
        name: &str,
        typ: RecordType,
        ip: &str,
        ttl: u32,
    ) -> Result<(), ProviderError>;
}