pub trait KineticaArrayElement: Sized
const ELEMENT_OIDS: &‘static [u32];
// Required methods
fn from_binary(bytes: Option<&[u8]>) -> Result<Self, BoxDynError>;
fn from_text(text: Option<&str>) -> Result<Self, BoxDynError>;
fn write_json(&self, out: &mut String);
Values for the Kinetica types SQLx’s own PostgreSQL types cannot read or write over Kinetica’s protocol, or cannot reliably: see their module. An element of a Kinetica array: see KineticaArray.
Required Associated Constants
Source
const ELEMENT_OIDS: &‘static [u32]
The OIDs of the PostgreSQL element types Kinetica sends this as.
Required Methods
An element from its binary form, None for a null.
An element from its text form, None for a null.
Source
fn write_json(&self, out: &mut String)
Appends the element as JSON.
Dyn Compatibility
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called “object safety”.
Implementations on Foreign Types
Source
impl KineticaArrayElement for String
Source
impl KineticaArrayElement for bool
Source
impl KineticaArrayElement for f32
Source
impl KineticaArrayElement for f64
Source
impl KineticaArrayElement for i32
Source
impl KineticaArrayElement for i64
Source