pub struct Field {
pub name: String,
pub labels: Vec<String>,
}
Expand description
one segment of a filter (parse_filter
returns Vec<Field>
)
e.g. for the filter '.foo[label="bar"].baz'
there are two segments:
- the name “foo” and the label “bar”
- the name “baz”
Fields§
§name: String
an attribute or block name
labels: Vec<String>
block labels
Implementations§
Trait Implementations§
source§impl PartialEq for Field
impl PartialEq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)