@@ -8,28 +8,33 @@ pub enum OkResponses {
88 TokenResponse ( TokenResponse ) ,
99}
1010
11+ #[ allow( clippy:: module_name_repetitions) ]
1112#[ derive( Serialize , Deserialize , Debug ) ]
1213pub struct OkResponse < T > {
1314 pub data : T ,
1415}
1516
17+ #[ allow( clippy:: module_name_repetitions) ]
1618#[ derive( Serialize , Deserialize , Debug ) ]
1719pub struct ErrorResponse < T > {
1820 pub errors : Vec < T > ,
1921}
2022
23+ #[ allow( clippy:: module_name_repetitions) ]
2124#[ derive( Serialize , Deserialize , Debug ) ]
2225pub struct TokenResponse {
2326 pub token : String ,
2427 pub username : String ,
2528 pub admin : bool ,
2629}
2730
31+ #[ allow( clippy:: module_name_repetitions) ]
2832#[ derive( Serialize , Deserialize , Debug ) ]
2933pub struct NewTorrentResponse {
3034 pub torrent_id : i64 ,
3135}
3236
37+ #[ allow( clippy:: module_name_repetitions) ]
3338#[ derive( Debug , Serialize , Deserialize , sqlx:: FromRow ) ]
3439pub struct TorrentResponse {
3540 pub torrent_id : i64 ,
@@ -72,6 +77,7 @@ impl TorrentResponse {
7277 }
7378}
7479
80+ #[ allow( clippy:: module_name_repetitions) ]
7581#[ derive( Serialize , Deserialize , Debug , sqlx:: FromRow ) ]
7682pub struct TorrentsResponse {
7783 pub total : u32 ,
0 commit comments