pub async fn password_reset_exists(pool: &DBPool, password_reset_id: String) -> Result<bool> {
        prune_password_resets(pool).await?;

        let res = generic_service_err!(
            sqlx::query_file_as!(PasswordReset, "sql/password_reset/get_password_reset.sql", password_reset_id)
            .fetch_all(pool).await,
            "Failed to check if password reset record exists");

        Ok(res.len() == 1)
    }
/// Returns whether or not a password reset record exists
/// 
/// # Arguments
/// 
/// * `pool` - The database pool
/// * `password_reset_id` - The ID of the password reset record
Returns whether or not a password reset record exists
Returns whether or not a password reset record exists
pub async fn password_reset_exists(pool: &DBPool, password_reset_id: String) -> Result<bool> {
        prune_password_resets(pool).await?;
        let res = generic_service_err!(
            sqlx::query_file_as!(PasswordReset, "sql/password_reset/get_password_reset.sql", password_reset_id)
            .fetch_all(pool).await,
            "Failed to check if password reset record exists");
        Ok(res.len() == 1)
    }
pub async fn password_reset_exists ( pool : & DBPool , password_reset_id : String ) -> Result < bool > { prune_password_resets ( pool ) . await ? ; let res = generic_service_err ! ( sqlx query_file_as ( PasswordReset " " password_reset_id ) fetch_all ( pool ) await " " ) ; Ok ( res . len ( ) == 1 ) }
Returns whether or not a password reset record exists
Returns whether or not a password reset record exists
pool
&DBPool
password_reset_id
String
pool
&DBPool
password_reset_id
String