Skip to main content

is_pending_user_code_collision

Function is_pending_user_code_collision 

Source
fn is_pending_user_code_collision(err: &ModelError) -> bool
Expand 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.