pub struct AutoUpdate {
pub enabled: bool,
pub provider: UpdateProvider,
pub download_url: String,
pub version_check: VersionCheck,
pub check_interval_hours: u64,
pub pre_update_command: Option<String>,
pub post_update_command: Option<String>,
}Expand description
Auto-update configuration for the shim
Fields§
§enabled: boolEnable auto-update
provider: UpdateProviderUpdate provider type
download_url: StringDownload URL template with version placeholder
version_check: VersionCheckVersion check URL or pattern
check_interval_hours: u64Update frequency in hours (0 = check every run)
pre_update_command: Option<String>Pre-update command to run
post_update_command: Option<String>Post-update command to run
Trait Implementations§
Source§impl Clone for AutoUpdate
impl Clone for AutoUpdate
Source§fn clone(&self) -> AutoUpdate
fn clone(&self) -> AutoUpdate
Returns a duplicate 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 AutoUpdate
impl Debug for AutoUpdate
Source§impl<'de> Deserialize<'de> for AutoUpdate
impl<'de> Deserialize<'de> for AutoUpdate
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
Auto Trait Implementations§
impl Freeze for AutoUpdate
impl RefUnwindSafe for AutoUpdate
impl Send for AutoUpdate
impl Sync for AutoUpdate
impl Unpin for AutoUpdate
impl UnwindSafe for AutoUpdate
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