aboutsummaryrefslogtreecommitdiff
path: root/src/config/local_ip.rs
blob: 8b3b63a703076aae74abe1d96980daf62c31de22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use serde::{Deserialize, Serialize};
use std::default::Default;

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct LocalIp {
    pub icon: String,
    pub enabled: bool,
    pub delay: f64,
    pub interface: String,
}

impl Default for LocalIp {
    fn default() -> Self {
        LocalIp {
            icon: String::from(""),
            enabled: false,
            delay: 120.0,
            interface: String::from("wlan0"),
        }
    }
}