Skip to main content

apply

Function apply 

Source
pub async fn apply(
    pool: &PgPool,
    actor: &Actor,
    action: Action,
    numbers: &[String],
) -> AppResult<Vec<Outcome>>
Expand description

Applies action to the latest revision of every listed item.

§Invariants

  • Permission: CAD editor (403); per item those of the single operation – a hidden or unknown item is reported as “not found”.
  • Limits: 1 to MAX_ITEMS items (400).
  • Atomic: per item; the outcome says which items succeeded.