pub enum JsonPathCast {
None,
Signed,
Double,
Decimal,
}Expand description
Cast applied when a nested composite field is rendered through JSON storage.
PostgreSQL stores composite fields natively and ignores this value. SQLite’s
json_extract preserves scalar number types, so it also ignores this value.
MySQL JSON extraction returns JSON/text, so the dialect uses this hint to
keep numeric ordering numeric instead of lexicographic.
Variants§
None
No cast; keep the extracted scalar as text/native JSON scalar.
Signed
Cast to a signed integer.
Double
Cast to a floating-point number.
Decimal
Cast to a wide decimal value.
Trait Implementations§
Source§impl Clone for JsonPathCast
impl Clone for JsonPathCast
Source§fn clone(&self) -> JsonPathCast
fn clone(&self) -> JsonPathCast
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 moreimpl Copy for JsonPathCast
Source§impl Debug for JsonPathCast
impl Debug for JsonPathCast
impl Eq for JsonPathCast
Source§impl PartialEq for JsonPathCast
impl PartialEq for JsonPathCast
Source§fn eq(&self, other: &JsonPathCast) -> bool
fn eq(&self, other: &JsonPathCast) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JsonPathCast
Auto Trait Implementations§
impl Freeze for JsonPathCast
impl RefUnwindSafe for JsonPathCast
impl Send for JsonPathCast
impl Sync for JsonPathCast
impl Unpin for JsonPathCast
impl UnsafeUnpin for JsonPathCast
impl UnwindSafe for JsonPathCast
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