Create a new node with the minimum required fields.
(
id: impl Into<String>,
kind: NodeKind,
timestamp: i64,
summary: impl Into<String>,
)
| 280 | impl GraphNode { |
| 281 | /// Create a new node with the minimum required fields. |
| 282 | pub fn new( |
| 283 | id: impl Into<String>, |
| 284 | kind: NodeKind, |
| 285 | timestamp: i64, |
| 286 | summary: impl Into<String>, |
| 287 | ) -> Self { |
| 288 | Self { |
| 289 | id: id.into(), |
| 290 | kind, |
| 291 | timestamp, |
| 292 | summary: summary.into(), |
| 293 | detail: None, |
| 294 | change_hash: None, |
| 295 | tool_name: None, |
| 296 | tool_call_id: None, |
| 297 | duration_ms: None, |
| 298 | classified: false, |
| 299 | confidence: None, |
| 300 | consolidated_from: Vec::new(), |
| 301 | } |
| 302 | } |
| 303 | |
| 304 | /// Set the detail field. |
| 305 | pub fn with_detail(mut self, detail: serde_json::Value) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected