(&self)
| 68 | Self: Sized + Serialize + for<'a> Deserialize<'a>, |
| 69 | { |
| 70 | fn serialize(&self) -> String { |
| 71 | serde_json::to_string(self).unwrap() |
| 72 | } |
| 73 | |
| 74 | fn deserialize<S: Into<String>>(s: S) -> Self { |
| 75 | serde_json::from_str(&s.into()).unwrap() |
no outgoing calls