pub struct SourceTargetSnapshot {
pub version: u16,
pub scope: CollaborationScope,
pub state: StateId,
pub collaboration_frontier: ContentHash,
pub files: Option<ContentHash>,
pub targets: Option<ContentHash>,
}Fields§
§version: u16§scope: CollaborationScope§state: StateId§collaboration_frontier: ContentHashCommitment to the exact sorted collaboration heads at capture. Keeping individual private operation IDs out of source-only publication avoids revealing withheld discussion membership.
files: Option<ContentHash>§targets: Option<ContentHash>Implementations§
Source§impl SourceTargetSnapshot
impl SourceTargetSnapshot
pub fn validate( &self, scope: &CollaborationScope, state: StateId, ) -> Result<(), HeddleError>
Trait Implementations§
Source§impl Clone for SourceTargetSnapshot
impl Clone for SourceTargetSnapshot
Source§fn clone(&self) -> SourceTargetSnapshot
fn clone(&self) -> SourceTargetSnapshot
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 SourceTargetSnapshot
impl Debug for SourceTargetSnapshot
Source§impl<'de> Deserialize<'de> for SourceTargetSnapshot
impl<'de> Deserialize<'de> for SourceTargetSnapshot
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SourceTargetSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SourceTargetSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SourceTargetSnapshot
Source§impl PartialEq for SourceTargetSnapshot
impl PartialEq for SourceTargetSnapshot
Source§impl Serialize for SourceTargetSnapshot
impl Serialize for SourceTargetSnapshot
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SourceTargetSnapshot
Auto Trait Implementations§
impl Freeze for SourceTargetSnapshot
impl RefUnwindSafe for SourceTargetSnapshot
impl Send for SourceTargetSnapshot
impl Sync for SourceTargetSnapshot
impl Unpin for SourceTargetSnapshot
impl UnsafeUnpin for SourceTargetSnapshot
impl UnwindSafe for SourceTargetSnapshot
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