Reference · Rules and helpers · rules.rs
redact_terms Function
What ToolOptions::Redact.terms should carry for these hits: each text found once, plus the words typed.
func redactTerms(hits: [RedactHit], q: RedactQuery) -> [String]public static string[] RedactTerms(RedactHit[] hits, RedactQuery q)pub fn redact_terms(hits: Vec<RedactHit>, q: RedactQuery) -> Vec<String>Parameters
| Name | Type | Swift / C# |
|---|---|---|
hits | Vec<RedactHit> | hits |
q | RedactQuery | q |
Returns
Vec<String>
Errors
Does not throw.
Signatures are generated from the engine’s code. Swift is checked against the generated bindings; C# follows the bindings generator’s naming rules.