validator

Trait 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§