Struct tauri_utils::config::UpdaterConfig
source · [−]pub struct UpdaterConfig {
pub active: bool,
pub dialog: bool,
pub endpoints: Option<Vec<UpdaterEndpoint>>,
pub pubkey: String,
pub windows: UpdaterWindowsConfig,
}
Expand description
The Updater configuration object.
Fields
active: bool
Whether the updater is active or not.
dialog: bool
Display built-in dialog or use event system if disabled.
endpoints: Option<Vec<UpdaterEndpoint>>
The updater endpoints. TLS is enforced on production.
The updater URL can contain the following variables:
- {{current_version}}: The version of the app that is requesting the update
- {{target}}: The operating system name (one of
linux
,windows
ordarwin
). - {{arch}}: The architecture of the machine (one of
x86_64
,i686
,aarch64
orarmv7
).
Examples
- “https://my.cdn.com/latest.json”: a raw JSON endpoint that returns the latest version and download links for each platform.
- “https://updates.app.dev/{{target}}?version={{current_version}}&arch={{arch}}”: a dedicated API with positional and query string arguments.
pubkey: String
Signature public key.
windows: UpdaterWindowsConfig
The Windows configuration for the updater.
Trait Implementations
sourceimpl Clone for UpdaterConfig
impl Clone for UpdaterConfig
sourcefn clone(&self) -> UpdaterConfig
fn clone(&self) -> UpdaterConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UpdaterConfig
impl Debug for UpdaterConfig
sourceimpl Default for UpdaterConfig
impl Default for UpdaterConfig
sourceimpl<'de> Deserialize<'de> for UpdaterConfig
impl<'de> Deserialize<'de> for UpdaterConfig
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<UpdaterConfig> for UpdaterConfig
impl PartialEq<UpdaterConfig> for UpdaterConfig
sourcefn eq(&self, other: &UpdaterConfig) -> bool
fn eq(&self, other: &UpdaterConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UpdaterConfig) -> bool
fn ne(&self, other: &UpdaterConfig) -> bool
This method tests for !=
.
sourceimpl Serialize for UpdaterConfig
impl Serialize for UpdaterConfig
impl Eq for UpdaterConfig
impl StructuralEq for UpdaterConfig
impl StructuralPartialEq for UpdaterConfig
Auto Trait Implementations
impl RefUnwindSafe for UpdaterConfig
impl Send for UpdaterConfig
impl Sync for UpdaterConfig
impl Unpin for UpdaterConfig
impl UnwindSafe for UpdaterConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more