Skip to main content

check_field

Function check_field 

Source
pub fn check_field(value: &str, max_bytes: usize) -> bool
Expand description

Whether value may be a record’s field: not empty, at most max_bytes long, and free of control characters (which would let a field forge a line in a log or a file).