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>
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
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