Skip to main content

gate_for_model

Function gate_for_model 

Source
pub fn gate_for_model(
    class: DisclosureClass,
    text: &str,
    consent_granted: bool,
    redactor: Option<&dyn Fn(&str) -> String>,
) -> ModelVisibility
Expand description

THE model-visibility gate (spec §9.7). consent_granted is per-item explicit consent; redactor transforms text for the after-redaction class. Missing prerequisites fail closed.