pub trait Predicate<K> {
// Required method
fn hash_property(&self, obj: &K) -> Option<u64>;
// Provided methods
fn fallback<F>(self, f: F) -> Fallback<Self, F>
where F: Predicate<K>,
Self: Sized { ... }
fn combine<F>(self, f: F) -> Combine<Self, F>
where F: Predicate<K>,
Self: Sized { ... }
}
Available on crate feature
runtime
only.Expand description
A predicate is a hasher of Kubernetes objects stream filtering
Required Methods§
sourcefn hash_property(&self, obj: &K) -> Option<u64>
fn hash_property(&self, obj: &K) -> Option<u64>
A predicate only needs to implement optional hashing when keys exist