pub struct CredentialLedger { /* private fields */ }Expand description
In-memory ledger of outstanding credential ids by job.
Implementations§
Source§impl CredentialLedger
impl CredentialLedger
Sourcepub fn record_issued(
&self,
job_id: &JobId,
credentials: &[ProvisionedCredential],
)
pub fn record_issued( &self, job_id: &JobId, credentials: &[ProvisionedCredential], )
Record credentials issued for job_id.
Sourcepub fn outstanding_for_job(&self, job_id: &JobId) -> Vec<CredentialId>
pub fn outstanding_for_job(&self, job_id: &JobId) -> Vec<CredentialId>
Outstanding ids for job_id.
Sourcepub fn mark_revoked(&self, job_id: &JobId, credential_id: &CredentialId)
pub fn mark_revoked(&self, job_id: &JobId, credential_id: &CredentialId)
Mark a credential as revoked.
Trait Implementations§
Source§impl Clone for CredentialLedger
impl Clone for CredentialLedger
Source§fn clone(&self) -> CredentialLedger
fn clone(&self) -> CredentialLedger
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CredentialLedger
impl Debug for CredentialLedger
Source§impl Default for CredentialLedger
impl Default for CredentialLedger
Source§fn default() -> CredentialLedger
fn default() -> CredentialLedger
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CredentialLedger
impl !RefUnwindSafe for CredentialLedger
impl Send for CredentialLedger
impl Sync for CredentialLedger
impl Unpin for CredentialLedger
impl UnsafeUnpin for CredentialLedger
impl !UnwindSafe for CredentialLedger
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