1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// #[derive(Debug, Clone)]
// pub enum NodeType {
// RootHost, // Initial seed URL domain
// Endpoint, // Same-domain URL
// ExternalHost, // Different domain discovered
// }
// #[derive(Debug, Clone)]
// pub enum EdgeType {
// Navigation, // Standard link
// Reference, // Cross-domain link
// Redirect, // HTTP 301/302
// FormAction, // Form target
// ApiCall, // AJAX endpoint
// Resource, // CSS/JS/image
// }
// #[derive(Debug)]
// pub struct Node {
// pub id: i64,
// pub map_id: String,
// pub url: String,
// pub domain: String,
// pub node_type: NodeType,
// pub status: String,
// pub depth: u32,
// pub response_code: Option<u16>,
// pub title: Option<String>,
// // ... etc
// }
//
// #[derive(Debug)]
// pub struct Edge {
// pub id: i64,
// pub map_id: String,
// pub source_node_id: i64,
// pub target_node_id: i64,
// pub edge_type: EdgeType,
// pub link_text: Option<String>,
// pub weight: f32,
// }