(d: D)
| 2508 | s.serialize_str(&data_encoding::BASE64.encode(v)) |
| 2509 | } |
| 2510 | pub fn deserialize<'de, D: Deserializer<'de>>(d: D) -> Result<Vec<u8>, D::Error> { |
| 2511 | let s = String::deserialize(d)?; |
| 2512 | data_encoding::BASE64 |
| 2513 | .decode(s.as_bytes()) |
| 2514 | .map_err(serde::de::Error::custom) |
| 2515 | } |
| 2516 | } |
| 2517 | |
| 2518 | impl Repository { |