Struct github_oidc::GitHubClaims
source · pub struct GitHubClaims {
pub subject: 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§
§subject: StringThe subject of the token (e.g the GitHub Actions runner ID).
repository: StringThe full name of the repository.
repository_owner: StringThe owner of the repository.
job_workflow_ref: StringA reference to the specific job and workflow.
iat: u64The 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