pub enum LineOp {
Literal(Vec<u8>),
LabelExists(String, Vec<LabelOp>),
ValueAsText,
ScaledValueAsText(f64),
NewLine,
}
Expand description
Print commands are steps in the execution of output templates.
Variants§
Literal(Vec<u8>)
Print a string.
LabelExists(String, Vec<LabelOp>)
Lookup and print label value for key, if it exists.
ValueAsText
Print metric value as text.
ScaledValueAsText(f64)
Print metric value, divided by the given scale, as text.
NewLine
Print the newline character.labels.lookup(key)
Auto Trait Implementations§
impl Freeze for LineOp
impl RefUnwindSafe for LineOp
impl Send for LineOp
impl Sync for LineOp
impl Unpin for LineOp
impl UnwindSafe for LineOp
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