use jacquard_common::types::string::AtUri; pub(crate) fn thing_detail_href(uri: &AtUri) -> Option { let path = uri.path()?; if path.collection.as_str() != "space.polymodel.library.thing" { return None; } let repo = uri.authority(); let rkey = path.rkey?; Some(format!("/{}/thing/{}", repo.as_str(), rkey.as_ref())) }