File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -217,20 +217,16 @@ impl fmt::Display for ChannelReport {
217
217
218
218
pub mod channel_list {
219
219
use crate :: ValidatorId ;
220
- use chrono:: { DateTime , Utc , serde:: ts_seconds} ;
221
- use serde:: Deserialize ;
220
+ use chrono:: { serde:: ts_seconds, DateTime , Utc } ;
221
+ use serde:: { Deserialize , Serialize } ;
222
222
223
223
#[ derive( Debug , Serialize , Deserialize ) ]
224
224
pub struct ChannelListQuery {
225
225
#[ serde( default = "default_page" ) ]
226
226
pub page : u64 ,
227
227
/// filters the list on `valid_until >= valid_until_ge`
228
228
/// It should be the same timestamp format as the `Channel.valid_until`: **seconds**
229
- #[ serde(
230
- with = "ts_seconds" ,
231
- default = "Utc::now" ,
232
- rename = "validUntil"
233
- ) ]
229
+ #[ serde( with = "ts_seconds" , default = "Utc::now" , rename = "validUntil" ) ]
234
230
pub valid_until_ge : DateTime < Utc > ,
235
231
pub creator : Option < String > ,
236
232
/// filters the channels containing a specific validator if provided
You can’t perform that action at this time.
0 commit comments