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

Method from_json_bytes

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected