Skip to main content

validate_section

Function validate_section 

Source
pub fn validate_section(
    id: &str,
    order: i32,
    default_enabled: bool,
) -> Result<DashboardSectionSpec, String>
Expand description

Validate a declaration, or reject it.

The one rejection is an empty id: dashboard.sections addresses sections by id, and a section nothing can name is one the user can neither order nor disable.