The skeleton as bytes ([`SANDBOX_SKELETON_SCHEMA`]): what a transport carries and [`SandboxSkeleton::from_bytes`] reads back.
(&self)
| 90 | /// The skeleton as bytes ([`SANDBOX_SKELETON_SCHEMA`]): what a transport |
| 91 | /// carries and [`SandboxSkeleton::from_bytes`] reads back. |
| 92 | pub fn to_bytes(&self) -> Result<Vec<u8>, RepositoryError> { |
| 93 | encode(self) |
| 94 | } |
| 95 | |
| 96 | pub fn from_bytes(bytes: &[u8]) -> Result<Self, RepositoryError> { |
| 97 | decode(bytes) |