pub(crate) enum NullValue {
TopLevelVariant,
ObjectField,
ArrayElement,
}Expand description
Controls how append_null is encoded for a shredded (value, typed_value) pair.
| Mode | Struct validity bit | value | typed_value | Meaning |
|---|---|---|---|---|
TopLevelVariant | null | NULL | NULL | SQL NULL at the top-level variant row |
ObjectField | non-null | NULL | NULL | Missing object field |
ArrayElement | non-null | Variant::Null | NULL | Explicit null array element |
Variants§
Implementations§
Trait Implementations§
impl Copy for NullValue
impl Eq for NullValue
impl StructuralPartialEq for NullValue
Auto Trait Implementations§
impl Freeze for NullValue
impl RefUnwindSafe for NullValue
impl Send for NullValue
impl Sync for NullValue
impl Unpin for NullValue
impl UnsafeUnpin for NullValue
impl UnwindSafe for NullValue
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.