()
| 13 | } |
| 14 | |
| 15 | func (r *Requires) DeepCopy() *Requires { |
| 16 | if r == nil { |
| 17 | return nil |
| 18 | } |
| 19 | |
| 20 | return &Requires{ |
| 21 | Vars: deepcopy.Slice(r.Vars), |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | // Enum represents an enum constraint for a required variable. |
| 26 | // It can either be a static list of values or a reference to another variable. |