pub enum ArborMethod {
Show 19 variants
TreeCreate {
metadata: Option<Value>,
owner_id: String,
},
TreeGet {
tree_id: TreeId,
},
TreeGetSkeleton {
tree_id: TreeId,
},
TreeList,
TreeUpdateMetadata {
tree_id: TreeId,
metadata: Value,
},
TreeClaim {
tree_id: TreeId,
owner_id: String,
count: i64,
},
TreeRelease {
tree_id: TreeId,
owner_id: String,
count: i64,
},
TreeListScheduled,
TreeListArchived,
NodeCreateText {
tree_id: TreeId,
parent: Option<NodeId>,
content: String,
metadata: Option<Value>,
},
NodeCreateExternal {
tree_id: TreeId,
parent: Option<NodeId>,
handle: Handle,
metadata: Option<Value>,
},
NodeGet {
tree_id: TreeId,
node_id: NodeId,
},
NodeGetChildren {
tree_id: TreeId,
node_id: NodeId,
},
NodeGetParent {
tree_id: TreeId,
node_id: NodeId,
},
NodeGetPath {
tree_id: TreeId,
node_id: NodeId,
},
ContextListLeaves {
tree_id: TreeId,
},
ContextGetPath {
tree_id: TreeId,
node_id: NodeId,
},
ContextGetHandles {
tree_id: TreeId,
node_id: NodeId,
},
TreeRender {
tree_id: TreeId,
},
}Expand description
Auto-generated method enum for schema extraction
Variants§
TreeCreate
Create a new conversation tree
TreeGet
Retrieve a complete tree with all nodes
TreeGetSkeleton
Get lightweight tree structure without node data
TreeList
List all active trees
TreeUpdateMetadata
Update tree metadata
TreeClaim
Claim ownership of a tree (increment reference count)
TreeRelease
Release ownership of a tree (decrement reference count)
TreeListScheduled
List trees scheduled for deletion
TreeListArchived
List archived trees
NodeCreateText
Create a text node in a tree
NodeCreateExternal
Create an external node in a tree
NodeGet
Get a node by ID
NodeGetChildren
Get the children of a node
NodeGetParent
Get the parent of a node
NodeGetPath
Get the path from root to a node
ContextListLeaves
List all leaf nodes in a tree
ContextGetPath
Get the full path data from root to a node
ContextGetHandles
Get all external handles in the path to a node
TreeRender
Render tree as text visualization If parent context is available, automatically resolves handles to show actual content. Otherwise, shows handle references.
Implementations§
Source§impl ArborMethod
impl ArborMethod
pub fn all_method_names() -> &'static [&'static str]
Source§impl ArborMethod
impl ArborMethod
Sourcepub fn method_schemas() -> Vec<MethodSchema>
pub fn method_schemas() -> Vec<MethodSchema>
Get per-method schema info including params, return types, and content hashes
Note: This method has O(1) schema lookup cost after first call due to caching.
Trait Implementations§
Source§impl Clone for ArborMethod
impl Clone for ArborMethod
Source§fn clone(&self) -> ArborMethod
fn clone(&self) -> ArborMethod
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ArborMethod
impl Debug for ArborMethod
Source§impl<'de> Deserialize<'de> for ArborMethod
impl<'de> Deserialize<'de> for ArborMethod
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 JsonSchema for ArborMethod
impl JsonSchema for ArborMethod
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl MethodEnumSchema for ArborMethod
impl MethodEnumSchema for ArborMethod
Source§fn method_names() -> &'static [&'static str]
fn method_names() -> &'static [&'static str]
Source§fn schema_with_consts() -> Value
fn schema_with_consts() -> Value
Auto Trait Implementations§
impl Freeze for ArborMethod
impl RefUnwindSafe for ArborMethod
impl Send for ArborMethod
impl Sync for ArborMethod
impl Unpin for ArborMethod
impl UnsafeUnpin for ArborMethod
impl UnwindSafe for ArborMethod
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
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>
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>
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