#[derive(Clone)]
pub struct Attribute {
pub name: String,
pub value: String,
}
impl Attribute {
pub fn new(name: &str, value: &str) -> Attribute {
Attribute {
name: name.to_string(),
value: value.to_string(),
}
}
}
impl core::fmt::Debug for Attribute {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(
f,
r#"{name} = "{value}""#,
name = self.name,
value = self.value
)
}
}