pub enum GithubAuth {
Token(String),
AppInstallation {
app_id: u64,
private_key: String,
installation_id: u64,
},
Unauthenticated,
}Expand description
How the github_search tool authenticates to the GitHub API.
Mirrors the ingestion connector’s auth shape (kept independent so the tool crate doesn’t depend on the ingestion crate):
GithubAuth::Token— a personal-access token (self-host’s simplest path),GithubAuth::AppInstallation— Smoo’s first-party GitHub App, the waylom.smoo.aiwires per-customer access,GithubAuth::Unauthenticated— public search at the anonymous rate limit.
Variants§
Token(String)
A personal-access token (PAT).
AppInstallation
A GitHub App installation: app id, PEM private key, installation id.
Fields
Unauthenticated
No credentials (public search; anonymous rate limit).
Trait Implementations§
Source§impl Clone for GithubAuth
impl Clone for GithubAuth
Source§fn clone(&self) -> GithubAuth
fn clone(&self) -> GithubAuth
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 moreAuto Trait Implementations§
impl Freeze for GithubAuth
impl RefUnwindSafe for GithubAuth
impl Send for GithubAuth
impl Sync for GithubAuth
impl Unpin for GithubAuth
impl UnsafeUnpin for GithubAuth
impl UnwindSafe for GithubAuth
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request