pub enum DirectiveTarget {
ItemLabel,
ItemAsStem,
StyleField,
StyleSeries,
Destinations,
Body,
}Expand description
Where a directive’s value lives in the parsed AST. The CLI builder uses this to decide which field to populate; the round-trip emitter walks targets in canonical order.
Variants§
ItemLabel
ReportItem::label.
ItemAsStem
ReportItem::as_stem.
StyleField
One of the super::Style scalar fields, named by
yaml_directive.
StyleSeries
ReportItem::style.series (one entry per --series).
Destinations
super::Style::destinations — the output routing set
(to stdout, sessiondir). Rides the style cascade so a
defaults: mapping can route a whole report or group at
once, but it is routing, not cosmetics.
Body
ReportItem::body line — the renderer-consumed
directives (over, by, where, agg, xlabel,
ylabel, xscale, yscale, metric).
Trait Implementations§
Source§impl Clone for DirectiveTarget
impl Clone for DirectiveTarget
impl Copy for DirectiveTarget
Source§impl Debug for DirectiveTarget
impl Debug for DirectiveTarget
impl Eq for DirectiveTarget
Source§impl PartialEq for DirectiveTarget
impl PartialEq for DirectiveTarget
impl StructuralPartialEq for DirectiveTarget
Auto Trait Implementations§
impl Freeze for DirectiveTarget
impl RefUnwindSafe for DirectiveTarget
impl Send for DirectiveTarget
impl Sync for DirectiveTarget
impl Unpin for DirectiveTarget
impl UnsafeUnpin for DirectiveTarget
impl UnwindSafe for DirectiveTarget
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.