#[derive(PartialEq, Eq, Hash, Clone)] pub struct Resource(pub String, pub String); impl<'a> Resource { pub fn new, B: Into>(rtype: A, value: B) -> Self { Self(rtype.into(), value.into()) } pub fn get_type(&self) -> &str { &self.0 } pub fn get_value(&self) -> &str { &self.1 } }