aboutsummaryrefslogtreecommitdiff
path: root/src/dyndns_service.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/dyndns_service.rs')
-rw-r--r--src/dyndns_service.rs12
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;
}