Commit 4caf22d
vp
Add implicit string-to-Permission conversion operator
Added an implicit conversion operator to the `Permission` struct
to allow a `string` to be implicitly converted to a `Permission`
instance. This complements the existing conversion operator for
`Permission` to `string`, enabling seamless two-way conversion
between `Permission` and `string`. Improves usability by removing
the need for explicit conversion methods.1 parent 15811ef commit 4caf22d
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
114 | 119 | | |
0 commit comments