pub enum MissingKeyPolicy {
Match,
NoMatch,
}Expand description
Policy that controls how filters treat missing keys for negative predicates.
The policy only affects crate::Condition::NotEqual and crate::Condition::NotIn.
Other predicates keep their existing semantics (equal requires presence,
exists / not_exists check presence directly, etc.).
Variants§
Match
Missing keys satisfy negative predicates (not_equal, not_in_values).
This is the historical behavior and therefore the default.
NoMatch
Missing keys do not satisfy negative predicates.
Trait Implementations§
Source§impl Clone for MissingKeyPolicy
impl Clone for MissingKeyPolicy
Source§fn clone(&self) -> MissingKeyPolicy
fn clone(&self) -> MissingKeyPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MissingKeyPolicy
impl Debug for MissingKeyPolicy
Source§impl Default for MissingKeyPolicy
impl Default for MissingKeyPolicy
Source§fn default() -> MissingKeyPolicy
fn default() -> MissingKeyPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MissingKeyPolicy
impl<'de> Deserialize<'de> for MissingKeyPolicy
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
Source§impl PartialEq for MissingKeyPolicy
impl PartialEq for MissingKeyPolicy
Source§fn eq(&self, other: &MissingKeyPolicy) -> bool
fn eq(&self, other: &MissingKeyPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MissingKeyPolicy
impl Serialize for MissingKeyPolicy
impl Copy for MissingKeyPolicy
impl Eq for MissingKeyPolicy
impl StructuralPartialEq for MissingKeyPolicy
Auto Trait Implementations§
impl Freeze for MissingKeyPolicy
impl RefUnwindSafe for MissingKeyPolicy
impl Send for MissingKeyPolicy
impl Sync for MissingKeyPolicy
impl Unpin for MissingKeyPolicy
impl UnsafeUnpin for MissingKeyPolicy
impl UnwindSafe for MissingKeyPolicy
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§impl<T> IntoValueDefault<T> for T
impl<T> IntoValueDefault<T> for T
Source§fn into_value_default(self) -> T
fn into_value_default(self) -> T
Converts this argument into the default value.