pub struct LabelExtraction {
pub name: String,
pub expr: Option<String>,
}Expand description
One label extraction expression for json/logfmt, e.g.
status="response.status" or a bare level.
Fields§
§name: StringDestination label name.
expr: Option<String>Source expression (JSON path / logfmt key). None extracts the
field whose name equals name.
Trait Implementations§
Source§impl Clone for LabelExtraction
impl Clone for LabelExtraction
Source§impl Debug for LabelExtraction
impl Debug for LabelExtraction
Source§impl PartialEq for LabelExtraction
impl PartialEq for LabelExtraction
impl StructuralPartialEq for LabelExtraction
Auto Trait Implementations§
impl Freeze for LabelExtraction
impl RefUnwindSafe for LabelExtraction
impl Send for LabelExtraction
impl Sync for LabelExtraction
impl Unpin for LabelExtraction
impl UnsafeUnpin for LabelExtraction
impl UnwindSafe for LabelExtraction
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