pub struct Node {
pub id: String,
pub title: String,
pub status: NodeStatus,
pub description: Option<String>,
pub assigned_to: Option<String>,
pub tags: Vec<String>,
pub priority: Option<u8>,
pub node_type: Option<String>,
pub knowledge: KnowledgeNode,
pub metadata: HashMap<String, Value>,
}Expand description
A node in the graph (task, code file, component, etc.)
Fields§
§id: String§title: String§status: NodeStatus§description: Option<String>§assigned_to: Option<String>§priority: Option<u8>§node_type: Option<String>Node type: task, file, component, feature, layer, etc.
knowledge: KnowledgeNodeKnowledge storage: findings, file cache, and tool history.
metadata: HashMap<String, Value>Additional metadata.
Implementations§
Source§impl Node
impl Node
pub fn new(id: &str, title: &str) -> Self
pub fn with_description(self, desc: &str) -> Self
pub fn with_status(self, status: NodeStatus) -> Self
pub fn with_priority(self, priority: u8) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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
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