Skip to main content

extract_snapshot_payload

Function extract_snapshot_payload 

Source
pub fn extract_snapshot_payload(event: &Event) -> Result<SnapshotPayload>
Expand description

Extract and deserialize the SnapshotPayload from an item.snapshot event.

ยงErrors

Returns an error if the event is not a snapshot type or if the payload cannot be deserialized.