pub fn validate_email(value: &str) -> bool {
let Some((local, domain)) = value.split_once('@') else {
return false;
};
!local.is_empty() && domain.contains('.') && !domain.starts_with('.') && !domain.ends_with('.')
}
pub fn validate_url(value: &str) -> bool {
value.starts_with("http://") || value.starts_with("https://")
}
pub fn validate_uuid(value: &str) -> bool {
value.parse::<uuid::Uuid>().is_ok()
}