pub struct ViewSection {
pub schema: String,
pub kind: String,
pub header: String,
pub from: Option<NaiveDate>,
pub to: Option<NaiveDate>,
pub entries: Vec<AgendaEntry>,
pub items: Vec<Item>,
pub groups: Vec<ViewSectionGroup>,
pub color: String,
}Expand description
One block of a saved view: agenda rows for an agenda block, otherwise a
list of items. from/to are set for agenda blocks only. A block with
groups has its rows in groups and none in entries or items.
Fields§
§schema: StringVIEW_SECTION_SCHEMA.
kind: StringThe block’s kind: agenda, alltodo, todo, tags or tags-todo.
header: String§from: Option<NaiveDate>§to: Option<NaiveDate>§entries: Vec<AgendaEntry>§items: Vec<Item>§groups: Vec<ViewSectionGroup>Empty unless the block has groups.
color: StringThe header’s color name (COLOR_NAMES): the block’s configured color,
or the one its rows’ keywords share (see keyword_color).
Trait Implementations§
Source§impl Clone for ViewSection
impl Clone for ViewSection
Source§impl Debug for ViewSection
impl Debug for ViewSection
Auto Trait Implementations§
impl Freeze for ViewSection
impl RefUnwindSafe for ViewSection
impl Send for ViewSection
impl Sync for ViewSection
impl Unpin for ViewSection
impl UnsafeUnpin for ViewSection
impl UnwindSafe for ViewSection
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