pub enum NodeAuditEventKind {
TitleChanged {
new_title: String,
},
Tagged {
tag: String,
},
Untagged {
tag: String,
},
Pinned,
Unpinned,
UrlChanged {
new_url: String,
},
ActionRecorded {
action: String,
detail: String,
},
Tombstoned,
Restored,
}Expand description
The kind of node metadata or lifecycle event recorded in an audit log entry.
Each variant carries only the new value (not the old one). The sequence of audit events in the WAL provides the full history; diffing adjacent entries to recover the “from” value is a query-time operation.
Promoted to kernel in Slice 63 so it can travel with the rest
of the persistence type taxonomy and be referenced by the (eventually
portable) GraphMutation / GraphIntent enums without needing the
shell-side services/persistence module in scope.
Variants§
TitleChanged
Node title was changed. Records the new title.
Tagged
A tag was added to the node.
Untagged
A tag was removed from the node.
Pinned
Node was pinned.
Unpinned
Node was unpinned.
UrlChanged
Node URL was changed out-of-band (not via NavigateNode navigation). Used when a node’s URL is set directly rather than through navigation.
ActionRecorded
A viewer or workflow recorded a notable node-scoped action.
Tombstoned
Node was tombstoned (soft-deleted).
Restored
Node was restored from tombstone state.
Trait Implementations§
Source§impl Archive for NodeAuditEventKind
impl Archive for NodeAuditEventKind
Source§type Archived = ArchivedNodeAuditEventKind
type Archived = ArchivedNodeAuditEventKind
Source§type Resolver = NodeAuditEventKindResolver
type Resolver = NodeAuditEventKindResolver
Source§fn resolve(
&self,
resolver: <Self as Archive>::Resolver,
out: Place<<Self as Archive>::Archived>,
)
fn resolve( &self, resolver: <Self as Archive>::Resolver, out: Place<<Self as Archive>::Archived>, )
Source§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
serialize. Read moreSource§impl Clone for NodeAuditEventKind
impl Clone for NodeAuditEventKind
Source§impl Debug for NodeAuditEventKind
impl Debug for NodeAuditEventKind
Source§impl<'de> Deserialize<'de> for NodeAuditEventKind
impl<'de> Deserialize<'de> for NodeAuditEventKind
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>,
Source§impl<__D: Fallible + ?Sized> Deserialize<NodeAuditEventKind, __D> for Archived<NodeAuditEventKind>
impl<__D: Fallible + ?Sized> Deserialize<NodeAuditEventKind, __D> for Archived<NodeAuditEventKind>
Source§fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<NodeAuditEventKind, <__D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<NodeAuditEventKind, <__D as Fallible>::Error>
impl Eq for NodeAuditEventKind
Source§impl PartialEq for NodeAuditEventKind
impl PartialEq for NodeAuditEventKind
Source§impl Serialize for NodeAuditEventKind
impl Serialize for NodeAuditEventKind
impl StructuralPartialEq for NodeAuditEventKind
Auto Trait Implementations§
impl Freeze for NodeAuditEventKind
impl RefUnwindSafe for NodeAuditEventKind
impl Send for NodeAuditEventKind
impl Sync for NodeAuditEventKind
impl Unpin for NodeAuditEventKind
impl UnsafeUnpin for NodeAuditEventKind
impl UnwindSafe for NodeAuditEventKind
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> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere
T: Archive,
Source§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
Archive, it may be
unsized. Read moreSource§fn archived_metadata(
&self,
) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
fn archived_metadata( &self, ) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
impl<T> MemoryPayload for T
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.