pub fn assert_transition(
current: Option<EditorialState>,
target: EditorialState,
role: EditorialRole,
) -> Result<EditorialState, TransitionError>Expand description
Transition a collection from current to target, checking that role is
sufficient.
ยงErrors
Returns Err when the transition is not allowed for the given role.