A unique index is an index data structure that:
If the key is already present, it will reject the insertion by throwing an error.
This kind of structure are generally implemented with a hashmap.