(deserializer: D)
| 183 | |
| 184 | impl<'de> serde::Deserialize<'de> for PythonVersion { |
| 185 | fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> |
| 186 | where |
| 187 | D: serde::Deserializer<'de>, |
| 188 | { |
| 189 | String::deserialize(deserializer)? |
| 190 | .parse() |
| 191 | .map_err(serde::de::Error::custom) |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | impl serde::Serialize for PythonVersion { |
nothing calls this directly
no test coverage detected