pub struct GitHubClaims {
pub sub: String,
pub repository: String,
pub repository_owner: String,
pub job_workflow_ref: String,
pub iat: u64,
}
Expand description
Represents the claims contained in a GitHub Actions JWT (JSON Web Token).
When a GitHub Actions workflow runs, it receives a token with these claims. This struct helps decode and access the information from that token.
Fields§
§sub: String
The subject of the token (e.g. the GitHub Actions runner ID).
repository: String
The full name of the repository.
repository_owner: String
The owner of the repository.
job_workflow_ref: String
A reference to the specific job and workflow.
iat: u64
The timestamp when the token was issued.
Trait Implementations§
Source§impl Debug for GitHubClaims
impl Debug for GitHubClaims
Source§impl<'de> Deserialize<'de> for GitHubClaims
impl<'de> Deserialize<'de> for GitHubClaims
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GitHubClaims
impl RefUnwindSafe for GitHubClaims
impl Send for GitHubClaims
impl Sync for GitHubClaims
impl Unpin for GitHubClaims
impl UnwindSafe for GitHubClaims
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