fn is_pending_user_code_collision(err: &ModelError) -> boolExpand description
True when err is the pending-user_code unique-index violation (the
generated code clashed with another still-pending grant). Keyed on the mapped
constraint name rather than string-matching the raw DB message.