pub struct GithubAppAuth { /* private fields */ }Implementations§
Source§impl GithubAppAuth
impl GithubAppAuth
Sourcepub async fn authenticate(
app_id: String,
installation_id: String,
key: SecretValue,
) -> Result<Self>
pub async fn authenticate( app_id: String, installation_id: String, key: SecretValue, ) -> Result<Self>
Create a new GitHub App auth handle and fetch the initial installation token.
Sourcepub async fn get_or_refresh(&mut self) -> Result<String>
pub async fn get_or_refresh(&mut self) -> Result<String>
Return a valid installation token, refreshing if the cached one is stale.
Auto Trait Implementations§
impl !RefUnwindSafe for GithubAppAuth
impl !UnwindSafe for GithubAppAuth
impl Freeze for GithubAppAuth
impl Send for GithubAppAuth
impl Sync for GithubAppAuth
impl Unpin for GithubAppAuth
impl UnsafeUnpin for GithubAppAuth
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