[][src]Function checkpwn_lib::check_account

pub fn check_account(
    account: &str,
    api_key: &str
) -> Result<bool, CheckpwnError>

Check account, on both account and paste databases, using a given API key. Before sending a request, the thread sleeps for 1600 millis. HIBP limits at 1500. Returns Ok(bool), bool indicating whether the account is breached or not. Err() is returned if an error occurred during the check.