Struct aquatic_http_protocol::response::ScrapeResponse
source · pub struct ScrapeResponse {
pub files: BTreeMap<InfoHash, ScrapeStatistics>,
}
Fields§
§files: BTreeMap<InfoHash, ScrapeStatistics>
BTreeMap instead of HashMap since keys need to be serialized in order
Implementations§
Trait Implementations§
source§impl Clone for ScrapeResponse
impl Clone for ScrapeResponse
source§fn clone(&self) -> ScrapeResponse
fn clone(&self) -> ScrapeResponse
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ScrapeResponse
impl Debug for ScrapeResponse
source§impl<'de> Deserialize<'de> for ScrapeResponse
impl<'de> Deserialize<'de> for ScrapeResponse
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more