Skip to main content

GraphDelta

Enum GraphDelta 

Source
pub enum GraphDelta {
Show 89 variants AddNode { id: Option<Uuid>, url: String, position: Point2D<f32>, }, AssertRelation { from: NodeKey, to: NodeKey, assertion: EdgeAssertion, }, RemoveNode { key: NodeKey, }, ReplayAddNodeWithIdIfMissing { id: Uuid, url: String, position: Point2D<f32>, }, ReplayAssertRelationByIds { from_id: Uuid, to_id: Uuid, assertion: EdgeAssertion, }, 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>, }, ReplayAssertSemanticPredicateByIds { from_id: Uuid, to_id: Uuid, predicate: 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>, }, 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>, }, SetEdgeSemanticPredicate { edge: EdgeKey, predicate: Option<String>, }, AssertSemanticPredicate { from: NodeKey, to: NodeKey, predicate: String, }, ReplayAddField { field: PersistedField, }, ReplayRetireFieldById { 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

Fields

§position: Point2D<f32>
§

AssertRelation

Fields

§from: NodeKey
§assertion: EdgeAssertion
§

RemoveNode

Fields

§

ReplayAddNodeWithIdIfMissing

Fields

§id: Uuid
§position: Point2D<f32>
§

ReplayAssertRelationByIds

Fields

§from_id: Uuid
§to_id: Uuid
§assertion: EdgeAssertion
§

ReplayRemoveNodeById

Fields

§node_id: Uuid
§

ReplayRetractRelationsByIds

Fields

§from_id: Uuid
§to_id: Uuid
§

ReplayAppendTraversalByIds

Fields

§from_id: Uuid
§to_id: Uuid
§timestamp_ms: u64
§

ReplaySetNodeTitleById

Fields

§node_id: Uuid
§title: String
§

ReplaySetNodeUrlById

Fields

§node_id: Uuid
§new_url: String
§

ReplaySetNodeImageById

Fields

§node_id: Uuid
§image: ImageRef
§

ReplaySetNodeMimeHintById

Fields

§node_id: Uuid
§mime_hint: Option<String>
§

ReplaySetNodeContentById

Fields

§node_id: Uuid
§

ReplaySetNodeNestedById

Fields

§node_id: Uuid
§nested: Option<String>
§

ReplaySetNodePinnedById

Fields

§node_id: Uuid
§is_pinned: bool
§

ReplaySetNodeFacetById

Fields

§node_id: Uuid
§facet: String
§value: Value
§

ReplayRemoveNodeFacetById

Fields

§node_id: Uuid
§facet: String
§

ReplayInsertNodeTagById

Fields

§node_id: Uuid
§

ReplayRemoveNodeTagById

Fields

§node_id: Uuid
§

ReplaySetNodeBodyById

Fields

§node_id: Uuid
§

ReplayNavigateNodeById

Fields

§node_id: Uuid
§transition: TransitionKind
§timestamp_ms: u64
§last_session_visited: u64
§

ReplayBranchHistoryByIds

Fields

§child_id: Uuid
§parent_id: Uuid
§

ReplayNodeHistoryBackById

Fields

§node_id: Uuid
§timestamp_ms: u64
§

ReplayNodeHistoryForwardById

Fields

§node_id: Uuid
§timestamp_ms: u64
§

ReplayAppendNodePropertyById

Fields

§node_id: Uuid
§property: NodeProperty
§

ReplayAddNodeClassificationById

Fields

§node_id: Uuid
§classification: NodeClassification
§

ReplayRemoveNodeClassificationById

Fields

§node_id: Uuid
§value: String
§

ReplaySetNodeClassificationStatusById

§

ReplaySetNodePrimaryClassificationById

Fields

§node_id: Uuid
§value: String
§

ReplayRecordNodeDerivationById

Fields

§node_id: Uuid
§derivation: NodeDerivation
§

ReplaySetNodeTagIconOverrideById

Fields

§node_id: Uuid
§

ReplaySetEdgeSemanticPredicateByIds

Fields

§from_id: Uuid
§to_id: Uuid
§predicate: Option<String>
§

ReplayAssertSemanticPredicateByIds

Fields

§from_id: Uuid
§to_id: Uuid
§predicate: String
§

ReplayAppendFrameLayoutHintById

Fields

§node_id: Uuid
§

ReplayRemoveFrameLayoutHintById

Fields

§node_id: Uuid
§hint_index: usize
§

ReplayMoveFrameLayoutHintById

Fields

§node_id: Uuid
§from_index: usize
§to_index: usize
§

ReplaySetFrameSplitOfferSuppressedById

Fields

§node_id: Uuid
§suppressed: bool
§

ReplayUpdateNodeHistoryById

Fields

§node_id: Uuid
§entries: Vec<String>
§current_index: usize
§

ReplaySetImportRecords

Fields

§import_records: Vec<ImportRecord>
§

ReplayTouchNodeLastVisitedById

Fields

§node_id: Uuid
§timestamp_ms: u64
§

RetractRelations

Fields

§from: NodeKey
§

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).

Fields

§from: NodeKey
§timestamp_ms: Option<u64>
§

SetNodeTitle

Fields

§title: String
§

SetNodeUrl

Fields

§new_url: String
§

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).

Fields

§image: ImageRef
§

SetNodeMimeHint

Fields

§mime_hint: Option<String>
§

SetNodeContent

Attach a representation already deposited in a muniment blob store.

Fields

§

SetNodeNested

Fields

§nested: Option<LogId>
§

SetNodePinned

Fields

§is_pinned: bool
§

SetNodeFacet

Set one arbitrary, namespaced facet through the durable delta spine.

Fields

§facet: String
§value: Value
§

RemoveNodeFacet

Remove one arbitrary, namespaced facet through the durable delta spine.

Fields

§facet: String
§

AppendFrameLayoutHint

§

RemoveFrameLayoutHint

Fields

§hint_index: usize
§

MoveFrameLayoutHint

Fields

§from_index: usize
§to_index: usize
§

SetFrameSplitOfferSuppressed

Fields

§suppressed: bool
§

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.

Fields

§entries: Vec<String>
§current_index: usize
§

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.

Fields

§record_id: String
§

SetImportRecordMembershipSuppressed

Suppress or unsuppress one node membership within an import record.

Fields

§record_id: String
§suppressed: bool
§

SetNodeImportProvenance

Replace one node’s import provenance; the kernel rebuilds import records from it.

Fields

§import_provenance: Vec<NodeImportProvenance>
§

TouchNodeLastVisited

Stamp one node’s last-visited clock from the kernel clock.

Fields

§

NavigateNode

Navigate a node in place: record the visit in its own browse history and update its Primary URL. No new node, no edge.

Fields

§

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).

Fields

§child: NodeKey
§parent: NodeKey
§

NodeHistoryBack

Step a node back one visit in its own history (result: GraphDeltaResult::HistoryStepped carries the revealed URL).

Fields

§

NodeHistoryForward

Step a node forward one visit in its own history.

Fields

§

InsertNodeTag

Add a durable semantic tag (also appends to the presentation order).

Fields

§

RemoveNodeTag

Remove a durable semantic tag (also drops its presentation entries).

Fields

§

SetNodeBody

Set (or clear) a node’s inline authored content body (knot note source).

Fields

§

AppendNodeProperty

Append an open literal property (dedup by exact predicate+value pair).

Fields

§property: NodeProperty
§

AddNodeClassification

Add a provenance-bearing classification record (dedup by scheme+value).

Fields

§classification: NodeClassification
§

RemoveNodeClassification

Remove a classification record identified by (scheme, value).

Fields

§value: String
§

SetNodeClassificationStatus

Update the status of a classification record identified by (scheme, value).

§

SetNodePrimaryClassification

Promote one classification record to primary within its scheme.

Fields

§value: String
§

RecordNodeDerivation

Record cross-graph / extraction derivation provenance on a node.

Fields

§derivation: NodeDerivation
§

SetNodeTagIconOverride

Set or clear a tag-icon override for a durable user tag.

Fields

§

SetEdgeSemanticPredicate

Set (or clear) the canonical semantic-predicate IRI on an existing edge.

Fields

§edge: EdgeKey
§predicate: Option<String>
§

AssertSemanticPredicate

Assert a plain semantic edge carrying a raw predicate IRI (the unrecognized-predicate ingest path), creating the edge if absent.

Fields

§from: NodeKey
§predicate: String
§

ReplayAddField

Fields

§

ReplayRetireFieldById

Fields

§field_id: String
§

ReplayAddCoupling

Fields

§

ReplaySetFieldCouplingStrengthByFieldId

Fields

§field_id: String
§strength: f32
§

ReplayActivateFieldById

Fields

§field_id: String
§

ReplayRetractCouplingById

Fields

§coupling_id: String
§

AddField

Add (or replace by id) a field — field-layer truth.

Fields

§field: Field
§

RetireField

Retire a field (lifecycle to Retired; couplings stop evaluating).

Fields

§

AddCoupling

Add (or replace by id) a coupling binding a field to a node selector.

Fields

§coupling: Coupling
§

SetFieldCouplingStrength

Set the strength of every coupling bound to field.

Fields

§field: FieldId
§strength: f32
§

ActivateField

Reactivate a retired field.

Fields

§

RetractCoupling

Remove one coupling binding by id.

Fields

Trait Implementations§

Source§

impl Clone for GraphDelta

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GraphDelta

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Returns the layout of the type.
Source§

impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
where T: SharedNiching<N1, N2>, N1: Niching<T>, N2: Niching<T>,

Source§

unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool

Returns whether the given value has been niched. Read more
Source§

fn resolve_niched(out: Place<NichedOption<T, N1>>)

Writes data to out indicating that a T is niched.
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The metadata type for pointers and references to this type.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.