pub struct SrlBuilder { /* private fields */ }Expand description
Builder for creating signed revocation lists.
Implementations§
Source§impl SrlBuilder
impl SrlBuilder
Sourcepub fn revoke_all(
self,
ids: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn revoke_all( self, ids: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Add multiple warrant IDs to revoke.
Sourcepub fn from_existing_pruned<F>(
self,
existing: &SignedRevocationList,
is_expired: F,
) -> Self
pub fn from_existing_pruned<F>( self, existing: &SignedRevocationList, is_expired: F, ) -> Self
Import from an existing SRL, optionally filtering out expired warrants.
Sourcepub fn from_existing(self, existing: &SignedRevocationList) -> Self
pub fn from_existing(self, existing: &SignedRevocationList) -> Self
Import all entries from an existing SRL (no pruning).
Sourcepub fn version(self, version: u64) -> Self
pub fn version(self, version: u64) -> Self
Set the version number.
Version must be monotonically increasing. Authorizers should reject lists with version < their current version (anti-rollback).
Sourcepub fn build(self, keypair: &SigningKey) -> Result<SignedRevocationList>
pub fn build(self, keypair: &SigningKey) -> Result<SignedRevocationList>
Build and sign the revocation list.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SrlBuilder
impl RefUnwindSafe for SrlBuilder
impl Send for SrlBuilder
impl Sync for SrlBuilder
impl Unpin for SrlBuilder
impl UnwindSafe for SrlBuilder
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