pub enum ExtensionValue<'a> {
Binary(&'a [u8]),
Date(Date),
Timestamp(Timestamp),
TimestampTz(TimestampTz),
Interval(Interval),
}Expand description
Represents extended JSON value types that are not supported in standard JSON.
Standard JSON only supports strings, numbers, booleans, null, arrays, and objects. This enum provides additional data types commonly needed in database systems and other applications that require more specialized data representations.
Variants§
Binary(&'a [u8])
Binary data (byte array), allowing efficient storage of binary content that would otherwise require base64 encoding in standard JSON
Date(Date)
Calendar date without time component (year, month, day)
Timestamp(Timestamp)
Timestamp with microsecond precision but without timezone information
TimestampTz(TimestampTz)
Timestamp with microsecond precision and timezone offset information
Interval(Interval)
Time interval representation for duration calculations
Trait Implementations§
Source§impl<'a> Clone for ExtensionValue<'a>
impl<'a> Clone for ExtensionValue<'a>
Source§fn clone(&self) -> ExtensionValue<'a>
fn clone(&self) -> ExtensionValue<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ExtensionValue<'a>
impl<'a> Debug for ExtensionValue<'a>
Source§impl Display for ExtensionValue<'_>
impl Display for ExtensionValue<'_>
Source§impl PartialEq for ExtensionValue<'_>
impl PartialEq for ExtensionValue<'_>
Source§impl PartialOrd for ExtensionValue<'_>
impl PartialOrd for ExtensionValue<'_>
impl Eq for ExtensionValue<'_>
Auto Trait Implementations§
impl<'a> Freeze for ExtensionValue<'a>
impl<'a> RefUnwindSafe for ExtensionValue<'a>
impl<'a> Send for ExtensionValue<'a>
impl<'a> Sync for ExtensionValue<'a>
impl<'a> Unpin for ExtensionValue<'a>
impl<'a> UnwindSafe for ExtensionValue<'a>
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<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.