change LinkAttribute from struct to class and added == operator