pub async fn verification_exists_for_email(pool: &DBPool, email: String) -> Result<bool> {
        prune_verifications(pool).await?;

        let res = generic_service_err!(
            sqlx::query_file_as!(Verify, "sql/verify/get_verification_by_email.sql", email)
            .fetch_all(pool).await,
            "Failed to check if verification record exists for given email");

        Ok(res.len() == 1)
    }
/// Returns whether or not a verification record exists given an email address
/// 
/// # Arguments
/// 
/// * `pool` - The database pool
/// * `email` - The email address associated with the verification record
Returns whether or not a verification record exists given an email address
Returns whether or not a verification record exists given an email address
pub async fn verification_exists_for_email(pool: &DBPool, email: String) -> Result<bool> {
        prune_verifications(pool).await?;
        let res = generic_service_err!(
            sqlx::query_file_as!(Verify, "sql/verify/get_verification_by_email.sql", email)
            .fetch_all(pool).await,
            "Failed to check if verification record exists for given email");
        Ok(res.len() == 1)
    }
pub async fn verification_exists_for_email ( pool : & DBPool , email : String ) -> Result < bool > { prune_verifications ( pool ) . await ? ; let res = generic_service_err ! ( sqlx query_file_as ( Verify " " email ) fetch_all ( pool ) await " " ) ; Ok ( res . len ( ) == 1 ) }
Returns whether or not a verification record exists given an email address
Returns whether or not a verification record exists given an email address
pool
&DBPool
email
String
pool
&DBPool
email
String