pub struct View {
pub view_type: String,
pub name: Option<String>,
pub filters: Option<Filter>,
pub order: Vec<String>,
pub sort: Vec<SortKey>,
pub group_by: Option<GroupBy>,
pub limit: Option<usize>,
pub column_size: BTreeMap<String, u32>,
pub summaries: BTreeMap<String, String>,
pub image: Option<String>,
pub interactive: Option<ViewInteractive>,
}Expand description
A single view configuration.
Fields§
§view_type: Stringtable (default), cards, or list.
name: Option<String>Display name (view tab label / section heading).
filters: Option<Filter>View-level filter, AND-combined with the global filter.
order: Vec<String>Columns to show and their order (property references). Empty = infer from
the data (all note properties seen, plus file.name).
sort: Vec<SortKey>Row sort keys, applied in order.
group_by: Option<GroupBy>Grouping (rows partitioned by this property).
limit: Option<usize>Row cap.
column_size: BTreeMap<String, u32>Per-column pixel widths (columnSize.<prop> = 381).
summaries: BTreeMap<String, String>Per-column summary function name (summaries.<prop> = Average).
image: Option<String>Cards view: property whose value (image/url) is the card cover.
interactive: Option<ViewInteractive>docgen-specific (Obsidian-ignored) interactive overrides for this view.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for View
impl<'de> Deserialize<'de> for View
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for View
impl RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnsafeUnpin for View
impl UnwindSafe for View
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