Trait validator::ValidateUrl

source ·
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

Required Methods§

source

fn as_url_string(&self) -> Option<Cow<'_, str>>

Provided Methods§

Implementations on Foreign Types§

source§

impl ValidateUrl for &str

source§

fn as_url_string(&self) -> Option<Cow<'_, str>>

source§

impl ValidateUrl for Cow<'_, str>

source§

fn as_url_string(&self) -> Option<Cow<'_, str>>

source§

impl ValidateUrl for str

source§

fn as_url_string(&self) -> Option<Cow<'_, str>>

source§

impl ValidateUrl for String

source§

fn as_url_string(&self) -> Option<Cow<'_, str>>

source§

impl<T> ValidateUrl for Option<T>
where T: ValidateUrl,

source§

fn as_url_string(&self) -> Option<Cow<'_, str>>

source§

impl<T> ValidateUrl for &T
where T: ValidateUrl,

source§

fn as_url_string(&self) -> Option<Cow<'_, str>>

source§

impl<T> ValidateUrl for Box<T>
where T: ValidateUrl,

source§

fn as_url_string(&self) -> Option<Cow<'_, str>>

source§

impl<T> ValidateUrl for Rc<T>
where T: ValidateUrl,

source§

fn as_url_string(&self) -> Option<Cow<'_, str>>

source§

impl<T> ValidateUrl for Arc<T>
where T: ValidateUrl,

source§

fn as_url_string(&self) -> Option<Cow<'_, str>>

source§

impl<T> ValidateUrl for Ref<'_, T>
where T: ValidateUrl,

source§

fn as_url_string(&self) -> Option<Cow<'_, str>>

source§

impl<T> ValidateUrl for RefMut<'_, T>
where T: ValidateUrl,

source§

fn as_url_string(&self) -> Option<Cow<'_, str>>

Implementors§