pub struct EventSpec {
pub op: &'static str,
pub target: String,
pub node_type: Option<&'static str>,
pub body: Map<String, Value>,
pub base_event: Option<String>,
}Expand description
One event to sign and queue.
Fields§
§op: &'static strnode.add, field.set, edge.add or retract.
target: String§node_type: Option<&'static str>For node.add: page, section or note.
body: Map<String, Value>The body without body_nonce.
base_event: Option<String>The head this write was built on (CAS-checked fields only).
Trait Implementations§
impl StructuralPartialEq for EventSpec
Auto Trait Implementations§
impl Forget for EventSpec
impl Freeze for EventSpec
impl Move for EventSpec
impl RefUnwindSafe for EventSpec
impl Send for EventSpec
impl Sync for EventSpec
impl Unpin for EventSpec
impl UnsafeUnpin for EventSpec
impl UnwindSafe for EventSpec
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