pub struct SectionInfo {
pub key: String,
pub label: String,
pub help: String,
pub has_picker: bool,
pub completed: bool,
pub ready: bool,
pub group: String,
pub is_onboarding: bool,
pub shape: Option<SectionShape>,
}Fields§
§key: StringStable section key — model_providers, channels, memory,
hardware, tunnel. Matches Section::as_path_prefix in
zeroclaw-runtime so CLI / web stay aligned.
label: StringHuman-readable section name for headers / breadcrumbs.
help: StringHelp text the wizard shows under the section title.
has_picker: booltrue when this section requires picking an item before the form
renders (Providers / Channels / Memory / Tunnel). false for sections
that have a single direct form (Hardware).
completed: boolWhether the user has marked the section completed in
onboard_state.completed_sections.
ready: boolWhether the section currently has enough usable config for the
first-run path. This is stricter than completed: visiting a section
can mark it completed, but the sidebar checkmark should not imply a
provider or agent is runnable when required fields are still missing.
group: StringDisplay group for the dashboard sidebar (Foundation, Agent,
Tools, etc.). Curated server-side until v3 / #5947 lands a schema
attribute that encodes the grouping declaratively.
is_onboarding: booltrue when this section is part of /onboard’s canonical
section list (zeroclaw_config::sections::ONBOARDING_SECTIONS).
Since the wizard/explorer split was retired, every known section
returns true; the field is preserved for API stability so the
frontend’s .filter((s) => s.is_onboarding) stays a no-op rather
than failing to compile.
shape: Option<SectionShape>Editor shape (direct form / one-tier alias map / typed-family map /
backend picker). Server-emitted from
zeroclaw_config::sections::Section::shape(); both the
dashboard explorer and the onboard wizard dispatch their renderer
off this flag so identical sections render identically.
None for sections that aren’t part of the canonical wizard.
Trait Implementations§
Source§impl Debug for SectionInfo
impl Debug for SectionInfo
Source§impl JsonSchema for SectionInfo
impl JsonSchema for SectionInfo
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SectionInfo
impl RefUnwindSafe for SectionInfo
impl Send for SectionInfo
impl Sync for SectionInfo
impl Unpin for SectionInfo
impl UnsafeUnpin for SectionInfo
impl UnwindSafe for SectionInfo
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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