pub trait EdgedbPrim: Sized {
const TYPE_CAST: &'static str;
// Required methods
fn from_edgedb_val(value: Value) -> Result<Self>;
fn to_edgedb_val(self) -> Result<Value>;
}
Expand description
One of the primitive EdgeDB types, including JSON (see EdgedbJson
). Implement this for your types if they are primitive-convertible.
Required Associated Constants§
Required Methods§
fn from_edgedb_val(value: Value) -> Result<Self>
fn to_edgedb_val(self) -> Result<Value>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.