/// Creates a new link from string url.
/// Returns None if Url cannot be parsed.
Creates a new link from string url.
Returns None if Url cannot be parsed.
Creates a new link from string url . Returns None if Url cannot be parsed .
pub fn new_from_str(url: &str) -> Option<Self> {
        let parsed_url = match Url::parse(url) {
            Ok(x) => x,
            Err(_) => return None,
        };
        Some(Self::new(
            &parsed_url,
            &None,
            None,
            None,
            false,
            Self::get_link_type(&parsed_url),
            false,
        ))
    }
pub fn new_from_str ( url : & str ) -> Option < Self > { let parsed_url = match Url :: parse ( url ) { Ok ( x ) => x , Err ( _ ) => return None , } ; Some ( Self :: new ( & parsed_url , & None , None , None , false , Self :: get_link_type ( & parsed_url ) , false , ) ) }
Creates a new link from string url.
Creates a new link from string url .
url
&str