Skip to main content

is_enabled

Function is_enabled 

Source
pub async fn is_enabled(
    pool: &Pool,
    user_id: i64,
    kind: &str,
) -> Result<bool, ExecError>
Expand description

Whether user_id wants to receive notifications of kind. A missing row is treated as true — opt-out semantics.

§Errors

Driver / query failures.