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 an error if valid is false.