1 2 3 4 5 6 7 8 9
#![allow(dead_code)] pub fn validate_email(email: &str) -> bool { email.contains('@') && email.contains('.') } pub fn validate_url(url: &str) -> bool { url.starts_with("http://") || url.starts_with("https://") }