pub struct InstallationToken {
pub token: String,
pub expires_at: OffsetDateTime,
pub permissions: BTreeMap<String, String>,
}Expand description
An installation token: the credential (ghs_…), when GitHub says it dies,
and the permissions it carries. Debug never prints the token.
Fields§
§token: StringThe ghs_… token.
expires_at: OffsetDateTimeGitHub’s stated expiry.
permissions: BTreeMap<String, String>The permissions GitHub granted this token.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InstallationToken
impl RefUnwindSafe for InstallationToken
impl Send for InstallationToken
impl Sync for InstallationToken
impl Unpin for InstallationToken
impl UnsafeUnpin for InstallationToken
impl UnwindSafe for InstallationToken
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