MCPcopy Create free account
hub / github.com/chatmail/core / parse_sync_items

Method parse_sync_items

src/sync.rs:295–298  ·  view source on GitHub ↗

Takes a JSON string created by `build_sync_json()` and construct `SyncItems` from it.

(&self, serialized: String)

Source from the content-addressed store, hash-verified

293 /// Takes a JSON string created by `build_sync_json()`
294 /// and construct `SyncItems` from it.
295 pub(crate) fn parse_sync_items(&self, serialized: String) -> Result<SyncItems> {
296 let sync_items: SyncItems = serde_json::from_str(&serialized)?;
297 Ok(sync_items)
298 }
299
300 /// Executes sync items sent by other device.
301 ///

Callers 4

test_build_sync_jsonFunction · 0.80
test_parse_sync_itemsFunction · 0.80
test_execute_sync_itemsFunction · 0.80

Calls

no outgoing calls

Tested by 3

test_build_sync_jsonFunction · 0.64
test_parse_sync_itemsFunction · 0.64
test_execute_sync_itemsFunction · 0.64