pub fn publish(
client: &Client,
base: &str,
archive: &Path,
token: Option<&str>,
scope_override: Option<&str>,
domain_sig: Option<&DomainSignature>,
) -> Result<PublishResponse, PublishError>Expand description
POST a sealed .mem archive to /api/publish. Returns the parsed
success body or a typed ApiErrorBody on any non-2xx.
Authorisation is one of two channels: a GitHub token (the default path),
or a domain_sig for a <domain>:<handle> publish, which needs no GitHub
account. Exactly one should be supplied for a given publish.