@@ -79,8 +79,7 @@ pub enum TimetablesCommands {
79
79
Export ( ExportTimetableArgs ) ,
80
80
}
81
81
82
- #[ derive( Args , Debug , Derivative ) ]
83
- #[ derivative( Default ) ]
82
+ #[ derive( Args , Debug ) ]
84
83
#[ command( about, long_about = "Import a train schedule given a JSON file" ) ]
85
84
pub struct ImportTimetableArgs {
86
85
/// The timetable id on which attach the trains to
@@ -90,8 +89,7 @@ pub struct ImportTimetableArgs {
90
89
pub path : PathBuf ,
91
90
}
92
91
93
- #[ derive( Args , Debug , Derivative ) ]
94
- #[ derivative( Default ) ]
92
+ #[ derive( Args , Debug ) ]
95
93
#[ command( about, long_about = "Export the train schedules of a given timetable" ) ]
96
94
pub struct ExportTimetableArgs {
97
95
/// The timetable id on which get the train schedules from
@@ -134,25 +132,19 @@ pub struct MapLayersConfig {
134
132
pub max_tiles : u64 ,
135
133
}
136
134
137
- #[ derive( Args , Debug , Derivative ) ]
138
- #[ derivative( Default ) ]
135
+ #[ derive( Args , Debug ) ]
139
136
#[ command( about, long_about = "Launch the server" ) ]
140
137
pub struct RunserverArgs {
141
138
#[ command( flatten) ]
142
139
pub map_layers_config : MapLayersConfig ,
143
- #[ derivative( Default ( value = "8090" ) ) ]
144
140
#[ arg( long, env = "EDITOAST_PORT" , default_value_t = 8090 ) ]
145
141
pub port : u16 ,
146
- #[ derivative( Default ( value = r#""0.0.0.0".into()"# ) ) ]
147
142
#[ arg( long, env = "EDITOAST_ADDRESS" , default_value_t = String :: from( "0.0.0.0" ) ) ]
148
143
pub address : String ,
149
- #[ derivative( Default ( value = r#""amqp://osrd:[email protected] :5672/%2f".into()"# ) ) ]
150
144
#[ clap( long, env = "OSRD_MQ_URL" , default_value_t = String :: from( "amqp://osrd:[email protected] :5672/%2f" ) ) ]
151
145
pub mq_url : String ,
152
- #[ derivative( Default ( value = "180" ) ) ]
153
146
#[ clap( long, env = "EDITOAST_CORE_TIMEOUT" , default_value_t = 180 ) ]
154
147
pub core_timeout : u64 ,
155
- #[ derivative( Default ( value = r#""".into()"# ) ) ]
156
148
#[ clap( long, env = "ROOT_PATH" , default_value_t = String :: new( ) ) ]
157
149
pub root_path : String ,
158
150
#[ clap( long) ]
@@ -164,11 +156,9 @@ pub struct RunserverArgs {
164
156
// only recieve 401 responses.
165
157
#[ clap( long, env = "EDITOAST_SUPERUSER" , default_value_t = true ) ]
166
158
pub superuser : bool ,
167
- #[ derivative( Default ( value = r#""http://127.0.0.1:4242/".into()"# ) ) ]
168
159
#[ clap( long, env = "OSRDYNE_API_URL" , default_value_t = String :: from( "http://127.0.0.1:4242/" ) ) ]
169
160
pub osrdyne_api_url : String ,
170
161
/// The timeout to use when performing the healthcheck, in milliseconds
171
- #[ derivative( Default ( value = "500" ) ) ]
172
162
#[ clap( long, env = "EDITOAST_HEALTH_CHECK_TIMEOUT_MS" , default_value_t = 500 ) ]
173
163
pub health_check_timeout_ms : u64 ,
174
164
}
0 commit comments