MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / to_bytes

Method to_bytes

atomic-core/src/change/session.rs:202–204  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

200
201impl SessionRecord {
202 pub fn to_bytes(&self) -> Vec<u8> {
203 postcard::to_allocvec(self).expect("SessionRecord serialization")
204 }
205
206 pub fn from_bytes(bytes: &[u8]) -> Result<Self, postcard::Error> {
207 postcard::from_bytes(bytes)

Calls

no outgoing calls