#[non_exhaustive]pub enum LabelFormatValue {
Rename(String),
Template(String),
}Expand description
The right-hand side of a label_format assignment.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rename(String)
dst=src_label — rename/copy from another label.
Template(String)
dst="template" — render a Go template.
Trait Implementations§
Source§impl Clone for LabelFormatValue
impl Clone for LabelFormatValue
Source§impl Debug for LabelFormatValue
impl Debug for LabelFormatValue
Source§impl PartialEq for LabelFormatValue
impl PartialEq for LabelFormatValue
impl StructuralPartialEq for LabelFormatValue
Auto Trait Implementations§
impl Freeze for LabelFormatValue
impl RefUnwindSafe for LabelFormatValue
impl Send for LabelFormatValue
impl Sync for LabelFormatValue
impl Unpin for LabelFormatValue
impl UnsafeUnpin for LabelFormatValue
impl UnwindSafe for LabelFormatValue
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