Skip to main content

record

Function record 

Source
pub fn record<R>(cx: &Cx, record: &<R as Resource>::Model) -> Option<String>
where R: Resource,
Expand description

record’s detail page in the context’s panel, e.g. /admin/posts/42, or None when R declares no detail.

This and the other record helpers return None when the panel does not mount R, when R’s key has no URL form, or when the panel serves no such route for R.