pub struct Version {
pub version_id: u64,
pub memory_id: MemoryId,
pub agent_id: AgentId,
pub timestamp: Timestamp,
pub data_hash: u64,
}Expand description
A single versioned snapshot of a memory.
Fields§
§version_id: u64Monotonically increasing version identifier.
memory_id: MemoryIdThe memory this version belongs to.
agent_id: AgentIdThe agent that created this version.
timestamp: TimestampCreation timestamp of this version.
data_hash: u64Hash of the serialized memory data for change detection.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Version
impl<'de> Deserialize<'de> for Version
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 Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnsafeUnpin for Version
impl UnwindSafe for Version
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