Add several permissions.
(
mut self,
permissions: impl IntoIterator<Item = DelegationPermission>,
)
| 449 | |
| 450 | /// Add several permissions. |
| 451 | pub fn permissions( |
| 452 | mut self, |
| 453 | permissions: impl IntoIterator<Item = DelegationPermission>, |
| 454 | ) -> Self { |
| 455 | for permission in permissions { |
| 456 | self = self.permission(permission); |
| 457 | } |
| 458 | self |
| 459 | } |
| 460 | |
| 461 | /// Bind the delegation to a server URL. |
| 462 | pub fn server(mut self, url: impl Into<String>) -> Self { |
nothing calls this directly
no test coverage detected