MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / description

Method description

atomic-identity/src/delegation.rs:104–115  ·  view source on GitHub ↗

Get a human-readable description.

(&self)

Source from the content-addressed store, hash-verified

102impl 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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected