From 7d99456aaac81646f460fefe096ec6465c5b646f Mon Sep 17 00:00:00 2001 From: Pavel Perestoronin Date: Mon, 5 Dec 2022 16:03:26 +0100 Subject: [PATCH] Opt: add the docstrings, make the `BattleResultsDat`'s fields public --- src/models/battle_results_dat.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/models/battle_results_dat.rs b/src/models/battle_results_dat.rs index ed3a66b..cb8a0c6 100644 --- a/src/models/battle_results_dat.rs +++ b/src/models/battle_results_dat.rs @@ -11,9 +11,11 @@ use crate::{Error, Result}; #[derive(Debug, Deserialize)] pub struct BattleResultsDat( /// No idea what this is. - u64, + /// My best guess – this is some of checksum, + /// but none of MD5, SHA1, SHA224, SHA256, SHA384, SHA512, nor CRC64 over the buffer have matched. + pub u64, /// Protobuf-serialized battle results. - ByteBuf, + pub ByteBuf, ); impl BattleResultsDat {