pub trait ValidateUrl {
    // Required method
    fn as_url_string(&self) -> Option<Cow<'_, str>>;
    // Provided method
    fn validate_url(&self) -> bool { ... }
}Expand description
Validates whether the string given is a url
pub trait ValidateUrl {
    // Required method
    fn as_url_string(&self) -> Option<Cow<'_, str>>;
    // Provided method
    fn validate_url(&self) -> bool { ... }
}Validates whether the string given is a url