Thanks to visit codestin.com
Credit goes to docs.rs

Constant postgres::error::INTEGRITY_CONSTRAINT_VIOLATION [] [src]

pub const INTEGRITY_CONSTRAINT_VIOLATION: SqlState = SqlState(Cow::Borrowed("23000"))

23000