code: func (r *RoleV3) SetRules(rct RoleConditionType, in []Rule) {
  	rcopy := CopyRulesSlice(in)
  
  	if rct == Allow {
  		r.Spec.Allow.Rules = rcopy
  	} else {
  		r.Spec.Deny.Rules = rcopy
  	}
  }
docs: // SetRules sets an allow or deny rule.