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

Method from_json_bytes

atomic-agent/src/event.rs:652–656  ·  view source on GitHub ↗
(bytes: &[u8])

Source from the content-addressed store, hash-verified

650 }
651
652 pub fn from_json_bytes(bytes: &[u8]) -> Result<Self, ProvenanceJournalError> {
653 let envelope: Self = serde_json::from_slice(bytes)?;
654 envelope.validate()?;
655 Ok(envelope)
656 }
657
658 /// Adapt a normalized hook event without discarding its raw payload.
659 ///

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected