MCPcopy Create free account
hub / github.com/Rust-Web-Development/code / BadWordsResponse

Class BadWordsResponse

ch_08/src/profanity.rs:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22#[derive(Deserialize, Serialize, Debug, Clone)]
23struct BadWordsResponse {
24 content: String,
25 bad_words_total: i64,
26 bad_words_list: Vec<BadWord>,
27 censored_content: String,
28}
29
30pub async fn check_profanity(
31 content: String,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected