pub struct RevocationStatus {
pub decision: RevocationDecision,
pub revoked: bool,
pub reason: Option<String>,
pub revoked_at: Option<String>,
}Expand description
Revocation status of a VCP bundle.
Fields§
§decision: RevocationDecisionExact revocation decision. Callers must reject Unavailable fail closed.
revoked: boolCompatibility flag that is true only for a confirmed revocation.
reason: Option<String>Human-readable reason for revocation, if revoked.
revoked_at: Option<String>ISO 8601 timestamp of when the bundle was revoked, if revoked.
Implementations§
Source§impl RevocationStatus
impl RevocationStatus
Sourcepub fn not_revoked() -> Self
pub fn not_revoked() -> Self
Create a status indicating the bundle is not revoked.
Sourcepub fn revoked(reason: impl Into<String>, revoked_at: impl Into<String>) -> Self
pub fn revoked(reason: impl Into<String>, revoked_at: impl Into<String>) -> Self
Create a status indicating the bundle has been revoked.
Create a fail-closed status for an unavailable revocation decision.
Sourcepub fn should_reject(&self) -> bool
pub fn should_reject(&self) -> bool
Whether this result must cause verification to fail closed.
Trait Implementations§
Source§impl Clone for RevocationStatus
impl Clone for RevocationStatus
Source§impl Debug for RevocationStatus
impl Debug for RevocationStatus
Auto Trait Implementations§
impl Freeze for RevocationStatus
impl RefUnwindSafe for RevocationStatus
impl Send for RevocationStatus
impl Sync for RevocationStatus
impl Unpin for RevocationStatus
impl UnsafeUnpin for RevocationStatus
impl UnwindSafe for RevocationStatus
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