Skip to main content

arcp_runtime/store/
credentials.rs

1//! Persistent metadata shapes for outstanding provisioned credentials.
2
3use chrono::{DateTime, Utc};
4
5use crate::runtime::CredentialId;
6use arcp_core::ids::JobId;
7
8/// One outstanding credential ledger row.
9#[derive(Debug, Clone, PartialEq, Eq)]
10pub struct OutstandingCredential {
11    /// Credential id.
12    pub credential_id: CredentialId,
13    /// Job that owns the credential.
14    pub job_id: JobId,
15    /// Issue timestamp.
16    pub issued_at: DateTime<Utc>,
17    /// Revocation timestamp, if completed.
18    pub revoked_at: Option<DateTime<Utc>>,
19}