pub struct GitHubAppProvider {
pub app_id: String,
pub installation_id: String,
pub private_key_pkcs8_der: Vec<u8>,
pub api_base: String,
pub client: Client,
}Expand description
Mints a GitHub-App installation token: sign a short-lived RS256 JWT with the app’s
private key, then exchange it at POST /app/installations/{id}/access_tokens for an
installation token (~1 h). The JWT signing is local; the exchange is one HTTP call.
Fields§
§app_id: String§installation_id: String§private_key_pkcs8_der: Vec<u8>The app’s RSA private key in PKCS#8 DER (parse from PEM with pkcs8_from_pem).
api_base: StringAPI base, e.g. https://api.github.com (override for GHES or a test mock).
client: ClientImplementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for GitHubAppProvider
impl !UnwindSafe for GitHubAppProvider
impl Freeze for GitHubAppProvider
impl Send for GitHubAppProvider
impl Sync for GitHubAppProvider
impl Unpin for GitHubAppProvider
impl UnsafeUnpin for GitHubAppProvider
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