pub struct UpdateRuntimeConfig {
pub enabled: bool,
pub sources: Vec<UpdateSource>,
pub check_interval: Duration,
pub github_repo: String,
}Expand description
Runtime update-check policy resolved from environment and project defaults.
Fields§
§enabled: bool§sources: Vec<UpdateSource>§check_interval: Duration§github_repo: StringImplementations§
Source§impl UpdateRuntimeConfig
impl UpdateRuntimeConfig
pub fn from_environment( overrides: &UpdateEnvOverrides, ) -> Result<Self, UpdateRuntimeConfigError>
Trait Implementations§
Source§impl Clone for UpdateRuntimeConfig
impl Clone for UpdateRuntimeConfig
Source§fn clone(&self) -> UpdateRuntimeConfig
fn clone(&self) -> UpdateRuntimeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UpdateRuntimeConfig
impl Debug for UpdateRuntimeConfig
Source§impl PartialEq for UpdateRuntimeConfig
impl PartialEq for UpdateRuntimeConfig
Source§fn eq(&self, other: &UpdateRuntimeConfig) -> bool
fn eq(&self, other: &UpdateRuntimeConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for UpdateRuntimeConfig
impl StructuralPartialEq for UpdateRuntimeConfig
Auto Trait Implementations§
impl Freeze for UpdateRuntimeConfig
impl RefUnwindSafe for UpdateRuntimeConfig
impl Send for UpdateRuntimeConfig
impl Sync for UpdateRuntimeConfig
impl Unpin for UpdateRuntimeConfig
impl UnsafeUnpin for UpdateRuntimeConfig
impl UnwindSafe for UpdateRuntimeConfig
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