Struct radicle_cob::change::store::Entry
source · pub struct Entry<Resource, Id, Signature> {
pub id: Id,
pub revision: Id,
pub signature: Signature,
pub resource: Option<Resource>,
pub parents: Vec<Resource>,
pub related: Vec<Resource>,
pub manifest: Manifest,
pub contents: Contents,
pub timestamp: Timestamp,
}
Fields§
§id: Id
The content address of the entry itself.
revision: Id
The content address of the tree of the entry.
signature: Signature
The cryptographic signature(s) and their public keys of the authors.
resource: Option<Resource>
The parent resource that this change lives under. For example, this change could be for a patch of a project.
parents: Vec<Resource>
Parent changes.
Other parents this change depends on.
manifest: Manifest
The manifest describing the type of object as well as the type of history for this entry.
contents: Contents
The contents that describe entry.
timestamp: Timestamp
Timestamp of change.
Implementations§
source§impl<R, Id> Entry<R, Id, Signatures>
impl<R, Id> Entry<R, Id, Signatures>
pub fn valid_signatures(&self) -> bool
source§impl<R, Id> Entry<R, Id, ExtendedSignature>
impl<R, Id> Entry<R, Id, ExtendedSignature>
pub fn valid_signatures(&self) -> bool
Trait Implementations§
source§impl<Resource: PartialEq, Id: PartialEq, Signature: PartialEq> PartialEq for Entry<Resource, Id, Signature>
impl<Resource: PartialEq, Id: PartialEq, Signature: PartialEq> PartialEq for Entry<Resource, Id, Signature>
impl<Resource: Eq, Id: Eq, Signature: Eq> Eq for Entry<Resource, Id, Signature>
impl<Resource, Id, Signature> StructuralPartialEq for Entry<Resource, Id, Signature>
Auto Trait Implementations§
impl<Resource, Id, Signature> Freeze for Entry<Resource, Id, Signature>
impl<Resource, Id, Signature> RefUnwindSafe for Entry<Resource, Id, Signature>
impl<Resource, Id, Signature> Send for Entry<Resource, Id, Signature>
impl<Resource, Id, Signature> Sync for Entry<Resource, Id, Signature>
impl<Resource, Id, Signature> Unpin for Entry<Resource, Id, Signature>
impl<Resource, Id, Signature> UnwindSafe for Entry<Resource, Id, Signature>
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)