Get a human-readable description.
(&self)
| 102 | impl DelegationPermission { |
| 103 | /// Get a human-readable description. |
| 104 | pub fn description(&self) -> &'static str { |
| 105 | match self { |
| 106 | DelegationPermission::Read => "Read repository content", |
| 107 | DelegationPermission::Record => "Record (commit) changes", |
| 108 | DelegationPermission::Push => "Push changes to remotes", |
| 109 | DelegationPermission::Pull => "Pull changes from remotes", |
| 110 | DelegationPermission::ManageViews => "Create and delete views", |
| 111 | DelegationPermission::ManageTags => "Create and delete tags", |
| 112 | DelegationPermission::Admin => "Manage repository settings", |
| 113 | DelegationPermission::Full => "Full access (all permissions)", |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | /// Check if this permission implies another permission. |
| 118 | pub fn implies(&self, other: &DelegationPermission) -> bool { |
nothing calls this directly
no outgoing calls
no test coverage detected