pub struct AvcRevocation {
pub schema_version: u16,
pub credential_id: Hash256,
pub revoker_did: Did,
pub reason: AvcRevocationReason,
pub created_at: Timestamp,
pub signature: Signature,
}Fields§
§schema_version: u16§credential_id: Hash256§revoker_did: Did§reason: AvcRevocationReason§created_at: Timestamp§signature: SignatureImplementations§
Source§impl AvcRevocation
impl AvcRevocation
Sourcepub fn signing_payload(&self) -> Result<Vec<u8>, AvcError>
pub fn signing_payload(&self) -> Result<Vec<u8>, AvcError>
Compute the canonical signing payload bytes for this revocation.
§Errors
Returns AvcError::Serialization when CBOR encoding fails.
Trait Implementations§
Source§impl Clone for AvcRevocation
impl Clone for AvcRevocation
Source§fn clone(&self) -> AvcRevocation
fn clone(&self) -> AvcRevocation
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 AvcRevocation
impl Debug for AvcRevocation
Source§impl<'de> Deserialize<'de> for AvcRevocation
impl<'de> Deserialize<'de> for AvcRevocation
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
impl Eq for AvcRevocation
Source§impl PartialEq for AvcRevocation
impl PartialEq for AvcRevocation
Source§fn eq(&self, other: &AvcRevocation) -> bool
fn eq(&self, other: &AvcRevocation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AvcRevocation
impl Serialize for AvcRevocation
impl StructuralPartialEq for AvcRevocation
Auto Trait Implementations§
impl Freeze for AvcRevocation
impl RefUnwindSafe for AvcRevocation
impl Send for AvcRevocation
impl Sync for AvcRevocation
impl Unpin for AvcRevocation
impl UnsafeUnpin for AvcRevocation
impl UnwindSafe for AvcRevocation
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