pub enum JsonEncoding {
Jsonb,
Text,
}Expand description
The Arrow representation holding a JSON field’s values.
Variants§
Jsonb
JSONB bytes: JSON_EXT_NAME over LargeBinary. Lance stores JSON
this way.
Text
JSON text: ARROW_JSON_EXT_NAME over Utf8 or LargeUtf8. Callers
write JSON this way, and reads return it this way by default.
Implementations§
Source§impl JsonEncoding
impl JsonEncoding
Sourcepub fn of_field(field: &ArrowField) -> Option<Self>
pub fn of_field(field: &ArrowField) -> Option<Self>
The encoding of field’s values, or None when field does not hold
JSON.
Trait Implementations§
Source§impl Clone for JsonEncoding
impl Clone for JsonEncoding
impl Copy for JsonEncoding
Source§impl Debug for JsonEncoding
impl Debug for JsonEncoding
impl Eq for JsonEncoding
Source§impl PartialEq for JsonEncoding
impl PartialEq for JsonEncoding
impl StructuralPartialEq for JsonEncoding
Auto Trait Implementations§
impl Freeze for JsonEncoding
impl RefUnwindSafe for JsonEncoding
impl Send for JsonEncoding
impl Sync for JsonEncoding
impl Unpin for JsonEncoding
impl UnsafeUnpin for JsonEncoding
impl UnwindSafe for JsonEncoding
Blanket Implementations§
impl<T> Allocation for T
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