Trustees of schools, school directors or other school officers performing like duties shall receive no pecuniary compensation.