pub struct SetupState {Show 35 fields
pub step: SetupStep,
pub should_quit: bool,
pub outcome: Option<SetupOutcome>,
pub check_results: Vec<CheckResult>,
pub checks_loading: bool,
pub checks_triggered: bool,
pub config_path_display: Option<String>,
pub config_was_created: bool,
pub provider_choices: Vec<ProviderChoice>,
pub provider_index: usize,
pub auth_status: AuthStatus,
pub username: Option<String>,
pub auth_token: Option<String>,
pub orgs: Vec<OrgEntry>,
pub org_index: usize,
pub org_loading: bool,
pub org_discovery_in_progress: bool,
pub org_error: Option<String>,
pub base_path: String,
pub path_cursor: usize,
pub path_suggestions_mode: bool,
pub path_suggestions: Vec<PathSuggestion>,
pub path_suggestion_index: usize,
pub path_completions: Vec<String>,
pub path_completion_index: usize,
pub path_browse_mode: bool,
pub path_browse_current_dir: String,
pub path_browse_entries: Vec<PathBrowseEntry>,
pub path_browse_index: usize,
pub path_browse_show_hidden: bool,
pub path_browse_error: Option<String>,
pub path_browse_info: Option<String>,
pub error_message: Option<String>,
pub tick_count: u64,
pub is_first_setup: bool,
}Expand description
The wizard state (model).
Fields§
§step: SetupStepCurrent wizard step.
should_quit: boolWhether to quit the wizard.
outcome: Option<SetupOutcome>Outcome when done.
check_results: Vec<CheckResult>§checks_loading: bool§checks_triggered: bool§config_path_display: Option<String>§config_was_created: bool§provider_choices: Vec<ProviderChoice>§provider_index: usize§auth_status: AuthStatus§username: Option<String>§auth_token: Option<String>§orgs: Vec<OrgEntry>§org_index: usize§org_loading: bool§org_discovery_in_progress: bool§org_error: Option<String>§base_path: String§path_cursor: usize§path_suggestions_mode: bool§path_suggestions: Vec<PathSuggestion>§path_suggestion_index: usize§path_completions: Vec<String>§path_completion_index: usize§path_browse_mode: bool§path_browse_current_dir: String§path_browse_entries: Vec<PathBrowseEntry>§path_browse_index: usize§path_browse_error: Option<String>§path_browse_info: Option<String>§error_message: Option<String>§tick_count: u64Tick counter for spinner and animation effects.
is_first_setup: boolWhether this is the first workspace setup (controls UI text).
Implementations§
Source§impl SetupState
impl SetupState
Sourcepub const TOTAL_STEPS: usize = 6
pub const TOTAL_STEPS: usize = 6
Total number of numbered steps (excluding Complete).
Sourcepub fn with_first_setup(default_base_path: &str, is_first_setup: bool) -> Self
pub fn with_first_setup(default_base_path: &str, is_first_setup: bool) -> Self
Create wizard state, optionally marking as first-time setup.
Sourcepub fn selected_provider(&self) -> ProviderKind
pub fn selected_provider(&self) -> ProviderKind
Get the selected provider kind.
Sourcepub fn build_workspace_provider(&self) -> WorkspaceProvider
pub fn build_workspace_provider(&self) -> WorkspaceProvider
Build the WorkspaceProvider from current state.
Sourcepub fn selected_orgs(&self) -> Vec<String>
pub fn selected_orgs(&self) -> Vec<String>
Get selected org names.
Sourcepub fn populate_path_suggestions(&mut self)
pub fn populate_path_suggestions(&mut self)
Populate the path suggestions list for the SelectPath step.
Sourcepub fn requirements_passed(&self) -> bool
pub fn requirements_passed(&self) -> bool
Whether all critical requirement checks have passed.
Sourcepub fn step_number(&self) -> usize
pub fn step_number(&self) -> usize
The 1-based step number for display.
Auto Trait Implementations§
impl Freeze for SetupState
impl RefUnwindSafe for SetupState
impl Send for SetupState
impl Sync for SetupState
impl Unpin for SetupState
impl UnsafeUnpin for SetupState
impl UnwindSafe for SetupState
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> 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