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