@@ -27,26 +27,48 @@ impl editoast_search::SearchObject for Track {
27
27
editoast_search ::SearchConfig {
28
28
table : " search_track" .to_owned (),
29
29
joins : None ,
30
- criterias : vec ! [
31
- editoast_search ::Criteria { name : " infra_id" .to_owned (), data_type :
32
- editoast_search ::TypeSpec ::Type (editoast_search ::AstType ::Integer ),
33
- migration : None , }, editoast_search ::Criteria { name : " line_code"
34
- .to_owned (), data_type :
35
- editoast_search ::TypeSpec ::Type (editoast_search ::AstType ::Integer ),
36
- migration : None , }, editoast_search ::Criteria { name : " line_name"
37
- .to_owned (), data_type :
38
- editoast_search ::TypeSpec ::Type (editoast_search ::AstType ::String ),
39
- migration : None , }
40
- ],
41
- properties : vec ! [
42
- editoast_search ::Property { name : " infra_id" .to_owned (), sql :
43
- " search_track.infra_id" .to_owned (), data_type : None , },
44
- editoast_search ::Property { name : " line_name" .to_owned (), sql :
45
- " search_track.unprocessed_line_name" .to_owned (), data_type :
46
- Some (editoast_search ::TypeSpec ::Type (editoast_search ::AstType ::String )),
47
- }, editoast_search ::Property { name : " code" .to_owned (), sql :
48
- " search_track.line_code" .to_owned (), data_type : None , }
49
- ],
30
+ criterias : Vec ::from ([
31
+ editoast_search ::Criteria {
32
+ name: " infra_id" .to_owned (),
33
+ data_type: editoast_search ::TypeSpec ::Type (
34
+ editoast_search ::AstType ::Integer ,
35
+ ),
36
+ migration: None ,
37
+ },
38
+ editoast_search ::Criteria {
39
+ name: " line_code" .to_owned (),
40
+ data_type: editoast_search ::TypeSpec ::Type (
41
+ editoast_search ::AstType ::Integer ,
42
+ ),
43
+ migration: None ,
44
+ },
45
+ editoast_search ::Criteria {
46
+ name: " line_name" .to_owned (),
47
+ data_type: editoast_search ::TypeSpec ::Type (
48
+ editoast_search ::AstType ::String ,
49
+ ),
50
+ migration: None ,
51
+ },
52
+ ]),
53
+ properties : Vec ::from ([
54
+ editoast_search ::Property {
55
+ name: " infra_id" .to_owned (),
56
+ sql: " search_track.infra_id" .to_owned (),
57
+ data_type: None ,
58
+ },
59
+ editoast_search ::Property {
60
+ name: " line_name" .to_owned (),
61
+ sql: " search_track.unprocessed_line_name" .to_owned (),
62
+ data_type: Some (
63
+ editoast_search ::TypeSpec ::Type (editoast_search ::AstType ::String ),
64
+ ),
65
+ },
66
+ editoast_search ::Property {
67
+ name: " code" .to_owned (),
68
+ sql: " search_track.line_code" .to_owned (),
69
+ data_type: None ,
70
+ },
71
+ ]),
50
72
migration : None ,
51
73
}
52
74
}
0 commit comments