Check if this scope has a specific permission.
(&self, permission: DelegationPermission)
| 324 | |
| 325 | /// Check if this scope has a specific permission. |
| 326 | pub fn has_permission(&self, permission: DelegationPermission) -> bool { |
| 327 | self.permissions.iter().any(|p| p.implies(&permission)) |
| 328 | } |
| 329 | |
| 330 | /// Check if this scope is valid against a server URL. |
| 331 | /// |