Skip to main content

parse_event

Function parse_event 

Source
pub fn parse_event(id: &str, body: &[u8]) -> Result<DodoEvent, NotAnObject>
Expand description

Reads a verified webhook body. Fails only when it isn’t a JSON object; every field inside is optional, and one of the wrong type counts as absent.