@SuppressWarnings("unchecked")
    public final I unique() {
      options.unique(true);
      return (I) this;
    }
Makes an index to enforce unique constraint.
@return {@code this} indexer for chained invocation
mongo/src/org/immutables/mongo/repository/Repositories.java