rs-pkg 0.0.2

rust pkg for programming
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::{Deserialize, Serialize};

#[derive(Deserialize, Serialize)]
pub struct Config {
    pub addr: String,
    pub reconnect: bool,
    pub ping_interval: String,
}

impl Default for Config {
    fn default() -> Self {
        Self {
            addr: "ws://localhost:8080/ws".to_string(),
            reconnect: true,
            ping_interval: "3s".to_string(),
        }
    }
}