pub struct Node {
pub id: NodeId,
pub parent: Option<NodeId>,
pub depth: u32,
pub agent_path: String,
pub status: NodeStatus,
pub tokens: u64,
pub children: Vec<NodeId>,
}Fields§
§id: NodeId§parent: Option<NodeId>§depth: u32§agent_path: StringDotted tree path for log correlation (0, 0.2, 0.2.1).
status: NodeStatus§tokens: u64Tokens charged to this node alone.
children: Vec<NodeId>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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