pub struct PreparedMembershipPublication {
pub entry: MembershipEntry,
pub entry_ref: MembershipEntryRef,
pub head: AuthorHead,
pub head_ref: MembershipHeadRef,
}Expand description
One membership entry and the head that publishes it, each named by its exact reference.
The entry and head values are here, and entry_ref.object / head_ref.object
name the objects they serialize to, so nothing carries their bytes a second
time: the upload rebuilds them from the value and the reference re-checks
them on the way out.
Fields§
§entry: MembershipEntry§entry_ref: MembershipEntryRef§head: AuthorHead§head_ref: MembershipHeadRefImplementations§
Source§impl PreparedMembershipPublication
impl PreparedMembershipPublication
pub fn validate(&self) -> Result<(), MembershipPreparationError>
pub fn transition(&self) -> PreparedMembershipTransition
pub fn candidate_remote_objects( &self, commit: &StoreBatchCommit, reference: &StoreBatchCommitRef, ) -> Result<Vec<ClosedRemoteObject>, PreparedCommitError>
pub fn candidate_object_refs( &self, commit: &StoreBatchCommit, reference: &StoreBatchCommitRef, ) -> Result<Vec<ExactObjectRef>, PreparedCommitError>
Sourcepub fn prepared_entry(
&self,
) -> Result<PreparedExactObject, MembershipPreparationError>
pub fn prepared_entry( &self, ) -> Result<PreparedExactObject, MembershipPreparationError>
The entry object this publication uploads.
Sourcepub fn prepared_head(
&self,
) -> Result<PreparedExactObject, MembershipPreparationError>
pub fn prepared_head( &self, ) -> Result<PreparedExactObject, MembershipPreparationError>
The head object this publication uploads.
Trait Implementations§
Source§impl Clone for PreparedMembershipPublication
impl Clone for PreparedMembershipPublication
Source§fn clone(&self) -> PreparedMembershipPublication
fn clone(&self) -> PreparedMembershipPublication
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<'de> Deserialize<'de> for PreparedMembershipPublication
impl<'de> Deserialize<'de> for PreparedMembershipPublication
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 PreparedMembershipPublication
impl PartialEq for PreparedMembershipPublication
Source§fn eq(&self, other: &PreparedMembershipPublication) -> bool
fn eq(&self, other: &PreparedMembershipPublication) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PreparedMembershipPublication
impl StructuralPartialEq for PreparedMembershipPublication
Auto Trait Implementations§
impl !Freeze for PreparedMembershipPublication
impl RefUnwindSafe for PreparedMembershipPublication
impl Send for PreparedMembershipPublication
impl Sync for PreparedMembershipPublication
impl Unpin for PreparedMembershipPublication
impl UnsafeUnpin for PreparedMembershipPublication
impl UnwindSafe for PreparedMembershipPublication
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.