pub struct PreparedStorePublication {
pub previous: StoreCurrentPublicationRecord,
pub previous_version: ExactObjectVersion,
pub entry: StorePublicationEntry,
pub entry_object: ExactObjectRef,
pub replacement: StoreCurrentPublicationRecord,
}Expand description
One immutable Store publication entry and the conditional replacement that can accept it. The observed record and provider version remain together so a retry cannot apply the replacement against another boundary.
Fields§
§previous: StoreCurrentPublicationRecord§previous_version: ExactObjectVersion§entry: StorePublicationEntry§entry_object: ExactObjectRef§replacement: StoreCurrentPublicationRecordImplementations§
Source§impl PreparedStorePublication
impl PreparedStorePublication
pub fn reference(&self) -> Result<StorePublicationRef, PreparedCommitError>
pub fn prepared_entry(&self) -> Result<PreparedExactObject, PreparedCommitError>
pub fn verify_commit( &self, commit: &VerifiedStoreBatchCommit, ) -> Result<(), PreparedCommitError>
pub fn validate_commit_shape( &self, commit: &StoreBatchCommit, reference: &StoreBatchCommitRef, ) -> Result<(), PreparedCommitError>
pub fn validate_snapshot_shape( &self, snapshot: &SnapshotMeta, reference: &StoreSnapshotRef, ) -> Result<(), PreparedCommitError>
Trait Implementations§
Source§impl Clone for PreparedStorePublication
impl Clone for PreparedStorePublication
Source§fn clone(&self) -> PreparedStorePublication
fn clone(&self) -> PreparedStorePublication
Returns a duplicate of the value. Read more
1.0.0 · 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 PreparedStorePublication
impl Debug for PreparedStorePublication
Source§impl<'de> Deserialize<'de> for PreparedStorePublication
impl<'de> Deserialize<'de> for PreparedStorePublication
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
Source§impl PartialEq for PreparedStorePublication
impl PartialEq for PreparedStorePublication
Source§impl Serialize for PreparedStorePublication
impl Serialize for PreparedStorePublication
impl Eq for PreparedStorePublication
impl StructuralPartialEq for PreparedStorePublication
Auto Trait Implementations§
impl !Freeze for PreparedStorePublication
impl RefUnwindSafe for PreparedStorePublication
impl Send for PreparedStorePublication
impl Sync for PreparedStorePublication
impl Unpin for PreparedStorePublication
impl UnsafeUnpin for PreparedStorePublication
impl UnwindSafe for PreparedStorePublication
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.