pub fn format_value(v: &Value) -> Result<Value, String>
url.format(urlObject) — a string is re-parsed first, a URL instance uses its href, and anything else goes through Url.prototype.format.
url.format(urlObject)
URL
href
Url.prototype.format