#[repr(C)]pub struct UpdateSettings {
pub mode: UpdateMode,
pub manifest_url: OptionString,
pub current_version: AzString,
pub app_name: AzString,
pub build_date: AzString,
pub build_tag: AzString,
pub channel: AzString,
pub root_public_key: AzString,
}Expand description
Update configuration, part of AppConfig. With manifest_url unset
every check reports an error naming this field — nothing phones home
unless the app points it somewhere.
Fields§
§mode: UpdateModeRequested behaviour; clamped by the detected install kind at runtime.
manifest_url: OptionStringURL of the update manifest (JSON: {"latest": {"version", "download_url", "changelog_md", "digest"}}). None = update checks disabled.
current_version: AzStringThe RUNNING version, compared against the manifest’s latest.version
(dotted-numeric compare). Apps typically pass env!("CARGO_PKG_VERSION").
app_name: AzStringDirectory-safe application name; keys the updater’s state directory
({data_dir}/{app_name}/update-state.json) and the staging area.
build_date: AzStringRESERVED: the build’s date, compiled in by the APP (e.g. a build
script stamping env!("BUILD_DATE")). The engine only carries it —
into telemetry resources, crash dumps and update checks.
build_tag: AzStringRESERVED: the build’s VCS tag (or commit), compiled in by the APP.
Same carriage as build_date.
channel: AzStringThe RELEASE CHANNEL this binary follows: stable (the default when
empty), beta, nightly, or whatever names the publisher uses.
Compiled in, so a nightly build cannot be talked onto the stable
track by a manifest: the binary decides which channel it reads, the
publisher decides what is in it.
root_public_key: AzStringBase64 minisign ROOT public key, compiled in by the APP. Non-empty arms the update SIGNATURE CHAIN: the manifest must then carry a root-signed signing-key statement and an artifact signature, and an unsigned release is a hard error instead of a fallback. Empty (the default) = digest verification only.
Trait Implementations§
Source§impl Clone for UpdateSettings
impl Clone for UpdateSettings
Source§fn clone(&self) -> UpdateSettings
fn clone(&self) -> UpdateSettings
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more