-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsearch.rs
More file actions
28 lines (26 loc) · 980 Bytes
/
search.rs
File metadata and controls
28 lines (26 loc) · 980 Bytes
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
use super::prelude::*;
use chrono::Utc;
/// This function searches through all available Nodes and returns a NodeContainer containing all Nodes available for the inferred environment.
pub fn search(query: String) -> Vec<Node> {
// TODO: implement search function here and add a node container parameter to infer the
// environment
//
// TODO: remove this:
let mut c = Vec::<Node>::new();
// c.push(
// NodeBuilder::default()
// .name("test_code_node".to_string())
// .params(vec![])
// .kind(NodeKind::Code {
// code: "fn main() { println!(\"Hello, world!\"); }".to_string(),
// })
// .description("A simple code node".to_string())
// .author("Author".to_string())
// .compiled(None)
// .environment(Environment { deps: vec![] })
// .date(Utc::now())
// .build()
// .unwrap(),
// );
c
}