diff options
| author | Gus Power <gus@infinitesidequests.com> | 2025-05-14 13:21:08 +0100 |
|---|---|---|
| committer | Gus Power <gus@infinitesidequests.com> | 2025-05-14 13:21:08 +0100 |
| commit | dd1483cb6d9c060a17dc68357975de2b1ec09c08 (patch) | |
| tree | dae1850e9ab89894fd217cfcd32ce31d91a767f8 /src/dyndns_service.rs | |
| parent | 87c3219c0e6c7f374cf117eb1990dd41e196710a (diff) | |
reduce size of DnsRecordType (introduce enum), add overall config w/ supporting "full" test file.
Diffstat (limited to 'src/dyndns_service.rs')
| -rw-r--r-- | src/dyndns_service.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/dyndns_service.rs b/src/dyndns_service.rs index 7c903e0..fac34e7 100644 --- a/src/dyndns_service.rs +++ b/src/dyndns_service.rs @@ -1,7 +1,15 @@ -mod gandi; +pub mod gandi; use reqwest::ClientBuilder; use std::error::Error; +use serde::{Deserialize, Serialize}; +use crate::dyndns_service::gandi::Gandi; + +#[derive(Debug, Deserialize, PartialEq, Serialize)] +#[serde(tag = "type")] +pub enum DynDnsProvider { + GANDI(Gandi) +} struct DynDnsService {} @@ -13,7 +21,7 @@ impl DynDnsService { } } -trait DynDnsServiceConfiguration { +pub trait DynDnsServiceConfiguration { fn get_service_url(&self) -> String; } |
