pub trait EdgedbSetValue: Sized {
const EXPECTED_CARDINALITY: Cardinality;
// Required methods
fn from_edgedb_set_value(value: Value) -> Result<Self>;
fn interpret_possibly_missing_required_value(
val: Option<Self>,
) -> Result<Self>;
fn query_direct<Args: EdgedbQueryArgs + Send>(
client: &Client,
q: &str,
args: Args,
) -> impl Future<Output = Result<Self>> + Send;
}
Expand description
A value of a particular cardinality (typically it’s provided automatically for T
, Option<T>
, Vec<T>
or NonEmpty<T>
)
Required Associated Constants§
Required Methods§
fn from_edgedb_set_value(value: Value) -> Result<Self>
fn interpret_possibly_missing_required_value(val: Option<Self>) -> Result<Self>
fn query_direct<Args: EdgedbQueryArgs + Send>( client: &Client, q: &str, args: Args, ) -> impl Future<Output = Result<Self>> + Send
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.