pub enum GraphDelta {
Show 93 variants
AddNode {
id: Option<Uuid>,
url: String,
position: Point2D<f32>,
},
AssertRelation {
from: NodeKey,
to: NodeKey,
assertion: EdgeAssertion,
asserter_iri: String,
},
RemoveNode {
key: NodeKey,
},
ReplayAddNodeWithIdIfMissing {
id: Uuid,
url: String,
position: Point2D<f32>,
},
ReplayAssertRelationByIds {
from_id: Uuid,
to_id: Uuid,
assertion: EdgeAssertion,
asserter_iri: String,
},
ReplayRemoveNodeById {
node_id: Uuid,
},
ReplayRetractRelationsByIds {
from_id: Uuid,
to_id: Uuid,
selector: RelationSelector,
},
ReplayAppendTraversalByIds {
from_id: Uuid,
to_id: Uuid,
trigger: NavigationTrigger,
timestamp_ms: u64,
},
ReplaySetNodeTitleById {
node_id: Uuid,
title: String,
},
ReplaySetNodeUrlById {
node_id: Uuid,
new_url: String,
},
ReplaySetNodeImageById {
node_id: Uuid,
role: ImageRole,
image: ImageRef,
},
ReplaySetNodeMimeHintById {
node_id: Uuid,
mime_hint: Option<String>,
},
ReplaySetNodeContentById {
node_id: Uuid,
content: Option<ContentHash>,
},
ReplaySetNodeNestedById {
node_id: Uuid,
nested: Option<String>,
},
ReplaySetNodePinnedById {
node_id: Uuid,
is_pinned: bool,
},
ReplaySetNodeFacetById {
node_id: Uuid,
facet: String,
value: Value,
},
ReplayRemoveNodeFacetById {
node_id: Uuid,
facet: String,
},
ReplayInsertNodeTagById {
node_id: Uuid,
tag: String,
},
ReplayRemoveNodeTagById {
node_id: Uuid,
tag: String,
},
ReplaySetNodeBodyById {
node_id: Uuid,
body: Option<String>,
},
ReplayNavigateNodeById {
node_id: Uuid,
url: String,
transition: TransitionKind,
timestamp_ms: u64,
last_session_visited: u64,
},
ReplayBranchHistoryByIds {
child_id: Uuid,
parent_id: Uuid,
},
ReplayNodeHistoryBackById {
node_id: Uuid,
timestamp_ms: u64,
},
ReplayNodeHistoryForwardById {
node_id: Uuid,
timestamp_ms: u64,
},
ReplayAppendNodePropertyById {
node_id: Uuid,
property: NodeProperty,
},
ReplayAddNodeClassificationById {
node_id: Uuid,
classification: NodeClassification,
},
ReplayRemoveNodeClassificationById {
node_id: Uuid,
scheme: ClassificationScheme,
value: String,
},
ReplaySetNodeClassificationStatusById {
node_id: Uuid,
scheme: ClassificationScheme,
value: String,
status: ClassificationStatus,
},
ReplaySetNodePrimaryClassificationById {
node_id: Uuid,
scheme: ClassificationScheme,
value: String,
},
ReplayRecordNodeDerivationById {
node_id: Uuid,
derivation: NodeDerivation,
},
ReplaySetNodeTagIconOverrideById {
node_id: Uuid,
tag: String,
icon: Option<BadgeIcon>,
},
ReplaySetEdgeSemanticPredicateByIds {
from_id: Uuid,
to_id: Uuid,
predicate: Option<String>,
asserter_iri: String,
},
ReplayAssertSemanticPredicateByIds {
from_id: Uuid,
to_id: Uuid,
predicate: String,
asserter_iri: String,
},
ReplayAppendFrameLayoutHintById {
node_id: Uuid,
hint: FrameLayoutHint,
},
ReplayRemoveFrameLayoutHintById {
node_id: Uuid,
hint_index: usize,
},
ReplayMoveFrameLayoutHintById {
node_id: Uuid,
from_index: usize,
to_index: usize,
},
ReplaySetFrameSplitOfferSuppressedById {
node_id: Uuid,
suppressed: bool,
},
ReplayUpdateNodeHistoryById {
node_id: Uuid,
entries: Vec<String>,
current_index: usize,
},
ReplaySetImportRecords {
import_records: Vec<ImportRecord>,
},
ReplaySetEdgesByIds {
from_id: Uuid,
to_id: Uuid,
edges: Vec<PersistedEdge>,
},
ReplaySetResourceRecordById {
resource_id: Uuid,
record: Option<PersistedResourceRecord>,
},
ReplaySetResourceEdgesByIds {
from_resource_id: Uuid,
to_resource_id: Uuid,
edges: Vec<PersistedEdge>,
},
ReplaySetShownResourceById {
surface_id: Uuid,
resource_id: Option<Uuid>,
},
ReplayTouchNodeLastVisitedById {
node_id: Uuid,
timestamp_ms: u64,
},
RetractRelations {
from: NodeKey,
to: NodeKey,
selector: RelationSelector,
},
AppendTraversal {
from: NodeKey,
to: NodeKey,
trigger: NavigationTrigger,
timestamp_ms: Option<u64>,
},
SetNodeTitle {
key: NodeKey,
title: String,
},
SetNodeUrl {
key: NodeKey,
new_url: String,
},
SetNodeImage {
key: NodeKey,
role: ImageRole,
image: ImageRef,
},
SetNodeMimeHint {
key: NodeKey,
mime_hint: Option<String>,
},
SetNodeContent {
key: NodeKey,
content: Option<ContentHash>,
},
SetNodeNested {
key: NodeKey,
nested: Option<LogId>,
},
SetNodePinned {
key: NodeKey,
is_pinned: bool,
},
SetNodeFacet {
key: NodeKey,
facet: String,
value: Value,
},
RemoveNodeFacet {
key: NodeKey,
facet: String,
},
AppendFrameLayoutHint {
key: NodeKey,
hint: FrameLayoutHint,
},
RemoveFrameLayoutHint {
key: NodeKey,
hint_index: usize,
},
MoveFrameLayoutHint {
key: NodeKey,
from_index: usize,
to_index: usize,
},
SetFrameSplitOfferSuppressed {
key: NodeKey,
suppressed: bool,
},
UpdateNodeHistory {
key: NodeKey,
entries: Vec<String>,
current_index: usize,
},
SetImportRecords {
import_records: Vec<ImportRecord>,
},
DeleteImportRecord {
record_id: String,
},
SetImportRecordMembershipSuppressed {
record_id: String,
key: NodeKey,
suppressed: bool,
},
SetNodeImportProvenance {
key: NodeKey,
import_provenance: Vec<NodeImportProvenance>,
},
TouchNodeLastVisited {
key: NodeKey,
},
NavigateNode {
key: NodeKey,
url: String,
},
BranchHistory {
child: NodeKey,
parent: NodeKey,
},
NodeHistoryBack {
key: NodeKey,
},
NodeHistoryForward {
key: NodeKey,
},
InsertNodeTag {
key: NodeKey,
tag: String,
},
RemoveNodeTag {
key: NodeKey,
tag: String,
},
SetNodeBody {
key: NodeKey,
body: Option<String>,
},
AppendNodeProperty {
key: NodeKey,
property: NodeProperty,
},
AddNodeClassification {
key: NodeKey,
classification: NodeClassification,
},
RemoveNodeClassification {
key: NodeKey,
scheme: ClassificationScheme,
value: String,
},
SetNodeClassificationStatus {
key: NodeKey,
scheme: ClassificationScheme,
value: String,
status: ClassificationStatus,
},
SetNodePrimaryClassification {
key: NodeKey,
scheme: ClassificationScheme,
value: String,
},
RecordNodeDerivation {
key: NodeKey,
derivation: NodeDerivation,
},
SetNodeTagIconOverride {
key: NodeKey,
tag: String,
icon: Option<BadgeIcon>,
},
AssertSemanticPredicate {
from: NodeKey,
to: NodeKey,
predicate: String,
asserter_iri: String,
},
ReplayAddField {
field: PersistedField,
},
ReplayRetireFieldById {
field_id: String,
},
ReplayRemoveFieldById {
field_id: String,
},
ReplayAddCoupling {
coupling: PersistedCoupling,
},
ReplaySetFieldCouplingStrengthByFieldId {
field_id: String,
strength: f32,
},
ReplayActivateFieldById {
field_id: String,
},
ReplayRetractCouplingById {
coupling_id: String,
},
AddField {
field: Field,
},
RetireField {
id: FieldId,
},
AddCoupling {
coupling: Coupling,
},
SetFieldCouplingStrength {
field: FieldId,
strength: f32,
},
ActivateField {
id: FieldId,
},
RetractCoupling {
id: CouplingId,
},
}Variants§
AddNode
Insert-if-missing, as replay does: an id already present keeps its node
and URL, records nothing, and the result carries that node’s key.
AssertRelation
RemoveNode
ReplayAddNodeWithIdIfMissing
ReplayAssertRelationByIds
ReplayRemoveNodeById
ReplayRetractRelationsByIds
ReplayAppendTraversalByIds
ReplaySetNodeTitleById
ReplaySetNodeUrlById
ReplaySetNodeImageById
ReplaySetNodeMimeHintById
ReplaySetNodeContentById
ReplaySetNodeNestedById
ReplaySetNodePinnedById
ReplaySetNodeFacetById
ReplayRemoveNodeFacetById
ReplayInsertNodeTagById
ReplayRemoveNodeTagById
ReplaySetNodeBodyById
ReplayBranchHistoryByIds
ReplayNodeHistoryBackById
ReplayNodeHistoryForwardById
ReplayAppendNodePropertyById
ReplayAddNodeClassificationById
ReplayRemoveNodeClassificationById
ReplaySetNodeClassificationStatusById
ReplaySetNodePrimaryClassificationById
ReplayRecordNodeDerivationById
ReplaySetNodeTagIconOverrideById
ReplaySetEdgeSemanticPredicateByIds
ReplayAssertSemanticPredicateByIds
ReplayAppendFrameLayoutHintById
ReplayRemoveFrameLayoutHintById
ReplayMoveFrameLayoutHintById
ReplaySetFrameSplitOfferSuppressedById
ReplayUpdateNodeHistoryById
ReplaySetImportRecords
Fields
import_records: Vec<ImportRecord>ReplaySetEdgesByIds
Replace every relation from one node to another with these, in persisted form: undo’s exact edge write.
ReplaySetResourceRecordById
ReplaySetResourceEdgesByIds
ReplaySetShownResourceById
ReplayTouchNodeLastVisitedById
RetractRelations
AppendTraversal
Append a traversal event to the from → to edge (creating the
edge if absent). timestamp_ms = None stamps now-via-the-kernel;
Some(t) uses the supplied timestamp (importers, replay).
SetNodeTitle
SetNodeUrl
SetNodeImage
Attach a stored image reference under a role. The host stores the blob first and passes the handle; no pixels travel through the delta spine (node-image externalization, phase 3).
SetNodeMimeHint
SetNodeContent
Attach a representation already deposited in a muniment blob store.
SetNodeNested
SetNodePinned
SetNodeFacet
Set one arbitrary, namespaced facet through the durable delta spine.
RemoveNodeFacet
Remove one arbitrary, namespaced facet through the durable delta spine.
AppendFrameLayoutHint
RemoveFrameLayoutHint
MoveFrameLayoutHint
SetFrameSplitOfferSuppressed
UpdateNodeHistory
Replace a node’s persisted navigation history (entries + current
index). The clamping rule is: current_index is treated as 0 when
entries is empty, otherwise it is clamped to entries.len() - 1.
Sole sanctioned write surface for Node::history; the underlying
Graph setter is pub(crate) so this delta is the only way to
mutate the field from outside kernel.
SetImportRecords
Replace the durable import-record table with a normalized whole-table snapshot.
Fields
import_records: Vec<ImportRecord>DeleteImportRecord
Delete one durable import record by id.
SetImportRecordMembershipSuppressed
Suppress or unsuppress one node membership within an import record.
SetNodeImportProvenance
Replace one node’s import provenance; the kernel rebuilds import records from it.
TouchNodeLastVisited
Stamp one node’s last-visited clock from the kernel clock.
Navigate a node in place: record the visit in its own browse history and update its Primary URL. No new node, no edge.
BranchHistory
Anchor a freshly-minted child node’s history under parent’s current
visit (the navigated-from anchor; call before the child’s first navigate).
NodeHistoryBack
Step a node back one visit in its own history (result:
GraphDeltaResult::HistoryStepped carries the revealed URL).
NodeHistoryForward
Step a node forward one visit in its own history.
InsertNodeTag
Add a durable semantic tag (also appends to the presentation order).
RemoveNodeTag
Remove a durable semantic tag (also drops its presentation entries).
SetNodeBody
Set (or clear) a node’s inline authored content body (knot note source).
AppendNodeProperty
Append an open literal property (dedup by exact predicate+value pair).
AddNodeClassification
Add a provenance-bearing classification record (dedup by scheme+value).
RemoveNodeClassification
Remove a classification record identified by (scheme, value).
SetNodeClassificationStatus
Update the status of a classification record identified by (scheme, value).
SetNodePrimaryClassification
Promote one classification record to primary within its scheme.
RecordNodeDerivation
Record cross-graph / extraction derivation provenance on a node.
SetNodeTagIconOverride
Set or clear a tag-icon override for a durable user tag.
AssertSemanticPredicate
Assert a plain semantic edge carrying a raw predicate IRI (the unrecognized-predicate ingest path), creating the edge if absent.
ReplayAddField
Fields
field: PersistedFieldReplayRetireFieldById
ReplayRemoveFieldById
Remove a field outright: undo’s inverse of adding one.
ReplayAddCoupling
Fields
coupling: PersistedCouplingReplaySetFieldCouplingStrengthByFieldId
ReplayActivateFieldById
ReplayRetractCouplingById
AddField
Add (or replace by id) a field — field-layer truth.
RetireField
Retire a field (lifecycle to Retired; couplings stop evaluating).
AddCoupling
Add (or replace by id) a coupling binding a field to a node selector.
SetFieldCouplingStrength
Set the strength of every coupling bound to field.
ActivateField
Reactivate a retired field.
RetractCoupling
Remove one coupling binding by id.
Fields
id: CouplingIdTrait Implementations§
Source§impl Clone for GraphDelta
impl Clone for GraphDelta
Auto Trait Implementations§
impl Freeze for GraphDelta
impl RefUnwindSafe for GraphDelta
impl Send for GraphDelta
impl Sync for GraphDelta
impl Unpin for GraphDelta
impl UnsafeUnpin for GraphDelta
impl UnwindSafe for GraphDelta
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.