pub struct UpdaterConfig {
pub bin_name: String,
pub repo_owner: String,
pub repo_name: String,
pub current_version: String,
pub show_progress: bool,
}Expand description
Configuration for the updater
Fields§
§bin_name: StringName of the binary (e.g., “terraphim_server”)
repo_owner: StringGitHub repository owner (e.g., “terraphim”)
repo_name: StringGitHub repository name (e.g., “terraphim-ai”)
current_version: StringCurrent version of the binary
show_progress: boolWhether to show download progress
Implementations§
Source§impl UpdaterConfig
impl UpdaterConfig
Sourcepub fn new(bin_name: impl Into<String>) -> Self
pub fn new(bin_name: impl Into<String>) -> Self
Create a new updater config for Terraphim AI binaries
Sourcepub fn with_version(self, version: impl Into<String>) -> Self
pub fn with_version(self, version: impl Into<String>) -> Self
Set a custom current version (useful for testing)
Sourcepub fn with_progress(self, show: bool) -> Self
pub fn with_progress(self, show: bool) -> Self
Enable or disable progress display
Trait Implementations§
Source§impl Clone for UpdaterConfig
impl Clone for UpdaterConfig
Source§fn clone(&self) -> UpdaterConfig
fn clone(&self) -> UpdaterConfig
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 moreAuto Trait Implementations§
impl Freeze for UpdaterConfig
impl RefUnwindSafe for UpdaterConfig
impl Send for UpdaterConfig
impl Sync for UpdaterConfig
impl Unpin for UpdaterConfig
impl UnsafeUnpin 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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more