pub enum DocEvent {
NodeAdd {
seq: u64,
node: String,
node_type: String,
slug: Option<String>,
},
SlugSet {
seq: u64,
node: String,
slug: String,
},
EdgeAdd {
seq: u64,
edge: String,
kind: String,
from: String,
to: String,
},
Retract {
seq: u64,
target: String,
},
Restore {
seq: u64,
target: String,
},
}Expand description
The doc-relevant part of one place event, in log order.
Variants§
NodeAdd
node.add of a page (with its slug), section or note.
SlugSet
field.set slug of a page (other fields do not change membership).
EdgeAdd
edge.add of kind part_of or about.
Retract
retract of a node or an edge.
Restore
restore of a node or an edge.
Trait Implementations§
impl Eq for DocEvent
impl StructuralPartialEq for DocEvent
Auto Trait Implementations§
impl Forget for DocEvent
impl Freeze for DocEvent
impl Move for DocEvent
impl RefUnwindSafe for DocEvent
impl Send for DocEvent
impl Sync for DocEvent
impl Unpin for DocEvent
impl UnsafeUnpin for DocEvent
impl UnwindSafe for DocEvent
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