cob: Add some more information about `resource`

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier 2023-01-03 14:28:18 +01:00
parent 67f9c3554d
commit b7d0479b5c
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -49,6 +49,7 @@ pub struct Entry {
/// The actor that authored this entry.
pub(super) actor: PublicKey,
/// The content-address for the resource this entry lives under.
/// If the resource was updated, this should point to its latest version.
pub(super) resource: Oid,
/// The child entries for this entry.
pub(super) children: Vec<EntryId>,
@ -87,7 +88,7 @@ impl Entry {
self.children.iter()
}
/// The `Oid` of the resource this change lives under.
/// The current `Oid` of the resource this change lives under.
pub fn resource(&self) -> Oid {
self.resource
}