pub struct AtomicWriteBatch { /* private fields */ }Expand description
Batch of write operations to be committed atomically.
Build one via AtomicWriteBatch::new, stage operations, then pass
to RegistryBackend::commit_batch.
Implementations§
Source§impl AtomicWriteBatch
impl AtomicWriteBatch
pub fn new() -> AtomicWriteBatch
pub fn stage_attestation(&mut self, att: Attestation) -> &mut AtomicWriteBatch
pub fn stage_org_member( &mut self, org: impl Into<String>, member: Attestation, ) -> &mut AtomicWriteBatch
pub fn stage_event( &mut self, prefix: Prefix, event: Event, attachment: Vec<u8>, ) -> &mut AtomicWriteBatch
Sourcepub fn stage_tel_event(
&mut self,
issuer: Prefix,
registry_said: Said,
credential_said: Said,
sn: u128,
event_bytes: Vec<u8>,
) -> &mut AtomicWriteBatch
pub fn stage_tel_event( &mut self, issuer: Prefix, registry_said: Said, credential_said: Said, sn: u128, event_bytes: Vec<u8>, ) -> &mut AtomicWriteBatch
Stage a TEL event (vcp/iss/rev) under an issuer’s registry.
Sourcepub fn stage_credential(
&mut self,
issuer: Prefix,
credential_said: Said,
credential_bytes: Vec<u8>,
) -> &mut AtomicWriteBatch
pub fn stage_credential( &mut self, issuer: Prefix, credential_said: Said, credential_bytes: Vec<u8>, ) -> &mut AtomicWriteBatch
Stage an ACDC credential blob under an issuer’s namespace.
pub fn ops(&self) -> &[AtomicWriteOp]
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for AtomicWriteBatch
impl Clone for AtomicWriteBatch
Source§fn clone(&self) -> AtomicWriteBatch
fn clone(&self) -> AtomicWriteBatch
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 AtomicWriteBatch
impl Debug for AtomicWriteBatch
Source§impl Default for AtomicWriteBatch
impl Default for AtomicWriteBatch
Source§fn default() -> AtomicWriteBatch
fn default() -> AtomicWriteBatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AtomicWriteBatch
impl RefUnwindSafe for AtomicWriteBatch
impl Send for AtomicWriteBatch
impl Sync for AtomicWriteBatch
impl Unpin for AtomicWriteBatch
impl UnsafeUnpin for AtomicWriteBatch
impl UnwindSafe for AtomicWriteBatch
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