pub struct App {Show 18 fields
pub project: String,
pub memories: Vec<Memory>,
pub sessions: Vec<Session>,
pub selected: usize,
pub scroll: usize,
pub search: String,
pub status_msg: Option<String>,
pub quit: bool,
pub detail_tab: DetailTab,
pub detail_scroll: usize,
pub stats: Option<MemoryStats>,
pub graph: Option<GraphData>,
pub graph_sel: usize,
pub entity_data: Option<Vec<(String, EntityType, u32)>>,
pub temporal_data: Option<(Vec<Memory>, u8)>,
pub active_panel: usize,
pub total_mems: u32,
pub db: Arc<Database>,
}Expand description
Estado global de la app — estilo lazygit/lazydocker.
Fields§
§project: String§memories: Vec<Memory>§sessions: Vec<Session>§selected: usize§scroll: usize§search: String§status_msg: Option<String>§quit: bool§detail_tab: DetailTab§detail_scroll: usize§stats: Option<MemoryStats>§graph: Option<GraphData>§graph_sel: usize§entity_data: Option<Vec<(String, EntityType, u32)>>§temporal_data: Option<(Vec<Memory>, u8)>§active_panel: usize§total_mems: u32§db: Arc<Database>Implementations§
Source§impl App
impl App
pub fn new(db: Arc<Database>, _settings: Arc<Settings>) -> Self
pub fn load(&mut self)
pub fn down(&mut self)
pub fn up(&mut self)
pub fn first(&mut self)
pub fn last(&mut self)
pub fn pgdn(&mut self)
pub fn pgup(&mut self)
pub fn sel(&self) -> Option<&Memory>
pub fn tab_next(&mut self)
pub fn tab_prev(&mut self)
pub fn dscroll_down(&mut self)
pub fn dscroll_up(&mut self)
pub fn delete_sel(&mut self)
pub fn load_graph(&mut self)
pub fn graph_next(&mut self)
pub fn graph_prev(&mut self)
pub fn load_entity(&mut self)
pub fn load_temporal(&mut self)
pub fn temporal_cycle(&mut self)
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin for App
impl UnwindSafe for App
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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