1 2 3 4 5 6 7 8
#[derive(Debug, Eq, PartialEq, Hash, Clone)] pub struct InstanceName(String); impl From<&str> for InstanceName { fn from(s: &str) -> Self { Self(s.to_string()) } }