Skip to main content

field_table_for_path_excluding

Function field_table_for_path_excluding 

Source
pub fn field_table_for_path_excluding(
    root: &Value,
    path: &str,
    include_enabled: bool,
    defaults: Option<&Value>,
    exclude: &BTreeSet<String>,
) -> Result<String, String>
Expand description

Like field_table_for_path but omits every field whose name is in exclude. Lets a directive render a shared base table once and then only the per-section extras, instead of repeating the common fields for every sibling section. Returns an empty string (not an error) when nothing remains after exclusion, so callers can render a “no extra fields” note.