Function delete_role_notification

Source
pub async fn delete_role_notification(pool: &Pool<MySql>, id: i64) -> Result<()>
Expand description

Deletes a role notification.

This function permanently removes a role notification record with the specified ID.

§Arguments

  • pool - Database connection pool for executing the query
  • id - Unique identifier of the notification to delete

§Returns

  • Ok(()) - Successfully deleted the notification
  • Err(anyhow::Error) - Failed to delete the notification