#[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 copy 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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