pub struct State<'a> {Show 13 fields
pub records: Vec<Record>,
pub recurring_records: Vec<RecurringRecord>,
pub list_type: ListType,
pub notification: Option<(String, NaiveDateTime)>,
pub errors: Vec<String>,
pub line_buf: String,
pub commands: Vec<CommandType>,
pub show: Option<Record>,
pub show_recurring: Option<RecurringRecord>,
pub calendar: Option<(Arc<Table<'a>>, NaiveDateTime)>,
pub events: Option<(Arc<Table<'a>>, NaiveDateTime)>,
pub redraw: bool,
pub block_ui: bool,
}
Fields§
§records: Vec<Record>
§recurring_records: Vec<RecurringRecord>
§list_type: ListType
§notification: Option<(String, NaiveDateTime)>
§errors: Vec<String>
§line_buf: String
§commands: Vec<CommandType>
§show: Option<Record>
§show_recurring: Option<RecurringRecord>
§calendar: Option<(Arc<Table<'a>>, NaiveDateTime)>
§events: Option<(Arc<Table<'a>>, NaiveDateTime)>
§redraw: bool
§block_ui: bool
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for State<'a>
impl<'a> RefUnwindSafe for State<'a>
impl<'a> Send for State<'a>
impl<'a> Sync for State<'a>
impl<'a> Unpin for State<'a>
impl<'a> UnwindSafe for State<'a>
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