Skip to main content

parse_allowance_event_message

Function parse_allowance_event_message 

Source
pub fn parse_allowance_event_message(
    message: &PrivateApplicationMessage,
) -> Option<AllowanceEventMessage>
Expand description

Parse a raw Private Application Message as an Allowance Event Message.

Returns None for non-Allowance kinds. Recognized malformed messages are returned with AllowanceEventMessage::is_valid set to false, while the raw JSON remains available for durable storage and future audit.