pub trait EdgedbObject: Sized {
// Required method
fn from_edgedb_object(
shape: ObjectShape,
fields: Vec<Option<Value>>,
) -> Result<Self>;
}
Expand description
Struct that can be received from EdgeDB as an Object. Derive this trait for your structs.
Required Methods§
fn from_edgedb_object( shape: ObjectShape, fields: Vec<Option<Value>>, ) -> Result<Self>
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.