pub struct Query {
pub selection: Selection,
pub views: Vec<ViewSpec>,
pub format: Format,
pub omitted_views: Vec<ViewSpec>,
pub axes: &'static AxisNames,
pub words_per_page: u64,
}Expand description
What a report was asked for.
Fields§
§selection: SelectionWhich entries to consider and how to shape results.
views: Vec<ViewSpec>Which views to report, in the order they were requested.
format: FormatPresentation requested before projecting retained entries.
omitted_views: Vec<ViewSpec>Views full had to drop because the requested analyzers cannot answer them.
Carried so the report can name the omission rather than leave a caller to notice a
section is missing. It lived in the CLI, which meant only the CLI could tell anyone
(fdu-x8u6); ViewSpec::resolve returns it and this is where it lands.
axes: &'static AxisNamesWhat the requesting surface calls the axes its diagnostics name.
Carried on the request because that is what knows which door the caller came through; the rules themselves stay here and are each stated once.
words_per_page: u64Fixed logical-word denominator used to derive page equivalents after aggregation.
Implementations§
Source§impl Query
impl Query
Sourcepub fn tree_for(&self, view: ViewSpec) -> bool
pub fn tree_for(&self, view: ViewSpec) -> bool
Whether this view needs the directory hierarchy rather than matching flat rows.
Sourcepub fn limit_for(&self, view: ViewSpec) -> Bound
pub fn limit_for(&self, view: ViewSpec) -> Bound
The bound to apply for view: the caller’s if they named one, else the view’s own.
Sourcepub fn depth_for(&self, view: ViewSpec) -> Bound
pub fn depth_for(&self, view: ViewSpec) -> Bound
The tree depth to apply for view, on the same terms as limit_for.
Sourcepub fn breadth_for(&self) -> Bound
pub fn breadth_for(&self) -> Bound
The independent per-directory breadth cap.
The minimum root-relative share for tree rows.