Function webfinger::url_for_acct [−][src]
pub fn url_for_acct<T: Into<String>>(
acct: T,
with_https: bool
) -> Result<String, WebfingerError>
Computes the URL to fetch for an acct:
URI.
Example
use webfinger::url_for_acct; assert_eq!(url_for_acct("test@example.org", true), Ok(String::from("https://example.org/.well-known/webfinger?resource=acct:test@example.org")));