pub enum TokenMode {
Env,
GitHubApp {
app_id: String,
private_key_path: String,
},
}Expand description
Token source mode for GitHub authentication.
Variants§
Env
Read from environment variables and config, with optional gh auth token fallback.
Resolution order:
GH_TOKENenv varGITHUB_TOKENenv vargh.auth.tokenconfig valuegh auth tokenCLI (ifallow_gh_fallbackis enabled, which is the default)
GitHubApp
GitHub App authentication with JWT generation.
Implementations§
Trait Implementations§
impl StructuralPartialEq for TokenMode
Auto Trait Implementations§
impl Freeze for TokenMode
impl RefUnwindSafe for TokenMode
impl Send for TokenMode
impl Sync for TokenMode
impl Unpin for TokenMode
impl UnsafeUnpin for TokenMode
impl UnwindSafe for TokenMode
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