Skip to main content

check_valid_format

Function check_valid_format 

Source
pub fn check_valid_format(
    field: impl Into<String>,
    valid: bool,
    expected: impl Into<String>,
) -> ConfigResult<()>
Expand description

Checks that a field value has the expected format.

ยงErrors

Returns ConfigError::InvalidFormat when valid is false.