pub struct Config {Show 14 fields
pub api_base_url: String,
pub worker_id: Option<String>,
pub auth_token: Option<String>,
pub vram_threshold_gb: f32,
pub auto_start: bool,
pub auto_update_enabled: bool,
pub auto_update_interval_secs: u64,
pub auto_update_feed: String,
pub auto_update_prerelease: bool,
pub models_root: PathBuf,
pub ws_reconnect_attempts: Option<u32>,
pub install_id: Option<String>,
pub registration_request_id: Option<String>,
pub registration_secret: Option<String>,
}Fields§
§api_base_url: StringBase URL of the studio API (e.g. https://studio.minis.gg/).
worker_id: Option<String>Worker id, written on operator approval. Cleared by
studio-worker register --reset. Internal — not surfaced as
a user-editable widget.
auth_token: Option<String>Per-worker token issued at registration. Internal — never surfaced in the UI and redacted from log events.
vram_threshold_gb: f32VRAM threshold the worker reports as its max claim size, in GB.
auto_start: boolWhether to auto-launch the run loop at boot via the OS service.
auto_update_enabled: boolPeriodically check the release feed and auto-install newer versions when no job is running.
auto_update_interval_secs: u64How often (seconds) to check the release feed.
auto_update_feed: StringGitHub Releases feed for this binary.
auto_update_prerelease: boolWhether to upgrade to pre-release versions.
models_root: PathBufRoot directory for downloaded model files (per-engine
subdirectories: llm/, stt/, tts/, image/, video/).
Defaults to ~/models (resolved at load time).
ws_reconnect_attempts: Option<u32>Maximum number of WebSocket reconnect attempts before the
worker gives up and exits non-zero (relying on the service
manager to restart it). 0 = infinite. Defaults to 5.
install_id: Option<String>Per-install UUID written once on first launch. Stable across worker restarts so the studio can dedup pending requests. Internal state, populated by the auto-register flow.
registration_request_id: Option<String>requestId returned by POST /workers/register-request.
Cleared on approval / rejection. Internal.
registration_secret: Option<String>Bearer secret presented when polling the request status. Cleared on approval / rejection. Internal.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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>,
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.