about summary refs log tree commit diff
path: root/tools/sendsms/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tools/sendsms/src/config.rs')
-rw-r--r--tools/sendsms/src/config.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/tools/sendsms/src/config.rs b/tools/sendsms/src/config.rs
deleted file mode 100644
index da9435a..0000000
--- a/tools/sendsms/src/config.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-use serde::Deserialize;
-use std::path::PathBuf;
-
-#[derive(Deserialize, Debug)]
-pub struct Config {
-    pub to: String,
-    pub from: String,
-    pub account_sid: String,
-    pub auth_token: String,
-    pub reboot: RebootConfig,
-}
-
-#[derive(Deserialize, Debug)]
-pub struct RebootConfig {
-    pub ifname: String,
-}
-
-impl Config {
-    pub fn load_from_file(filename: &PathBuf) -> std::io::Result<Config> {
-        let content = std::fs::read_to_string(filename)?;
-        Ok(toml::from_str(&content)?)
-    }
-}