pub enum AuthState {
None,
BasicAuth {
username: String,
password: String,
},
App(AppAuth),
Installation {
app: AppAuth,
installation: InstallationId,
token: CachedToken,
},
}
Expand description
State used for authenticate to Github
Variants§
None
No state, although Auth::PersonalToken may have caused an Authorization HTTP header to be set to provide authentication.
BasicAuth
Basic Auth HTTP. (username:password)
App(AppAuth)
Github App authentication with the given app data
Installation
Authentication via a Github App repo-specific installation
Fields
§
installation: InstallationId
The installation ID
§
token: CachedToken
The cached access token, if any
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AuthState
impl RefUnwindSafe for AuthState
impl Send for AuthState
impl Sync for AuthState
impl Unpin for AuthState
impl UnwindSafe for AuthState
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