Skip to main content

check_status

Function check_status 

Source
fn check_status(value: &Value) -> Result
Expand description

Validate an MSC4426 status against its two required fields and their byte budgets.

Both text and emoji are required, so a partial object is rejected rather than stored for clients to render half of. The emoji budget counts bytes and never graphemes, which the proposal calls out because grapheme definitions keep growing.