| 20 | |
| 21 | #[derive(Deserialize, Serialize, Debug, Clone)] |
| 22 | struct BadWordsResponse { |
| 23 | content: String, |
| 24 | bad_words_total: i64, |
| 25 | bad_words_list: Vec<BadWord>, |
| 26 | censored_content: String, |
| 27 | } |
| 28 | |
| 29 | pub async fn check_profanity(content: String) -> Result<String, handle_errors::Error> { |
| 30 | // We are already checking if the ENV VARIABLE is set inside main.rs, so safe to unwrap here |
nothing calls this directly
no outgoing calls
no test coverage detected