pub struct TuiApp {Show 17 fields
pub title: String,
pub project_summary: String,
pub documents: Vec<DocumentSummary>,
pub selected_document: usize,
pub documents_state: ListState,
pub inspector_cache: HashMap<u64, DocumentInspector>,
pub loading_documents: bool,
pub loading_inspector: bool,
pub latest_task: Option<TaskSummary>,
pub security: Vec<SecurityFinding>,
pub status_line: String,
pub loaded_document_count: usize,
pub document_total: Option<usize>,
pub documents_viewport_height: usize,
pub inspector_scroll: usize,
pub inspector_viewport_height: usize,
pub focus: PaneFocus,
/* private fields */
}Fields§
§title: String§project_summary: String§documents: Vec<DocumentSummary>§selected_document: usize§documents_state: ListState§inspector_cache: HashMap<u64, DocumentInspector>§loading_documents: bool§loading_inspector: bool§latest_task: Option<TaskSummary>§security: Vec<SecurityFinding>§status_line: String§loaded_document_count: usize§document_total: Option<usize>§documents_viewport_height: usize§inspector_scroll: usize§inspector_viewport_height: usize§focus: PaneFocusImplementations§
Source§impl TuiApp
impl TuiApp
pub fn from_snapshot(snapshot: DashboardSnapshot) -> Self
pub fn on_security_update(&mut self, findings: Vec<SecurityFinding>)
pub fn current_document_id(&self) -> Option<u64>
pub fn current_inspector(&self) -> Option<&DocumentInspector>
pub fn selected_metadata(&self) -> Vec<String>
pub fn on_documents_page( &mut self, documents: Vec<DocumentSummary>, total: Option<usize>, done: bool, ) -> Option<u64>
pub fn on_inspector_loaded( &mut self, document_id: u64, inspector: DocumentInspector, )
pub fn on_loader_error(&mut self, message: String)
pub fn request_documents_reload(&mut self)
pub fn maybe_request_inspector(&mut self) -> Option<u64>
pub fn select_next(&mut self) -> bool
pub fn select_previous(&mut self) -> bool
pub fn select_first(&mut self) -> bool
pub fn select_last(&mut self) -> bool
pub fn select_page_down(&mut self) -> bool
pub fn select_page_up(&mut self) -> bool
pub fn toggle_focus(&mut self)
pub fn scroll_inspector_down(&mut self) -> bool
pub fn scroll_inspector_up(&mut self) -> bool
pub fn scroll_inspector_page_down(&mut self) -> bool
pub fn scroll_inspector_page_up(&mut self) -> bool
pub fn scroll_inspector_top(&mut self) -> bool
pub fn scroll_inspector_bottom(&mut self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TuiApp
impl RefUnwindSafe for TuiApp
impl Send for TuiApp
impl Sync for TuiApp
impl Unpin for TuiApp
impl UnsafeUnpin for TuiApp
impl UnwindSafe for TuiApp
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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