pub fn validate_contact(contact: &str) -> AppResult<()>Expand description
Validate optional contact token embedded into the default User-Agent.
Same visible-ASCII policy as validate_user_agent (contact is interpolated
into the UA string). Empty contact is rejected when present as Some("").
ยงErrors
Returns crate::error::ErrorKind::Config when empty, over MAX_USER_AGENT_CHARS, or
not visible ASCII.