pub struct RevocationRecord {
pub credential_id: CredentialId,
pub status: RevocationStatus,
pub reason: RevocationReason,
pub reason_details: Option<String>,
pub revoker: Address,
pub revoked_at: Timestamp,
pub revoked_at_height: BlockHeight,
pub superseded_by: Option<CredentialId>,
pub signature: [u8; 64],
}Expand description
Revocation record (SRC-805)
Fields§
§credential_id: CredentialIdThe credential being revoked/updated
status: RevocationStatusNew status
reason: RevocationReasonReason for revocation/suspension
reason_details: Option<String>Optional reason details
revoker: AddressIssuer who performed the revocation
revoked_at: TimestampTimestamp of revocation
revoked_at_height: BlockHeightBlock height of revocation
superseded_by: Option<CredentialId>If superseded, the new credential ID
signature: [u8; 64]Signature over the revocation
Trait Implementations§
Source§impl Clone for RevocationRecord
impl Clone for RevocationRecord
Source§fn clone(&self) -> RevocationRecord
fn clone(&self) -> RevocationRecord
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 RevocationRecord
impl Debug for RevocationRecord
Source§impl<'de> Deserialize<'de> for RevocationRecord
impl<'de> Deserialize<'de> for RevocationRecord
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
Source§impl PartialEq for RevocationRecord
impl PartialEq for RevocationRecord
Source§fn eq(&self, other: &RevocationRecord) -> bool
fn eq(&self, other: &RevocationRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RevocationRecord
impl Serialize for RevocationRecord
impl Eq for RevocationRecord
impl StructuralPartialEq for RevocationRecord
Auto Trait Implementations§
impl Freeze for RevocationRecord
impl RefUnwindSafe for RevocationRecord
impl Send for RevocationRecord
impl Sync for RevocationRecord
impl Unpin for RevocationRecord
impl UnsafeUnpin for RevocationRecord
impl UnwindSafe for RevocationRecord
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