| 40 | |
| 41 | #[derive(Default, serde::Serialize)] |
| 42 | pub struct CorpusMetadata { |
| 43 | /// The total size (in bytes) of all the inputs in the input queue. |
| 44 | pub total_input_bytes: usize, |
| 45 | /// The total number of instructions across any input. |
| 46 | pub total_instructions: u64, |
| 47 | /// Metadata collected for each input stream. |
| 48 | #[serde(serialize_with = "serialize_as_vec")] |
| 49 | pub streams: HashMap<StreamKey, StreamMetadata>, |
| 50 | } |
| 51 | |
| 52 | pub fn serialize_as_vec<S, K, V>(map: &HashMap<K, V>, serializer: S) -> Result<S::Ok, S::Error> |
| 53 | where |
nothing calls this directly
no outgoing calls
no test coverage detected