(d: D)
| 2491 | s.serialize_str(&data_encoding::BASE64.encode(v)) |
| 2492 | } |
| 2493 | pub fn deserialize<'de, D: Deserializer<'de>>(d: D) -> Result<Vec<u8>, D::Error> { |
| 2494 | let s = String::deserialize(d)?; |
| 2495 | data_encoding::BASE64 |
| 2496 | .decode(s.as_bytes()) |
| 2497 | .map_err(serde::de::Error::custom) |
| 2498 | } |
| 2499 | } |
| 2500 | |
| 2501 | impl Repository { |