pub struct App {Show 17 fields
pub db: Arc<Database>,
pub screen: Screen,
pub projects: Vec<ProjectSummary>,
pub proj_sel: usize,
pub project: String,
pub memories: Vec<Memory>,
pub mem_sel: usize,
pub mem_scroll: usize,
pub stats: Option<MemoryStats>,
pub detail: Option<Memory>,
pub detail_scroll: usize,
pub sessions: Vec<Session>,
pub search: String,
pub searching: bool,
pub quit: bool,
pub msg: String,
pub total_mems: u32,
}Fields§
§db: Arc<Database>§screen: Screen§projects: Vec<ProjectSummary>§proj_sel: usize§project: String§memories: Vec<Memory>§mem_sel: usize§mem_scroll: usize§stats: Option<MemoryStats>§detail: Option<Memory>§detail_scroll: usize§sessions: Vec<Session>§search: String§searching: bool§quit: bool§msg: String§total_mems: u32Implementations§
Source§impl App
impl App
pub fn new(db: Arc<Database>, _settings: Arc<Settings>) -> Self
pub fn load_projects(&mut self)
pub fn load_memories(&mut self)
pub fn load_sessions(&mut self)
pub fn search_all(&mut self)
pub fn load(&mut self)
pub fn delete_sel(&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