pub struct App {
pub running: bool,
pub dnote_client: DnoteClient,
pub selected_section: TuiSection,
pub books: StatefulList<DnoteBook>,
pub pages: StatefulList<DnotePage>,
pub page_info: DnotePageInfo,
pub show_popup: bool,
pub popup_content: String,
}Expand description
Application.
Fields§
§running: boolIs the application running?
dnote_client: DnoteClientDnote Client instance
selected_section: TuiSectionOrder of TuiSection
books: StatefulList<DnoteBook>Books list
pages: StatefulList<DnotePage>Pages List
page_info: DnotePageInfoPage Info
show_popup: bool§popup_content: StringImplementations§
source§impl App
impl App
pub fn get_books(&mut self) -> StatefulList<DnoteBook>
pub fn get_pages(&mut self) -> StatefulList<DnotePage>
pub fn get_page_content(&mut self) -> DnotePageInfo
pub fn select_next_section(&mut self)
pub fn select_prev_section(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin 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