pub fn from_kraft_value(
value: &[u8],
image: &MetadataImage,
) -> Result<MetadataRecord, TranslateError>Expand description
The inverse framing entrypoint.
This function decodes one KIP-631 value blob back to a MetadataRecord
and resolves the image-keyed fields against image. Those fields are the
topic ids, the whole-map config merge, and the ACL ids. The caller must
apply decoded records to image in log order, so each later decode sees the
up-to-date state.
ยงErrors
TranslateError::Decode if the envelope or the body is malformed, plus
any from_kraft error, such as an unknown topic id, an unknown ACL id, or
an unmodeled record.