pub struct InheritedConfigFacts {
pub has_provider_route: bool,
pub has_credentials_or_local_runtime: bool,
pub trust_chosen: bool,
pub language: Option<String>,
pub has_user_constitution: bool,
pub has_expert_override: bool,
pub user_constitution_validity: ConstitutionValidity,
}Expand description
Observable, secret-free facts about existing config used to derive a safe
inherited setup-state for users who upgrade without a setup_state.json.
The caller (TUI/CLI) gathers these from ConfigToml, the trust marker, and
the constitution files; keeping them as plain data keeps this module pure and
unit-testable.
Fields§
§has_provider_route: boolA provider/model route is configured.
has_credentials_or_local_runtime: boolA key or local runtime is available (presence only — never the value).
trust_chosen: boolThe user has previously made a trust/approval decision.
language: Option<String>Onboarding language, if known.
has_user_constitution: boolA structured user-global constitution.json exists.
has_expert_override: boolAn expert full-Markdown override is active.
user_constitution_validity: ConstitutionValidityValidity of the user-global constitution, if present.
Trait Implementations§
Source§impl Clone for InheritedConfigFacts
impl Clone for InheritedConfigFacts
Source§fn clone(&self) -> InheritedConfigFacts
fn clone(&self) -> InheritedConfigFacts
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 InheritedConfigFacts
impl Debug for InheritedConfigFacts
Source§impl Default for InheritedConfigFacts
impl Default for InheritedConfigFacts
Source§fn default() -> InheritedConfigFacts
fn default() -> InheritedConfigFacts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InheritedConfigFacts
impl RefUnwindSafe for InheritedConfigFacts
impl Send for InheritedConfigFacts
impl Sync for InheritedConfigFacts
impl Unpin for InheritedConfigFacts
impl UnsafeUnpin for InheritedConfigFacts
impl UnwindSafe for InheritedConfigFacts
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