Richard, codes of conduct are unilateral to start with.  Some institutions, professions, etc also call them agreements, but if you have no real choice about "agreeing" - they are rules.

In the 2001 Trinity Western decision, the Supreme Court of Canada used the same language: 
 “a homosexual student would not be tempted to apply for admission, and could only sign the so-called student contract at considerable personal cost."