pub enum ArborEvent {
Show 30 variants
TreeCreated {
tree_id: TreeId,
},
TreeDeleted {
tree_id: TreeId,
},
TreeUpdated {
tree_id: TreeId,
},
TreeList {
tree_ids: Vec<TreeId>,
},
TreeClaimed {
tree_id: TreeId,
owner_id: String,
new_count: i64,
},
TreeReleased {
tree_id: TreeId,
owner_id: String,
new_count: i64,
},
TreeScheduledDeletion {
tree_id: TreeId,
scheduled_at: i64,
},
TreeArchived {
tree_id: TreeId,
archived_at: i64,
},
TreeRefs {
tree_id: TreeId,
refs: ResourceRefs,
},
NodeCreated {
tree_id: TreeId,
node_id: NodeId,
parent: Option<NodeId>,
},
NodeUpdated {
tree_id: TreeId,
old_id: NodeId,
new_id: NodeId,
},
NodeDeleted {
tree_id: TreeId,
node_id: NodeId,
},
NodeClaimed {
tree_id: TreeId,
node_id: NodeId,
owner_id: String,
new_count: i64,
},
NodeReleased {
tree_id: TreeId,
node_id: NodeId,
owner_id: String,
new_count: i64,
},
NodeScheduledDeletion {
tree_id: TreeId,
node_id: NodeId,
scheduled_at: i64,
},
NodeArchived {
tree_id: TreeId,
node_id: NodeId,
archived_at: i64,
},
NodeRefs {
tree_id: TreeId,
node_id: NodeId,
refs: ResourceRefs,
},
TreeData {
tree: Tree,
},
TreeSkeleton {
skeleton: TreeSkeleton,
},
NodeData {
tree_id: TreeId,
node: Node,
},
NodeChildren {
tree_id: TreeId,
node_id: NodeId,
children: Vec<NodeId>,
},
NodeParent {
tree_id: TreeId,
node_id: NodeId,
parent: Option<NodeId>,
},
ContextPath {
tree_id: TreeId,
path: Vec<NodeId>,
},
ContextPathData {
tree_id: TreeId,
nodes: Vec<Node>,
},
ContextHandles {
tree_id: TreeId,
handles: Vec<Handle>,
},
ContextLeaves {
tree_id: TreeId,
leaves: Vec<NodeId>,
},
TreesScheduled {
tree_ids: Vec<TreeId>,
},
NodesScheduled {
tree_id: TreeId,
node_ids: Vec<NodeId>,
},
TreesArchived {
tree_ids: Vec<TreeId>,
},
TreeRender {
tree_id: TreeId,
render: String,
},
}Expand description
Events emitted by Arbor operations
Variants§
TreeCreated
TreeDeleted
TreeUpdated
TreeList
TreeClaimed
TreeReleased
TreeScheduledDeletion
TreeArchived
TreeRefs
NodeCreated
NodeUpdated
NodeDeleted
NodeClaimed
NodeReleased
NodeScheduledDeletion
NodeArchived
NodeRefs
TreeData
TreeSkeleton
Fields
§
skeleton: TreeSkeletonNodeData
NodeChildren
NodeParent
ContextPath
ContextPathData
ContextHandles
ContextLeaves
TreesScheduled
NodesScheduled
TreesArchived
TreeRender
Trait Implementations§
Source§impl Clone for ArborEvent
impl Clone for ArborEvent
Source§fn clone(&self) -> ArborEvent
fn clone(&self) -> ArborEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArborEvent
impl Debug for ArborEvent
Source§impl<'de> Deserialize<'de> for ArborEvent
impl<'de> Deserialize<'de> for ArborEvent
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ArborEvent
impl JsonSchema for ArborEvent
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ArborEvent
impl RefUnwindSafe for ArborEvent
impl Send for ArborEvent
impl Sync for ArborEvent
impl Unpin for ArborEvent
impl UnsafeUnpin for ArborEvent
impl UnwindSafe for ArborEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more