mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic_ws protocol: scrape request: add serde rename for info_hashes
This commit is contained in:
parent
460a778d0d
commit
806ac5b184
1 changed files with 5 additions and 1 deletions
|
|
@ -140,7 +140,11 @@ pub struct ScrapeRequest {
|
|||
// If omitted, scrape for all torrents, apparently
|
||||
// There is some kind of parsing here too which accepts a single info hash
|
||||
// and puts it into a vector
|
||||
#[serde(deserialize_with = "deserialize_info_hashes", default)]
|
||||
#[serde(
|
||||
rename = "info_hash",
|
||||
deserialize_with = "deserialize_info_hashes",
|
||||
default
|
||||
)]
|
||||
pub info_hashes: Vec<InfoHash>,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue