Skip to main content

LoadedConfig

Struct LoadedConfig 

Source
pub(crate) struct LoadedConfig {
Show 26 fields pub projects: Vec<LoadedProject>, pub global_env: HashMap<String, String>, pub org_browser_profiles: HashMap<String, String>, pub org_slack: HashMap<String, String>, pub default_index: usize, pub accounts: Vec<LoadedAccount>, pub models: HashMap<String, ModelSettings>, pub handoff: HandoffSettings, pub dictate: DictateSettings, pub tts: TtsSettings, pub huggingface: HuggingfaceSettings, pub gotify: Option<GotifyConfig>, pub systemone: Option<SystemOneConfig>, pub vault: Option<VaultConfig>, pub slack: Vec<SlackConfig>, pub plugins: PluginSettings, pub gateway_port: u16, pub gateway_rotation: RotationNumbers, pub server: ServerConfig, pub client: ClientConfig, pub browser: BrowserSettings, pub terminal: TerminalSettings, pub document_max_bytes: u64, pub usage_poll_interval: Duration, pub sessions: SessionsConfig, pub raw_fingerprint: String,
}

Fields§

§projects: Vec<LoadedProject>§global_env: HashMap<String, String>

The top-level [env] layer, after the gateway keys were dropped at load. Kept whole so the settings page can draw the layer itself rather than re-reading one account’s merged env.

§org_browser_profiles: HashMap<String, String>

Each org’s resolved browser profile name, keyed by org name: what the boot’s profile resolver reads to place an org’s browsers.

§org_slack: HashMap<String, String>

Each org’s own [orgs.slack] binding, keyed by org name. A project may override it; the resolved per-project binding is on the project.

§default_index: usize

Index into projects for the fallback target: the alphabetically-first project. Read only when no project is named and no picker selects one; a named project and the picker both override it.

§accounts: Vec<LoadedAccount>§models: HashMap<String, ModelSettings>

[models."<name>"] tables, keyed by the spelling a project’s model pins. Absent tables mean a spawn stamps no model parameters.

§handoff: HandoffSettings

[handoff] section knobs, unresolved: a project’s own table layers over these, and the defaults sit under both.

§dictate: DictateSettings

[dictate] section knobs. Absent section means dictation is off and preflight skips it entirely.

§tts: TtsSettings

[tts] section knobs. Absent section means the speaking role is off and nothing synthesises.

§huggingface: HuggingfaceSettings

[huggingface] token, or the default when the section is absent.

§gotify: Option<GotifyConfig>

[gotify] server connection, or None when the section is absent (Gotify disabled).

§systemone: Option<SystemOneConfig>

[systemone] decision-model endpoint, or None when the section is absent or disabled (the tools are not injected).

§vault: Option<VaultConfig>

[vault] account, or None when the section is absent (the family is not injected).

§slack: Vec<SlackConfig>

[[slack]] workspaces. An absent or empty list leaves the connector dormant, the way an absent [gotify] does.

§plugins: PluginSettings

[plugins] section knobs. Absent section means auto-update is off.

§gateway_port: u16

The port the gateway’s inference listener binds. Absent [gateway] section keeps the default.

§gateway_rotation: RotationNumbers

The gateway’s rotation numbers. Absent keys keep the defaults.

§server: ServerConfig

[server] section knobs. Absent section means the listener’s defaults: on, on loopback.

§client: ClientConfig

[client] section knobs. Absent section means every name unset, which is the built-in rather than a pin.

§browser: BrowserSettings

[browser] section knobs, resolved: the encoding rate and quality, and the idle release’s bound. Absent section keeps the defaults.

§terminal: TerminalSettings

[terminal] section knobs, resolved: the shell to run, the scrollback bound and the idle clock. Absent section keeps the defaults.

§document_max_bytes: u64

The ceiling on one handed document, in bytes: [documents] max_size_mib resolved, 10 MiB when the key is absent. Read by the document read, which refuses over it.

§usage_poll_interval: Duration

The background usage poller’s interval: [usage] poll_seconds resolved, 60 seconds when the key is absent. Bounds how stale the account-usage cache is.

§sessions: SessionsConfig

[sessions] section knobs, resolved. Absent section keeps the defaults, which heal a dead durable seat.

§raw_fingerprint: String

The fingerprint of the raw file text this load read, which the settings document carries and a save compares against.

Implementations§

Source§

impl LoadedConfig

Source

pub(crate) fn diff(&self, next: &Self) -> ConfigReload

The reload summary between this load and next, read from the one class catalogue the settings page draws its chips from.

Source§

impl LoadedConfig

Source

pub(crate) fn default_project(&self) -> &LoadedProject

Source

pub(crate) fn empty_for_test() -> Self

Empty LoadedConfig for the testing feature’s Workspace::testing_stub. Production code paths that need a project (e.g. default_project) will panic when called on this value - tests that only need domain_handles access never reach those paths.

Trait Implementations§

Source§

impl Debug for LoadedConfig

Hand-written so a field added later cannot print through it until it is deliberately listed. Its credential carriers - the accounts’ and projects’ env stamps, gotify’s token, systemone’s key - are redacted by the structs they live on.

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Any for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

§

fn type_name(&self) -> &'static str

§

impl<T> AnySync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send> ⓘ

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<S> FromSample<S> for S

§

fn from_sample_(s: S) -> S

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

§

fn to_sample_(self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more