pub struct FactSnapshot {
pub record: FactRecord,
pub text: String,
pub metadata: BTreeMap<String, String>,
}Expand description
An owned view of one fact — Memory::get returns borrows that
cannot cross the lock, so the database hands out copies.
Fields§
§record: FactRecordThe raw record (temporality, flags, references).
text: StringThe fact text.
metadata: BTreeMap<String, String>The fact’s metadata as a sorted key→value map (empty when the fact carries none). The engine stores it opaquely; this is the decoded view.
Trait Implementations§
Source§impl Clone for FactSnapshot
impl Clone for FactSnapshot
Source§fn clone(&self) -> FactSnapshot
fn clone(&self) -> FactSnapshot
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 FactSnapshot
impl Debug for FactSnapshot
Source§impl PartialEq for FactSnapshot
impl PartialEq for FactSnapshot
impl StructuralPartialEq for FactSnapshot
Auto Trait Implementations§
impl Freeze for FactSnapshot
impl RefUnwindSafe for FactSnapshot
impl Send for FactSnapshot
impl Sync for FactSnapshot
impl Unpin for FactSnapshot
impl UnsafeUnpin for FactSnapshot
impl UnwindSafe for FactSnapshot
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