pub struct MetadataMatcher {
pub fields: HashMap<String, MetadataPredicate>,
pub not: Option<Box<MetadataMatcher>>,
}Expand description
Metadata matcher: map of field -> predicate, with an optional not
sub-matcher (negation). The not: key is reserved and parsed specially —
it cannot be used as a metadata field name.
Fields§
§fields: HashMap<String, MetadataPredicate>§not: Option<Box<MetadataMatcher>>Trait Implementations§
Source§impl Clone for MetadataMatcher
impl Clone for MetadataMatcher
Source§fn clone(&self) -> MetadataMatcher
fn clone(&self) -> MetadataMatcher
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetadataMatcher
impl Debug for MetadataMatcher
Source§impl Default for MetadataMatcher
impl Default for MetadataMatcher
Source§fn default() -> MetadataMatcher
fn default() -> MetadataMatcher
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetadataMatcher
impl<'de> Deserialize<'de> for MetadataMatcher
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MetadataMatcher
impl RefUnwindSafe for MetadataMatcher
impl Send for MetadataMatcher
impl Sync for MetadataMatcher
impl Unpin for MetadataMatcher
impl UnsafeUnpin for MetadataMatcher
impl UnwindSafe for MetadataMatcher
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