pub enum NotePropertyPrecondition {
ExtractEquals {
key: String,
value: SqlValue,
},
AbsentOrExtractEquals {
key: String,
value: SqlValue,
},
AbsentOrTextEquals {
key: String,
value: String,
},
TrueOrTextTrue {
key: String,
},
}Expand description
A predicate on one literal top-level property key, rechecked at write time. Explicit JSON null is present and never matches an absent-key branch.
Variants§
ExtractEquals
json_extract(properties, path) = value, with the ordinary SqlValue
binding rules. SQL NULL equality does not match; this is not typed JSON equality.
AbsentOrExtractEquals
An absent key (json_type IS NULL) or Self::ExtractEquals.
AbsentOrTextEquals
An absent key, or a JSON text value exactly equal to value.
TrueOrTextTrue
JSON boolean true or the exact JSON string "true"; numeric 1 is excluded.
Trait Implementations§
Source§impl Clone for NotePropertyPrecondition
impl Clone for NotePropertyPrecondition
Auto Trait Implementations§
impl Freeze for NotePropertyPrecondition
impl RefUnwindSafe for NotePropertyPrecondition
impl Send for NotePropertyPrecondition
impl Sync for NotePropertyPrecondition
impl Unpin for NotePropertyPrecondition
impl UnsafeUnpin for NotePropertyPrecondition
impl UnwindSafe for NotePropertyPrecondition
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