pub struct WriteOperationEvidence { /* private fields */ }Expand description
Submitted operation identity. ACKs certify an equal or newer LWW winner, not immutable payload/log presence or a distributed atomic snapshot.
Implementations§
Source§impl WriteOperationEvidence
impl WriteOperationEvidence
Sourcepub fn application_write_digests(
table: &str,
key: &str,
value: &[u8],
) -> ([u8; 32], [u8; 32])
pub fn application_write_digests( table: &str, key: &str, value: &[u8], ) -> ([u8; 32], [u8; 32])
SDK correlation digests without retaining a second request payload.
pub fn validate_application_digests( &self, key_digest: &[u8], value_digest: &[u8], is_tombstone: bool, ) -> Result<(), WriteConcernPolicyError>
pub fn new( fragment: u32, key: &str, value: &[u8], version: RecordVersion, node_id: String, is_tombstone: bool, expires_at_ms: Option<u64>, ) -> Result<Self, WriteConcernPolicyError>
pub fn fragment(&self) -> u32
pub fn version(&self) -> RecordVersion
pub fn originating_node(&self) -> &str
pub fn is_tombstone(&self) -> bool
pub fn expires_at_ms(&self) -> Option<u64>
pub fn key_digest(&self) -> &[u8] ⓘ
pub fn value_digest(&self) -> &[u8] ⓘ
pub fn operation_digest(&self) -> &[u8] ⓘ
Sourcepub fn validate_application_write(
&self,
table: &str,
key: &str,
value: &[u8],
is_tombstone: bool,
) -> Result<(), WriteConcernPolicyError>
pub fn validate_application_write( &self, table: &str, key: &str, value: &[u8], is_tombstone: bool, ) -> Result<(), WriteConcernPolicyError>
Correlate SDK evidence with the selected table, user key and payload. Version/absolute TTL are minted by the receiving node; callers can save the returned certificate for later comparison.
Trait Implementations§
Source§impl Clone for WriteOperationEvidence
impl Clone for WriteOperationEvidence
Source§impl Debug for WriteOperationEvidence
impl Debug for WriteOperationEvidence
impl Eq for WriteOperationEvidence
Source§impl PartialEq for WriteOperationEvidence
impl PartialEq for WriteOperationEvidence
impl StructuralPartialEq for WriteOperationEvidence
Auto Trait Implementations§
impl Freeze for WriteOperationEvidence
impl RefUnwindSafe for WriteOperationEvidence
impl Send for WriteOperationEvidence
impl Sync for WriteOperationEvidence
impl Unpin for WriteOperationEvidence
impl UnsafeUnpin for WriteOperationEvidence
impl UnwindSafe for WriteOperationEvidence
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