pub struct RevocationSet {
pub issuer: String,
pub epoch: u64,
pub revoked: Vec<RevocationEntry>,
}Expand description
An issuer’s revocations as of epoch.
epoch is strictly monotonic per issuer: every change the issuer records
produces a higher one, so a replica orders sets by epoch alone and never by
clock. Equal epochs carry equal contents.
Fields§
§issuer: String§epoch: u64§revoked: Vec<RevocationEntry>Implementations§
Source§impl RevocationSet
impl RevocationSet
Sourcepub fn new(
issuer: impl Into<String>,
epoch: u64,
revoked: Vec<RevocationEntry>,
) -> Self
pub fn new( issuer: impl Into<String>, epoch: u64, revoked: Vec<RevocationEntry>, ) -> Self
A set in canonical form: revoked sorted and de-duplicated.
Entries sharing an identity collapse to the one with the greatest bound
(RevocationEntry::cmp_bound).
Trait Implementations§
Source§impl Clone for RevocationSet
impl Clone for RevocationSet
Source§impl Debug for RevocationSet
impl Debug for RevocationSet
Source§impl<'de> Deserialize<'de> for RevocationSet
impl<'de> Deserialize<'de> for RevocationSet
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 RevocationSet
Source§impl PartialEq for RevocationSet
impl PartialEq for RevocationSet
Source§impl Serialize for RevocationSet
impl Serialize for RevocationSet
Source§impl SignedArtifact for RevocationSet
impl SignedArtifact for RevocationSet
Source§const IMPLICIT_ASSERTION: &'static [u8] = b"urn:cheers:artifact:revocation-set:v1"
const IMPLICIT_ASSERTION: &'static [u8] = b"urn:cheers:artifact:revocation-set:v1"
The PASETO implicit assertion bound into this kind’s signature.
impl StructuralPartialEq for RevocationSet
Auto Trait Implementations§
impl Freeze for RevocationSet
impl RefUnwindSafe for RevocationSet
impl Send for RevocationSet
impl Sync for RevocationSet
impl Unpin for RevocationSet
impl UnsafeUnpin for RevocationSet
impl UnwindSafe for RevocationSet
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