pub enum TokenScope {
Show 17 variants
RepoRead,
RepoWrite,
RepoAdmin,
RepoDelete,
UserRead,
UserWrite,
UserEmail,
OrgRead,
OrgWrite,
OrgAdmin,
SshKeyRead,
SshKeyWrite,
WorkflowRead,
WorkflowWrite,
WebhookRead,
WebhookWrite,
Admin,
}Expand description
Token scopes for fine-grained permissions.
Variants§
RepoRead
Read access to repositories.
RepoWrite
Write (push) access to repositories.
RepoAdmin
Admin access to repositories (settings, collaborators).
RepoDelete
Delete repositories.
UserRead
Read user profile.
UserWrite
Update user profile.
UserEmail
Access email addresses.
OrgRead
Read organization info.
OrgWrite
Manage organization (members, teams).
OrgAdmin
Admin organization operations.
SshKeyRead
List SSH keys.
SshKeyWrite
Add/remove SSH keys.
WorkflowRead
Read workflows and runs.
WorkflowWrite
Trigger and manage workflows.
WebhookRead
Read webhooks.
WebhookWrite
Manage webhooks.
Admin
Full admin access (all permissions).
Implementations§
Source§impl TokenScope
impl TokenScope
Trait Implementations§
Source§impl Clone for TokenScope
impl Clone for TokenScope
Source§fn clone(&self) -> TokenScope
fn clone(&self) -> TokenScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TokenScope
Source§impl Debug for TokenScope
impl Debug for TokenScope
Source§impl<'de> Deserialize<'de> for TokenScope
impl<'de> Deserialize<'de> for TokenScope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TokenScope
Source§impl Hash for TokenScope
impl Hash for TokenScope
Source§impl PartialEq for TokenScope
impl PartialEq for TokenScope
Source§fn eq(&self, other: &TokenScope) -> bool
fn eq(&self, other: &TokenScope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TokenScope
impl Serialize for TokenScope
impl StructuralPartialEq for TokenScope
Auto Trait Implementations§
impl Freeze for TokenScope
impl RefUnwindSafe for TokenScope
impl Send for TokenScope
impl Sync for TokenScope
impl Unpin for TokenScope
impl UnsafeUnpin for TokenScope
impl UnwindSafe for TokenScope
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.