pub struct Revocation { /* private fields */ }Expand description
Revocation of a prior statement by an authority.
Implementations§
Source§impl Revocation
impl Revocation
Sourcepub fn new(
statement_id: StatementId,
target_id: StatementId,
authority: CapabilityRef,
) -> Result<Self, ValidationError>
pub fn new( statement_id: StatementId, target_id: StatementId, authority: CapabilityRef, ) -> Result<Self, ValidationError>
Creates a revocation body from required fields.
Sourcepub const fn kind(&self) -> StatementKind
pub const fn kind(&self) -> StatementKind
Returns this body kind.
Sourcepub const fn statement_id(&self) -> &StatementId
pub const fn statement_id(&self) -> &StatementId
Returns the revocation statement identifier.
Sourcepub const fn target_id(&self) -> &StatementId
pub const fn target_id(&self) -> &StatementId
Returns the revoked statement identifier.
Returns the revoking authority reference.
Trait Implementations§
Source§impl Debug for Revocation
impl Debug for Revocation
impl Eq for Revocation
Source§impl PartialEq for Revocation
impl PartialEq for Revocation
Source§fn eq(&self, other: &Revocation) -> bool
fn eq(&self, other: &Revocation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Revocation
Auto Trait Implementations§
impl Freeze for Revocation
impl RefUnwindSafe for Revocation
impl Send for Revocation
impl Sync for Revocation
impl Unpin for Revocation
impl UnsafeUnpin for Revocation
impl UnwindSafe for Revocation
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