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.
See more: https://tauri.app/v1/api/config#updaterconfig
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§
source§impl Clone for UpdaterConfig
impl Clone for UpdaterConfig
source§fn clone(&self) -> UpdaterConfig
fn clone(&self) -> UpdaterConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UpdaterConfig
impl Debug for UpdaterConfig
source§impl Default for UpdaterConfig
impl Default for UpdaterConfig
source§impl<'de> Deserialize<'de> for UpdaterConfig
impl<'de> Deserialize<'de> for UpdaterConfig
source§fn 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
source§impl PartialEq for UpdaterConfig
impl PartialEq for UpdaterConfig
source§impl Serialize for UpdaterConfig
impl Serialize for UpdaterConfig
impl Eq for UpdaterConfig
impl StructuralPartialEq for UpdaterConfig
Auto Trait Implementations§
impl Freeze for UpdaterConfig
impl RefUnwindSafe for UpdaterConfig
impl Send for UpdaterConfig
impl Sync for UpdaterConfig
impl Unpin for UpdaterConfig
impl UnwindSafe for UpdaterConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.