Skip to main content

required_text

Function required_text 

Source
pub(super) fn required_text(
    value: Value,
    field: &str,
    what: &str,
) -> Result<String, EditError>
Expand description

value as a non-empty string; field names it when null, what otherwise.