use serde::Deserialize;
pub mod error;
pub mod node;
pub mod player;
pub mod anchorage;
fn str_to_u64<'de, T, D>(de: D) -> Result<T, D::Error>
where
D: serde::Deserializer<'de>,
T: std::str::FromStr,
<T as std::str::FromStr>::Err: std::fmt::Display,
{
String::deserialize(de)?
.parse()
.map_err(serde::de::Error::custom)
}