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.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dyndns_service.rs b/src/dyndns_service.rs
index 18cec3e..a80fe4b 100644
--- a/src/dyndns_service.rs
+++ b/src/dyndns_service.rs
@@ -1,6 +1,6 @@
pub mod gandi;
-use crate::dyndns_service::gandi::Gandi;
+use crate::dyndns_service::gandi::GandiConfig;
use reqwest::ClientBuilder;
use serde::{Deserialize, Serialize};
use std::error::Error;
@@ -8,7 +8,8 @@ use std::error::Error;
#[derive(Debug, Deserialize, PartialEq, Serialize)]
#[serde(tag = "type")]
pub enum DynDnsProvider {
- GANDI(Gandi),
+ #[serde(rename = "GANDI")]
+ Gandi(GandiConfig),
}
pub struct DynDnsService {}