Skip to main content

action

Function action 

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

The route the action A runs on record at, e.g. /admin/posts/42/-/actions/publish, or None when R does not declare A on a record: on its rows, detail or edit page.