pub fn parse_constraint_detail_value(detail: Option<&str>) -> Option<String>Expand description
Extracts the conflicting value from a PostgreSQL constraint violation detail message.
PostgreSQL formats unique violation details as:
Key (column)=(value) already exists.
Returns None if the detail is missing or doesn’t match the expected format.
Security note: the extracted value is attacker-influenced input that was rejected by a unique constraint and may be PII (e.g. an email address). Returning it to untrusted API clients enables user enumeration; logging it may place PII in log pipelines.