| Crates.io | ddns-provider |
| lib.rs | ddns-provider |
| version | 0.1.0 |
| created_at | 2025-05-31 16:39:42.627647+00 |
| updated_at | 2025-05-31 16:39:42.627647+00 |
| description | Common traits and error types for pluggable DNS providers. |
| homepage | https://github.com/lvillis/ddns-rs |
| repository | https://github.com/lvillis/ddns-rs |
| max_upload_size | |
| id | 1696473 |
| size | 37,435 |
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>;
}