1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
    Appellation: interface <module>
    Creator: FL03 <jo3mccain@icloud.com>
    Description:
        ... Summary ...
*/

#[derive(Clone, Debug, Hash, PartialEq, serde::Deserialize, serde::Serialize)]
pub struct SandboxInterface {
    pub timestamp: i64,
}

impl SandboxInterface {
    fn constructor(timestamp: i64) -> Self {
        Self { timestamp }
    }
    pub fn new() -> Self {
        Self::constructor(chrono::Utc::now().timestamp())
    }
}

impl Default for SandboxInterface {
    fn default() -> Self {
        Self::new()
    }
}