Serialize to a compact binary blob via postcard.
(&self)
| 134 | impl IntentEntry { |
| 135 | /// Serialize to a compact binary blob via postcard. |
| 136 | pub fn to_bytes(&self) -> Vec<u8> { |
| 137 | postcard::to_allocvec(self).expect("IntentEntry serialization") |
| 138 | } |
| 139 | |
| 140 | /// Deserialize from a postcard binary blob. |
| 141 | pub fn from_bytes(bytes: &[u8]) -> Result<Self, postcard::Error> { |
no outgoing calls