pub fn models_origin(
cloud_url: &str,
models_url: Option<&str>,
) -> Result<String, String>Expand description
The models origin for an instance enrolled at cloud_url.
Without models_url it is https://models.<cloud host> (a loopback Cloud,
as in tests, serves the models itself). A configured models_url is
honoured only when it is a bare origin whose host equals the Cloud host or
is a direct subdomain of it, over HTTPS; loopback is allowed for tests.
Anything else is refused: the token must never reach a foreign host.