(&self, serializer: S)
| 489 | |
| 490 | impl Serialize for BinaryProfile { |
| 491 | fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> |
| 492 | where |
| 493 | S: Serializer, |
| 494 | { |
| 495 | if !self.harness { |
| 496 | return serializer.serialize_str(&self.path); |
| 497 | } |
| 498 | let mut state = serializer.serialize_struct("BinaryProfile", 2)?; |
| 499 | state.serialize_field("path", &self.path)?; |
| 500 | state.serialize_field("harness", &self.harness)?; |
| 501 | state.end() |
| 502 | } |
| 503 | } |
| 504 | |
| 505 | impl<'de> Deserialize<'de> for BinaryProfile { |
nothing calls this directly
no outgoing calls
no test coverage detected