2 extern crate strum_macros;
4 extern crate smart_default;
19 use std::{fmt, time::Duration};
21 pub type ConnectionId = usize;
23 pub const REQWEST_TIMEOUT: Duration = Duration::from_secs(10);
25 #[derive(PartialEq, Eq, Hash, Debug, Clone)]
26 pub struct IpAddr(pub String);
28 impl fmt::Display for IpAddr {
29 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
30 write!(f, "{}", self.0)
35 macro_rules! location_info {
38 "None value at {}:{}, column {}",