pub struct ArchiveModel {Show 22 fields
pub navigator: ArchiveNavigator,
pub tree_state: TreeState<String>,
pub show_metadata: bool,
pub search_mode: bool,
pub search_query: String,
pub search_results: Vec<usize>,
pub snapshot_filter: Option<String>,
pub detail_popup: bool,
pub snapshot_popup: bool,
pub snapshot_popup_selected: usize,
pub preview_mode: bool,
pub preview_content_raw: Option<Vec<u8>>,
pub preview_scroll: u16,
pub extract_prompt: bool,
pub extract_dest: String,
pub extract_status: Option<String>,
pub pending_extract: Option<String>,
pub vector_search_mode: bool,
pub vector_query: String,
pub vector_results: Vec<(f32, String)>,
pub vector_status: Option<String>,
pub vector_search_pending: bool,
}Expand description
State for archive browsing mode.
Fields§
§tree_state: TreeState<String>§show_metadata: boolWhether the full metadata panel is shown (or toggled off for narrow terminals).
search_mode: boolWhether we’re in search input mode.
search_query: String§search_results: Vec<usize>Indices into navigator.entries that match the current search query.
snapshot_filter: Option<String>None = all snapshots; Some(name) = filtered to one snapshot.
detail_popup: boolWhether the detail popup is shown (I key).
snapshot_popup: boolWhether the snapshot selector popup is open (S key).
snapshot_popup_selected: usizeSelected index in the snapshot popup list.
preview_mode: boolWhether a file preview is shown (V key).
preview_content_raw: Option<Vec<u8>>Raw bytes from restore_file_head() for the selected file.
preview_scroll: u16Vertical scroll offset for preview panel.
extract_prompt: boolTrue when the user pressed E and is entering a destination path.
extract_dest: StringThe destination path being typed in the extract prompt.
extract_status: Option<String>Result message shown after extraction (e.g. “Extracted: /path (1234 B)”).
pending_extract: Option<String>Pending extract request: destination path confirmed by Enter.
vector_search_mode: boolWhether we’re in vector/semantic search mode (Ctrl+/).
vector_query: StringThe natural-language query being typed for vector search.
vector_results: Vec<(f32, String)>(score, file_path) pairs from the vector search callback, sorted desc by score.
vector_status: Option<String>Status message for vector search (“No AI index”, “Searching…”, “Found N results”, or error).
vector_search_pending: boolFlag set by Enter in vector search mode; consumed by BrowserApp::run_vector_search().
Implementations§
Source§impl ArchiveModel
impl ArchiveModel
pub fn new(navigator: ArchiveNavigator) -> Self
pub fn build_tree_items(&self) -> Vec<TreeItem<'static, String>>
pub fn apply_search_filter(&mut self)
Auto Trait Implementations§
impl Freeze for ArchiveModel
impl RefUnwindSafe for ArchiveModel
impl Send for ArchiveModel
impl Sync for ArchiveModel
impl Unpin for ArchiveModel
impl UnsafeUnpin for ArchiveModel
impl UnwindSafe for ArchiveModel
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