#[non_exhaustive]pub enum PersonalAccessTokenScope {
Show 13 variants
Api,
ReadUser,
ReadApi,
ReadRepository,
WriteRepository,
ReadRegistry,
WriteRegistry,
Sudo,
AdminMode,
CreateRunner,
AiFeatures,
K8sProxy,
ReadServicePing,
}
Expand description
Scopes for personal access tokens.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Api
Access the API and perform git reads and writes.
ReadUser
Access to read the user information.
ReadApi
Access read-only API endpoints.
ReadRepository
Read access to repositories.
WriteRepository
Write access to repositories.
ReadRegistry
Read access to Docker registries.
WriteRegistry
Write access to Docker registries.
Sudo
Permission to sudo
as other users (administrator only).
AdminMode
Permission to access administrator API actions.
CreateRunner
Permission to create instance runners.
AiFeatures
Access to AI features (GitLab Duo for JetBrains).
K8sProxy
Access to perform Kubernetes API calls.
ReadServicePing
Access to the Service Ping payload.
Implementations§
Source§impl PersonalAccessTokenScope
impl PersonalAccessTokenScope
Sourcepub fn as_create_scope(self) -> Option<PersonalAccessTokenCreateScope>
pub fn as_create_scope(self) -> Option<PersonalAccessTokenCreateScope>
Transform into a create
scope if possible.
Trait Implementations§
Source§impl Clone for PersonalAccessTokenScope
impl Clone for PersonalAccessTokenScope
Source§fn clone(&self) -> PersonalAccessTokenScope
fn clone(&self) -> PersonalAccessTokenScope
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PersonalAccessTokenScope
impl Debug for PersonalAccessTokenScope
Source§impl Ord for PersonalAccessTokenScope
impl Ord for PersonalAccessTokenScope
Source§fn cmp(&self, other: &PersonalAccessTokenScope) -> Ordering
fn cmp(&self, other: &PersonalAccessTokenScope) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl ParamValue<'static> for PersonalAccessTokenScope
impl ParamValue<'static> for PersonalAccessTokenScope
Source§impl PartialEq for PersonalAccessTokenScope
impl PartialEq for PersonalAccessTokenScope
Source§impl PartialOrd for PersonalAccessTokenScope
impl PartialOrd for PersonalAccessTokenScope
impl Copy for PersonalAccessTokenScope
impl Eq for PersonalAccessTokenScope
impl StructuralPartialEq for PersonalAccessTokenScope
Auto Trait Implementations§
impl Freeze for PersonalAccessTokenScope
impl RefUnwindSafe for PersonalAccessTokenScope
impl Send for PersonalAccessTokenScope
impl Sync for PersonalAccessTokenScope
impl Unpin for PersonalAccessTokenScope
impl UnwindSafe for PersonalAccessTokenScope
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more