pub fn declared_key(kind: &str, id: &str, attr: Option<&str>) -> String
The key of a declaration’s text: <kind>-<slug(id)>, then .<attr> when given.
<kind>-<slug(id)>
.<attr>