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
use std::fmt::{Debug, Display};
mod third_party;
pub struct UniqueKey {
key: Box<str>,
}
impl UniqueKey {
pub fn new<S>(key: S) -> Self
where
S: AsRef<str>,
{
Self { key: Box::from(key.as_ref()) }
}
pub fn as_str(&self) -> &str {
&self.key
}
}
impl Default for UniqueKey {
fn default() -> Self {
Self::new("")
}
}