Skip to main content

is_enabled

Function is_enabled 

Source
fn is_enabled(preferences: &Value, notif_type: NotificationType) -> bool
Expand description

Check whether a subscription has a given notification type enabled. Missing keys default to enabled. Non-boolean values are treated as disabled (reject malformed preferences rather than silently enabling).