pub enum OnMissing {
Ignore,
Warn,
Error,
}Expand description
Policy for a capture that resolved to nothing.
Variants§
Ignore
Bind None and continue — the historical behaviour, and the default
so existing workloads are unaffected.
Warn
Log it. For a capture that is legitimately sometimes absent but whose absence you still want to see.
Error
Fail the op. For a capture whose absence means the query or the schema changed under you — which otherwise reads identically to “measured, and it was absent”.
Trait Implementations§
impl Copy for OnMissing
Source§impl<'de> Deserialize<'de> for OnMissing
impl<'de> Deserialize<'de> for OnMissing
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
impl Eq for OnMissing
impl StructuralPartialEq for OnMissing
Auto Trait Implementations§
impl Freeze for OnMissing
impl RefUnwindSafe for OnMissing
impl Send for OnMissing
impl Sync for OnMissing
impl Unpin for OnMissing
impl UnsafeUnpin for OnMissing
impl UnwindSafe for OnMissing
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.